The stacking secret behind 0/15/20
Long-term gains (assets held more than one year, counted day-after-purchase to sale-date inclusive) stack on top of ordinary taxable income, filling the preferential bands from the bottom. For 2026 the 0 percent band runs to $49,450 single ($98,900 joint, $66,200 head of household, $49,450 separate), 15 percent to $545,500 single ($613,700 joint, $579,600 HoH, $306,850 separate), and 20 percent beyond. A joint couple with $80,000 of ordinary taxable income and a $30,000 long-term gain pays 0 percent on the first $18,900 of gain (filling to $98,900) and 15 percent — $1,665 — on the rest: a 5.6 percent effective rate on the sale. The same gain for a $400,000-income neighbor costs the full 15 percent plus 3.8 percent NIIT: $5,640. Identical sale, triple the tax — stacking explains every dollar of difference.
| Rate | Single | Joint | Head of household |
|---|---|---|---|
| 0% | To $49,450 | To $98,900 | To $66,200 |
| 15% | $49,451–$545,500 | $98,901–$613,700 | $66,201–$579,600 |
| 20% | Over $545,500 | Over $613,700 | Over $579,600 |
Three add-ons sit outside the table. The 3.8 percent net investment income tax layers onto gains once MAGI tops $200,000 single / $250,000 joint (thresholds frozen since 2013, catching more households yearly) — making the realistic top federal rate 23.8 percent. Collectibles (coins, art) max at 28 percent, and unrecaptured Section 1250 depreciation on real estate at 25 percent. Short-term gains get none of this: they join wages at 10–37 percent, which is why day-trading profits and flipping feel so heavily taxed.
Losses: netting, limits, and harvesting
The code nets short against short and long against long first, then crosses the remainders — sequencing that rewards pairing long gains with short losses. Net losses offset ordinary income up to $3,000 yearly ($1,500 separate), with excess carried forward indefinitely via the Capital Loss Carryover Worksheet. December harvesting — realizing losers to shelter winners — is legitimate, but stocks repurchased within 30 days before or after trigger wash-sale disallowance (loss deferred into the new shares’ basis). Direct-indexing funds, municipal swaps into similar-but-not-identical securities, and Roth conversions in down years are the professional-grade versions of the same idea. Crypto currently sits outside wash-sale rules (confirm pending legislation), as our crypto guide details.
Homes, inheritances, and state treatment
Homeowners get the biggest exclusion in the code: $250,000 single / $500,000 joint of gain excluded on a primary residence owned and used two of the last five years (partial exclusions for moves forced by work, health, or surprises). Inherited assets receive a stepped-up basis to date-of-death value — wiping out a lifetime of unrealized gain for heirs — while gifted assets carry the giver’s basis forward. States mostly ignore the federal preference: California, New York, and New Jersey tax gains as ordinary income (see our California calculator), while Washington adds 7 percent on large gains and Texas and Florida add nothing. Big sales with estimated-tax exposure should also check our quarterly calculator.
Short-term vs long-term: the one-year line
The single most expensive line in this calculator is the one-year holding mark. Sell on day 364 and your profit is short-term: it stacks onto wages and is taxed at your ordinary marginal rate from 10 up to 37 percent. Sell on day 366 and the same profit is long-term, taxed at 0, 15, or 20 percent instead. For a single filer in the 32 percent bracket, holding eleven extra days can cut the federal bill on a $50,000 gain from $16,000 to $7,500 — a $8,500 reward for patience. Options, futures, RSUs, and employer stock follow their own clocks (RSU vesting starts the clock; exercised ISOs need two years from grant plus one from exercise for qualifying treatment), so confirm your acquisition date before you click sell. Compare the ordinary-rate side of every decision with our 2026 federal brackets guide and standard vs. itemized walkthrough.
Seller checklist: timing, withholding, and state moves
Clear winners this year: patient sellers whose gains land inside the 0 percent band (low-income years, early retirement gaps, and students cashing out small positions pay nothing federally), homeowners pairing a sale with the $250,000/$500,000 exclusion, and harvesters who bank December losses against winners. Break-even sellers are mid-band filers whose 15 percent federal bill plus state tax roughly matches what quarterly payments already covered — common in California and New York where the state adds another 9–13 percent. Reconsider: sellers bunching two property closings or a big option exercise into one year and tripping NIIT at $200,000/$250,000 MAGI; spreading closings across January often saves the full 3.8 percent. Before a large sale, true up withholding with our W-4 withholding calculator and quarterly estimated tax planner, because a five-figure gain with no withholding draws underpayment penalties even when you can pay in April.
Frequently asked questions
Can a gain be taxed at two rates?
Yes — a gain straddling a threshold is split: the part filling the lower band gets the lower rate, the rest the higher one.
Do gains push me into a higher bracket?
Gains raise taxable income and MAGI — they can lift ordinary income’s marginal band and trigger NIIT even when taxed at 0% themselves.
What is the $3,000 loss limit?
Net capital losses beyond gains can offset up to $3,000 of ordinary income yearly ($1,500 separate); the rest carries forward.
How are inherited stocks taxed?
Heirs get a stepped-up basis to date-of-death value — prior appreciation escapes income tax entirely if sold promptly.
How long must I hold for the long-term rate?
More than one year, counted from the day after purchase through the sale date. Selling on the one-year anniversary itself is still short-term — wait one extra day.
When does the 3.8% NIIT hit my gain?
Once modified AGI exceeds $200,000 single or $250,000 joint, the 3.8% net investment income tax layers on top — making the realistic top federal rate 23.8%.
Do I owe estimated tax on a big sale?
Usually yes — a large gain with no withholding can trigger underpayment penalties. Cover it with quarterly payments or a mid-year W-4 update before January 15.
Official sources
This is general education, not tax advice. Thresholds follow IRS Rev. Proc. 2025-32 for 2026. Read our full disclaimer.