TaxMaker
Tax

Capital Gains Harvesting: Complete Guide to Tax-Free Investment Gains

Master capital gains harvesting with this comprehensive guide covering 0% tax bracket strategies, timing optimization, wash sale considerations, and long-term tax planning.

Jonathan Blake, CFA, CPA
September 5, 2026
26 min read

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?

ConceptDescriptionBenefit Sell appreciated assetsRealize gains intentionallyLock in profit In low-income yearStay in 0% bracketPay no federal tax Immediately repurchaseSame or similar investmentReset cost basis Higher basisFuture gains reducedLower future taxes

Capital Gains Harvesting vs Tax-Loss Harvesting

FactorGains HarvestingLoss Harvesting Market conditionAssets have appreciatedAssets have depreciated Tax goalRealize at 0% rateOffset gains/income Wash sale rulesDon't applyMust avoid Best timingLow-income yearsAny time with gains to offset ResultHigher cost basisRealized loss, lower basis

0% Capital Gains Tax Bracket

2024 Long-Term Capital Gains Brackets

Filing Status0% Rate Up To15% Rate20% Rate Single$47,025$47,026-$518,900Over $518,900 Married Filing Jointly$94,050$94,051-$583,750Over $583,750 Head of Household$63,000$63,001-$551,350Over $551,350 Married Filing Separately$47,025$47,026-$291,850Over $291,850

Taxable Income Calculation

LineItemExample 1Gross income$80,000 2Subtract: Adjustments-$3,000 3AGI$77,000 4Subtract: Deduction (standard)-$29,200 5Taxable income$47,800 6Room for 0% gains (MFJ)$94,050 - $47,800 = $46,250

Optimal Harvesting Situations

Best Times to Harvest Gains

SituationWhy It WorksHarvesting Potential Year of retirement (before SS)Low incomeHigh Gap year before new jobNo W-2 incomeVery high SabbaticalReduced incomeHigh Graduate schoolStudent statusVery high Year of large deductionsLowers taxable incomeMedium-high Early retirementBefore SS/RMDsHigh

Income Scenarios for Harvesting

Annual Income (MFJ)Standard DeductionTaxable Income0% 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 Process

Execution Steps

StepActionTiming 1Calculate expected taxable incomeOctober-November 2Determine 0% bracket roomNovember 3Identify lots with gainsNovember 4Sell to fill bracketNovember-December 5Wait 1-2 daysSettlement 6Repurchase same investmentAfter settlement 7Document transactionsImmediately

Lot Selection Strategy

Lot CharacteristicPriorityReason Largest unrealized gainHighMaximize basis reset Longest heldMediumAll long-term treatment Multiple small gainsMediumFill bracket precisely Short-term gainsLowHigher tax rate applies

Calculations and Examples

Basic Harvesting Example

Investment DetailsAmount 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

YearTaxable IncomeGains HarvestedTax 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,000NoneN/A Total saved$15,750

Assumes 15% rate avoided on harvested gains

Avoiding Common Pitfalls

Considerations Before Harvesting

ConsiderationImpactAction NIIT threshold3.8% additional taxCheck if AGI > $200,000/$250,000 ACA subsidiesMay reduce subsidiesCalculate full impact State taxesMany states tax gainsFactor into calculation Social SecurityMay increase taxable SSConsider threshold Medicare premiumsIRMAA surchargesCheck 2-year lookback

NIIT (Net Investment Income Tax)

Filing StatusNIIT ThresholdAdditional Tax Single$200,000 MAGI3.8% on lesser of NII or excess MAGI Married Filing Jointly$250,000 MAGI3.8% on lesser of NII or excess MAGI Married Filing Separately$125,000 MAGI3.8% on lesser of NII or excess MAGI

State Tax Considerations

State Capital Gains Treatment

StateCapital Gains TreatmentNote CaliforniaTaxed as ordinary incomeUp to 13.3% New YorkTaxed as ordinary incomeUp to 10.9% TexasNo state income taxNo state consideration FloridaNo state income taxNo state consideration ColoradoTaxed as ordinary income4.4% flat

State-Adjusted Harvesting

ScenarioFederal TaxState TaxTotal Tax 0% bracket, no state tax$0$0$0 0% bracket, 5% state$05%5% 0% bracket, 10% state$010%10% 15% bracket, no state15%$015%

Advanced Harvesting Strategies

Roth Conversion Coordination

StrategyHow It WorksCombined Benefit Convert firstFill ordinary income bracketsLower brackets first Then harvestUse remaining 0% roomDouble tax efficiency Time bothSame low-income yearMaximize opportunity

Bracket-Filling Strategy

Income SourceTax TreatmentFill Order W-2, pension, SSOrdinary incomeFills first Roth conversionOrdinary incomeSecond Long-term gainsPreferential ratesOn top

Example: Combined Strategy

ItemAmountCumulative 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 Considerations

Year-End Harvesting Timeline

DateActionPurpose November 1-15Estimate annual incomeDetermine room November 15-30Identify harvest candidatesSelect lots December 1-15Execute tradesSell and repurchase December 16-31Verify settlementEnsure completion JanuaryReceive 1099sVerify reporting

Settlement Time Requirements

TransactionSettlement TimeConsideration Stock/ETF saleT+1Funds available next day Mutual fund saleT+1Same RepurchaseT+1Complete in 2-3 days Year-end tradesBy December 29Ensure 2024 settlement

Wash Sale Considerations

Wash Sale Rules Don't Apply to Gains

SituationWash Sale RuleImpact Selling at a lossAppliesLoss disallowed Selling at a gainDoes not applyImmediate repurchase OK Harvesting gainsDoes not applyNo waiting period

Immediate Repurchase Options

OptionTimingConsideration Same securityNext dayMost straightforward Similar ETFSame dayDifferent fund, same exposure Mutual fund versionSame dayMay have different structure

Record Keeping

Essential Documentation

DocumentPurposeRetention Original purchase confirmationProve cost basisIndefinitely Sale confirmationDocument harvest7 years Repurchase confirmationNew cost basisIndefinitely 1099-BTax reporting7 years Taxable income calculationProve 0% eligibility7 years

Lot Tracking

DateTransactionSharesPriceCost Basis 1/15/2020Buy100$50$5,000 12/15/2024Sell (harvest)100$85$5,000 12/17/2024Repurchase100$85$8,500

Long-Term Planning

Career Harvesting Opportunities

Life StageIncome LevelHarvesting Opportunity Early careerBuilding incomeLimited Mid-career gapReduced/noneExcellent SabbaticalNoneExcellent Early retirementReducedGood to excellent Pre-RMD retirementLowExcellent Post-RMDHigherLimited

Building a Harvesting Calendar

YearLife EventExpected IncomeHarvest Priority 2026Full employment$150,000Low 2026Career transition$50,000High 2026New job starts$80,000Medium 2027Full employment$160,000Low

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.

Last updated: November 12, 2026

Disclaimer

This content is for informational purposes only and should not be considered financial, tax, or legal advice. Consult with a qualified professional before making financial decisions. TaxMaker strives for accuracy but cannot guarantee all information is current or complete. Past performance does not guarantee future results.