The federal capital gains tax rate depends on your income and how long you held the investment
The federal capital gains tax rate is not a single number. The IRS taxes investment profits at three different rates — 0%, 15%, or 20% — based on your total income for the year and whether you held the investment for more than one year. Long-term capital gains (held over one year) get these preferential rates. Short-term gains (held one year or less) are taxed as ordinary income, which can range from 10% to 37% depending on your tax bracket.
Most people pay 15% on long-term capital gains. You pay 0% only if your income falls below a specific threshold that changes each year. You pay 20% if your income is high enough to trigger the top bracket. Additionally, if your modified adjusted gross income exceeds certain limits, you may owe a 3.8% net investment income tax on top of the capital gains rate.
State and local taxes add to the federal rate. Some states tax capital gains as regular income; others have separate capital gains taxes or no tax at all. Your total tax bill is the federal rate plus whatever your state charges.
Key Takeaways
- Long-term capital gains are taxed at 0%, 15%, or 20% federally, depending on your income level for the year.
- Short-term capital gains (investments held one year or less) are taxed as ordinary income at rates from 10% to 37%.
- The income thresholds that determine which rate you pay change every year and vary by filing status (single, married filing jointly, etc.).
- State and local taxes are added on top of the federal rate, and the amount varies significantly by where you live.
- A 3.8% net investment income tax may apply if your income exceeds certain thresholds, regardless of the capital gains rate.
How the three federal rates work
The 0% rate applies to long-term capital gains if your taxable income stays below a set threshold. For 2024, that threshold is $47,025 for single filers, $94,050 for married couples filing jointly, and $63,000 for heads of household. These numbers increase slightly each year for inflation. If your total taxable income (including wages, dividends, and other gains) falls below this line, your long-term capital gains are not taxed at the federal level.
The 15% rate covers most people. It applies to long-term gains once your income exceeds the 0% threshold but stays below the 20% threshold. For 2024, the 20% threshold starts at $518,900 for single filers, $1,037,800 for married couples filing jointly, and $623,350 for heads of household. Again, these thresholds adjust annually.
The 20% rate is the highest federal rate and applies to long-term gains for high-income earners whose taxable income exceeds the top threshold. This rate has been in place since 2013.
Short-term gains are taxed differently
If you sell an investment you held for one year or less, the profit is a short-term capital gain. The IRS taxes this as ordinary income, meaning it uses your regular income tax bracket. For 2024, those brackets range from 10% (lowest income) to 37% (highest income). Your short-term gain is added to your other income for the year, and the combined total determines your tax rate.
This is why holding an investment for more than one year often saves money. A person in the 37% tax bracket pays 37% on a short-term gain but only 20% on a long-term gain from the same investment — a difference of 17 percentage points.
State and local taxes add to your federal bill
Nine states have no income tax at all: Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, Wyoming, and New Hampshire (which taxes only dividends and interest, not capital gains). Residents of these states pay only the federal capital gains tax.
Most other states tax capital gains as ordinary income, meaning they apply their regular income tax rate to your gains. State rates range from less than 1% to over 13%, depending on the state and your income level. A few states — California, Hawaii, Illinois, Iowa, Maine, Minnesota, New Jersey, New York, Oregon, Vermont, and Washington, D.C. — have separate capital gains taxes or surtaxes that apply on top of regular income tax.
Your total tax on an investment profit is the federal rate plus your state rate. Someone in California with a long-term gain might pay 15% federal plus up to 13.3% state, for a combined 28.3%. Someone in Florida pays only the federal rate.
The 3.8% net investment income tax
If your modified adjusted gross income (MAGI) exceeds certain thresholds, you owe an additional 3.8% tax on your net investment income, which includes capital gains. This tax was introduced in 2013 as part of the Affordable Care Act. The thresholds are $200,000 for single filers and $250,000 for married couples filing jointly. These thresholds do not adjust for inflation.
This tax applies to the lesser of your net investment income or the amount by which your MAGI exceeds the threshold. For example, if you are single with MAGI of $220,000 and net investment income of $50,000, the tax applies to $20,000 (the excess over $200,000), not the full $50,000. The 3.8% is calculated on whichever number is smaller.
How to determine which rate applies to you
Start by calculating your total taxable income for the year: wages, self-employment income, dividends, interest, and any other income sources. Then add your capital gains. Compare this total to the income thresholds for your filing status and the current year. The threshold you fall into determines your capital gains rate.
If you have both short-term and long-term gains in the same year, the IRS treats them separately. Short-term gains use your ordinary income tax bracket. Long-term gains use the preferential 0%, 15%, or 20% rates based on your total income. You report both on your tax return, and the IRS calculates the tax owed on each.
The income thresholds change every year. The IRS publishes updated thresholds in late 2023 for the following tax year. If you are planning to sell investments, checking the current thresholds can help you understand your potential tax bill.
Frequently Asked Questions
Do I pay capital gains tax if I sell at a loss?
No. If you sell an investment for less than you paid, you have a capital loss, not a gain. You can use capital losses to offset capital gains from other investments. If your losses exceed your gains, you can deduct up to $3,000 of the net loss against ordinary income in that year. Any remaining loss carries forward to future years.
What if I inherited an investment — do I owe capital gains tax when I sell it?
Inherited investments receive a "step-up in basis," meaning the IRS treats the value on the date of death as your purchase price. If you sell shortly after inheriting, you typically owe little to no capital gains tax, even if the investment had gained significantly before the death. This applies only to inherited assets, not gifts.
Are dividends taxed the same way as capital gains?
may have access to dividends are taxed at the same preferential rates as long-term capital gains (0%, 15%, or 20%), but nonqualified dividends are taxed as ordinary income. To may have access to, you must have held the stock for at least 60 days around the dividend payment date. Dividend income is reported separately on your tax return.
Can I reduce my capital gains tax by timing when I sell?
Yes, in some cases. If you have both gains and losses in the same year, you can use losses to offset gains, reducing your taxable gain. You can also spread sales across two tax years if you are close to an income threshold. However, the IRS has rules against "wash sales" — selling a security at a loss and buying it back within 30 days — so timing strategies require careful planning.
How do I report capital gains on my tax return?
You report capital gains on Schedule D (Form 1040), which lists each sale with the purchase date, sale date, purchase price, and sale price. The IRS calculates your gain or loss and determines whether it is short-term or long-term. Your broker sends you a Form 1099-B showing all sales for the year, which you use to fill out Schedule D.