Skip to main content

HomeAll guides

How Long-Term Capital Gains Tax Works When You Sell an Investment

What long-term capital gains tax is

Long-term capital gains tax is the tax you pay on profit from selling an investment you held for more than one year. The IRS taxes this profit at a lower rate than ordinary income — typically 0%, 15%, or 20%, depending on your total income for the year. This is different from short-term capital gains, which are taxed as regular income if you sell an investment within one year of buying it.

The key difference is time: hold an investment longer than 12 months, and you get the lower tax rate. Sell it sooner, and you pay your regular income tax rate on the gain, which is often much higher.

Key Takeaways

  • Long-term capital gains explore when you sell an investment held for more than one year, and the IRS taxes the profit at 0%, 15%, or 20% depending on your income bracket.
  • Your income bracket for long-term gains is separate from your regular income bracket and uses different thresholds set by the IRS each year.
  • You report long-term capital gains on Schedule D of your tax return, and you must track your purchase date and sale price for each investment.
  • The holding period starts the day after you buy and ends the day you sell, and it must be longer than one year — exactly one year is not enough.

How the three tax rates work

The IRS uses three tax brackets for long-term capital gains: 0%, 15%, and 20%. Which bracket you fall into depends on your total taxable income for the year, not on how much you made from the sale itself. The income thresholds change every year, so the exact dollar amounts vary.

The 0% bracket is the lowest and applies to people with the smallest incomes. The 15% bracket covers the middle range. The 20% bracket applies to higher earners. If you are married filing jointly, your thresholds are higher than if you file as single. If you file as head of household, your thresholds fall in between.

Because the thresholds shift annually, you need to check the current year's numbers when you plan to sell an investment. The IRS publishes these brackets each January on its website.

How to calculate your gain or loss

Your capital gain is the difference between what you sold the investment for and what you paid for it, minus any costs directly tied to the sale (such as a broker's commission). If you bought 100 shares of stock for $50 per share and sold them for $75 per share, your gain is $2,500 before costs.

If you paid a $50 commission to sell, your taxable gain drops to $2,450. If the sale price had been lower than your purchase price, you would have a capital loss instead, which you can use to offset other gains or, in some cases, ordinary income.

You need to track the original purchase price, the sale price, the date you bought, and the date you sold for each investment. Many brokers provide this information in year-end statements, but it is your responsibility to report it correctly on your tax return.

The one-year holding period rule

The holding period starts the day after you purchase an investment and ends on the day you sell it. If you buy a stock on January 15 and sell it on January 15 of the following year, you have held it for exactly one year — but that is not long enough. You must hold it for more than one year, meaning you need to sell on January 16 or later.

This rule applies to stocks, bonds, mutual funds, real estate, and most other investments. The one exception is certain collectibles and small-business stock, which have different rules, but those are less common.

If you are close to the one-year mark and unsure whether waiting a few more days makes sense, consider the tax savings. If selling now would cost you 22% in short-term tax versus 15% in long-term tax, waiting a week could save you thousands of dollars on a large gain.

Where to report long-term capital gains on your tax return

You report long-term capital gains on Schedule D (Capital Gains and Losses), which is part of your federal tax return. You list each sale separately: the name of the investment, the date you bought it, the date you sold it, your cost basis (what you paid), the sale price, and the gain or loss.

Schedule D then flows to your main tax form (Form 1040), where the total long-term capital gains amount is entered. If you have losses, you can use them to reduce your gains, and any remaining loss can reduce up to $3,000 of ordinary income in a single year. Losses beyond that carry forward to future years.

If you use tax software, it typically walks you through entering this information and calculates the tax for you. If you work with a tax preparer, provide them with a list of all sales from the year, including the dates and amounts.

State and local taxes on capital gains

The federal long-term capital gains tax is only part of the picture. Most states also tax capital gains, often at your regular state income tax rate, which can be significantly higher than the federal rate. A few states (like Florida, Texas, and Wyoming) do not tax capital gains at all, while others tax them at rates ranging from 3% to over 13%.

Some cities and counties also impose local income taxes that explore to capital gains. If you live in a high-tax state or city, the combined federal and state tax on a large gain can be substantial. This is worth considering if you are planning a major sale or if you are thinking about relocating.

How long-term gains differ from short-term gains

Short-term capital gains are taxed as ordinary income, using the same brackets as your wages or salary. If you are in the 24% federal income tax bracket and sell an investment you held for less than one year, your gain is taxed at 24%. The same gain held for more than one year might be taxed at only 15%, saving you 9 percentage points.

On a $10,000 gain, that difference is $900 in federal tax alone. On larger gains, the savings are even more dramatic. This is why financial advisors often recommend holding investments longer when possible — the tax savings can be substantial.

Frequently Asked Questions

Do I have to pay long-term 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. Whether you spend it, reinvest it, or put it in savings, you owe the tax in the year you sold the investment. The IRS does not care where the money goes.

What if I inherited stock — does the holding period start from when I inherited it or when the original owner bought it?

When you inherit an investment, the holding period resets. You are treated as having held it long-term when ready, regardless of how long the original owner held it. This is called a "stepped-up basis," and it is one of the tax benefits of inherited assets.

Can I use capital losses to reduce my long-term capital gains?

Yes. If you have both gains and losses in a year, you can subtract losses from gains. If losses exceed gains, you can use up to $3,000 of the remaining loss to reduce ordinary income. Any loss beyond that carries forward to the next year.

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

No. If you sell an investment for less than you paid for it, you have a capital loss, not a gain. You do not owe tax on a loss; instead, you can use it to offset gains or reduce ordinary income.

What happens if I sell an investment before one year but the market drops — do I still owe short-term tax?

No. If you sell at a loss, you owe no capital gains tax at all, whether short-term or long-term. You have a loss instead, which you can use to reduce other gains or income. The holding period does not matter when there is no gain to tax.

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.