Tax-Gain Harvesting
Tax-Gain Harvesting
While loss harvesting is well-known, tax-gain harvesting is a powerful but underutilized strategy: deliberately realizing capital gains in low-tax-bracket years to lock in favorable taxation before entering higher brackets. If you're in a 12% federal bracket this year and expect to jump to 24% next year (or retire into a lower bracket), realizing $50,000 of gains today at favorable rates can save tens of thousands over your lifetime.
Quick definition: Tax-gain harvesting is the practice of intentionally realizing capital gains in low-tax-bracket years (such as between employment or during early retirement) to minimize the lifetime federal and state tax rate applied to those gains. This is the inverse of loss harvesting: you accelerate gains forward in time when they'll be taxed favorably, rather than deferring losses.
Key Takeaways
- The federal long-term capital gains rate is 0%, 15%, or 20% depending on income; a taxpayer in the 0% bracket realizes gains completely tax-free.
- Transitional years (sabbaticals, job changes, year between employment and retirement) create opportunities to harvest gains in low brackets.
- A married couple can realize up to $89,250 of long-term gains in 2024 while remaining in the 0% federal bracket—potentially without paying any capital gains tax.
- Gain harvesting is most valuable for early retirees, those with lumpy income (freelancers, business owners), or those expecting major life transitions.
- The strategy requires planning years in advance: you need a harvest-ready portfolio of appreciated securities by the time your low-bracket year arrives.
- Coordination between federal, state, and local taxes is essential; some states tax gains regardless of bracket, reducing the benefit.
The Federal Long-Term Capital Gains Rate Structure
Long-term capital gains (held >1 year) are taxed at preferential rates: 0%, 15%, or 20% depending on ordinary income.
2024 Rates (subject to annual adjustment):
- 0% rate: Single filers up to $47,025 of taxable income; married filing jointly up to $94,050.
- 15% rate: Single filers $47,025–$518,900; married filing jointly $94,050–$583,750.
- 20% rate: Single filers over $518,900; married filing jointly over $583,750.
These thresholds are stacked on top of ordinary income. If you earn $30,000 of wages and realize $20,000 of long-term gains, your total taxable income is $50,000. Your first $47,025 of that stack is ordinary income (at ordinary rates); the remaining $2,975 of gains faces 15% rates.
The 0% bracket is the most powerful opportunity. A married couple realizing gains entirely within the 0% bracket pays zero federal tax on those gains—a benefit that compounds over decades.
The Mechanics of Gain Harvesting
The basic process:
- Identify a low-bracket year. This might be a year of sabbatical, business downturn, job transition, or early retirement before claiming Social Security.
- Calculate available bracket space. Subtract your ordinary income (wages, dividends, interest) from the 0% or 15% bracket threshold. This is your "room" to realize gains.
- Select appreciated securities. Identify holdings with long-term capital gains that you plan to eventually sell.
- Realize gains strategically. Sell enough to fill available bracket space, staying within the low-rate threshold.
- Immediately reinvest proceeds. Use the sale proceeds to repurchase the same securities (no wash-sale applies to gains), maintaining your allocation.
Example: A single filer earns $25,000 of wages in a sabbatical year. The 0% bracket extends to $47,025, leaving $22,025 of available space. The filer realizes $22,025 of long-term capital gains by selling appreciated positions. These gains are taxed at 0%. The filer immediately repurchases the same securities with the proceeds, maintaining the portfolio's intended allocation but now with a higher cost basis (the new purchase price instead of the original lower cost).
The Roth Conversion Context
Tax-gain harvesting is distinct from—but complements—Roth conversions in early retirement. A Roth conversion requires paying tax on the Traditional IRA balance converted, which consumes bracket space. Gain harvesting uses remaining bracket space to realize investment gains.
Example: A 55-year-old retires with no income. The standard deduction gives them $14,600 of income before tax. The 0% capital gains bracket extends to $47,025. This creates:
- First $14,600: no ordinary income tax (covered by standard deduction).
- Next $32,425 (up to $47,025): long-term capital gains at 0%.
The retiree should harvest $32,425 of gains in this year, realizing them at 0% federal tax. In future years when Social Security and Required Minimum Distributions create more income, this capacity disappears.
Transitional Years and Early Retirement
The most common gain-harvesting scenario is early retirement. A 55-year-old leaves paid employment and plans to live off portfolio draws until age 62 (Social Security start date) or later.
Years 55-62: No earned income, no pension, no Social Security. Ordinary income is zero (or minimal). The 0% capital gains bracket is nearly empty. Harvest gains aggressively.
Age 62+: Social Security begins ($30,000–$50,000 annually for many). This fills the 0% bracket, reducing or eliminating harvesting capacity.
A disciplined harvesting approach:
| Year | Earned Income | Gains Harvested | Federal Tax |
|---|---|---|---|
| 55 | $0 | $47,000 | $0 |
| 56 | $0 | $47,000 | $0 |
| 57 | $0 | $47,000 | $0 |
| 58 | $0 | $47,000 | $0 |
| 59 | $0 | $47,000 | $0 |
| 60 | $0 | $47,000 | $0 |
| 61 | $0 | $47,000 | $0 |
| 62+ | $0 + $40k SS | $7,000 (partial) | $0 |
Over ages 55-61, harvesting $329,000 of gains at 0% federal tax saves $49,350 (at 15% rates that would apply in higher-income years). This is not a loan that must be repaid; it is a permanent tax reduction.
After age 62, when Social Security creates ordinary income, the 0% bracket fills. Gains realized after that point face 15% federal rates. The strategy requires planning and patience: over-harvesting in low years leaves no cushion for dividends and interest income that push you into higher brackets.
State and Local Taxes
Federal long-term capital gains rates are favorable, but state and local taxes can erode this benefit. Some states—California, New York, Oregon, and others—tax capital gains as ordinary income.
- California: Capital gains taxed as ordinary income. No preferential rate. Top rate 13.3%.
- New York: Capital gains taxed as ordinary income. Top rate 10.9%.
- Washington: No income tax, but 7% capital gains tax (created 2022).
- Texas, Florida, Nevada: No income or capital gains tax.
For a California resident harvesting gains in the 0% federal bracket, state taxes still apply at their marginal rate (up to 13.3%). The "0%" benefit is misleading; the true rate is 13.3%.
This dramatically reduces the appeal of gain harvesting in high-tax states. A married couple in California with $47,025 of 0% federal bracket space must account for California's 9.3% capital gains tax (for most high earners). The true cost is 9.3%, not 0%.
Strategy implication: High-tax-state residents should consider strategic relocation for gain-harvesting years. A Californian might move to Texas or Nevada for a year, establishing residency, then harvest gains before moving back. This is complex but can save $50,000+ on a $500,000 harvest.
Alternatively, gain harvesting remains valuable even with state taxes: a 13.3% state rate is still far better than combining federal (15%) and state (13.3%) = 28.3%. Harvesting during a low federal bracket still reduces lifetime taxes by the federal benefit.
The Role of Qualified Dividend Income
Qualified dividends (dividends from US corporations held for >60 days) are also taxed at long-term capital gains rates. This is important for gain harvesting: a portfolio paying 2% annual dividends uses up bracket space just like realized gains.
If you're harvesting gains to fill the 0% bracket, account for dividends. A $1 million portfolio paying 2% dividends generates $20,000 of qualified dividend income annually. Your true available bracket space for gain harvesting is reduced by this amount.
Example: A single retiree with no other income has $47,025 of 0% bracket space. Their stock portfolio pays $20,000 in qualified dividends. Available space for gain harvesting is $27,025, not $47,025.
This is why dividend-heavy portfolios are less suitable for gain harvesting: the dividends fill the 0% bracket without requiring any sales. Growth-heavy portfolios are better, as they produce fewer realized gains and dividends, leaving more bracket space available.
Identifying Harvest-Ready Securities
To execute gain harvesting, you need appreciated securities ready to sell. Building this requires multi-year planning:
- Mental accounting: Keep track of which securities have long-term gains (held >1 year) vs. short-term gains (held <1 year).
- Avoid clustering buys: Don't buy all your growth positions in the same month. Stagger purchases so different securities cross the 1-year threshold at different times, giving you flexibility.
- Prioritize securities with largest gains: If you must choose which securities to sell, sell the ones with the largest unrealized gains first. This minimizes the number of securities sold and simplifies rebalancing.
- Consider valuation: Harvest gains from securities that seem overvalued or have appreciated far beyond your allocation target. If a position is 20% of your portfolio (should be 10%), harvesting half of it achieves rebalancing plus gain realization.
For a long-term investor, the natural rebalancing process provides opportunities. If a stock position has doubled in five years and now represents 15% of a 10% target allocation, harvesting it to rebalance is both tax-optimal and portfolio-optimal.
Real-World Examples
Scenario 1: Early Retirement Gain Harvesting
A 58-year-old leaves employment with a $2 million taxable portfolio. She has no earned income and will wait until age 67 for Social Security (higher benefit).
Years 58-66: She has zero ordinary income. The 0% bracket is available at nearly full capacity each year.
In each of these 9 years, she harvests $47,025 of long-term gains at 0% federal tax. (She pays state tax, assumed 5% = $2,351 per year, or roughly $21,000 total.)
Total harvested: $423,225. Federal tax: $0. State tax: ~$21,000.
If she had not harvested and sold the same securities at age 68 when receiving $50,000 of Social Security (pushing her into 15% federal bracket), those gains would face 15% federal + 5% state = 20% combined, costing $84,645 in taxes.
Savings: $84,645 − $21,000 = $63,645 over her lifetime.
Scenario 2: Sabbatical Gain Harvesting
A 50-year-old employed professional takes a 1-year sabbatical. During the sabbatical year, she earns no income. Her taxable income is $0.
She harvests $47,025 of long-term capital gains (married filing jointly, assuming $0 other income). Federal tax: 0%. State tax: ~$5,000 (assuming 10.6% rate).
This single year of harvesting locks in $47,025 of gains at rates far better than the 24-32% rates she'll face in regular employment years.
If her salary is $150,000, her marginal rate in employment years is 32% federal + 10% state = 42%. Not harvesting during the sabbatical year costs her roughly $19,800 in additional taxes (42% − 10% = 32% on $47,025).
Scenario 3: Business Owner Lumpy Income
A self-employed consultant earns $400,000 in Year 1, $100,000 in Year 2, and $300,000 in Year 3.
In Year 2, her marginal tax rate is lower. She harvests $47,025 of gains at roughly 24% federal (in the $100,000 income year), compared to 35% if she waited until Year 3.
Savings: 11% on $47,025 = $5,172.
This seemingly small one-year savings compounds over decades. If the $47,025 in proceeds is reinvested at 7% annually for 30 years, the tax savings compounds to $40,000+ in additional portfolio value.
Common Mistakes
1. Harvesting gains without a plan to reinvest. You realize $50,000 of gains and pay federal tax. If you leave the proceeds in cash, you've created a tax drag without maintaining market exposure. Always reinvest immediately.
2. Confusing gain harvesting with market timing. Gain harvesting is not about selling "high." It's about tax-rate arbitrage: selling during low-bracket years. The price of the security is irrelevant.
3. Over-harvesting and pushing into higher brackets. You realize $60,000 of gains and push your income from the 0% bracket into the 15% bracket. The excess gains now face 15% tax, negating the strategy. Calculate bracket space carefully.
4. Ignoring state taxes. A "0%" federal harvest is 10% in California. This is still favorable compared to 35% in high-income years, but not 0%. Account for state taxes in your analysis.
5. Harvesting short-term gains. Short-term capital gains (held <1 year) are taxed as ordinary income, at rates up to 37%. Only harvest long-term gains (held >1 year) in low-bracket years; short-term gains should be harvested in years when they'll offset losses.
6. Not coordinating with partner/spouse. In a married household, coordinate harvesting across both spouses' accounts to use the full family bracket space. A couple in the 0% bracket has almost $94,000 of room ($47,025 × 2), not $47,025.
FAQ
Q: Can I harvest gains and then immediately sell them again without wash-sale issues? A: Yes. Wash-sale applies to losses, not gains. You can realize a gain, pay tax, reinvest immediately, and sell again tomorrow. There's no wash-sale rule for gains.
Q: What if I harvest gains but then the stock price falls? A: You've locked in a higher cost basis (from the reinvestment at today's price). If the stock later falls, you'll have a loss. You've essentially traded a certain tax cost today for a potential loss tomorrow. The tax benefit is immediate; the market risk is real. Only harvest gains you're comfortable realizing, regardless of future market moves.
Q: Should I harvest gains or realized losses first? A: Harvest losses first to offset gains. Realized losses are more valuable (they reduce future tax bills), so use them against gains before harvesting gains in low-bracket years. The strategy is: (1) harvest losses opportunistically throughout the year, (2) realize any other gains needed for rebalancing, then (3) harvest additional gains in low-bracket years to fill remaining bracket space.
Q: Does gain harvesting work if I receive a substantial bonus or freelance income in my low-bracket year? A: Less effectively. If your sabbatical year includes a $100,000 freelance project, your 0% bracket fills with ordinary income and gets no harvesting room. Plan for true low-income years, not years with lumpy income.
Q: Can I harvest gains in a Roth IRA? A: No. Inside any retirement account (Roth, Traditional, or 401k), gains are not taxed. There's no tax benefit to realizing them, and you cannot withdraw gains before age 59.5 without penalties (except Roth early withdrawal rules). Gain harvesting only makes sense in taxable accounts.
Related Concepts
- Capital gains: Profit from selling a security above its cost basis; long-term gains (>1 year) are taxed at 0%, 15%, or 20%; short-term gains are taxed as ordinary income.
- Bracket space: The amount of taxable income remaining before moving to the next higher tax bracket.
- Ordinary income: Income from wages, business, interest, and short-term capital gains; taxed at ordinary rates, not favorable capital gains rates.
- Standard deduction: The amount of income exempt from federal tax ($13,850 single, $27,700 married in 2024); reduces ordinary income before calculating bracket space.
- Net Investment Income Tax: A 3.8% additional tax on investment income for high earners (over $200k single, $250k married); affects capital gains and dividend income.
Summary
Tax-gain harvesting is an inverse of loss harvesting: instead of capturing losses opportunistically, you deliberately realize gains during low-bracket years to minimize lifetime taxation. Retiring early, taking a sabbatical, or experiencing a business downturn creates years with minimal ordinary income, leaving substantial capacity in the 0% capital gains bracket.
A married couple can realize up to $94,050 of long-term gains in a zero-income year and pay zero federal tax (before accounting for state taxes). Executed over multiple low-income years, this strategy can save $50,000–$100,000+ in cumulative federal taxes.
The key is planning: build a portfolio with appreciated securities, identify transitional years, calculate bracket space carefully, and harvest systematically. The tax benefit compounds over decades, creating a permanent boost to lifetime wealth.
Next
Read the next article: The Step-Up in Basis at Death