The 0% Capital Gains Bracket: How to Harvest Gains Tax-Free in Retirement
Long-term capital gains that fall within the 0% bracket are federally tax-free — and in retirement, many households qualify. This guide covers the 2026 thresholds, how the stacking rule works, the gain harvesting mechanic (including why wash-sale rules don't apply), how gain harvesting competes with Roth conversions for the same bracket space, four hidden costs that make the '0%' rate not quite 0%, state tax reality, and the annual harvest schedule.
Most retirees know that long-term capital gains are taxed at lower rates than ordinary income. Fewer realize that in retirement — particularly in the years between leaving work and collecting Social Security and RMDs — many households qualify for a 0% federal rate on those gains entirely. And fewer still act on it deliberately.
Tax-gain harvesting is the practice of intentionally realizing long-term capital gains during low-income years to pay 0% federal tax, then immediately repurchasing the same position at the higher price. The result: future appreciation on that holding starts from a stepped-up cost basis, reducing taxable gains when the position is eventually sold at higher tax rates. It is the mirror image of tax-loss harvesting — and it has one enormous advantage over its counterpart: no wash-sale restriction.
The strategy is particularly powerful in the pre-RMD window: the years after retirement and before Required Minimum Distributions begin forcing ordinary income out of traditional accounts. That window is finite. Making deliberate use of it — while coordinating with Roth conversions that compete for the same bracket space — is one of the most tax-efficient moves available to retirees with taxable brokerage accounts.
How the 0% Bracket Works
Long-term capital gains (assets held more than one year) and qualified dividends are taxed on a separate rate schedule from ordinary income. In 2026, the three federal brackets are 0%, 15%, and 20%, with a 3.8% Net Investment Income Tax surcharge above MAGI thresholds. [1]
The 0% bracket applies to all long-term gains and qualified dividends that fall within taxable income up to $49,450 for single filers and $98,900 for married filing jointly. [1] Above those thresholds, the rate jumps to 15%.
The critical mechanics rule — the one most people miss — is the stacking rule: capital gains stack on top of ordinary income, not alongside it. Ordinary income fills the bracket from the bottom; gains sit on top of that. A couple with $28,000 of taxable ordinary income (after the standard deduction) doesn't have $98,900 of gain-harvesting room — they have $70,900. The ordinary income consumes the bottom of the bracket first.
The reverse implication matters too: reducing ordinary income directly increases gain-harvesting room. Above-the-line deductions — HSA contributions, qualified charitable distributions from an IRA, traditional IRA contributions if still eligible — each free up additional bracket space for gains at 0%.
The Gross Income Limit Is Higher Than the Bracket
A common misconception: the 0% bracket ceiling is the gross income limit. It isn't. Because the standard deduction reduces taxable income, a married couple over 65 can have approximately $135,100 of gross income and still keep taxable income within the 0% bracket. [2] Every dollar of the standard deduction is, in effect, additional gain-harvesting room. This is why the 0% bracket is meaningfully accessible to many retired middle-class households, not just low-income filers.
The Gain Harvesting Mechanic
Gain harvesting follows four steps. First, calculate your available 0% bracket room — the ceiling minus your projected taxable ordinary income for the year. Second, identify holdings in your taxable brokerage account with the largest unrealized long-term gains and the lowest cost basis. Third, sell enough of those holdings to realize a gain that stays within your room. Fourth — and this is the distinctive part — immediately repurchase the same security. [3]
The wash-sale rule, which disallows deducting a loss if you repurchase a substantially identical security within 30 days, applies only to losses. [3] There is no equivalent rule for gains. You can sell an S&P 500 index fund, realize a six-figure gain, and buy it back one minute later at the same price with no tax consequence beyond the realized gain itself. Your new cost basis is the repurchase price — future appreciation on that position now starts from a higher floor.
The benefit compounds over time. A position bought for $50,000 that grew to $150,000 has $100,000 of embedded gain. Harvesting it at 0% and repurchasing at $150,000 resets the basis. If you later sell that same position at $200,000 in a year when you're in the 15% bracket, you pay 15% on only $50,000 — not $150,000. The gain harvest converted a future 15% × $100,000 = $15,000 tax bill into zero.
The Roth Conversion Competition
Roth conversions and gain harvesting both consume the same 0% bracket space. Each dollar of Roth conversion generates ordinary income that pushes the bottom of the available stack upward, reducing room for gains at 0%. Understanding which to prioritize — or how to split the bracket between both — is the central planning decision. [4]
Favor gain harvesting when the taxable brokerage account is large relative to the pre-tax IRA, when holdings are likely to be sold during life (not held to step-up at death), and when the traditional IRA balance is modest with limited RMD risk. If taxable positions will be held until death, gain harvesting provides no benefit — the step-up in basis at death eliminates unrealized gains regardless. Harvesting and repurchasing is unnecessary work if you'll never sell.
Favor Roth conversions when the traditional IRA or 401(k) balance is large and projected RMDs will push future ordinary income into the 22% or 24% brackets. Converting now at 10%/12% saves more over the long run than harvesting gains — the conversion compound benefit (tax-free growth and no future RMDs) outweighs the basis reset value in most large-pre-tax-balance scenarios. [4] Heirs in high tax brackets also tilt the calculation toward conversions, since they'll inherit a SECURE Act 10-year mandatory distribution window.
In practice, the two strategies are not mutually exclusive. Splitting the bracket — converting enough to fill the top of the ordinary income bracket and harvesting gains with the remaining 0% LTCG room — often captures benefits from both simultaneously. [5]
Four Things That Make "0%" Not Quite 0%
The federal rate is 0%, but several second-order effects raise the true cost of a gain harvest. All four must be modeled before executing.
ACA premium tax credits. Realized capital gains count toward MAGI for ACA subsidy purposes even if federally tax-free. [3] For retirees ages 60–64 enrolled in marketplace plans and receiving premium tax credits, pushing MAGI above 400% of the federal poverty level (~$79,480 for a couple in 2026) can trigger a subsidy clawback of $10,000–$30,000+. A "0% federal tax" harvest that triggers a $20,000 subsidy repayment is not a tax-free transaction.
Social Security taxation. Realized gains count toward provisional income — the formula that determines how much of your Social Security benefit is taxable. [4] Every dollar of gain above the $44,000 provisional income threshold (MFJ) adds $0.85 of taxable Social Security income, which is taxed at ordinary rates. The effective marginal cost of each additional gain dollar can be 9–22% through this mechanism alone.
Medicare IRMAA surcharges. Medicare uses MAGI from two years prior to set Part B and D premiums. A large gain harvest in 2026 can trigger IRMAA surcharges in 2028. [4] For moderate gain harvesting within the 0% bracket ceiling this is usually not a concern, but large harvests that approach the bracket boundary should be modeled for IRMAA exposure.
State income taxes. The 0% rate is federal only. California taxes long-term capital gains as ordinary income at 9–13%. [4] Oregon, Minnesota, and other high-income-tax states similarly provide no preferential LTCG rate. For residents of these states, the "0% harvest" still costs 9–13% in state tax — the net saving compared to simply holding and paying 15% federal later is reduced accordingly.
The Annual Harvest Schedule
Gain harvesting is not a December event — it's a year-long planning process with a hard year-end deadline.
January through March is for planning: estimate full-year ordinary income, calculate projected bracket room, and identify top harvesting candidates by unrealized gain size and holding period confirmation (must be 365+ days from the lot purchase date). April through August is for execution in tranches — earlier execution gives the repurchased position more time to establish a new long-term holding period before the next harvest cycle. September through November is for refinement: tally year-to-date realized gains, adjust for income surprises, and check year-end mutual fund distribution estimates.
The November–December window carries a critical trap: actively managed mutual funds distribute realized capital gains to shareholders in Q4. [2] These distributions count toward MAGI and the 0% bracket ceiling even if automatically reinvested as new shares. A large distribution in a fund you hold can push income over the bracket ceiling, taxing gains you thought would be free. Check estimated year-end distributions before executing any late-year harvest.
Final trades must settle before December 31. Equity trades settle T+1 — place the order by December 30 at the latest.
Important Notes
- Only long-term gains qualify. Short-term gains — positions held 365 days or fewer — are taxed as ordinary income at your marginal rate. Confirm the holding period of each lot before selling.
- Lots, not positions. Most brokerage accounts hold multiple tax lots for the same security purchased at different times and prices. Specify which lot you're selling. The lot with the lowest cost basis has the largest gain — and potentially the most to benefit from a basis reset.
- Qualified dividends vs. ordinary dividends. Qualified dividends (most U.S. stock and ETF dividends, held the required period) use the same 0%/15%/20% rate schedule as LTCG. Ordinary dividends are taxed at ordinary income rates. Both qualify and non-qualifying dividends received during the year count toward the bracket in their respective categories.
- The step-up in basis at death. If you hold appreciated securities until death, heirs receive a step-up in cost basis to fair market value on the date of death. All unrealized gains disappear for income tax purposes. For positions you intend to hold until death, gain harvesting and repurchasing provides no long-run benefit — future heirs inherit at the new (higher) market value regardless of what you paid.
- Net Investment Income Tax does not apply within the 0% bracket. The 3.8% NIIT applies to investment income for filers with MAGI above $200,000 (single) or $250,000 (MFJ). Gain harvesting within the 0% bracket — by definition involving taxable income well below $49,450/$98,900 — will not trigger NIIT.
- State taxes are the variable that most calculators ignore. If you live in California, Oregon, or Minnesota, run the numbers with your state LTCG rate before assuming the harvest is "free." The net saving compared to holding may be much smaller than expected.
In ModernRetire
The LTCG Card in the Tax Plan shows your current 0% bracket room in real time based on your projected income for the year — updating as you adjust income sources, Roth conversion amounts, and spending. The Gain Harvest Schedule under Tax Plan → Taxable Account walks through the four steps:
- Enter your taxable brokerage account positions — the planner identifies which lots have unrealized long-term gains and calculates the total harvestable amount within your room
- The Roth conversion coordinator shows the tradeoff live: as you increase the Roth conversion amount, available gain-harvesting room decreases — so you can find the optimal split
- The income impact model checks all four second-order effects — ACA MAGI, SS provisional income, IRMAA exposure, and your state's capital gains rate — against the proposed harvest amount before you execute
- The harvest reminder triggers in January of each year to start the planning cycle, and again in November with the estimated year-end distribution data from major fund families
Related: Roth Conversion Ladders — how to build tax-free income in retirement by converting pre-tax IRA money to Roth during low-income years, and how conversions coordinate with gain harvesting for the same bracket space.
Related: The 85% Rule for Social Security Taxation — how capital gains, Roth conversions, and RMDs can push provisional income above the 85% SS taxation threshold, and the strategies that prevent it.
Quick Check
A married couple files jointly in 2026. Their taxable income consists of: $18,000 Social Security (50% = $9,000 taxable), $14,000 pension, and $12,000 part-time wages. The standard deduction for MFJ in 2026 is $32,200. They hold an S&P 500 index fund with $110,000 of unrealized long-term gain. How much of that gain can they harvest at a 0% federal rate this year?