What counts as a capital gain
A capital gain is the profit when you sell a capital asset (stocks, funds, crypto, a property, collectibles) for more than your cost basis. Cost basis is generally what you paid, plus buying fees and, for property, the cost of improvements. Sell for less and it's a capital loss. You only owe tax when you sell; a rise in value you haven't cashed in isn't taxed.
The one-year line
- Short-term: held for one year or less. The gain is added to your ordinary income and taxed at your regular rates, 10% to 37%.
- Long-term: held for more than one year. The gain gets special rates of 0%, 15% or 20%, depending on your total taxable income.
The holding period starts the day after you buy and includes the day you sell. Selling a day too early can turn a long-term gain into a short-term one, so check the dates before you click sell.
How long-term gains stack on your income
Long-term gains don't have their own separate bracket table that ignores your other income. Your ordinary income fills the brackets first, and the gain sits on top. Whichever capital gains band that stack reaches decides the rate. So the same $10,000 gain could be taxed at 0% for someone with low other income, 15% for most middle and upper-middle incomes, and 20% for high earners. Part of a gain can even fall in one band and the rest in the next.
The income thresholds for the 0%, 15% and 20% bands are adjusted every year. You'll find the current ones on the tax brackets page.
Why the difference can be big
For someone whose ordinary income sits in the 22% or 24% bracket, a long-term gain would typically be taxed at 15% instead. On a large gain, that gap adds up quickly. That's why the capital gains tax calculator shows what the other holding period would have cost, so you can see whether waiting a few more weeks is worth it.
Planning a sale
A few practical moves people use, within the rules: check the purchase date before selling and wait past the one-year mark when the gain is large; sell losing positions in the same year to offset gains (watch the wash-sale rule if you buy the same investment back within 30 days); spread large sales across two tax years if it keeps more of the gain in a lower band; and consider giving appreciated shares directly to charity instead of selling them. For anything sizeable, a tax professional can confirm what applies to you.
Other rules worth knowing
- Losses offset gains. Capital losses first cancel out gains, and a limited amount can reduce ordinary income each year, with the rest carried forward.
- Net investment income tax. Higher earners may owe an extra 3.8% on investment income.
- Your main home. Many homeowners can exclude part or all of the gain on their primary residence if they meet ownership and use rules.
- Retirement accounts. Trades inside a 401(k) or IRA don't trigger capital gains tax.
- State tax. Most states tax capital gains as regular income.
Frequently asked questions
How long do I have to hold a stock for long-term capital gains?
More than one year from the day after purchase to the sale date.
What are the long-term capital gains rates?
0%, 15% or 20%, depending on your total taxable income. Higher earners may also owe the 3.8% net investment income tax.
Are short-term gains taxed as income?
Yes. They're added to your ordinary income and taxed at your regular bracket rates.
Does crypto follow the same rules?
Yes. The IRS treats crypto as property, so the same short-term and long-term rules apply.
Keep reading
- Marginal vs. effective tax rateWhy being in the 22% bracket doesn't mean you pay 22%, with a worked example.
- How to calculate ROIThe ROI formula, annualized ROI, and the mistakes that make ROI look better than it is.