The tax rate depends on how long you held the asset and your total income
Capital gains tax is not a flat percentage. The amount you pay depends on two things: whether you held the investment for more than one year (long-term) or one year or less (short-term), and your total taxable income for that year. Short-term gains are taxed like ordinary income — at your regular tax bracket rate, which ranges from 10% to 37% depending on your income. Long-term gains have their own lower rates: 0%, 15%, or 20%, depending on your income level.
The income thresholds that determine which rate applies change every year because they are adjusted for inflation. For 2024, for example, the 0% long-term rate applies to single filers with taxable income up to $47,025, and the 15% rate applies to those earning between roughly $47,025 and $518,900. Anyone above that threshold pays 20%. These numbers shift annually, so the rate you pay this year may not be the rate you pay next year on a similar gain.
Key Takeaways
- Long-term capital gains (assets held over one year) are taxed at 0%, 15%, or 20% depending on your income; short-term gains are taxed at your ordinary income tax rate, which can be as high as 37%.
- The income thresholds that determine your rate change every year and vary by filing status (single, married filing jointly, head of household).
- You only pay tax on the profit, not the full sale price — if you bought stock for $5,000 and sold it for $7,000, you owe tax only on the $2,000 gain.
- State and local taxes may add to your federal capital gains tax, and some states tax capital gains differently or not at all.
- You report capital gains on Schedule D of your tax return, and the IRS tracks your holding period using the date you purchased and the date you sold.
How holding period changes what you pay
The difference between short-term and long-term rates is substantial. If you are in the 24% tax bracket and sell an investment you held for less than a year, you pay 24% on the gain. If you held that same investment for more than a year, you pay 15% (assuming your income falls in that bracket). That is a 9 percentage point difference on the same profit.
The IRS counts your holding period from the purchase date to the sale date. If you bought shares on June 15, 2023, and sold them on June 16, 2024, you held them for more than one year and may have access to for long-term rates. If you sold on June 14, 2024, you held them for less than one year and pay short-term rates. The date matters exactly — one day can move you between tax brackets.
Income thresholds for long-term capital gains rates in 2024
| Filing Status | 0% Rate (up to) | 15% Rate (up to) | 20% Rate (above) |
|---|---|---|---|
| Single | $47,025 | $518,900 | $518,900 |
| Married Filing Jointly | $94,050 | $583,750 | $583,750 |
| Head of Household | $62,975 | $551,350 | $551,350 |
These thresholds are adjusted annually for inflation, so the numbers you see this year will not be the same next year. The IRS publishes updated thresholds in the fall for the following tax year. Your filing status — whether you file as single, married filing jointly, head of household, or another category — determines which column applies to you.
Your taxable income includes all sources: wages, interest, dividends, and capital gains combined. If you earn $60,000 in wages and realize a $20,000 long-term capital gain, your total taxable income is $80,000 for purposes of determining your capital gains rate. This means a large gain can push you into a higher tax bracket even if your wages stayed the same.
What you actually owe: gain, not sale price
You pay tax only on the profit, not the total amount you receive. If you bought a rental property for $300,000 and sold it for $450,000, your capital gain is $150,000. You owe tax on the $150,000, not the $450,000. This is called your cost basis — the original purchase price plus any improvements you made (like a new roof or major renovation), minus depreciation if you claimed it.
Calculating cost basis correctly matters because it directly reduces your taxable gain. If you inherited property, your cost basis is typically the fair market value on the date of death, not what the original owner paid. If you received stock as compensation, your basis is the value on the date you received it. Keeping records of how you acquired an asset and what you paid for it is essential for accurate tax reporting.
State and local taxes on top of federal
Federal capital gains tax is only part of what you owe. Most states impose their own income tax, and capital gains are usually taxed as ordinary income at the state level. California, for example, taxes long-term capital gains at the same rate as ordinary income, which can reach 13.3% at the top bracket. New York's top rate is 10.9%. Some states, like Florida, Texas, and Washington, do not have a state income tax at all, so residents pay only federal capital gains tax.
A few states have begun taxing capital gains separately. Washington State, for instance, imposes a 7% tax on long-term capital gains above $250,000 for individuals. These state-specific rules change, so checking your state's current rules is important if you are selling a significant asset.
How to report capital gains on your tax return
You report capital gains on Schedule D, which is part of Form 1040. Schedule D asks you to list each asset you sold: the date you bought it, the date you sold it, your cost basis, the sale price, and the resulting gain or loss. The form automatically separates your transactions into short-term and long-term categories based on the holding period you enter.
If you have only one or two simple transactions, Schedule D is straightforward. If you trade frequently or have many assets, you may need to use tax software or work with a tax professional to organize the information correctly. The IRS receives a copy of your sale information from your broker (on Form 1099-B), so your reported gains should match what the IRS already knows about your sales.
Special situations that affect your rate
Some capital gains are taxed at rates higher than the standard 20% long-term rate. Collectibles — art, coins, stamps, and similar items — are taxed at a maximum of 28% on long-term gains, even if your ordinary long-term rate would be lower. Section 1250 property (real estate on which you claimed depreciation) is subject to a 25% rate on the depreciation you claimed, though the remaining gain may may have access to for the standard 15% or 20% rate.
If you have a net capital loss in a year — meaning your losses exceed your gains — you can deduct up to $3,000 of that loss against ordinary income. Any loss beyond $3,000 carries forward to future years. This is why some investors deliberately sell losing positions: to offset gains elsewhere and reduce their overall tax bill.
Frequently Asked Questions
Do I owe capital gains tax if I sell at a loss?
No. If you sell an asset for less than you paid for it, you have a capital loss, not a gain, and owe no tax on that transaction. You can use the loss to offset capital gains from other sales, or deduct up to $3,000 against ordinary income in a single year. Losses beyond that carry forward to future tax years.
What if I inherited an investment — do I owe capital gains tax when I sell it?
Probably not, or very little. When you inherit an asset, your cost basis is "stepped up" to its fair market value on the date of the person's death. If you inherit stock worth $50,000 and sell it a month later for $51,000, your gain is only $1,000, not the full $51,000. This step-up in basis is one of the largest tax benefits in the code.
Can I avoid capital gains tax by holding an investment forever?
You avoid tax only as long as you do not sell. Once you sell, you owe tax on the gain. If you pass the investment to your heirs, they receive a stepped-up basis and can sell without owing tax on the gain that occurred during your lifetime. This is why some people hold appreciated assets until death rather than selling during their lifetime.
Do I owe capital gains tax on my primary home?
Usually not, if you meet the requirements. You can exclude up to $250,000 of gain if you are single, or $500,000 if you are married filing jointly, as long as you owned and lived in the home as your primary residence for at least two of the last five years before the sale. Gains beyond that threshold are taxable.
How do I know my cost basis if I lost the original purchase documents?
Your broker may have records going back several years. Contact them and ask for a cost basis report. If records are truly unavailable, you can estimate based on historical price data, though the IRS may challenge your estimate. For older investments, working with a tax professional to reconstruct basis is often worth the cost.