Capital Gains Harvesting: Complete Guide to Tax-Free Investment Gains
While most investors know about tax-loss harvesting, capital gains harvesting—intentionally realizing gains in low-income years—can be equally powerful. This strategy allows you to lock in gains at the 0% capital gains rate, resetting your cost basis for future tax savings.
Understanding Capital Gains Harvesting
What Is Capital Gains Harvesting?
| Concept | Description | Benefit |
| Sell appreciated assets | Realize gains intentionally | Lock in profit |
| In low-income year | Stay in 0% bracket | Pay no federal tax |
| Immediately repurchase | Same or similar investment | Reset cost basis |
| Higher basis | Future gains reduced | Lower future taxes | Capital Gains Harvesting vs Tax-Loss Harvesting | Factor | Gains Harvesting | Loss Harvesting |
| Market condition | Assets have appreciated | Assets have depreciated |
| Tax goal | Realize at 0% rate | Offset gains/income |
| Wash sale rules | Don't apply | Must avoid |
| Best timing | Low-income years | Any time with gains to offset |
| Result | Higher cost basis | Realized loss, lower basis | 0% Capital Gains Tax Bracket2024 Long-Term Capital Gains Brackets | Filing Status | 0% Rate Up To | 15% Rate | 20% Rate |
| Single | $47,025 | $47,026-$518,900 | Over $518,900 |
| Married Filing Jointly | $94,050 | $94,051-$583,750 | Over $583,750 |
| Head of Household | $63,000 | $63,001-$551,350 | Over $551,350 |
| Married Filing Separately | $47,025 | $47,026-$291,850 | Over $291,850 | Taxable Income Calculation | Line | Item | Example |
| 1 | Gross income | $80,000 |
| 2 | Subtract: Adjustments | -$3,000 |
| 3 | AGI | $77,000 |
| 4 | Subtract: Deduction (standard) | -$29,200 |
| 5 | Taxable income | $47,800 |
| 6 | Room for 0% gains (MFJ) | $94,050 - $47,800 = $46,250 | Optimal Harvesting SituationsBest Times to Harvest Gains | Situation | Why It Works | Harvesting Potential |
| Year of retirement (before SS) | Low income | High |
| Gap year before new job | No W-2 income | Very high |
| Sabbatical | Reduced income | High |
| Graduate school | Student status | Very high |
| Year of large deductions | Lowers taxable income | Medium-high |
| Early retirement | Before SS/RMDs | High | Income Scenarios for Harvesting | Annual Income (MFJ) | Standard Deduction | Taxable Income | 0% Room |
| $50,000 | $29,200 | $20,800 | $73,250 |
| $70,000 | $29,200 | $40,800 | $53,250 |
| $94,050 | $29,200 | $64,850 | $29,200 |
| $100,000 | $29,200 | $70,800 | $23,250 |
| $123,250 | $29,200 | $94,050 | $0 | Step-by-Step Harvesting ProcessExecution Steps | Step | Action | Timing |
| 1 | Calculate expected taxable income | October-November |
| 2 | Determine 0% bracket room | November |
| 3 | Identify lots with gains | November |
| 4 | Sell to fill bracket | November-December |
| 5 | Wait 1-2 days | Settlement |
| 6 | Repurchase same investment | After settlement |
| 7 | Document transactions | Immediately | Lot Selection Strategy | Lot Characteristic | Priority | Reason |
| Largest unrealized gain | High | Maximize basis reset |
| Longest held | Medium | All long-term treatment |
| Multiple small gains | Medium | Fill bracket precisely |
| Short-term gains | Low | Higher tax rate applies | Calculations and ExamplesBasic Harvesting Example | Investment Details | Amount |
| Original purchase | $10,000 |
| Current value | $25,000 |
| Unrealized gain | $15,000 |
| 0% bracket room | $20,000 |
| Gain harvested | $15,000 |
| Tax paid | $0 |
| New cost basis | $25,000 | Multi-Year Impact | Year | Taxable Income | Gains Harvested | Tax Saved |
| Year 1 | $50,000 | $40,000 | $6,000 |
| Year 2 | $55,000 | $35,000 | $5,250 |
| Year 3 | $60,000 | $30,000 | $4,500 |
| Year 4 (high income) | $200,000 | None | N/A |
| Total saved | $15,750 | Assumes 15% rate avoided on harvested gains Avoiding Common PitfallsConsiderations Before Harvesting | Consideration | Impact | Action |
| NIIT threshold | 3.8% additional tax | Check if AGI > $200,000/$250,000 |
| ACA subsidies | May reduce subsidies | Calculate full impact |
| State taxes | Many states tax gains | Factor into calculation |
| Social Security | May increase taxable SS | Consider threshold |
| Medicare premiums | IRMAA surcharges | Check 2-year lookback | NIIT (Net Investment Income Tax) | Filing Status | NIIT Threshold | Additional Tax |
| Single | $200,000 MAGI | 3.8% on lesser of NII or excess MAGI |
| Married Filing Jointly | $250,000 MAGI | 3.8% on lesser of NII or excess MAGI |
| Married Filing Separately | $125,000 MAGI | 3.8% on lesser of NII or excess MAGI | State Tax ConsiderationsState Capital Gains Treatment | State | Capital Gains Treatment | Note |
| California | Taxed as ordinary income | Up to 13.3% |
| New York | Taxed as ordinary income | Up to 10.9% |
| Texas | No state income tax | No state consideration |
| Florida | No state income tax | No state consideration |
| Colorado | Taxed as ordinary income | 4.4% flat | State-Adjusted Harvesting | Scenario | Federal Tax | State Tax | Total Tax |
| 0% bracket, no state tax | $0 | $0 | $0 |
| 0% bracket, 5% state | $0 | 5% | 5% |
| 0% bracket, 10% state | $0 | 10% | 10% |
| 15% bracket, no state | 15% | $0 | 15% | Advanced Harvesting StrategiesRoth Conversion Coordination | Strategy | How It Works | Combined Benefit |
| Convert first | Fill ordinary income brackets | Lower brackets first |
| Then harvest | Use remaining 0% room | Double tax efficiency |
| Time both | Same low-income year | Maximize opportunity | Bracket-Filling Strategy | Income Source | Tax Treatment | Fill Order |
| W-2, pension, SS | Ordinary income | Fills first |
| Roth conversion | Ordinary income | Second |
| Long-term gains | Preferential rates | On top | Example: Combined Strategy | Item | Amount | Cumulative |
| Pension income | $30,000 | $30,000 |
| Standard deduction (MFJ) | -$29,200 | $800 |
| Taxable income baseline | $800 | $800 |
| Roth conversion | $50,000 | $50,800 |
| Long-term gains (0% room) | $43,250 | $94,050 |
| Total tax-optimized | $93,250 | Timing ConsiderationsYear-End Harvesting Timeline | Date | Action | Purpose |
| November 1-15 | Estimate annual income | Determine room |
| November 15-30 | Identify harvest candidates | Select lots |
| December 1-15 | Execute trades | Sell and repurchase |
| December 16-31 | Verify settlement | Ensure completion |
| January | Receive 1099s | Verify reporting | Settlement Time Requirements | Transaction | Settlement Time | Consideration |
| Stock/ETF sale | T+1 | Funds available next day |
| Mutual fund sale | T+1 | Same |
| Repurchase | T+1 | Complete in 2-3 days |
| Year-end trades | By December 29 | Ensure 2024 settlement | Wash Sale ConsiderationsWash Sale Rules Don't Apply to Gains | Situation | Wash Sale Rule | Impact |
| Selling at a loss | Applies | Loss disallowed |
| Selling at a gain | Does not apply | Immediate repurchase OK |
| Harvesting gains | Does not apply | No waiting period | Immediate Repurchase Options | Option | Timing | Consideration |
| Same security | Next day | Most straightforward |
| Similar ETF | Same day | Different fund, same exposure |
| Mutual fund version | Same day | May have different structure | Record KeepingEssential Documentation | Document | Purpose | Retention |
| Original purchase confirmation | Prove cost basis | Indefinitely |
| Sale confirmation | Document harvest | 7 years |
| Repurchase confirmation | New cost basis | Indefinitely |
| 1099-B | Tax reporting | 7 years |
| Taxable income calculation | Prove 0% eligibility | 7 years | Lot Tracking | Date | Transaction | Shares | Price | Cost Basis |
| 1/15/2020 | Buy | 100 | $50 | $5,000 |
| 12/15/2024 | Sell (harvest) | 100 | $85 | $5,000 |
| 12/17/2024 | Repurchase | 100 | $85 | $8,500 | Long-Term PlanningCareer Harvesting Opportunities | Life Stage | Income Level | Harvesting Opportunity |
| Early career | Building income | Limited |
| Mid-career gap | Reduced/none | Excellent |
| Sabbatical | None | Excellent |
| Early retirement | Reduced | Good to excellent |
| Pre-RMD retirement | Low | Excellent |
| Post-RMD | Higher | Limited | Building a Harvesting Calendar | Year | Life Event | Expected Income | Harvest Priority |
| 2026 | Full employment | $150,000 | Low |
| 2026 | Career transition | $50,000 | High |
| 2026 | New job starts | $80,000 | Medium |
| 2027 | Full employment | $160,000 | Low |
Using Tools for Tax Planning
Calculate your gains harvesting opportunity using our investment growth calculator and explore more strategies in our year-end tax planning guide.
Conclusion
Capital gains harvesting is a powerful but underutilized strategy for long-term investors. By intentionally realizing gains during low-income years, you can lock in appreciation at a 0% federal rate while resetting your cost basis for future tax savings. The key is identifying opportunities—career transitions, early retirement years, or any period of reduced income—and executing trades before year-end. Combined with Roth conversions and careful bracket management, gains harvesting can save tens of thousands of dollars over a lifetime of investing.