The federal tax rate on capital gains depends on how long you held the asset and your income level
The IRS taxes investment profits at one of three rates: 0%, 15%, or 20%. Which rate applies to you depends on two things: whether you held the investment for more than one year (long-term) or one year or less (short-term), and your taxable income bracket for that year. Short-term gains are taxed as ordinary income, which means they use the same brackets as wages—10%, 12%, 22%, 24%, 32%, 35%, or 37%. Long-term gains get preferential rates that are almost always lower.
Your state may also tax capital gains. Some states charge no capital gains tax at all. Others tax them as ordinary income or apply a separate state capital gains tax. The federal rate and your state rate stack on top of each other, so your total tax bill includes both.
Key Takeaways
- Long-term capital gains (held over one year) are taxed at 0%, 15%, or 20% depending on your total income for the year.
- Short-term capital gains (held one year or less) are taxed as ordinary income at rates from 10% to 37%.
- The income thresholds that determine your rate change every year and are different for single filers, married filing jointly, and heads of household.
- State capital gains taxes vary widely: some states do not tax them, others tax them like ordinary income, and a few apply a separate state rate.
- You report capital gains on Schedule D of your tax return, and the IRS matches sales records from your broker.
Long-term capital gains rates and income thresholds
If you held an investment for more than one year before selling it, the gain qualifies as long-term. The federal tax rate depends on your taxable income. For 2024, the thresholds are:
| Tax Rate | Single Filers | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 0% | Up to $47,025 | Up to $94,050 | Up to $62,975 |
| 15% | $47,026 to $518,900 | $94,051 to $583,750 | $62,976 to $551,350 |
| 20% | Over $518,900 | Over $583,750 | Over $551,350 |
These thresholds adjust each year for inflation. The IRS publishes updated numbers in late 2023 for the following tax year. If your total taxable income falls in the 0% bracket, you owe no federal tax on long-term gains. If it falls in the 15% bracket, you pay 15% on the gain. If it exceeds the top threshold, you pay 20%.
Taxable income includes wages, interest, dividends, and capital gains combined. A person earning $50,000 in wages and $20,000 in long-term gains has $70,000 in taxable income. If they file single, the first $47,025 of gains falls in the 0% bracket, and the remaining $22,975 falls in the 15% bracket.
Short-term capital gains and ordinary income tax rates
If you sold an investment you held for one year or less, the gain is short-term and taxed as ordinary income. The 2024 ordinary income brackets are 10%, 12%, 22%, 24%, 32%, 35%, and 37%. These are the same brackets that apply to wages and salaries.
Short-term gains are almost always taxed at a higher rate than long-term gains. A person in the 24% ordinary income bracket who sells a short-term gain pays 24% on that profit. The same person selling a long-term gain would pay 15% (or possibly 0% or 20%, depending on total income). The difference can be substantial on large gains.
The holding period is measured from the date you bought the asset to the date you sold it. If you bought a stock on June 15, 2023, and sold it on June 15, 2024, it is long-term. If you sold it on June 14, 2024, it is short-term.
How state capital gains taxes work
Eleven states currently tax capital gains: California, Connecticut, Delaware, Illinois, Iowa, Maryland, Minnesota, Missouri, New Jersey, New York, and Vermont. Most of these states tax capital gains as ordinary income, meaning they apply their regular income tax rates to the gain. A few states apply a separate capital gains tax rate.
California taxes long-term and short-term gains as ordinary income at rates up to 13.3%. Illinois imposes a flat 4.95% capital gains tax on gains over $1 million. New Jersey taxes gains at rates from 1.4% to 10.75%, depending on income. Other states vary. If you live in a state with no capital gains tax—such as Texas, Florida, or Nevada—you owe only the federal rate.
If you sell an asset and move to a different state before the year ends, the state where you lived when you sold it typically taxes the gain. Some states also tax gains on real property located within their borders, even if you do not live there.
Net investment income tax and additional Medicare tax
If your modified adjusted gross income exceeds certain thresholds, you may owe an additional 3.8% net investment income tax on top of the regular capital gains tax. For 2024, the thresholds are $200,000 for single filers, $250,000 for married filing jointly, and $200,000 for heads of household.
This tax applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds the threshold. If you are single, earn $220,000 in wages, and have $10,000 in long-term capital gains, your modified adjusted gross income is $230,000. The excess over $200,000 is $30,000. You owe 3.8% tax on the lesser of $10,000 (your investment income) or $30,000 (the excess), which is $10,000. That is an additional $380 in tax.
How to report capital gains on your tax return
You report capital gains on Schedule D of Form 1040. List each sale separately: the date acquired, date sold, cost basis, sale price, and gain or loss. If you have many transactions, you may use Form 8949 (Sales of Capital Assets) instead, which feeds into Schedule D.
Your broker sends you a Form 1099-B in January showing all sales from the previous year. The IRS receives a copy of this form, so they know what you sold and for how much. You must report all sales, even if you did not receive a 1099-B or if the form contains errors. If your reported gain does not match the 1099-B, the IRS will contact you.
If you have a net capital loss in a year (losses exceed gains), you can deduct up to $3,000 of the loss against ordinary income. Any loss beyond $3,000 carries forward to future years. This is why tracking losses matters: they reduce your tax bill in the current year and can offset future gains.
Cost basis and how it affects your tax bill
Your cost basis is what you paid for the asset, including commissions and fees. The capital gain is the sale price minus the cost basis. If you bought a stock for $5,000 and sold it for $8,000, your gain is $3,000.
If you inherited an asset, your cost basis is its fair market value on the date of death, not what the original owner paid. This is called a "step-up in basis" and can eliminate or reduce the tax on inherited gains. If your parent bought a stock for $10,000 and it was worth $50,000 when they died, your cost basis is $50,000. If you sell it for $52,000, your gain is only $2,000, not $42,000.
If you received stock as compensation or a gift, your cost basis is the fair market value on the date you received it. Keep records of the date and value. Brokers track basis for shares you buy through them, but you must track basis for inherited assets, gifts, and older purchases.
Frequently Asked Questions
Do I owe capital gains tax if I sell at a loss?
No. A loss means you sold for less than you paid. You do not owe tax on a loss. Instead, you can use the loss to offset capital gains from other sales in the same year. If losses exceed gains, you can deduct up to $3,000 against wages or other ordinary income. Losses beyond $3,000 roll 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 bought on June 15, 2023, and sold on June 15, 2024, it is long-term. If you sold on June 14, 2024, it is short-term. The IRS counts the purchase date as day one.
Can I reduce my capital gains tax by donating appreciated stock to charity?
Yes. If you donate appreciated stock directly to a may have access to charity, you avoid the capital gains tax on the appreciation and receive a charitable deduction for the full fair market value. You must own the stock long-term. This is often more tax-efficient than selling the stock and donating the proceeds.
Do I owe capital gains tax on my primary home when I sell?
Most homeowners do not. If you are single, you can exclude up to $250,000 of gain. If you are married filing jointly, you can exclude up to $500,000. You must have owned and lived in the home as your primary residence for at least two of the last five years. Gains beyond the exclusion are taxed as long-term capital gains.
How do I know if my state taxes capital gains?
Check your state's tax authority website or speak with a tax preparer. Eleven states currently tax capital gains; the rest do not. If your state taxes them, the rate and rules vary. Some states tax them as ordinary income; others apply a separate rate. Your state tax return will have a schedule for capital gains if your state taxes them.