Sell a stock after eleven months and the profit is taxed like a paycheck. Sell it after thirteen months and the same profit can be taxed at half the rate. That one-year line is the most important number in capital gains tax — here is how it works.
What is a capital gain?
A capital gain is the profit you make when you sell an asset for more than you paid for it. Buy 100 shares at $40 each ($4,000), sell them later at $55 each ($5,500), and you have a $5,500 minus $4,000 capital gain of $1,500 — minus any commissions or fees. The same idea applies to real estate, a small business, collectibles, and cryptocurrency.
The key word is sell. Gains are not taxed while your investment is still growing. If your shares rise from $4,000 to $5,500 and you keep holding them, you owe nothing this year — the gain is "unrealized." Tax is triggered only by a sale (or another taxable event, like a crypto swap). That timing control is a real advantage: you choose the tax year by choosing when to sell.
A capital loss is the mirror image: you sell for less than you paid. Losses are useful because they can offset gains, and up to $3,000 of net losses per year can offset ordinary income. Any leftover losses carry forward to future years.
Short-term vs. long-term: the one-year line
The tax code splits capital gains into two buckets based on how long you held the asset:
- Short-term: you held the asset for one year or less. The gain is taxed at your ordinary income tax rate — the same rate as your salary. Depending on your income, that can be 10%, 12%, 22%, 24%, or higher.
- Long-term: you held the asset for more than one year. The gain is taxed at special long-term rates of 0%, 15%, or 20%, depending on your taxable income.
The difference is dramatic. A taxpayer in the 22% income tax bracket pays 22% on a short-term gain but only 15% on a long-term gain — and some lower-income taxpayers pay 0% on long-term gains. Holding an asset for one extra day can be the difference between a 22% tax bill and a 15% one.
Counting the holding period is precise: the clock starts the day after you buy and includes the day you sell. Buy on January 15, 2026 and you cross into long-term territory by selling on January 16, 2027 — not January 15. Get the date wrong by a day and the higher rate applies to the whole gain.
The long-term rates, in plain terms
Long-term capital gains use three federal rates, and which one applies depends on your taxable income:
- 0%: for taxpayers whose taxable income falls below a threshold that rises with inflation each year — roughly the lower end of the income scale. Many retirees and part-year workers land here.
- 15%: the rate most middle- and upper-middle-income investors pay. This is the workhorse rate, and it applies across a wide income band.
- 20%: the top rate, reserved for the highest earners.
On top of the federal rate, high earners may owe a 3.8% net investment income tax on top of their capital gains, and most states tax capital gains as ordinary income at the state level. The federal long-term rates are the discount — the state bill is usually the same either way.
One more wrinkle: collectibles (art, coins, stamps) are taxed at up to 28% even when held long-term, and the portion of a real estate gain attributable to depreciation is taxed at up to 25%. Those are the exceptions, not the rule.
Worked example: the $20,000 gain, two ways
Suppose you bought shares for $30,000 and they are now worth $50,000 — a $20,000 gain. You are in the 22% income tax bracket and the 15% long-term bracket. Here is the same sale, taxed two ways:
- Sell after 11 months (short-term): $20,000 × 22% = $4,400 in federal tax.
- Sell after 13 months (long-term): $20,000 × 15% = $3,000 in federal tax.
Waiting two months saves $1,400 — a 32% smaller tax bill for the same profit. That is why tax-aware investors check the calendar before they sell. It is rarely worth selling a winner days before the one-year mark when waiting costs nothing.
Now flip it: a losing position. Sell a loser in under a year and the short-term loss offsets short-term gains first — the most valuable kind of offset, since short-term gains are taxed at the highest rate. Tax-loss harvesting (selling losers to offset winners) works best when you match short-term losses against short-term gains.
Three legal ways people reduce the bill
The tax code rewards patience and planning. The main levers, in order of impact:
- Hold past one year. The single biggest lever, as the example above shows. Before selling a winner, check the purchase date.
- Harvest losses. Sell losers in the same year you realize gains. Losses offset gains dollar for dollar, and net losses up to $3,000 offset your salary. Just watch the wash-sale rule: you cannot claim the loss if you buy the same security back within 30 days.
- Use tax-advantaged accounts. Gains inside a 401(k) or IRA are not taxed when the sale happens — tax is deferred until withdrawal (traditional) or never owed at all (Roth). That is why active traders belong inside retirement accounts and buy-and-hold investors can live in taxable ones.
A fourth lever is the primary-home exclusion: if you lived in your home for at least two of the last five years, you can exclude up to $250,000 of gain ($500,000 for married couples) from tax entirely. It is the biggest capital gains break most people will ever use, and it is the reason many homeowners sell before the two-year window slips away.
What does not count as a capital gain
Not every sale gets the capital gains treatment. Gains from selling inventory in a business, or from assets you created (like a painting you made to sell), are ordinary income. Dividends are taxed under their own rules — qualified dividends get the long-term rates, ordinary dividends do not. And interest from bonds and savings accounts is always ordinary income, no matter how long you hold the bond.
The practical takeaway: before you sell anything that has grown, ask three questions. How long have I held it? What is my rate if I wait? And do I have losses elsewhere to offset it? Three minutes with a calculator can save a four-figure tax bill.
Frequently asked questions
Do I pay capital gains tax if I don't sell?
No. Unrealized gains — investments that have grown in value but you still own — are not taxed. Capital gains tax is triggered by a sale or another taxable event. This is why holding a winner for years defers the tax bill entirely until you choose to sell.
How long do I have to hold an asset for the long-term rate?
More than one year. The holding period starts the day after you buy and includes the day you sell, so an asset bought on January 15 becomes long-term if sold on January 16 of the following year. Selling even one day early makes the entire gain short-term and taxed at your ordinary income rate.
Can capital losses reduce my tax bill?
Yes. Capital losses offset capital gains dollar for dollar, and if your losses exceed your gains, up to $3,000 of the excess can offset ordinary income each year, with the rest carrying forward. Short-term losses are especially valuable because they offset short-term gains first, which are taxed at the highest rates.
Do I owe capital gains tax on my primary home?
Usually not, if you qualify for the exclusion. If you owned and lived in the home for at least two of the last five years, you can exclude up to $250,000 of gain — $500,000 if married filing jointly. Gains above the exclusion are taxed at the long-term capital gains rates.