How Capital Gains Tax Stacking Works — 2026 LTCG Rates Explained finance calculator guide with planning chart
Visual guide for How Capital Gains Tax Stacking Works.

How Capital Gains Tax Stacking Works

Long-term capital gains are taxed at 0%, 15%, or 20% — but which rate applies depends on your total taxable income, not just the gain itself. Ordinary income fills the lower brackets first, and LTCG occupies whatever bracket space remains.

Tax guide~10 min readLast reviewed May 2026

Long-term capital gains (LTCG) are taxed at 0%, 15%, or 20% — but which rate applies depends on your total taxable income, not just the gain itself; ordinary income fills the lower brackets first, and LTCG occupies whatever bracket space remains. Use the capital gains tax calculator to compute your exact rate based on your full income picture.

The Fundamental Rule

  • Short-term capital gains (assets held 12 months or less): taxed as ordinary income at your regular bracket rate. No preferential treatment.
  • Long-term capital gains (assets held more than 12 months): taxed at preferential rates of 0%, 15%, or 20% depending on where the gain falls in the income stack.

IRC §1(h) — the statutory source of preferential LTCG rates — specifies that LTCG rates are applied to the portion of taxable income attributable to long-term gains, but the applicable rate bracket is determined by treating ordinary income as occupying the lower brackets first.

Qualified dividendsuse the identical stacking mechanism — they are treated as LTCG for bracket purposes under IRC §1(h)(11). The IRS "Qualified Dividends and Capital Gain Tax Worksheet" in the Form 1040 instructions walks through this calculation step by step.

2026 LTCG Bracket Thresholds

Per IRS Rev. Proc. 2025-32 §4.03, the 2026 LTCG brackets are:

RateSingle FilersMarried Filing Jointly
0%$0 – $49,450$0 – $98,900
15%$49,451 – $545,500$98,901 – $613,700
20%Above $545,500Above $613,700

These are total taxable incomethresholds, not just LTCG thresholds. The gain's rate depends on where it falls in this chart after ordinary income has filled the lower positions. An additional 3.8% NIIT surtax (IRC §1411) applies to net investment income for taxpayers with MAGI above $200,000 (single) or $250,000 (MFJ), making the top effective LTCG rate 23.8%.

The Stacking Mechanism — How It Works

  1. Ordinary income (wages, 1099 income, short-term gains, interest, distributions) fills from the bottom up.
  2. LTCG and qualified dividends fill the remaining bracket space from where ordinary income stops.
  3. The LTCG rate that applies is the rate of the bracket level where the LTCG falls.

The "tax bump" effect: Near the $49,450 threshold (single), an extra $1 of ordinary income can effectively carry a combined marginal rate of 12% ordinary + 15% LTCG shift = 27% on that dollar, because it simultaneously pushes LTCG out of the 0% zone.

Four Worked Examples Showing Stacking

Example A: Low-Income Holder — $20,000 LTCG, 0% Rate

Profile: Single filer, $28,000 in wages (W-2 income), $20,000 in LTCG.

Gross income: $48,000
Standard deduction: $16,100
Taxable income: $31,900

Ordinary income (wages): $28,000 − $16,100 = $11,900
LTCG fills bracket from: $11,900 to $31,900 = $20,000 LTCG
→ entirely below the 0% threshold of $49,450

Federal LTCG tax: $0.

Income ComponentBracket Space UsedRate
Ordinary income ($11,900)$0 – $11,90010–12% (ordinary)
LTCG ($20,000)$11,900 – $31,9000% LTCG rate

Example B: Middle-Income Straddle — $50,000 Ordinary + $25,000 LTCG

Profile: Single filer, $50,000 wages, $25,000 LTCG, standard deduction.

Gross income: $75,000
Standard deduction: $16,100
Taxable income: $58,900

Ordinary income after deduction: $50,000 − $16,100 = $33,900
LTCG fills from $33,900 to $58,900 = $25,000
  → First $15,550 of LTCG ($49,450 − $33,900): taxed at 0%
  → Remaining $9,450 of LTCG ($58,900 − $49,450): taxed at 15%

Federal LTCG tax: 15% × $9,450 = $1,417.50 (about $1,418). NIIT: $0 because assumed MAGI is $75,000, below the $200,000 single-filer threshold.

Income ComponentBracket SpaceRate
Ordinary income ($33,900)$0 – $33,90010–22% (ordinary brackets)
LTCG first slice ($15,550)$33,900 – $49,4500% LTCG
LTCG second slice ($9,450)$49,450 – $58,90015% LTCG

Example C: High-Income — LTCG Straddles 15% and 20% Rates

Profile: Single filer, $550,000 wages, $80,000 LTCG, taking the $16,100 standard deduction. Assume the LTCG is the only net investment income, with no deductible investment expenses or other tax adjustments.

Taxable income: $550,000 + $80,000 − $16,100 = ~$613,900

Ordinary income after deduction: ~$533,900
The 20% LTCG threshold for single filers is $545,500.
First $11,600 of LTCG falls in the 15% bracket; remaining $68,400 falls in the 20% bracket.

LTCG tax: 15% × $11,600 + 20% × $68,400 = $15,420
NIIT: 3.8% × min($80,000 NII, $630,000 MAGI − $200,000 threshold) = $3,040
Capital-gains-related federal tax only: $18,460 (23.075% of the $80,000 gain); this excludes ordinary wage income tax and the possible 0.9% Additional Medicare Tax on wages.

Capital-gains-related federal tax (LTCG + NIIT): $15,420 + $3,040 = $18,460. This is not the total federal tax liability; ordinary-income tax and any Additional Medicare Tax are excluded.

Example D: NIIT Trigger — $200,000 W-2 + $50,000 LTCG

Profile: Single filer, $200,000 wages, $50,000 LTCG.

Taxable income: $200,000 + $50,000 − $16,100 = $233,900

Ordinary income after deduction: $183,900
LTCG fills from $183,900 to $233,900 = $50,000
→ All $50,000 LTCG: 15% rate (below $545,500 threshold)

MAGI ≈ $250,000. NIIT threshold: $200,000 single.
NIIT on $50,000 LTCG: 3.8%

Capital-gains-related federal tax: 15% × $50,000 = $7,500, plus NIIT 3.8% × $50,000 = $1,900; combined $9,400 (18.8% of gain). This excludes the taxpayer's ordinary-income tax and any Additional Medicare Tax.

Visual Summary — Income Stacking by Profile

TOTAL TAXABLE INCOME BRACKET CHART (Single, 2026)

                      $545,500 ┤ ← 20% LTCG zone begins
Example C: >>>>>>>>>> ████ LTCG split 15%/20% + NIIT
                              │
Example D: 15% zone   ████ LTCG at 15% (+3.8% NIIT)
                      $49,450 ┤ ← 0%/15% LTCG break
Example B (partial):  ████ LTCG split across break
Example A:            ████ All LTCG at 0%
                           │
Ordinary income       ████ Fills from $0 up first
                        $0 ┘

Ordinary income always fills bottom → LTCG fills above it

Qualified Dividends Use the Same Stacking Rule

Qualified dividends — dividends from domestic corporations and certain foreign corporations held for the required holding period — receive the same preferential rates as LTCG under IRC §1(h)(11). They stack in the same way: ordinary income fills the lower brackets, and qualified dividends occupy bracket space above ordinary income. Ordinary dividends (non-qualified, including most dividends from REITs and money market funds) are taxed as ordinary income.

State Tax Angle

Most states tax long-term capital gains as ordinary income — there is no preferential rate at the state level. Notable examples:

  • California: No LTCG preference. All capital gains taxed as ordinary income at up to 13.3%.
  • New York: No LTCG preference. State + city rates apply.
  • Oregon: No LTCG preference.
  • States without broad-based individual income tax (FL, TX, WY, NV, SD, TN, AK): State tax rules still vary by transaction and asset type.
  • Washington: Washington has no broad-based individual income tax but does impose a separate capital-gains excise tax on certain long-term gains. For tax year 2026, the rate is 7% on the first $1 million of taxable Washington capital gains and 9.9% on the portion above $1 million, after applicable deductions and exemptions. See the Washington Department of Revenue.

Strategic Applications of the Stacking Mechanism

Tax-gain harvesting: If your ordinary income is low in a given year (early retirement, business loss year, sabbatical), you can strategically sell appreciated assets up to the 0% LTCG threshold — paying zero federal tax on the gain — and immediately repurchase to reset your cost basis higher.

Roth conversion timing: A Roth conversion adds ordinary income and fills bracket space from the bottom up — pushing LTCG higher into the 15% or 20% zone. Model conversions with LTCG income accounted for before executing.

Charitable giving of appreciated securities: Donating appreciated long-term capital gain securities directly to a qualified charity avoids capital gains tax entirely and gives you a deduction at fair market value up to 30% of AGI.

Tax-Loss Harvesting Basics

Tax-loss harvesting is the practice of selling investments at a loss to offset capital gains:

  • Capital losses offset capital gains dollar-for-dollar. Net losses can be applied across long-term and short-term categories.
  • Excess capital losses deduct up to $3,000/year against ordinary income. Remaining losses carry forward indefinitely (IRC §1212).
  • Wash-sale rule: You cannot buy substantially identical securities within 30 days before or after the sale (IRC §1091).

Use the 2026 tax bracket calculator to model the bracket headroom before deciding when to harvest.

Frequently Asked Questions

"Capital gains stacking" — is that an official IRS term?

No. The IRS does not use this term in its publications. However, the mechanism it describes is embedded in the "Qualified Dividends and Capital Gain Tax Worksheet" in the Form 1040 instructions. The statutory basis is IRC §1(h).

I sold a stock held for 13 months. Does the long-term rate apply?

Yes. The holding period requirement for LTCG treatment is more than 12 months. A stock purchased on January 1, 2025 and sold on February 1, 2026 (13 months) qualifies for LTCG rates.

My taxable income is $45,000 (single) and I have $20,000 in LTCG. How much of it is taxed at 0%?

The 0% LTCG threshold for 2026 is $49,450 (single). Your total taxable income with LTCG is $45,000 — entirely below $49,450. You owe no federal LTCG tax.

What is the NIIT and who pays it?

The Net Investment Income Tax (IRC §1411) is a 3.8% surtax on net investment income — including capital gains, dividends, interest, and passive rental income — for taxpayers with MAGI above $200,000 (single) or $250,000 (MFJ). A high-income taxpayer selling appreciated assets faces 20% LTCG + 3.8% NIIT = 23.8% federal rate.

I have capital loss carryforwards from prior years. How do those affect my LTCG rate?

Capital loss carryforwards reduce your net capital gain in the current year before any rate calculation. If you have $10,000 in LTCG and $4,000 in carryforwards, your net LTCG is $6,000. The stacking calculation then applies to the $6,000 net gain.

Project Your Capital Gains Tax with the Capital Gains Tax Calculator

The stacking mechanism means your LTCG rate depends entirely on your complete income picture. The capital gains tax calculator handles all four examples in this article and accepts your specific ordinary income and LTCG inputs to compute the blended effective rate and dollar tax owed. The 2026 federal income tax calculator combines LTCG with your full tax picture.

Last reviewed: October 2026. Examples assume ordinary stock LTCG, not the separate treatment for collectibles (up to 28%) or unrecaptured §1250 gain (up to 25%); see Form 1040 instructions.

Written by Wanyu T, independent researcher (not a CPA, not a financial advisor). Calculations cross-checked against IRS publications and primary sources cited inline.

Related calculators