Capital gains tax is a tax on profit from selling an asset, and the rate depends on how long you held it and your income level
When you sell an investment for more than you paid for it, the profit is taxed as a capital gain. The federal tax rate on that profit is not one number — it changes based 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 the year.
Short-term capital gains are taxed at your ordinary income tax rate, which ranges from 10% to 37% depending on your tax bracket. Long-term capital gains have their own lower rates: 0%, 15%, or 20%, depending on your income. Most people pay 15%. States may also tax capital gains, and the rate varies by state — some charge nothing, others charge between 5% and 13%.
Key Takeaways
- Short-term capital gains (assets held one year or less) are taxed at your regular income tax rate, which can be as high as 37%.
- Long-term capital gains (assets held more than one year) are taxed at 0%, 15%, or 20% depending on your income level, with 15% being the most common rate.
- Your total income for the year determines which capital gains rate bracket you fall into, not just the amount of the gain itself.
- State capital gains taxes range from 0% to 13% and apply on top of federal tax, though some states have no capital gains tax at all.
Long-Term Capital Gains Rates and Income Thresholds
Long-term capital gains receive preferential tax treatment because you held the asset for more than one year. The three federal rates are 0%, 15%, and 20%. Which rate you pay depends on your filing status and your total taxable income for the year.
For 2024, the 0% rate applies if your taxable income is below $47,025 (single filer), $94,050 (married filing jointly), or $63,000 (head of household). The 15% rate applies to income above those thresholds up to $518,900 (single), $583,750 (married filing jointly), or $551,350 (head of household). Income above those amounts is taxed at 20%. These thresholds change each year with inflation.
The key point: your capital gains are taxed using these brackets in order after your other income. If you earned $50,000 in wages and have $30,000 in long-term capital gains, your gains start being taxed after the $50,000 is counted. This can push you into a higher capital gains bracket than you would be in otherwise.
Short-Term Capital Gains and Ordinary Income Tax Rates
Short-term capital gains — profit from selling an asset you held for one year or less — are taxed as ordinary income. This means they use the same tax brackets as wages, interest, and other regular income: 10%, 12%, 22%, 24%, 32%, 35%, and 37%.
Short-term gains are added to your other income and taxed at whatever bracket that combined total puts you in. If you earned $100,000 in wages and have $50,000 in short-term capital gains, you are taxed on $150,000 of income at ordinary rates. This is why holding an asset for just over one year can make a significant difference in your tax bill.
State Capital Gains Taxes
Federal tax is only part of the picture. Most states also tax capital gains, though the rules vary widely. Nine states have no capital gains tax at all: Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, Wyoming, and New Hampshire (though New Hampshire taxes investment income differently). The remaining states charge between 1% and 13% on capital gains.
Some states tax capital gains at the same rate as ordinary income. Others have a separate, lower rate for long-term gains. A few states only tax capital gains above a certain threshold — for example, Maryland taxes long-term capital gains only if they exceed $250,000 in a year. Your state's tax is added on top of federal tax, so a 15% federal long-term gain plus a 5% state tax means you pay 20% total.
How Your Income Level Affects Your Capital Gains Rate
Your total taxable income for the year — not just the capital gain itself — determines which capital gains bracket you fall into. This matters because capital gains are stacked on top of your other income.
Example: You are single with $40,000 in wages. You sell stock for a $20,000 long-term gain. Your total taxable income is $60,000. The first $7,025 of your capital gain falls in the 0% bracket (up to $47,025). The remaining $12,975 falls in the 15% bracket. You pay 0% on $7,025 and 15% on $12,975, for a blended rate of about 9.7% on your total gain. If you had no other income, more of your gain would fall in the 0% bracket.
The Difference Between Holding Periods
The IRS counts holding period from the day after you buy an asset to the day you sell it. If you buy stock on January 15 and sell it on January 15 the next year, you have held it exactly one year, and the gain is short-term. You must hold it until January 16 of the next year for it to be long-term.
This one-day difference can be substantial. A $50,000 gain taxed as short-term at a 24% rate costs $12,000. The same gain taxed as long-term at 15% costs $7,500. The difference is $4,500 on a single transaction. For this reason, some investors time sales to cross the one-year threshold.
Capital Losses and How They Offset Gains
If you sell an asset for less than you paid for it, you have a capital loss. Capital losses can offset capital gains dollar-for-dollar. If you have $30,000 in long-term gains and $10,000 in long-term losses, you report a net gain of $20,000.
If your losses exceed your gains in a year, you can deduct up to $3,000 of the excess loss against ordinary income. Any loss beyond that carries forward to future years. This is why some investors sell losing positions late in the year — to offset gains and reduce their tax bill.
Frequently Asked Questions
Do I pay capital gains tax on inherited assets?
No, not on the inheritance itself. When you inherit an asset, its value is "stepped up" to the market price on the date of death. If you inherit stock worth $100,000 and sell it the next day for $100,000, you have no gain and pay no tax. You only pay tax on gains that occur after you inherit it.
What if I sell a house — is that capital gains?
Profit from selling a primary residence may not be taxed at all. Single filers can exclude up to $250,000 of gain; married couples filing jointly can exclude up to $500,000. You must have owned and lived in the house as your main home for at least two of the five years before the sale. Investment properties and second homes do not may have access to for this exclusion.
How do I report capital gains on my tax return?
You report capital gains on Schedule D (Form 1040). Your broker sends you a Form 1099-B showing all sales during the year. You list each transaction, calculate the gain or loss, and total them by type (long-term and short-term). The totals transfer to your main tax return.
Can I reduce my capital gains tax by donating appreciated assets to charity?
Yes. If you donate appreciated stock or property to a may have access to charity, you avoid the capital gains tax on the appreciation and can deduct the full fair market value as a charitable contribution. This works only for donations to may have access to charities, not for direct sales and donations of cash.
What happens if I buy and sell the same stock multiple times in one year?
Each purchase and sale is a separate transaction. If you buy 100 shares in January, sell 50 in March, buy 75 more in May, and sell 100 in December, you calculate the gain or loss on each lot separately. The IRS assumes you sell shares in the order you bought them (FIFO method) unless you specify otherwise to your broker.