Capital gains tax rates depend on your income and how long you held the asset
The federal tax rate on capital gains ranges from 0% to 20%, depending on your total income for the year and whether you held the asset for more than one year. Long-term capital gains (assets held over one year) get lower rates than short-term gains (assets sold within one year). Short-term gains are taxed as ordinary income, which means they use the same brackets as wages — currently 10%, 12%, 22%, 24%, 32%, 35%, or 37% depending on your income level.
Most people pay either 15% or 20% on long-term capital gains. You pay 0% if your total income falls below $47,025 (single) or $94,050 (married filing jointly) in 2024. You pay 15% on gains if your income is between those thresholds and $518,900 (single) or $583,750 (married filing jointly). Anything above those income levels is taxed at 20%. These income thresholds change each year.
Your state may also tax capital gains. Some states charge no capital gains tax at all. Others tax them as regular income or apply a separate capital gains tax rate. You will owe both federal and state tax unless you live in a state with no capital gains tax.
Key Takeaways
- Long-term capital gains (held over one year) are taxed at 0%, 15%, or 20% depending on your total income for the year; short-term gains use your ordinary income tax rate, which is higher.
- The 0% rate applies only if your income is below $47,025 (single) or $94,050 (married filing jointly) in 2024, and these thresholds increase slightly each year.
- Your state may charge additional capital gains tax on top of the federal rate, or may charge no capital gains tax at all.
- The tax is calculated on the profit you made, not the total sale price — if you bought stock for $5,000 and sold it for $8,000, you owe tax only on the $3,000 gain.
How the calculation works: gain, holding period, and income bracket
Capital gain is the difference between what you paid for an asset and what you sold it for. If you bought a house for $300,000 and sold it for $400,000, your capital gain is $100,000. You do not pay tax on the full sale price — only on that $100,000 profit.
The holding period matters because it determines which tax rate applies. If you held the asset for one year or less, it is a short-term gain and taxed at your ordinary income rate. If you held it for more than one year, it is a long-term gain and taxed at the lower 0%, 15%, or 20% rate. The clock starts the day after you buy the asset and stops the day you sell it.
Your income bracket is your total income for the year, including wages, interest, dividends, and the capital gain itself. The IRS stacks capital gains on top of your other income. If you earned $60,000 in wages and have a $50,000 long-term capital gain, your total income is $110,000. That $50,000 gain is taxed using the rates that apply to income between $60,000 and $110,000.
Long-term capital gains rates: 0%, 15%, and 20%
The 0% rate is available only to lower-income filers. For 2024, you may have access to if your total income (including the capital gain) is below $47,025 (single), $94,050 (married filing jointly), or $63,000 (head of household). This means you can have a capital gain and pay zero federal tax on it, as long as your total income stays below the threshold.
The 15% rate applies to most middle-income filers. For 2024, this rate covers income from $47,025 to $518,900 (single), $94,050 to $583,750 (married filing jointly), or $63,000 to $551,350 (head of household). The vast majority of people who sell assets pay 15% on long-term gains.
The 20% rate applies to high-income filers. For 2024, this rate kicks in above $518,900 (single), $583,750 (married filing jointly), or $551,350 (head of household). Additionally, if your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), you may owe an extra 3.8% net investment income tax on top of the 20% rate, bringing the total federal rate to 23.8%.
Short-term capital gains: taxed as ordinary income
If you sell an asset you have owned for one year or less, the gain is taxed as ordinary income. This means it uses the same tax brackets as your wages: 10%, 12%, 22%, 24%, 32%, 35%, or 37%. For most people, this is significantly higher than the long-term rate.
Short-term gains are stacked on top of your other income in the same way long-term gains are. If you earned $50,000 in wages and have a $20,000 short-term capital gain, your total income is $70,000, and that $20,000 is taxed using the brackets that apply to income between $50,000 and $70,000. If you are in the 22% bracket, you pay 22% on the short-term gain.
The difference between short-term and long-term rates can be substantial. A $10,000 short-term gain taxed at 24% costs $2,400. The same $10,000 long-term gain taxed at 15% costs $1,500. Holding an asset just past the one-year mark can save you hundreds or thousands in tax.
State capital gains taxes vary widely
Nine states charge no capital gains tax at all: Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, Wyoming, and New Hampshire (though New Hampshire taxes only interest and dividends, not capital gains). If you live in one of these states, you owe only the federal tax.
Most other states tax capital gains as ordinary income, meaning they apply their regular income tax rate to the gain. These rates range from about 3% to over 13% depending on the state and your income level. A few states — including California, Hawaii, and Vermont — have separate capital gains tax rates that apply only to investment income, typically ranging from 7% to 13.3%.
Your state tax is calculated separately from federal tax. If you live in California and owe 13.3% state tax plus 15% federal tax on a long-term gain, your total tax rate is 28.3%. State tax is not deductible on your federal return, so you pay both in full.
Special situations: home sales, inherited assets, and wash sales
If you sell a home you lived in for at least two of the last five years, you can exclude up to $250,000 of gain (single) or $500,000 (married filing jointly) from federal tax. This exclusion applies only to your primary residence and can be used once every two years. The gain above the exclusion amount is taxed normally.
If you inherit an asset, the cost basis is "stepped up" to the fair market value on the date of death. This means if your parent bought stock for $10,000 and it was worth $50,000 when they died, your basis is $50,000. If you sell it immediately for $50,000, you have zero gain and owe no tax. This step-up applies to most inherited assets, including real estate, stocks, and bonds.
A wash sale occurs when you sell an asset at a loss and buy the same or a substantially identical asset within 30 days before or after the sale. The loss is disallowed, and the basis of the new asset is adjusted. This rule prevents you from claiming a tax loss while maintaining the same investment position.
How to report capital gains on your tax return
You report capital gains on Schedule D (Form 1040), which lists each sale separately. For each transaction, you enter the date acquired, date sold, sales price, cost basis, and gain or loss. Short-term gains and losses are totaled separately from long-term gains and losses.
If you have net long-term gains, they are reported on line 15 of Form 1040 and taxed at the preferential rates. If you have net short-term gains, they are added to your ordinary income on line 1 of Form 1040. If you have losses, they can offset gains dollar-for-dollar, and up to $3,000 of net losses can offset ordinary income in a single year. Losses beyond $3,000 carry forward to future years.
Your broker will send you a Form 1099-B showing all sales for the year. The IRS receives a copy, so your return must match. If you sold assets through multiple brokers, you will receive multiple 1099-B forms and must list all transactions on Schedule D.
Frequently Asked Questions
Do I owe capital gains tax if I sell an asset at a loss?
No. A loss means you sold the asset for less than you paid for it. You do not owe tax on a loss. Instead, you can use the loss to offset capital gains from other sales. If your losses exceed your gains, you can deduct up to $3,000 of the net loss against ordinary income in that year, with any remaining loss carrying forward to future years.
What if I do not know my original purchase price?
You need to reconstruct your cost basis as accurately as possible. Check old statements, receipts, or confirmations from your broker. If you cannot find the original price, the IRS may allow you to use a reasonable estimate based on historical price data, but you should consult a tax professional. Missing documentation can trigger an audit.
Are dividends taxed the same as capital gains?
may have access to dividends are taxed at the same rates as long-term capital gains (0%, 15%, or 20%), but ordinary dividends are taxed as ordinary income. Your broker will tell you which type you received on your 1099-DIV form. Most dividends from U.S. corporations are may have access to if you held the stock for at least 60 days around the dividend date.
Can I reduce my capital gains tax by timing when I sell?
Yes, by waiting until the one-year mark to may have access to for long-term rates, and by managing which year you recognize the gain. If you are near a tax bracket threshold, selling in a different year might lower your rate. You can also harvest losses in one year to offset gains in another. A tax professional can model different timing scenarios for your situation.
Do I owe capital gains tax on cryptocurrency or NFTs?
Yes. The IRS treats cryptocurrency and NFTs as property, not currency. When you sell them, you owe capital gains tax on the profit. The holding period rule applies — if you held the asset over one year, you get the long-term rate. If under one year, you pay your ordinary income rate. You must report each transaction, including trades between different cryptocurrencies.