Capital gains tax rates depend on your income, filing status, and how long you held the asset
The amount of capital gains tax you owe is determined by three things: the profit you made, your total income for the year, and whether you held the investment for more than one year. The federal tax rate ranges from 0% to 20% for long-term gains (assets held over one year) and is taxed as ordinary income for short-term gains (assets held one year or less). Your state may add its own tax on top of the federal rate.
Long-term capital gains receive preferential treatment — they are taxed at lower rates than ordinary income. Short-term gains are taxed at your regular income tax rate, which can be as high as 37% federally. Most people pay either 15% or 20% on long-term gains, depending on their income bracket.
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 ranges from 10% to 37%.
- Your filing status and total taxable income determine which rate bracket you fall into — the same $50,000 gain can be taxed differently for a single filer versus a married couple.
- State income tax applies on top of federal tax in most states, adding 0% to 13.3% depending on where you live and your income level.
- The Net Investment Income Tax of 3.8% applies to long-term gains if your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly).
- You report capital gains on Schedule D of your tax return, and the calculation depends on your cost basis — what you originally paid plus any improvements or adjustments.
Federal long-term capital gains tax brackets for 2024
The 0% rate applies to long-term gains if your taxable income falls below a certain threshold. For single filers in 2024, that threshold is $47,025; for married filing jointly, it is $94,050. If your total taxable income is below these amounts, you owe no federal tax on long-term gains up to the limit of that bracket.
The 15% rate applies to most people. For single filers, it covers gains between $47,025 and $518,900. For married filing jointly, it covers gains between $94,050 and $583,750. This is where the majority of investors fall.
The 20% rate applies only to high-income filers. For single filers, it applies to gains above $518,900; for married filing jointly, above $583,750. These thresholds change each year with inflation.
These brackets apply only to long-term gains. Short-term gains are added to your ordinary income and taxed using the standard income tax brackets, which range from 10% to 37%.
How to calculate your capital gains tax
Start with your cost basis — the original price you paid for the asset plus any fees or improvements. Subtract that from the sale price. That difference is your capital gain or loss.
Next, determine whether the gain is long-term or short-term. If you held the asset for more than one year before selling, it is long-term. If you held it for one year or less, it is short-term.
For long-term gains, find your tax bracket based on your total taxable income and filing status using the 2024 brackets listed above. Apply that rate to your gain. For short-term gains, add the gain to your other income and apply your ordinary income tax rate.
Finally, check whether you owe the Net Investment Income Tax. If your modified adjusted gross income exceeds $200,000 (single), $250,000 (married filing jointly), or $125,000 (married filing separately), you owe an additional 3.8% on investment income, including capital gains.
State capital gains taxes vary widely
Most states tax capital gains as ordinary income, meaning your state income tax rate applies to the gain. A few states have no income tax at all — Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming do not tax capital gains. New Hampshire and Tennessee tax only dividend and interest income, not capital gains.
States that do tax capital gains apply rates ranging from roughly 1% to 13.3%. California has the highest top rate at 13.3%. New York's top rate is 10.9%. Many states have lower rates for middle-income filers.
Some states offer preferential rates for long-term gains, similar to the federal system, though this is less common. Check your state's tax authority website or a tax professional to learn your state's specific rules.
What happens if you have a capital loss
You can use capital losses to offset capital gains. If you sell an investment at a loss, that loss reduces any gains you realized that year. If your losses exceed your gains, you can deduct up to $3,000 of the net loss against ordinary income in that tax year.
Any remaining loss beyond $3,000 carries forward to future tax years indefinitely. You can use it to offset gains or ordinary income in those years, subject to the same $3,000 annual limit on ordinary income deductions.
This strategy, called tax-loss harvesting, is sometimes used to reduce tax liability. However, the wash-sale rule prevents you from buying the same or a substantially identical security within 30 days before or after the sale at a loss, or you lose the deduction.
Special situations that affect your capital gains tax
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 you sell the inherited asset shortly after, you owe little or no capital gains tax.
If you sell a primary residence, you may be able to exclude up to $250,000 of gain (single) or $500,000 (married filing jointly) if you meet the ownership and use tests. You must have owned and lived in the home for at least two of the last five years before the sale.
Collectibles — art, coins, stamps — are taxed at a maximum rate of 28% on long-term gains, which is higher than the standard 20% rate. Certain small business stock may may have access to for a 50% exclusion under Section 1202, reducing the taxable gain.
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 use the loss to reduce any capital gains you had that year. If losses exceed gains, you can deduct up to $3,000 against ordinary income, with any remainder carrying forward to future years.
What if I held an investment for exactly one year?
The holding period is measured from the purchase date to the sale date. If you sell on the same calendar date one year later, it qualifies as long-term. If you sell one day before that anniversary, it is short-term and taxed at your ordinary income rate.
Do I have to report small gains?
Yes. You must report all capital gains on Schedule D of your tax return, regardless of the amount. The IRS receives records from brokers showing your sales, so unreported gains will likely be detected.
Can I reduce my capital gains tax by donating appreciated stock to charity?
Yes. If you donate appreciated securities directly to a may have access to charity, you avoid the capital gains tax entirely and receive a charitable deduction for the full fair market value. This is often more tax-efficient than selling and donating the proceeds.
What is the difference between capital gains and dividends?
Capital gains are profits from selling an asset for more than you paid. Dividends are payments a company makes to shareholders from its profits. may have access to dividends are taxed at the same preferential rates as long-term capital gains; non-may have access to dividends are taxed as ordinary income.