Capital gains tax rates depend on how long you held the asset and your income level
The tax you owe on capital gains is not a flat percentage. The federal rate ranges from 0% to 20%, depending on two things: whether you held the asset 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 rates between 10% and 37%. Long-term gains get preferential rates: 0%, 15%, or 20%.
Your state may also tax capital gains. Some states have no capital gains tax at all. Others tax them as regular income. A few — including California, New York, and Washington — have separate capital gains taxes ranging from 1% to 13.3%. You need to know your state's rule because it stacks on top of the federal amount.
The difference between short-term and long-term matters enormously. If you buy stock for $10,000 and sell it eight months later for $15,000, you owe federal tax on the $5,000 gain at your ordinary income rate — potentially 24%, 32%, or 35% depending on your bracket. If you hold that same stock for 13 months and sell it for $15,000, you owe 15% or 20% federal tax on the gain instead.
Key Takeaways
- Long-term capital gains (held over one year) are taxed at 0%, 15%, or 20% federally; short-term gains are taxed at your ordinary income rate, which can be as high as 37%.
- Your tax bracket for the year determines which long-term rate you pay: 0% if your income is below roughly $47,000 (single) or $94,000 (married filing jointly), 15% for income above that up to roughly $518,000 (single) or $583,000 (married), and 20% above those thresholds.
- State taxes on capital gains range from 0% to 13.3% and are added to your federal bill, so your total can exceed 50% in high-tax states.
- You report capital gains on Schedule D (Form 1040) when you file your federal tax return; your state return requires similar reporting if your state taxes capital gains.
How the 0%, 15%, and 20% long-term rates work
The three long-term capital gains rates are not progressive the way income tax brackets are. Instead, they are stacked: your long-term gains fill up the 0% bracket first, then the 15% bracket, then the 20% bracket. The brackets shift each year for inflation.
For 2024, the 0% bracket for long-term gains ends at $47,025 of taxable income if you file as single, $94,050 if married filing jointly. The 15% bracket runs from that point up to $518,900 (single) or $583,750 (married). Anything above that is taxed at 20%. These numbers change annually. You can find the current year's brackets on the IRS website or from a tax software provider.
Example: You are single with $40,000 in ordinary income and $20,000 in long-term capital gains. Your first $7,025 of gains ($47,025 minus $40,000) is taxed at 0%. The remaining $12,975 is taxed at 15%, which is $1,946. Your total federal tax on the gains is $1,946, not $3,000 (which would be 15% of the full $20,000).
Short-term gains are taxed as ordinary income
If you hold an asset for one year or less before selling it, the gain is short-term. Short-term gains are added to your other income for the year and taxed at your ordinary income tax bracket. For 2024, those brackets range from 10% to 37% depending on your filing status and total income.
Short-term gains do not get the preferential 0%, 15%, or 20% rates. This is why the holding period matters so much. A $10,000 gain taxed as short-term at the 32% bracket costs $3,200 in federal tax. The same gain taxed as long-term at 15% costs $1,500. The difference is $1,700 on a single transaction.
The IRS counts the holding period from the day after you buy to the day you sell. If you buy on January 15 and sell on January 15 the next year, it is short-term. If you sell on January 16, it is long-term. This rule applies to stocks, bonds, real estate, and most other assets.
State capital gains taxes add to your federal bill
Nine states have no income tax and no capital gains tax: Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, Wyoming, and New Hampshire (which taxes only dividends and interest, not gains). If you live in one of these states, you owe only federal tax on capital gains.
Most other states tax capital gains as ordinary income, meaning they apply their regular income tax rate to the gain. If your state income tax rate is 5%, you owe 5% state tax on top of your federal rate. A few states — California, Hawaii, Illinois, Iowa, Maine, Minnesota, Missouri, New Jersey, New York, Oregon, Rhode Island, Vermont, and Washington D.C. — have separate capital gains taxes or higher rates on gains than on ordinary income. California's top rate is 13.3%. New York's is 10.9%. These stack on top of federal tax.
Your total tax bill on a long-term gain can easily exceed 30% when you combine federal and state. In California, a $100,000 long-term gain for a high-income filer could result in roughly $20,000 federal tax (20%) plus $13,300 state tax (13.3%), totaling $33,300.
How to report capital gains on your tax return
You report capital gains on Schedule D (Form 1040) when you file your federal tax return. Schedule D asks for the date you bought the asset, the date you sold it, your cost basis (what you paid), the sale price, and the gain or loss. The form automatically calculates whether each transaction is short-term or long-term based on the dates.
You list each transaction separately on Schedule D, then total your short-term gains and losses and your long-term gains and losses. If you have losses, they can offset gains. If losses exceed gains, you can deduct up to $3,000 of the excess against ordinary income in that year; any remaining loss carries forward to future years.
Your broker or investment firm sends you a Form 1099-B or Form 1099-S (for real estate) showing the sales proceeds. You use this to fill out Schedule D. If your state taxes capital gains, you also report the same information on your state tax return, usually on a state-specific schedule or form.
Special situations: real estate, inherited assets, and wash sales
Real estate sales are treated like any other asset for capital gains purposes, but the rules have wrinkles. 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 (or $500,000 if married filing jointly) from federal tax. This exclusion applies only once every two years. The gain above the exclusion is taxed as long-term capital gain.
If you inherit an asset, you receive a stepped-up basis. This means your cost basis becomes the asset's value on the date of the person's death, not what they originally paid. If the asset was worth $100,000 when purchased and $150,000 when inherited, your basis is $150,000. If you sell immediately for $150,000, you owe no capital gains tax. This rule applies to most inherited assets but not to certain retirement accounts or assets in some states.
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 IRS disallows the loss deduction and adds it to your basis in the new asset instead. This rule prevents people from harvesting losses for tax purposes while maintaining their investment position.
How capital gains affect your overall tax situation
Capital gains can push you into a higher tax bracket, which affects not just the gains themselves but also your ordinary income. Long-term gains are stacked on top of your ordinary income when determining which bracket applies. If you earn $45,000 in wages and have $10,000 in long-term gains, your taxable income is $55,000, which may move you into a higher bracket for both the gains and potentially for Medicare premiums or other income-based benefits.
Large capital gains can also trigger the Net Investment Income Tax (NIIT), an additional 3.8% federal tax on investment income if your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). This tax applies to capital gains, dividends, interest, and rental income. If you have significant gains, you may owe this tax on top of ordinary capital gains tax.
Some people use tax-loss harvesting to offset gains. If you have $20,000 in gains and $8,000 in losses from other investments, you can net them to report only $12,000 in gains. This strategy requires tracking all your transactions carefully and understanding the wash-sale rule.
Frequently Asked Questions
Do I owe capital gains tax if I sell at a loss?
No, you do not owe tax on a loss. Instead, you can deduct the loss against other gains or up to $3,000 of ordinary income in that year. Losses exceeding $3,000 carry forward to future years with no time limit. This is why tracking losses matters — they reduce your tax bill.
What if I sell cryptocurrency or digital assets?
Cryptocurrency is treated like any other asset for capital gains purposes. If you hold it for over one year, it qualifies for long-term rates. If you sell within one year, it is taxed as short-term at your ordinary income rate. You report it on Schedule D just like stocks or real estate.
Can I defer capital gains tax by not selling?
Yes. You owe capital gains tax only when you sell or exchange the asset. If you hold it indefinitely, you owe nothing during your lifetime. However, your heirs receive a stepped-up basis when you die, so they can sell without owing tax on the gain that accumulated during your life.
How do I know my cost basis if I lost my purchase records?
Your broker can usually provide historical records if you ask. For older transactions, you may need to contact the company directly or reconstruct records from bank statements or tax returns. If you cannot find records, the IRS may allow you to use a reasonable estimate, but this is risky — keep documentation whenever possible.
Do I owe capital gains tax on investment account transfers?
No. Moving money between your own accounts or transferring securities between your accounts does not trigger a sale. You owe tax only when you sell to a third party and realize a gain. Transferring to a spouse as a gift also does not trigger tax, though the recipient inherits your cost basis.