How Long-Term Capital Gains Tax Works
Long-term capital gains tax is the tax you pay when you sell an investment you've held for more than one year at a profit
When you buy a stock, bond, mutual fund, or real estate and sell it later for more than you paid, that profit is called a capital gain. The IRS taxes this gain differently depending on how long you owned it. If you held the investment for more than one year before selling, you pay long-term capital gains tax. This rate is almost always lower than the tax on profits from investments you sell within a year.
The long-term rate depends on your total income for the year and your filing status. For most people, it ranges from 0% to 20%, which is significantly lower than ordinary income tax rates that can reach 37%. This is why holding investments longer often saves you money in taxes.
Key Takeaways
- Long-term capital gains explore only to investments you owned for more than one year before selling.
- The tax rate is 0%, 15%, or 20% depending on your income level and filing status, not your investment type.
- You report long-term gains on Schedule D of your tax return, and the IRS matches your brokerage records to verify them.
- Holding an investment just over one year can cut your tax bill dramatically compared to selling within twelve months.
The three long-term capital gains tax rates and who pays each one
The IRS sets three possible rates: 0%, 15%, and 20%. Which rate you pay depends on your taxable income for the year, not on how much profit you made. Your filing status (single, married filing jointly, head of household, or married filing separately) also matters because the income thresholds are different for each.
For 2024, a single filer pays 0% on long-term gains if their taxable income is $47,025 or less. The 15% rate applies to income between $47,026 and $518,900. Income above $518,900 is taxed at 20%. These numbers change each year with inflation. If you are married filing jointly, the thresholds are higher — the 0% bracket goes up to $94,050, and the 15% bracket extends to $583,750.
This means you could sell a stock at a $10,000 profit and pay zero tax if your other income for the year keeps you in the 0% bracket. Or you could pay 15% or 20% on the same gain if your total income is higher. Your brokerage will report your sales to the IRS on Form 1099-B, so the IRS will know what you sold and when.
How the holding period works and when it resets
The holding period starts the day after you buy an investment and ends the day you sell it. If you buy a stock on January 15 and sell it on January 16 of the next year, you have held it for more than one year and may have access to for long-term rates. If you sell on January 15 of the next year, you have held it for exactly one year, which does not meet the "more than one year" requirement — you would pay short-term rates instead.
If you sell an investment at a loss and then buy the same or a substantially identical investment within 30 days before or after the sale, the IRS treats this as a wash sale. You cannot deduct the loss, and your holding period for the new purchase starts over from that day. This rule prevents people from claiming tax losses while keeping the same investment.
Inherited investments have a special rule. If someone leaves you stock or property in their will, your holding period does not matter — you automatically may have access to for long-term rates when you sell, even if you sell the day after you inherit it. This is called stepped-up basis, and it applies to most inherited assets.
Long-term gains versus short-term gains and why the difference matters
Short-term capital gains are profits from investments you sold within one year. These are taxed as ordinary income at your regular tax rate, which can be 10%, 12%, 22%, 24%, 32%, 35%, or 37% depending on your income. This is much higher than long-term rates for most people.
The difference can be substantial. Suppose you buy a stock for $5,000 and sell it for $7,000 nine months later. Your $2,000 gain is short-term. If you are in the 24% tax bracket, you owe $480 in tax. If you had waited three more months to sell, the same $2,000 gain would be taxed at 15%, costing you only $300. That is $180 in tax savings just for waiting.
This is why many investors plan their sales around the one-year mark. Some people deliberately hold losing investments past one year to avoid wash-sale rules, or sell winners strategically to stay within a lower tax bracket. Your brokerage account statements usually show your cost basis and purchase date, making it straightforward to track which investments may have access to for long-term treatment.
How to report long-term capital gains on your tax return
You report all capital gains and losses on Schedule D, which is part of Form 1040. 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. If you have many transactions, you can attach a separate statement instead of filling in every line on Schedule D itself.
Your brokerage sends you Form 1099-B in January showing every sale you made during the previous year. The IRS receives a copy of this form, so they will know if you sold something. If your Schedule D does not match your 1099-B, the IRS will likely send you a notice asking for an explanation.
If your long-term gains exceed your long-term losses for the year, you have a net capital gain. This amount flows to your Form 1040 and is added to your other income to calculate your tax. If your losses exceed your gains, you can deduct up to $3,000 of the net loss against your ordinary income in that year. Any loss above $3,000 carries forward to future years.
How net investment income tax affects high earners
If your modified adjusted gross income exceeds certain thresholds, you may owe an additional 3.8% tax on your long-term capital gains. This is called the net investment income tax, and it applies to single filers with income over $200,000 and married couples filing jointly with income over $250,000. The thresholds do not change with inflation.
This tax is separate from your regular long-term capital gains tax. If you are in the 20% bracket and subject to net investment income tax, your total tax on a long-term gain could be 23.8%. This tax applies to capital gains, dividends, interest, and certain rental income. It does not explore to wages or self-employment income.
You report net investment income tax on Form 8960, which you attach to your Form 1040. Your tax software will usually calculate this automatically if your income is high enough to trigger it. If you are close to the threshold, you might consider spreading large gains across multiple years or timing sales strategically to stay below the limit.
State and local taxes on capital gains
Most states also tax capital gains, usually at your ordinary income tax rate. A few states have no income tax at all — Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming do not tax capital gains. Other states tax them at rates ranging from about 1% to over 13%, depending on your income and where you live.
California, for example, taxes long-term capital gains at the same rate as ordinary income, which can be as high as 13.3%. New York taxes them at ordinary rates up to 10.9%. Some states like North Carolina have a flat tax on all income, including capital gains. A few states like Hawaii and Vermont have separate capital gains tax rates that differ from their ordinary income rates.
If you live in a high-tax state and are considering a move, capital gains tax can be a factor. However, the IRS looks at where you actually live and work, not where you claim to live. Moving your residence just before a large sale may not work if you still spend most of your time in your original state.
Frequently Asked Questions
Do I have to hold an investment for exactly one year or more than one year?
More than one year. The holding period is measured from the day after you buy to the day you sell. If you buy on January 15 and sell on January 15 the next year, that is exactly one year and does not may have access to. You must sell on January 16 or later to meet the requirement.
What happens if I sell at a loss — do I still pay capital gains tax?
No. If you sell for less than you paid, you have a capital loss, not a gain. You can deduct up to $3,000 of net losses against your ordinary income each year. Any losses above $3,000 roll forward to future years. Long-term losses offset long-term gains first, then short-term gains.
Can I avoid long-term capital gains tax by donating the investment to charity instead of selling it?
Yes. If you donate appreciated stock or property to a may have access to charity, you avoid the capital gains tax entirely and can deduct the full fair market value of the donation. This is often more tax-efficient than selling and donating the proceeds. You must donate the investment itself, not the cash from a sale.
Do dividends count as capital gains?
No, but they are taxed similarly. Dividends from stocks you have held for more than 60 days are taxed as long-term capital gains at 0%, 15%, or 20%. Dividends from stocks held 60 days or less are taxed as ordinary income. Interest from bonds and savings accounts is always taxed as ordinary income, not capital gains.
What if I inherit stock — do I have to pay capital gains tax when I sell it?
You automatically may have access to for long-term rates when you sell inherited stock, regardless of how long you hold it. Your cost basis is stepped up to the fair market value on the date of death, so you typically owe tax only on gains that occur after you inherit it, not on gains that happened while the previous owner held it.
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.