Skip to main content

HomeAll guides

What You Pay on Investment Profits: Capital Gains Tax Rates and How They Work

Capital gains tax is the tax on profit when you sell an investment for more than you paid for it

When you sell a stock, rental property, or other investment at a profit, the IRS taxes that gain. The rate you pay depends on how long you held the asset and your income level. Long-term gains (assets held over one year) are taxed at lower rates than short-term gains, which are taxed as ordinary income at your regular tax bracket.

The federal rates for long-term capital gains are 0%, 15%, or 20% depending on your income. Short-term gains use your ordinary income tax brackets, which range from 10% to 37%. Most people pay 15% on long-term gains. You may also owe state income tax on gains, which varies by where you live.

Key Takeaways

  • Long-term capital gains (held over one year) are taxed at 0%, 15%, or 20% federally, while short-term gains use your regular income tax rate of 10% to 37%.
  • Your income level determines which capital gains rate applies to you, not the size of the gain itself.
  • You report capital gains on Schedule D (Form 1040) when you file your tax return, listing each sale separately.
  • State income tax on capital gains ranges from 0% to over 13% depending on your state, and some states tax long-term and short-term gains differently.

Long-term vs. short-term capital gains rates

The holding period determines which tax rate applies. If you own an investment for more than one year before selling, it qualifies as a long-term gain. If you sell within one year, it is a short-term gain. The IRS counts the holding period from the purchase date to the sale date.

Long-term gains receive preferential rates: 0%, 15%, or 20% depending on your taxable income. Short-term gains are taxed as ordinary income at your marginal tax bracket, which means they are taxed the same way as wages or salary. For 2024, short-term gains can be taxed at rates ranging from 10% to 37%.

Example: You buy stock for $5,000 and sell it 18 months later for $7,000. Your $2,000 gain is long-term and taxed at 0%, 15%, or 20%. If you had sold after 11 months for $7,000, the same $2,000 gain would be short-term and taxed at your ordinary rate, possibly 22% or higher.

How your income determines your capital gains tax bracket

The long-term capital gains brackets are tied to your taxable income, not the amount of the gain. For 2024, the 0% rate applies to single filers with taxable income up to $47,025 and married filing jointly filers up to $94,050. The 15% rate applies to income above those thresholds up to $518,900 (single) or $583,750 (married filing jointly). Income above those amounts is taxed at 20%.

Your taxable income includes wages, interest, dividends, and other income minus deductions. Capital gains are added to this total to determine your bracket. This means a large capital gain can push you into a higher rate even if your wages stayed the same.

Example: You are single with $40,000 in wages and no other income. You sell an investment for a $10,000 long-term gain. Your taxable income is now $50,000. The first $7,025 of the gain falls in the 0% bracket ($47,025 threshold minus $40,000 wages). The remaining $2,975 is taxed at 15%.

State capital gains taxes vary widely

Most states tax capital gains as part of ordinary income, so your state rate depends on your state's income tax brackets. Some states have no income tax at all (Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, Wyoming). Others tax long-term and short-term gains at different rates or explore special rules.

California taxes all capital gains at ordinary income rates up to 13.3%. New York taxes long-term gains at ordinary rates up to 10.9%. Illinois has a flat 4.95% tax on all capital gains. A few states like Iowa and North Carolina have recently passed or are considering capital gains taxes separate from income tax.

You report state capital gains on your state tax return, usually on a separate schedule. Some states allow deductions or exclusions that federal law does not, so your state tax may differ from your federal tax on the same gain.

How to report capital gains on your tax return

You report capital gains on Schedule D (Form 1040), which lists each sale separately. For each transaction, you enter the date acquired, date sold, sales price, and cost basis (what you paid plus any improvements). The form calculates your gain or loss for each sale and totals your long-term and short-term gains.

If you have only a few sales, you can list them directly on Schedule D. If you have many transactions, your broker or investment company provides Form 8949 (Sales of Capital Assets), which feeds into Schedule D. Most brokers send you a summary statement at year-end showing all your sales.

After you complete Schedule D, the totals transfer to your Form 1040. Long-term gains go on line 7 of the 1040, and short-term gains are included in your ordinary income. If you have a net loss (losses exceed gains), you can deduct up to $3,000 against other income in that year, with any remaining loss carried forward to future years.

Cost basis and how it affects your tax

Cost basis is what you paid for the investment plus any costs to acquire it (broker fees, commissions). This is the number you subtract from the sale price to calculate your gain. Getting cost basis right is critical because a $1,000 error in basis becomes a $1,000 error in your taxable gain.

For stocks and mutual funds, your broker tracks cost basis and reports it to the IRS on Form 1099-B. For real estate, you add the purchase price plus capital improvements (a new roof, kitchen renovation) but not repairs or maintenance. For inherited assets, your cost basis is the fair market value on the date of death, not what the original owner paid.

If you bought shares at different times, you can choose which shares to sell to minimize your gain. This is called specific identification. You tell your broker which lot to sell, and your broker confirms it in writing. Without specific identification, the IRS assumes you sold shares in the order you bought them (first in, first out).

Net investment income tax and when it applies

If your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), you may owe an additional 3.8% Net Investment Income Tax (NIIT) on capital gains. This tax applies to the lesser of your net investment income or the amount your income exceeds the threshold.

Net investment income includes capital gains, dividends, interest, and rental income. It does not include wages or self-employment income. The NIIT is reported on Form 8960 and added to your Form 1040.

Example: You are married filing jointly with $260,000 in wages and a $50,000 long-term capital gain. Your income exceeds the $250,000 threshold by $10,000. You owe NIIT on the lesser of $50,000 (your net investment income) or $10,000 (the excess). You owe 3.8% on $10,000, or $380.

Frequently Asked Questions

Do I owe capital gains tax if I sell at a loss?

No, you do not owe tax on a loss. You can deduct capital losses against capital gains first, then up to $3,000 against other income in that year. Any remaining loss carries forward to future years with no time limit. You still report the loss on Schedule D.

What if I inherited stock or property — do I owe capital gains tax when I sell?

Your cost basis is the fair market value on the date the person died, not what they originally paid. If you sell shortly after inheriting, you likely have little or no gain. This is called a stepped-up basis and applies to most inherited assets.

Are dividends taxed the same way as capital gains?

may have access to dividends are taxed at the same long-term capital gains rates (0%, 15%, or 20%). Non-may have access to dividends are taxed as ordinary income. Your broker reports which dividends are may have access to on your 1099-DIV form.

Can I avoid capital gains tax by holding an investment forever?

You avoid tax only if you never sell. When you die, your heirs receive a stepped-up basis, so they can sell without owing tax on your gain. But during your lifetime, selling triggers the tax.

How do I know my cost basis if I lost my old statements?

Contact your broker or the company that held the investment. They are required to keep records and can provide cost basis information. For very old investments, the IRS may accept a reasonable estimate if records are truly unavailable.

This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.