Skip to content

Capital Gains Tax Basics: Short-Term vs. Long-Term

← Back to Taxes

Not financial advice

This content is for general education only and doesn't consider your personal situation. It isn't a recommendation to buy, sell, or hold any investment. Talk to a licensed, qualified professional before making financial decisions.

Quick answer

A capital gain is taxed only when you sell an investment for more than you paid, called realizing the gain. Unrealized gains, the kind sitting on paper while you still hold the investment, aren't taxed. How long you held the investment before selling determines whether the gain counts as short-term or long-term, and long-term gains are typically taxed at a lower rate. That same mechanism is what makes tax-loss harvesting possible.

Selling an investment for more than you paid for it creates a capital gain, and the tax code treats that gain differently depending on two things: whether you've sold at all, and how long you held the investment first. Here's how both pieces work.

Gains are only taxed when realized

A capital gain only becomes taxable when you sell the investment, an event called realizing the gain. If a stock you hold doubles in value but you haven't sold it, you owe no tax on that increase. The gain exists on paper, but it isn't income until you convert it into cash by selling.

This is why an investor holding a position that's grown enormously in value for years owes no tax on the growth until the year they sell, and why the tax bill only arrives at that point. It's also the same mechanism behind tax-loss harvesting, where selling a losing position deliberately realizes a loss you use to offset gains elsewhere, precisely because losses and gains alike only count for tax purposes once realized.

Short-term vs. long-term: the holding period matters

Once you sell and realize a gain, the tax code asks how long you held the investment before selling. That holding period splits gains into two categories:

  • Short-term capital gains: from investments held for a shorter period (typically one year or less), taxed at the same rates as ordinary income like wages.
  • Long-term capital gains: from investments held longer than the short-term threshold, taxed at rates that are typically lower than ordinary income rates.

The incentive built into this structure is clear: holding an investment longer before selling usually costs less in tax than selling and rebuying quickly, all else being equal. A trader who buys and sells within weeks pays the higher short-term rate on any gain, while an investor who holds the same position for years pays the lower long-term rate on the same dollar amount of gain.

Why the holding period changes your decisions

Knowing whether a sale falls on the short-term or long-term side of the line matters before you sell, not after. Selling a position a few days before it crosses the long-term threshold, when a small delay would qualify it for the lower rate, is a costly timing mistake that's easy to avoid by checking the purchase date first.

The specific rates attached to short-term and long-term gains, and the exact holding period that separates them, change over time and depend on your income and filing status. This article describes the mechanism, not current rates, so check irs.gov for the numbers that apply to your situation.

Putting it together

Capital gains tax touches nearly every investing decision that involves selling, from rebalancing a portfolio to cashing out of a position you no longer want. Understanding that gains are only taxed on realization, and that holding period changes the rate, helps you separate an investing decision (should I sell this?) from a tax decision (when should I sell this?), even though the two often point the same direction.

Nothing here is tax advice. Capital gains rates, holding-period thresholds, and rules change over time. Talk to a licensed tax professional before making decisions based on the tax treatment of a specific sale.

Updated: 2026-08-08

We use cookies for basic analytics and, once you agree, to show ads that help keep What Is Personal Finance free. Cookie Policy