1. Home
  2. Learn
  3. Capital gains tax
Tax guide

Capital gains tax: rates, rules and ways to pay less

Reviewed by a licensed financial advisor

When you sell an investment, a home or another asset for more than you paid, the profit is a capital gain, and it may be taxed. This guide explains the 2026 and 2027 long-term capital gains tax rates, how short-term gains differ and the legal ways to reduce the bill.

9 min readReviewed by the My Financial Next Step teamUpdated November 2026
Investor reviewing capital gains tax on an investment sale
In this guide
  1. What capital gains tax is
  2. Short-term vs long-term
  3. Long-term rates for 2026 and 2027
  4. How gains stack on income
  5. Worked examples
  6. Special rates and the 3.8% tax
  7. Selling your home
  8. Capital losses
  9. Ways to reduce the tax
  10. State taxes
  11. Related reading
  12. Frequently asked questions
The short answer

Profit on an asset held for more than one year is a long-term capital gain, taxed at 0%, 15% or 20% depending on your taxable income. For 2027, the 0% rate applies up to $51,050 of taxable income for single filers and $102,100 for married couples filing jointly. Profit on an asset held one year or less is a short-term gain, taxed at your ordinary income rates of 10% to 37%. Higher earners may also owe a 3.8% net investment income tax.

What capital gains tax is

A capital gain is the difference between what you sell an asset for and your basis in it. Basis is usually what you paid, plus certain costs such as commissions and, for real estate, the cost of improvements. If you buy shares for $10,000 and sell them for $16,000, your gain is $6,000. Capital assets include stocks, bonds, mutual funds, exchange-traded funds, real estate, cryptocurrency and most other property held for investment or personal use.

You owe tax only when a gain is realized, meaning you have actually sold. An investment that has risen in value but has not been sold has an unrealized gain, which is not taxed. That gives investors control over timing, which is the basis for most capital gains planning.

Short-term vs long-term gains

The holding period decides which rates apply. The clock starts the day after you buy and includes the day you sell.

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

Holding an investment for at least a year and a day can cut the tax on the gain substantially. For someone in the 24% bracket, waiting changes the rate on the gain from 24% to 15%.

Long-term capital gains tax rates for 2026 and 2027

The rate depends on your taxable income, which is income after deductions, including the gain itself.

RateSingle 2026Single 2027Married jointly 2026Married jointly 2027
0%Up to $49,450Up to $51,050Up to $98,900Up to $102,100
15%$49,451 to $545,500$51,051 to $563,200$98,901 to $613,700$102,101 to $633,600
20%Over $545,500Over $563,200Over $613,700Over $633,600

For heads of household, the 0% rate applies up to $68,350 of taxable income in 2027. Qualified dividends are taxed at these same rates.

How gains stack on top of other income

Long-term gains are treated as the top layer of your income. Your ordinary income, such as wages and retirement account withdrawals, fills the brackets first. Gains then sit on top, and each dollar of gain is taxed at the capital gains rate that applies at that level. This means a gain can be taxed partly at 0% and partly at 15%.

It also means ordinary income can push gains into a higher rate, and the reverse is not true: a capital gain does not raise the rate on your wages. It can, however, raise your adjusted gross income, which affects other things such as the taxation of Social Security benefits and Medicare premium surcharges.

Worked examples

Example 1. A married couple has $80,000 of taxable ordinary income in 2027 and a $40,000 long-term gain. The 0% rate runs to $102,100, so the first $22,100 of the gain is taxed at 0%. The remaining $17,900 is taxed at 15%, for a federal tax of $2,685 on the gain. That is an average of 6.7%.

Example 2. A retired couple has $60,000 of taxable ordinary income and realizes $30,000 of long-term gains. Their total taxable income is $90,000, below the $102,100 threshold, so the entire gain is taxed at 0%.

Example 3. A single filer with $85,000 of taxable income sells stock held for eight months at a $10,000 profit. The gain is short-term and taxed at 22%, or $2,200. Had they waited until the holding period passed one year, the tax would have been $1,500 at 15%.

Run your own numbers with the capital gains tax calculator.

Planning to sell an investment or a property?

Talk to an advisor about timing the sale and what to do with the proceeds.

Request a free call →

Special rates and the 3.8% net investment income tax

  • Net investment income tax. An extra 3.8% applies to investment income, including capital gains, to the extent modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married couples filing jointly. These thresholds are not adjusted for inflation. The top combined federal rate on long-term gains is therefore 23.8%.
  • Collectibles, such as coins, art and precious metals, are taxed at a maximum of 28%.
  • Depreciation recapture on real estate is taxed at a maximum of 25%.
  • Qualified small business stock may qualify for a partial or full exclusion if detailed requirements are met.

Selling your home

The sale of a main home gets generous treatment. You can exclude up to $250,000 of gain, or $500,000 if married filing jointly, if you owned the home and lived in it as your main residence for at least two of the five years before the sale. You can generally use the exclusion once every two years. Gain above the exclusion is taxed as a long-term capital gain. Keep records of what you paid and of improvements such as additions and new roofs, because they raise your basis and lower the gain. Second homes and rental properties do not qualify for the exclusion.

Capital losses

Losses offset gains. Short-term losses first offset short-term gains and long-term losses first offset long-term gains, then any remaining loss offsets the other type. If your losses exceed your gains for the year, you can deduct up to $3,000 of the excess against ordinary income, or $1,500 if married filing separately. Any unused loss carries forward to future years with no time limit.

The wash sale rule blocks a loss if you buy the same or a substantially identical security within 30 days before or after the sale. Losses on personal property, such as a car or your home, are not deductible. Our guide to tax-loss harvesting explains how investors use losses deliberately.

Ways to reduce capital gains tax

  1. Hold for more than a year so gains qualify for long-term rates.
  2. Realize gains in low-income years. Early retirement, before Social Security and required distributions begin, is often a window for gains at 0%.
  3. Harvest losses to offset gains.
  4. Use tax-advantaged accounts. Trades inside a 401(k) or IRA do not create capital gains. See 401(k) vs IRA.
  5. Donate appreciated assets. Giving shares held more than a year to charity avoids the gain and may give a deduction for the full value.
  6. Give or leave assets thoughtfully. Assets inherited at death generally receive a stepped-up basis equal to their value on the date of death, which erases the unrealized gain. Gifts made during life carry your original basis to the recipient.
  7. Choose which shares to sell. Selling the highest-cost lots first reduces the gain.
  8. Favor tax-efficient funds in taxable accounts, such as broad index funds, which tend to distribute fewer gains.
  9. Spread a large gain across tax years, for example with an installment sale of property.

State taxes

Most states tax capital gains as ordinary income at their regular rates. A few states have no income tax, and a few treat gains differently from wages. Because state rates range from zero to more than 10%, where you live when you sell can matter. See our guide to states with no income tax and the state pages under retirement taxes.

Tax rules are detailed and change over time, so confirm your situation with a tax professional before a large sale. If you want help planning the sale of investments or property as part of a wider financial plan, talk to an advisor. Request a free call with the form on this page and a licensed advisor will reach out by phone or video, with no obligation.

Local advisor pages near you

Local rules and costs differ by state and county, so it helps to see how advisors in your area approach this. Browse advisor pages by state, or start with Georgia financial advisors, Oklahoma financial advisors, Connecticut financial advisors and Utah financial advisors. City pages include Financial advisors in Las Vegas, Financial advisors in Portland and Financial advisors in Minneapolis, and county pages include Advisors in Denver County and Advisors in Middlesex County. Ready to talk it through? Talk to an advisor: a licensed advisor will reach out by phone or video, free and with no obligation.

Run your numbers

Free calculator for this topic

Frequently asked questions

What is the capital gains tax rate?

Long-term gains are taxed at 0%, 15% or 20% depending on taxable income. Short-term gains are taxed at ordinary income rates of 10% to 37%.

How long do I have to hold an asset for long-term rates?

More than one year. Selling at exactly one year or less produces a short-term gain.

How can I pay 0% capital gains tax?

Keep your taxable income, including the gain, at or below the 0% threshold, which for 2027 is $51,050 for single filers and $102,100 for married couples filing jointly.

Do I pay capital gains tax when I sell my house?

Often not. You can exclude up to $250,000 of gain, or $500,000 for married couples filing jointly, if you meet the ownership and residence tests.

Are capital gains taxed inside an IRA or 401(k)?

No. Sales inside these accounts are not taxed as capital gains. Withdrawals from traditional accounts are taxed as ordinary income.

Sources and further reading

See our editorial standards for how we research and review our guides.

Want help with a tax-smart investment plan?

Talk to an advisor by phone or video call. Free and with no obligation.

Talk to an advisor →
From the blog

Latest money guides and ideas