Selling profitable holdings and immediately repurchasing the same shares is a tax strategy many overlook. When long-term capital gains fall under the 0% federal bracket, the wash sale rule poses no barrier to this maneuver, effectively resetting the cost basis without a tax bill. This approach, known as tax gain harvesting, is the counterpart to the more familiar tax loss harvesting and offers a legal path to permanently reduce future taxable gains.
The operational logic hinges on a clear distinction in U.S. tax law. The Internal Revenue Code sets three federal tax rates for long-term capital gains: 0%, 15%, and 20%. If your taxable income places you within the 0% bracket, every dollar of qualified long-term gain escapes federal taxation. Meanwhile, the wash sale rule under Section 1091 of the Internal Revenue Code only applies to loss transactions: if you repurchase a substantially identical security within 30 days before or after a sale at a loss, that loss is disallowed. The statute says nothing about gains. The IRS welcomes taxpayers to voluntarily realize gains, so there is no waiting period or restriction on repurchasing. After the transaction, your cost basis is updated to the new purchase price, reducing the unrealized gain you will be taxed on in the future without requiring you to exit the position.
Understanding the Tax Code Support
Two key provisions underpin the legality of this strategy. Section 1(h) of the Internal Revenue Code establishes the preferential tax rates for long-term capital gains, including the 0% bracket. Section 1091, the wash sale rule, explicitly limits its restrictions to losses, stating that a loss is void if you repurchase a substantially identical security within 30 days before or after the sale. The law makes no mention of gains, and the IRS does not prohibit taxpayers from realizing tax-free gains with immediate repurchases.
Determining Eligibility in 2026
Eligibility depends on taxable income, not gross income. For the 2026 tax year, single filers, heads of household, and married couples filing jointly must have taxable income (after the standard or itemized deduction) below the IRS's specified threshold to qualify for the 0% long-term capital gains rate. When combined with the 2026 standard deduction, a married couple can have a six-figure gross income and still fall within the tax-free range. Ideal candidates include retirees with modest income who have not yet started Social Security or required minimum distributions (RMDs), semi-retired couples, individuals on a sabbatical or between jobs, graduate students with securities accounts, and business owners with low annual revenue. A worker earning $150,000 annually from a W-2 job generally cannot use this strategy, as their gains would fall into the 15% or 20% bracket.
A Step-by-Step Guide to Execution
Begin by estimating your total taxable income for 2026, including wages, interest, dividends, IRA withdrawals, and short-term capital gains, then subtract the standard or itemized deduction. Calculate the difference between your current taxable income and the 0% rate ceiling to determine the total long-term gains you can realize tax-free for the year. Select holdings in your portfolio that have been held for over a year and show a paper profit. Sell only enough shares to generate gains that fill the tax-free limit. Any amount exceeding that limit will be taxed at 15%. Immediately repurchase the same number of shares. Your cost basis updates to the current price, reducing your future taxable gain permanently without you ever leaving the market.
Hidden Drawbacks and Risks
Although the realized gains are tax-free at the federal level, they still count toward your adjusted gross income (AGI). This increase can trigger several unintended consequences. It may cause a portion of your Social Security benefits to become taxable or increase the taxable percentage. It can reduce or eliminate premium tax credits for Affordable Care Act (ACA) plans. It may trigger IRMAA surcharges for Medicare Part B and Part D, raising monthly premiums. It can phase out education tax credits, the saver's credit, and student loan interest deductions. Additionally, most U.S. states tax capital gains as ordinary income and do not offer a 0% exemption, so state tax costs may apply. Remember that tax rates are marginal, not applied to the entire gain. If you exceed the tax-free limit by $5,000, only that excess amount is taxed at 15%. However, if the excess is large, the overall tax burden can increase significantly, so it is crucial to use tax software for precise calculations. With the current 10-year Treasury yield at 4.65% and cash yields improving, many investors are adjusting their portfolios. For those meeting the tax-free conditions, cost basis resetting is the lowest-cost legal tax planning tool available.
Comments