Capital gains tax rates are the percentages the federal government takes when you sell an investment for more than you paid for it
The rate you pay depends on three things: how long you held the investment, your total income for the year, and whether you're filing as single or married. The federal government sets two main rate brackets — 0%, 15%, and 20% — but which one applies to you is determined by your income level and holding period. This is different from the income tax rates you pay on wages or salary.
You don't pay capital gains tax on an investment you still own. The tax only applies when you sell. If you bought stock for $1,000 and it's now worth $5,000 but you haven't sold it, you owe nothing. The moment you sell it for $5,000, you owe tax on the $4,000 gain.
Key Takeaways
- Long-term capital gains (held over one year) use federal rates of 0%, 15%, or 20%, determined by your income bracket, while short-term gains (held one year or less) are taxed as ordinary income at rates up to 37%.
- Your income bracket for capital gains is based on your total taxable income for the year, and the thresholds change annually and differ for single filers versus married filers.
- State and local taxes may add to your federal capital gains tax, and some states tax capital gains as ordinary income with no preferential rate.
- You report capital gains on Schedule D of your tax return, and you can deduct capital losses to reduce the gains you owe tax on.
Long-term versus short-term capital gains rates
The holding period — how long you owned the investment before selling — determines which tax rate applies. Long-term capital gains are investments you held for more than one year. Short-term capital gains are investments you sold within one year or less.
Long-term gains receive preferential rates: 0%, 15%, or 20% at the federal level. Short-term gains are taxed as ordinary income, which means they use the same brackets as your wages — rates that go as high as 37% depending on your income. Because of this, holding an investment longer than one year can result in paying significantly less tax on the same profit.
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 following year, it's short-term. If you sell on January 16 the following year, it's long-term.
How income brackets determine your long-term rate
Your long-term capital gains rate is determined by where your total taxable income falls within the federal brackets for that year. The brackets are different for single filers, married filing jointly, married filing separately, and head of household. For 2024, for example, a single filer with taxable income up to $47,025 pays 0% on long-term gains, between $47,025 and $518,900 pays 15%, and above $518,900 pays 20%.
These income thresholds change each year for inflation. The IRS publishes updated brackets in late fall for the following tax year. Your "taxable income" includes wages, interest, dividends, and other income, minus deductions and exemptions — it's not just your salary.
If you're married filing jointly, the brackets are wider, so you can have higher income and still pay the 0% rate. A married couple filing jointly with taxable income up to $94,050 in 2024 pays 0% on long-term gains. This is one reason married couples sometimes pay less capital gains tax than single people on the same investment profit.
State and local capital gains taxes
The federal rates are only part of what you owe. Most states also tax capital gains, and the way they do it varies widely. Some states tax capital gains as ordinary income using their regular income tax brackets. Others have a separate capital gains tax. A few states have no income tax at all and therefore no capital gains tax.
Washington State, for example, has a 7% capital gains tax on long-term gains over $250,000 in a single year, even though it has no regular income tax. New York taxes capital gains as ordinary income, so your state rate depends on your income bracket there. California does the same. Some cities also impose local taxes on capital gains.
When you calculate what you actually owe on an investment sale, add your federal rate, your state rate, and any local rate together. A person in the 15% federal bracket who lives in California (which has a top state rate of 13.3%) pays a combined 28.3% on long-term gains, before any local tax.
How to report capital gains on your tax return
You report capital gains and losses on Schedule D, which is part of your federal tax return. For each investment you sold during the year, you list the date you bought it, the date you sold it, your cost basis (what you paid), the sale price, and the gain or loss. You then total all your long-term gains and all your short-term gains separately.
If your total long-term gains exceed your long-term losses, that net gain is what gets taxed at the preferential rates. If you have short-term gains, those are taxed as ordinary income. If you have losses in either category, you can use them to offset gains in the same category first, then offset gains in the other category.
Your brokerage or investment firm sends you a Form 1099-B showing all the transactions they handled for you. You use this form to fill out Schedule D. If you sold investments through multiple firms, you'll receive multiple 1099-Bs and must list all transactions on one Schedule D.
Using capital losses to reduce your tax bill
Capital losses can reduce the amount of capital gains you owe tax on. If you sold one investment for a $5,000 gain and another for a $2,000 loss, your net gain is $3,000, and you only pay tax on that $3,000. This is called "tax-loss harvesting" when done intentionally to offset gains.
If your losses exceed your gains in a year, you can deduct up to $3,000 of the net loss against your ordinary income. Any loss beyond $3,000 carries forward to future years, so you can use it to offset future gains or income. This means a bad year in the market doesn't go to waste — you can use the losses to reduce taxes for years to come.
The IRS has a rule called the "wash sale rule" that prevents you from claiming a loss if you buy the same or a substantially identical investment within 30 days before or after the sale. This rule exists to prevent people from selling an investment at a loss purely for the tax deduction and then immediately buying it back.
Special situations and exceptions
Some investments receive different treatment. Collectibles — art, coins, stamps, and similar items — are taxed at a maximum federal rate of 28% on long-term gains, not the standard 0%, 15%, or 20%. may have access to small business stock held for more than five years may be partially excluded from taxation under Section 1202 of the tax code, though this is complex and requires professional guidance.
If you inherit an investment, you receive what's called a "stepped-up basis." This means your cost basis becomes the value of the investment on the date of death, not what the original owner paid. If someone bought stock for $10,000 and it was worth $100,000 when they died, and you inherit it and sell it immediately for $100,000, you owe no capital gains tax because your basis is $100,000.
Certain types of income, like gains from selling your primary residence, may be excluded from capital gains tax entirely if you meet specific requirements. A single person can exclude up to $250,000 of gain; a married couple filing jointly can exclude up to $500,000.
Frequently Asked Questions
Do I owe capital gains tax if I haven't sold the investment yet?
No. Capital gains tax only applies when you sell and realize the gain. If you own an investment that has increased in value but you haven't sold it, you owe no federal tax on that gain. You only owe tax in the year you sell.
What's the difference between my income tax rate and my capital gains rate?
Income tax rates (up to 37%) apply to wages, salary, and short-term gains. Long-term capital gains rates (0%, 15%, or 20%) are lower and apply only to investments held over one year. This is why holding an investment longer can save you money in taxes.
Can I reduce my capital gains by selling investments at a loss?
Yes. If you sell an investment at a loss, you can use that loss to offset capital gains from other investments. If losses exceed gains, you can deduct up to $3,000 against your regular income, and carry forward any remaining loss to future years.
Do I have to pay capital gains tax to my state?
Most states tax capital gains, but the method varies. Some tax them as ordinary income; others have a separate capital gains tax. A few states have no income tax. Check your state's tax authority website to learn what applies where you live.
What if I sold an investment for a loss — do I report that?
Yes. You report all sales on Schedule D, whether they resulted in gains or losses. Losses reduce your tax liability and can offset gains or ordinary income, so it's important to report them accurately.