
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.
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 Rev. Proc. 2025-32 §3.04, the 2026 LTCG brackets are:
| Rate | Single Filers | Married Filing Jointly |
|---|---|---|
| 0% | $0 – $48,350 | $0 – $96,700 |
| 15% | $48,351 – $533,400 | $96,701 – $600,050 |
| 20% | Above $533,400 | Above $600,050 |
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
- Ordinary income (wages, 1099 income, short-term gains, interest, distributions) fills from the bottom up.
- LTCG and qualified dividends fill the remaining bracket space from where ordinary income stops.
- The LTCG rate that applies is the rate of the bracket level where the LTCG falls.
The "tax bump" effect: Near the $48,350 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 $48,350
Federal LTCG tax: $0.
| Income Component | Bracket Space Used | Rate |
|---|---|---|
| Ordinary income ($11,900) | $0 – $11,900 | 10–12% (ordinary) |
| LTCG ($20,000) | $11,900 – $31,900 | 0% 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 $14,450 of LTCG ($48,350 − $33,900): taxed at 0% → Remaining $10,550 of LTCG ($58,900 − $48,350): taxed at 15%
Federal LTCG tax: $0 × $14,450 + 15% × $10,550 = $1,583
| Income Component | Bracket Space | Rate |
|---|---|---|
| Ordinary income ($33,900) | $0 – $33,900 | 10–22% (ordinary brackets) |
| LTCG first slice ($14,450) | $33,900 – $48,350 | 0% LTCG |
| LTCG second slice ($10,550) | $48,350 – $58,900 | 15% LTCG |
Example C: High-Income — 20% LTCG Rate
Profile: Single filer, $550,000 wages, $80,000 LTCG.
Taxable income: $550,000 + $80,000 − $16,100 = ~$613,900 Ordinary income after deduction: ~$533,900 The 20% LTCG threshold for single filers is $533,400. All LTCG sits above $533,400. LTCG rate: 20% NIIT: 3.8% (MAGI well above $200k threshold per IRC §1411) Combined LTCG rate: 23.8%
Federal LTCG + NIIT: $80,000 × 23.8% = $19,040
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 $533,400 threshold) MAGI ≈ $250,000. NIIT threshold: $200,000 single. NIIT on $50,000 LTCG: 3.8%
Federal LTCG: 15% × $50,000 = $7,500 | NIIT: 3.8% × $50,000 = $1,900 | Total: $9,400 = effective 18.8% rate
Visual Summary — Income Stacking by Profile
TOTAL TAXABLE INCOME BRACKET CHART (Single, 2026)
$533,400 ┤ ← 20% LTCG zone begins
Example C: >>>>>>>>>> ████ LTCG at 20% + 3.8% NIIT
│
Example D: 15% zone ████ LTCG at 15% (+3.8% NIIT)
$48,350 ┤ ← 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 itQualified 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 with no income tax (FL, TX, WY, NV, WA, SD, TN, AK): No state-level capital gains tax at all.
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 $48,350 (single). Your total taxable income with LTCG is $45,000 — entirely below $48,350. 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.
Related calculators
Capital Gains Tax Calculator
Estimate federal capital gains tax with FigureCal — short vs long-term rates, NIIT 3.8%, LTCG stacking bracket by bracket. 2026 thresholds. Sources cited.
Open calculator →2026 Federal Income Tax Calculator
Estimate 2026 federal income tax with FigureCal — bracket-by-bracket math, OBBB changes, sources cited inline. Standard and itemized deductions. Free.
Open calculator →2026 Tax Bracket Calculator
See your 2026 marginal and effective tax rate with FigureCal — IRS brackets sourced to Rev. Proc. 2025-32, bracket-by-bracket breakdown, every step shown.
Open calculator →