Long-term capital gains do not ride your ordinary tax brackets. They climb a ladder of their own — 0%, 15%, 20% — stacked on top of your other income, with a 3.8% surtax waiting at high incomes. Because the ladder's rungs are set by your total taxable income, the size and timing of the gains you realize are partly under your control. Managing them deliberately — filling the 0% rung in lean years, spreading realizations across December and January, watching the surtax line — is one of the few legal ways to choose your own tax rate. The 2027 thresholds below were verified against the IRS's inflation-adjustment release for tax year 2027 (Rev. Proc. 2026-35).

The 2027 ladder

RateSingleMarried filing jointlyHead of household
0% applies while taxable income stays under$51,050$102,100$68,350
15% applies up to$563,200$633,600$598,400
20%Above the 15% ceiling

Read the table the way the tax code stacks it: your ordinary income fills the ladder first, and gains pile on top. A married couple with $78,000 of taxable income before any gains has $24,100 of room in which realized long-term gains are taxed at 0% — not a loophole, just the bottom rung, unused in most years by most retirees. Above the stacking sits the Net Investment Income Tax: an additional 3.8% on investment income once modified adjusted gross income passes $200,000 (single) or $250,000 (joint). Those two thresholds are written into the statute unindexed — they have not moved since 2013 and will not move in 2027 — which is why the surtax quietly captures more households every year.

Gain harvesting: using the 0% rung on purpose

In a low-income year — the bridge years between retirement and Social Security are the classic case — realizing gains up to the top of the 0% rung costs nothing in federal tax and resets the position's basis higher, shrinking every future year's tax on the same holding. Unlike its loss-side cousin there is no wash-sale rule for gains: you may sell and immediately repurchase the identical fund. The technique pairs with the conversion strategy in The Roth Conversion Ladder, Year by Year, because conversions and harvested gains compete for the same low-bracket room — a real plan budgets the room between them. And the losses banked by Tax-Loss Harvesting are what let a high-income year realize gains without the tax: the two practices are one system, run from the same ledger, inside the account described in Taxable Brokerage Accounts and Asset Location.

The management habits

Realize across the calendar. A $60,000 gain taken half in December and half in January lands in two tax years, two ladders, two 0% rungs. Mind the cliffs that are not brackets. Gains raise the income figures that set Medicare premium surcharges (IRMAA) and Affordable Care Act subsidies; a gain that is cheap on the ladder can be expensive on a cliff, which is why large realizations deserve a projection before December, not a surprise in April. Hold past a year. The entire ladder applies only to long-term gains; a sale at eleven months is taxed as ordinary income, and no management technique recovers that difference. Let the basis step-up finish the job. Appreciated assets held until death generally receive a stepped-up basis for heirs — the final rung of the ladder is the one where the tax is zero forever, and it argues against realizing large gains late in life without a reason. In retirement, gains management merges into the withdrawal plan itself: which account, which assets, in which order is the subject of Withdrawal Strategies Compared.

Official documentation and references

Keep going

Educational disclaimer: This article is general education, not personalized financial, tax, legal, or benefits advice. Primary sources, plan documents, and — for insurance and estate topics — your state's law and licensed professionals govern your situation. All numbers in examples are illustrative.