The federal tax rate on long-term capital gains depends on your income level, not on how much profit you made

Long-term capital gains — profits from selling an asset you held for more than one year — are taxed at one of three federal rates: 0%, 15%, or 20%. Which rate applies to you is determined by your total taxable income for the year, not by the size of your gain. The income thresholds that determine your rate change each year and differ based on whether you file as single, married filing jointly, head of household, or married filing separately.

Your state may also tax capital gains. Some states have no capital gains tax at all. Others tax capital gains as ordinary income, meaning they use your regular state income tax rate. A few states have a separate capital gains tax with its own rate. You need to check your state's rules separately from the federal rate.

The 0% rate applies to the lowest earners. The 15% rate covers most middle-income filers. The 20% rate applies to high-income filers. If your capital gains push you into a higher bracket, only the gains above the threshold are taxed at the higher rate — the gains below it stay at the lower rate.

Key Takeaways

  • Federal long-term capital gains are taxed at 0%, 15%, or 20% depending on your total taxable income for the year, with thresholds that vary by filing status.
  • The income thresholds for each rate change annually and are published by the IRS, so you must check the current year's numbers rather than using last year's brackets.
  • State capital gains taxes vary widely — some states do not tax capital gains at all, while others tax them as regular income or apply a separate state rate.
  • If your capital gains push you across a tax bracket threshold, only the portion of gains above the threshold is taxed at the higher rate.

How the three federal rates work in 2024

For 2024, the 0% rate applies to single filers with taxable income up to $47,025, married couples filing jointly up to $94,050, and heads of household up to $62,975. Within this bracket, you pay no federal tax on long-term capital gains. This rate is often used by retirees with low income or people who had a loss in other investments that year.

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). This is where most people with capital gains fall. If you sell a stock at a profit and your total taxable income for the year lands in this range, you pay 15% federal tax on those gains.

The 20% rate applies to income above $518,900 (single), $583,750 (married filing jointly), or $551,350 (head of household). High-income earners pay this rate on their long-term capital gains. Additionally, high earners may owe a 3.8% Net Investment Income Tax on top of the capital gains rate if their modified adjusted gross income exceeds certain thresholds.

These numbers are for 2024 and will change for 2025. The IRS publishes updated brackets each year, usually in October or November for the following tax year. When you file your taxes, use the brackets for the year you sold the asset, not the year you file.

What counts as long-term versus short-term

You must hold an asset for more than one year for the gain to may have access to as long-term. "More than one year" means you must own it for at least 366 days. If you buy a stock on January 15, 2024, and sell it on January 15, 2025, that is exactly one year and does not count as long-term — you need to hold it until January 16, 2025.

Short-term capital gains — from assets held one year or less — are taxed as ordinary income at your regular income tax rate, which is typically higher than the long-term rate. This is why the holding period matters so much. Waiting a few weeks or months can mean the difference between paying 15% or 37% on the same gain.

The holding period starts the day after you purchase the asset and ends on the day you sell it. If you inherit an asset, the holding period does not carry over from the person who died — your holding period starts on the date of death, and you typically get a "step-up in basis," meaning your cost basis is the asset's value on that date rather than what the deceased paid for it.

How your filing status and total income affect your rate

Your filing status determines which income threshold applies to you. A married couple filing jointly has much higher thresholds than a single filer, so the same capital gain may be taxed at 15% for the couple but 20% for a single person. Head of household filers have thresholds between single and married filing jointly.

Your total taxable income for the year — not just your capital gains — determines which bracket you fall into. If you have a salary of $80,000 and sell an investment for a $50,000 gain, your total taxable income is $130,000. That $130,000 is what determines your capital gains rate, not the $50,000 gain alone. This means a large bonus or second job in the same year can push your capital gains into a higher tax bracket.

If you are married filing separately, your thresholds are much lower than married filing jointly, and you may pay a higher rate on the same gain. This is one reason married couples usually file jointly unless there is a specific reason not to.

State capital gains taxes vary widely

Some states — including Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming — do not tax capital gains at all. If you live in one of these states, you pay only the federal rate.

Most states tax capital gains as ordinary income, meaning they apply your regular state income tax rate to the gain. If your state income tax rate is 5%, you pay 5% state tax on your long-term capital gains. A few states — including California, Hawaii, and Vermont — have top state income tax rates above 10%, so capital gains can be expensive in those states.

A small number of states have a separate capital gains tax. Washington State, for example, taxes long-term capital gains at 7% on gains over $250,000 per year. New Jersey taxes gains at 1.25% to 3.8% depending on income level. These separate taxes are in addition to any state income tax you owe on other income.

You must check your state's rules directly. The federal rate is only part of your total tax bill. A 15% federal rate plus a 10% state rate means you keep only 75 cents of every dollar of gain.

How to calculate your capital gains tax

Start with the sale price of the asset minus what you paid for it — that is your gain. If you bought a stock for $10,000 and sold it for $15,000, your gain is $5,000. If you paid fees or commissions, subtract those from the sale price first.

Next, determine your total taxable income for the year by adding up your salary, interest, dividends, and other income, then subtracting deductions. Your capital gain is added to this number. Look up the tax bracket thresholds for your filing status for that year. If your total income falls below the 0% threshold, you owe no federal tax on the gain. If it falls in the 15% range, multiply the gain by 0.15. If it falls in the 20% range, multiply by 0.20.

If your gain pushes you across a bracket threshold, split the calculation. If you are single with $480,000 in other income and a $50,000 gain, your total is $530,000. The first $38,900 of the gain (up to the $518,900 threshold) is taxed at 15%, and the remaining $11,100 is taxed at 20%. You then add your state tax on top of the federal amount.

Most people report capital gains on Schedule D of their tax return and use the IRS worksheets to calculate the tax. A tax professional can help if your situation is complex — for example, if you have both gains and losses, or if you live in a state with a separate capital gains tax.

Frequently Asked Questions

Do I have to pay capital gains tax if I reinvest the money?

Yes. The tax is based on the profit you made, not on what you do with the money afterward. If you sell a stock for a $10,000 gain and immediately buy a different stock with the proceeds, you still owe tax on the $10,000 gain. Reinvesting does not defer or eliminate the tax.

What if I have a capital loss — can I use it to offset gains?

Yes. If you sell one investment at a loss and another at a gain in the same year, you can subtract the loss from the gain. If your losses exceed your gains, you can deduct up to $3,000 of the excess loss against your ordinary income. Any remaining loss carries forward to future years.

Are dividends taxed the same way as capital gains?

may have access to dividends are taxed at the same rates as long-term capital gains — 0%, 15%, or 20% — based on your income level. Non-may have access to dividends are taxed as ordinary income. Your brokerage statement will tell you which type you received. Most dividends from U.S. stocks are may have access to if you held the stock for more than 60 days around the dividend date.

Do I owe capital gains tax on inherited investments?

No tax on the inherited asset itself. However, if you later sell the inherited investment, you owe tax on any gain above the asset's value on the date of death — not above what the person who died originally paid for it. This "step-up in basis" often means heirs owe little or no tax when they sell inherited investments soon after inheriting them.

What if I live in one state but moved to another during the year?

You typically owe tax to both states on a prorated basis — each state taxes the portion of the gain that occurred while you lived there. Some states have reciprocal agreements that simplify this. You should report the sale to both states and may need to file part-year returns. A tax professional in your new state can help with the filing.