A capital gain is the profit from selling an asset for more than its adjusted basis, and how long you held that asset decides which set of rates applies. Almost everything owned for personal or investment purposes counts as a capital asset, from stocks and bonds to a house and its furnishings.

Avoiding capital gains tax legally means shrinking, deferring, or excluding the gain before it reaches your return. It does not mean skipping the paperwork: most sales belong on Form 8949 and are summarized on Schedule D, and a large gain often requires an estimated tax payment.

What is the difference between a short-term and a long-term gain?

A long-term gain comes from an asset held more than one year, while anything held one year or less is short-term. The clock starts the day after you acquire the asset and runs through the day you sell it.

That date controls your rate. Net short-term gain is taxed as ordinary income at graduated rates that reach 37% in 2026, while net long-term gain uses its own 0%, 15%, and 20% ladder. Your net capital gain is net long-term gain minus net short-term loss, with carryovers from earlier years folded in.

What are the capital gains tax rates for 2026?

Long-term gains are taxed at 0%, 15%, or 20% depending on taxable income, and short-term gains follow the ordinary brackets.

2026 long-term rateSingle filer taxable incomeMarried filing jointly
0%Up to $49,450Up to $98,900
15%$49,450 to $545,500$98,900 to $613,700
20%Above $545,500Above $613,700

Rates climb in slices, not all at once, so only the income above each line pays the next rate. Three asset classes sit outside the ladder entirely: collectibles and section 1202 qualified small business stock are capped at 28%, and unrecaptured section 1250 gain is capped at 25%.

Does holding on longer really lower the tax?

Yes, and the arithmetic is simple. A $10,000 gain held 11 months and taxed at the 22% ordinary rate costs $2,200; held 13 months at the 15% long-term rate it costs $1,500, so the extra wait saves $700.

The trade-off is market risk, not paperwork. Waiting out the one-year mark exposes the position to price swings that can cost far more than $700, which is why the decision should start with the investment case and end with the tax.

How do you land in the 0% capital gains bracket?

Keep taxable income under the 0% ceiling in the year you sell. For 2026 that ceiling is $49,450 for a single filer and $98,900 for a married couple filing jointly.

Take a single filer earning $40,000 in wages who claims the $16,100 standard deduction.

  • Wage income alone leaves taxable income of $40,000 − $16,100 = $23,900.
  • A $12,000 long-term gain lifts taxable income to $35,900, still below $49,450, so the federal rate on the gain is 0%.
  • A $30,000 gain lifts taxable income to $53,900. Room left in the 0% band is $49,450 − $23,900 = $25,550, and the remaining $4,450 is taxed at 15%, or $667.50.

Two sales of $15,000 in back-to-back years would each leave taxable income at $38,900 and take the whole $30,000 out of federal capital gains tax. The catch is that the gain still counts as income for state tax and other income-linked thresholds, so check the downstream effects before splitting a sale.

How does tax-loss harvesting work?

Selling a loser offsets a winner dollar for dollar. Harvest $9,000 of losses against $9,000 of long-term gains and the net gain is zero, saving about $1,350 at the 15% rate ($9,000 × 0.15). Harvest only $5,000 against that gain and $4,000 stays taxable at $600, so the harvest still saved $750.

Losses beyond your gains can shelter up to $3,000 of ordinary income a year, or $1,500 if you are married filing separately, and anything left carries forward to a later year. The wash-sale rule disallows the loss when you buy back the same or a substantially identical security too soon, so pair the sale with a replacement that is genuinely different.

Who owes the 3.8% net investment income tax?

Taxpayers with modified adjusted gross income above $200,000 (single), $250,000 (married filing jointly), or $125,000 (married filing separately) owe 3.8% on the lesser of net investment income or the amount over the threshold.

A couple with $300,000 of MAGI and $40,000 of net investment income clears the threshold by $50,000. The lesser figure is the $40,000 of investment income, so the tax is 3.8% × $40,000 = $1,520, on top of the regular capital gains rate.

Gain excluded on a primary home under the Section 121 rules is also outside the NIIT. That matters in expensive housing markets, where a home sale can be the largest gain a household ever reports.

Which breaks matter most for real estate?

Real estate has its own deferral and exclusion tools, and they are not interchangeable. A 1031 exchange defers gain when you trade one investment property for another of like kind, but it cannot shelter the sale of a primary residence or a stock portfolio.

Depreciation is where investors get caught. Gain from depreciation taken on a rental is unrecaptured section 1250 gain, taxed at up to 25% even when the rest of the gain sits at 15%. Every deduction claimed along the way also changes your basis, so read up on rental property tax deductions before you list the property.

For a home you lived in, the Section 121 exclusion can remove a large share of the gain if you meet the ownership and use tests in IRS Publication 523. Fail those tests and the sale is taxed like any other capital asset.

Which strategies reduce the bill, and who do they suit?

StrategyWhat it doesBest forThe catch
Hold past one yearMoves the gain onto the 0/15/20 ladderAnyone near the 12-month markMarket risk during the wait
Split sales across yearsKeeps each year under the 0% ceilingRetirees and low-income yearsGain still counts as income
Harvest lossesOffsets gains dollar for dollarPortfolios with winners and losersWash-sale rule
Give appreciated sharesTakes the gain off your returnCharitable donorsMust itemize to claim the deduction
Tax-advantaged accountsNo gain recognized inside the accountLong-term saversWithdrawals taxed as ordinary income
Hold until deathResets basis for heirsEstate planningYou must own the asset at death

Gifting works differently from donating. When you give stock to a family member, your basis carries over, so the tax is deferred rather than erased, and the kiddie tax can pull a child’s gain back onto the parents’ rate. Assets held until death get a step-up in basis under Publication 551, which wipes out the pre-death gain for heirs.

Inside a 401(k), an IRA, or a health savings account, buying and selling produces no capital gain at all. The trade is that traditional IRA and 401(k) withdrawals are taxed as ordinary income, so the deferral pays off only if your retirement rate lands below today’s.

How do you build a plan step by step?

Step 1: Rebuild your adjusted basis

Add every purchase price, commission, and reinvested dividend, then subtract depreciation already taken. Sale price minus that total is the gain the IRS expects to see reported.

Step 2: Confirm the holding period

Use trade dates from your statements rather than memory. A sale that lands one day inside the short-term window can push the whole gain into the ordinary ladder at rates up to 37%.

Step 3: Project taxable income for the year

Estimate wages, interest, and business income, apply the standard deduction ($16,100 single, $32,200 married filing jointly for 2026), and see which rate slice the gain would land in.

Step 4: Pick the move that fits

Timing, loss harvesting, and account placement are the three levers you can usually pull by December. Exclusions and 1031 exchanges need planning months earlier, plus a qualified intermediary for the exchange.

Step 5: Fund the estimated tax

A gain can trigger a quarterly payment, and falling short shows up later as a penalty. Move the tax into a separate account the day you sell so it is not spent by April.

Common mistakes that raise the bill

  • Reporting the full sale price as gain instead of subtracting adjusted basis.
  • Treating a short-term gain as long-term because the holding period was counted loosely.
  • Deducting a loss on personal-use property such as a car or a home.
  • Using only the purchase price as basis for inherited or gifted assets instead of the special rules in Publication 551.
  • Assuming every long-term gain fits the 0/15/20 ladder and missing the 28% collectibles rate or the 25% unrecaptured section 1250 rate.
  • Ignoring the 3.8% NIIT when MAGI sits near the threshold.
  • Skipping estimated payments in the year of a large sale.