Investment price chart on a screen at a desk, showing gains that capital gains tax applies to when you sell

Capital Gains Tax Rates for 2026 and 2027: How It Works

Tax Planning

Capital gains tax rates for 2026 and 2027: how it works

When you sell an investment or property for more than you paid, the profit is taxed. How long you owned it and how much other income you have decide the rate.

By the My Financial Next Step team · Reviewed by a licensed financial advisor · · 10 min read

Investment price chart on a screen at a desk, showing gains that capital gains tax applies to when you sell
Quick answer

Capital gains tax is the federal income tax on the profit from selling an asset such as stock, a fund or real estate. If you owned the asset for more than one year, the gain is long-term and is taxed at 0%, 15% or 20%, depending on your taxable income. For 2026 the 0% rate applies up to $49,450 of taxable income for single filers and $98,900 for married couples filing jointly. For 2027 those amounts rise to $51,050 and $102,100. If you owned the asset for one year or less, the gain is short-term and is taxed at your ordinary income rates, from 10% to 37%.

Capital gains tax rates are lower than the rates on wages for most people, and a surprising number of households pay 0%. The rules that get you there are simple once you see them laid out: how long you held the asset, what you paid for it and where your other income puts you.

This article gives the 2026 and 2027 federal thresholds, shows how the tax is calculated with worked examples and lists the legal ways to reduce it. For a shorter introduction, see our capital gains tax overview. State income taxes are separate and vary widely, so check your state’s rules as well.

What counts as a capital gain?

The IRS treats almost everything you own for personal use or investment as a capital asset: stocks, bonds, mutual funds, exchange-traded funds, real estate, a business interest, cryptocurrency and collectibles. When you sell one, your gain or loss is the difference between what you received and your adjusted basis. IRS Topic 409 is the official summary.

Basis is usually what you paid, including commissions and fees. Buy 100 shares at $50 and your basis is $5,000. Sell them later for $8,000 and your gain is $3,000. A few things change basis:

  • Reinvested dividends add to your basis, because you already paid tax on them. Leaving them out means paying tax twice.
  • Improvements to real estate add to basis. Routine repairs don’t.
  • Inherited assets generally take a basis equal to their value on the date of death, which can erase decades of gain.
  • Gifts generally carry over the giver’s basis.

IRS Publication 551 covers basis in detail.

A gain is taxed only when you sell. A stock that has doubled but that you still hold has an unrealized gain, and no tax is due on it.

Short-term vs long-term: the one-year line

If you held the asset for more than one year, the gain is long-term. One year or less makes it short-term. You start counting on the day after you bought and include the day you sold. Buy on March 10, 2026, and the first day a sale is long-term is March 11, 2027.

Short-termLong-term
Holding periodOne year or lessMore than one year
Federal rateOrdinary income rates, 10% to 37%0%, 15% or 20%
Reported onForm 8949 and Schedule DForm 8949 and Schedule D

Waiting can be worth real money. Say you are in the 22% bracket and have a $10,000 gain. Sold at eleven months, the federal tax is $2,200. Sold a few weeks later as a long-term gain at 15%, it is $1,500. Nothing changed except the calendar, and the tax fell by $700.

Long-term capital gains tax rates for 2026 and 2027

The rate depends on your taxable income, which is your income after the standard deduction or itemized deductions. The 2026 figures come from IRS Revenue Procedure 2025-32. They apply to sales made in 2026, reported on the return you file in early 2027.

2026 filing status0% rate up to15% rate up to20% rate above
Single$49,450$545,500$545,500
Married filing jointly$98,900$613,700$613,700
Head of household$66,200$579,600$579,600
Married filing separately$49,450$306,850$306,850

The 2027 figures come from IRS Revenue Procedure 2026-35. They apply to sales made in 2027.

2027 filing status0% rate up to15% rate up to20% rate above
Single$51,050$563,200$563,200
Married filing jointly$102,100$633,600$633,600
Head of household$68,350$598,400$598,400
Married filing separately$51,050$316,800$316,800

Qualified dividends are taxed at these same rates. Ordinary income brackets for next year are in our article on the 2027 tax brackets.

How the tax is calculated: gains sit on top of your other income

This is the part most people get wrong. Your long-term gains don’t push your wages into a higher bracket, and the rate on your gains isn’t set by your wages alone. The IRS stacks income in order. Ordinary income fills the brackets first. Long-term gains go on top. Each dollar of gain is taxed at the rate for the layer it lands in.

Worked example: part at 0%, part at 15%

Jordan is single. In 2026 she has $40,000 of taxable income from her job after the standard deduction, and she sells a fund she has held for six years for a $20,000 gain. Her total taxable income is $60,000.

  • Her $40,000 of ordinary income fills the space up to $40,000.
  • The 0% rate for long-term gains runs to $49,450, so the first $9,450 of her gain is taxed at 0%.
  • The remaining $10,550 of gain is taxed at 15%, which is about $1,583.

Her effective rate on the $20,000 gain is under 8%. If she made the same sale in 2027 with the same income, the 0% space would run to $51,050. Then $11,050 of the gain would be taxed at 0% and $8,950 at 15%, for about $1,343.

Worked example: a retired couple at 0%

Sam and Rosa are retired and file jointly. In 2026 their taxable income is $70,000, of which $30,000 is long-term gain from selling stock. Their total is below $98,900, so the whole $30,000 gain is taxed at 0% on their federal return.

One caution for retirees: a gain raises your adjusted gross income even when the gain itself is taxed at 0%. That can make more of your Social Security taxable and, two years later, raise Medicare premiums through IRMAA. Our guides to taxes on Social Security and IRMAA explain both effects.

Extra taxes and special rates

The 3.8% net investment income tax

Higher earners pay an additional 3.8% on investment income, including capital gains. It applies when your modified adjusted gross income is above $200,000 if you are single or head of household, $250,000 if married filing jointly or $125,000 if married filing separately. The tax is 3.8% of the smaller of your net investment income or the amount by which your income exceeds the threshold. These thresholds aren’t adjusted for inflation. See IRS Topic 559.

That puts the top federal rate on most long-term gains at 23.8% for people who owe both the 20% rate and this tax.

Assets with their own maximum rates

  • Collectibles such as coins and art: long-term gains are taxed at a maximum of 28%.
  • Real estate you depreciated: the part of the gain that comes from depreciation, called unrecaptured section 1250 gain, is taxed at a maximum of 25%.
  • Qualified small business stock: the taxable part of the gain is taxed at a maximum of 28%.

Selling your home

Your main home gets its own break. You can exclude up to $250,000 of gain, or $500,000 if you are married and file jointly, as long as you owned the home and lived in it as your main home for at least two of the five years before the sale. Gain above the exclusion is taxed as a capital gain. A loss on your own home isn’t deductible. IRS Topic 701 has the rules.

A couple who bought for $300,000 and sell for $700,000 after living there ten years have a $400,000 gain and owe no federal tax on it. Rental and vacation properties don’t qualify for this exclusion.

What about losses?

Losses offset gains. Short-term losses are first applied against short-term gains and long-term losses against long-term gains, and then the net results are combined. If you end the year with a net loss, you can deduct up to $3,000 of it against other income ($1,500 if married filing separately) and carry the rest forward to future years with no expiration.

Suppose you have $12,000 of gains and $20,000 of losses in 2026. The losses wipe out the gains. Of the $8,000 left over, $3,000 reduces your other income this year and $5,000 carries into 2027.

Watch the wash sale rule. If you sell at a loss and buy the same or a substantially identical investment within 30 days before or after the sale, you can’t claim the loss now. It is added to the basis of the new shares. IRS Publication 550 explains the rule. Our guide to tax-loss harvesting shows how people use losses deliberately.

Seven legal ways to owe less

  1. Hold for more than a year. Crossing the one-year line moves the gain from ordinary rates to 0%, 15% or 20%.
  2. Use the 0% bracket. In a low-income year, such as early retirement or a gap between jobs, you may be able to sell some appreciated holdings and pay no federal tax on the gain.
  3. Offset gains with losses. Review your taxable accounts before December 31 for positions that are below what you paid.
  4. Choose which shares to sell. If you bought at different prices, selling the highest-cost shares first produces the smallest gain. Ask your account provider how to set your cost basis method.
  5. Use retirement accounts. Sales inside a 401(k) or IRA don’t create capital gains. Traditional accounts are taxed as ordinary income on withdrawal, and qualified Roth withdrawals aren’t taxed at all, as we explain in our article on what a Roth IRA is.
  6. Give appreciated shares to charity. If you itemize and donate long-term shares directly, you generally deduct their full value and nobody pays tax on the gain.
  7. Spread a large sale over two tax years. Selling part in December and part in January can keep more of the gain in a lower layer.

Heirs get a different kind of relief. Because inherited assets generally take a new basis at the date of death, gains that built up during the owner’s life often go untaxed. Our inheritance guide covers what that means for the person receiving the assets.

How to estimate what you owe before you sell

  1. Find your basis. Your account statement or the provider’s cost basis page usually has it. Add reinvested dividends if they aren’t already included.
  2. Check the purchase date. Confirm whether a sale today would be short-term or long-term.
  3. Estimate your taxable income without the sale. Start with expected income and subtract your deduction. Our guide to the standard deduction has the amounts.
  4. Stack the gain on top. See how much falls under the 0% line, how much in the 15% band and whether any reaches 20%.
  5. Check the 3.8% threshold and your state tax.
  6. Plan how to pay. A large gain can require an estimated tax payment during the year to avoid an underpayment penalty.

Our free capital gains tax calculator does the stacking for you.

Common mistakes

  • Selling a few days short of one year. Check the purchase date before you place the order.
  • Leaving reinvested dividends out of basis. That overstates your gain.
  • Being surprised by fund distributions. Mutual funds can pay out capital gains in December that are taxable even if you never sold a share.
  • Triggering a wash sale. Automatic dividend reinvestment within the 30-day window can do it.
  • Ignoring the side effects. A big gain can raise Medicare premiums, make more Social Security taxable or shrink credits tied to income.
  • Letting the tax decide everything. Holding a position that no longer fits your plan only to avoid tax carries its own risk.

Frequently asked questions

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

Yes, in a taxable account. Selling is the taxable event, whatever you do with the proceeds. Sales inside an IRA or 401(k) aren’t taxed at the time.

How do I pay 0% on capital gains?

Your taxable income, including the long-term gain, has to stay at or below the 0% threshold: $49,450 for single filers and $98,900 for joint filers in 2026, and $51,050 and $102,100 in 2027. Gains above the line are taxed at 15%.

Do capital gains count as income for my tax bracket?

They are part of your taxable income, but long-term gains are taxed on their own rate schedule and stacked on top of ordinary income. They don’t cause your wages to be taxed at a higher rate.

Are capital gains taxed differently after age 65?

No. The rates are the same at every age. Older taxpayers get a larger standard deduction, which lowers taxable income and can leave more room in the 0% band.

Do I owe capital gains tax on inherited stock?

Only on growth after the date of death, in most cases. Your basis is generally the value on that date, and any gain when you sell is treated as long-term.

When is capital gains tax due?

It is part of your annual income tax return, due in April of the following year. If the gain is large and nothing was withheld, you may need to make an estimated payment for the quarter in which you sold.

Next steps

  • List the holdings in your taxable accounts with their basis and purchase dates.
  • Estimate your 2026 taxable income and see how much room you have under the 0% and 15% lines before December 31.
  • Read our tax planning guide for how gains fit with the rest of your return, and our article on how to invest in index funds if you are deciding what to buy next.
  • If you are planning a large sale and want help thinking through the timing, you can find a licensed financial advisor near you for a free conversation by phone or video call.

Run your numbers: use our free Capital Gains Tax Calculator to estimate the tax on a sale, or browse all our financial calculators.

From the blog

Latest money guides and ideas

Talk to a retirement planner near you

Free consultations by phone or video call.

See all states and cities →

Similar Posts