Tax-loss harvesting is a strategy that uses investment losses in a taxable account to offset capital gains and, in some cases, ordinary income. It is one of the most widely used tax minimization techniques for investors with significant taxable portfolios, and when executed correctly, it can meaningfully reduce the annual tax drag on your investments over time. For retirees and pre-retirees managing large investment portfolios alongside IRA assets, tax-loss harvesting is a valuable tool that works in coordination with Roth conversion planning and broader income management. At Q3 Advisors, we help clients identify and execute tax-loss harvesting opportunities as part of a comprehensive retirement tax strategy.
How Tax-Loss Harvesting Works
When you sell an investment in a taxable account at a loss, that loss can be used to offset capital gains you have realized elsewhere in your portfolio. If your losses exceed your gains, up to $3,000 of net losses can be deducted against ordinary income per year ($1,500 if married filing separately). Any remaining losses beyond the $3,000 limit carry forward to future tax years indefinitely. The $3,000 cap is set by IRC §1211(b) and has been frozen since 1978, meaning it covers less in real terms each year, which is why systematic harvesting and strategic carryforward management both matter more for high-net-worth investors over time.
The process involves three steps: identifying positions in your taxable portfolio that are currently worth less than what you paid for them, selling those positions to realize the loss, and immediately reinvesting the proceeds in a similar (but not identical) investment to maintain your target asset allocation. The key constraint is the wash-sale rule, which prevents you from buying back the same or substantially identical security within 30 days before or after the sale.
Short-Term vs. Long-Term Capital Losses
Not all capital losses are treated equally. The IRS distinguishes between short-term losses (from assets held one year or less) and long-term losses (from assets held more than one year). Short-term losses first offset short-term gains, which are taxed as ordinary income at rates as high as 37%. Long-term losses first offset long-term gains, which are taxed at preferential rates of 0%, 15%, or 20% depending on your income. (For 2026, the 0% rate applies to long-term gains for single filers with taxable income up to $49,450 / MFJ up to $98,900, with the 20% rate applying above $545,500 single / $613,700 MFJ, per IRS Rev. Proc. 2025-32.)
Talk With Craig Wear's Team
Craig has helped IRA millionaires save over $1 million each in unnecessary taxes. Find out if a Roth conversion strategy fits your retirement, with no sales pressure and no product pitch.
If your short-term losses exceed your short-term gains, the excess can be applied to long-term gains. Similarly, excess long-term losses can offset short-term gains. The ordering rules work to your advantage in practice, but the most valuable application of tax-loss harvesting is using short-term losses to offset short-term gains that would otherwise be taxed at your full ordinary income rate.
The Wash-Sale Rule: The Most Important Constraint
The wash-sale rule (IRC §1091) is the primary limitation on tax-loss harvesting. If you sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale, the IRS disallows the loss. The disallowed loss is not permanent, it is added to the cost basis of the replacement security and effectively deferred until you sell the replacement position.
The window is 30 days BEFORE the sale plus 30 days AFTER, plus the sale day itself, a 61-day total window. The rule applies across all your accounts, including IRAs, 401(k)s, and your spouse’s accounts. Critically, repurchasing in an IRA within the window permanently disallows the loss, because IRA cost basis cannot be adjusted, the deferred-loss-into-basis mechanic doesn’t work. This is the most expensive wash-sale mistake we see.
Avoiding a wash sale requires selling the losing position and replacing it with a different but economically similar investment. For example, if you sell an S&P 500 index fund at a loss, you might replace it with a total market index fund or a large-cap growth ETF to maintain similar market exposure without triggering the wash-sale rule. The 30-day window applies both before and after the sale, so you must be careful not to have purchased the identical security recently as well. The IRS has not provided a comprehensive definition of “substantially identical,” so most practitioners treat funds tracking the same index (e.g., VOO and IVV both tracking the S&P 500) as a gray area worth avoiding, while funds tracking different but correlated indices (e.g., S&P 500 and total market) are generally considered safe.
Tax-Loss Harvesting in the Context of Retirement Planning
For retirees with both taxable and tax-deferred accounts, tax-loss harvesting interacts with several other planning considerations.
- Offsetting capital gains during a Roth conversion year: A Roth conversion generates ordinary income, not capital gains, so realized capital losses don’t directly offset the conversion. But they CAN offset other capital gains in the same year (lowering your overall AGI and creating room for a larger conversion at the same total bracket level), and up to $3,000 of net losses can offset the conversion’s ordinary income directly. Larger carryforward losses build a “future tax cushion” that can be deployed against gains in years when you also want to convert. For retirees executing a multi-year Roth conversion plan, this coordination matters more than the modest direct $3,000 offset.
- Managing MAGI for IRMAA: Because net capital gains add to your MAGI and can trigger IRMAA surcharges, reducing gains through loss harvesting can have a secondary benefit of keeping your Medicare costs lower. For more on how capital gains affect Medicare premiums, see our guide on how Roth conversions impact your Medicare premiums.
- Carryforward losses as future tax insurance: Losses that exceed the current year’s gains and the $3,000 ordinary income deduction carry forward indefinitely. Accumulated carryforward losses can be extremely valuable in a year when you need to liquidate appreciated positions, take a large capital gain, or execute a particularly large Roth conversion.
- Step-up in basis at death: One nuance worth considering is that if you intend to hold an investment until death, the step-up in basis at death could eliminate the embedded gain entirely. In that case, realizing a small loss now may not be as valuable as simply holding the position. Tax-loss harvesting decisions should consider your overall estate plan and whether you intend to bequeath the position. For more on this trade-off, see our guide to step-up in basis estate planning.
For more on coordinating tax-loss harvesting with broader Roth conversion planning, see our multi-year Roth conversion framework and our critical insights on Roth conversions and RMDs.
Common Tax-Loss Harvesting Mistakes to Avoid
Tax-loss harvesting adds value when executed carefully. Several common errors can reduce or eliminate its benefits.
- Triggering the wash-sale rule: The most common mistake. Buying back the same fund across accounts (including IRAs) within the 30-day window can inadvertently trigger a wash sale. IRA purchases are particularly costly because the disallowed loss cannot be added to the IRA’s cost basis, it is permanently lost rather than just deferred.
- Harvesting small losses with high transaction costs: If the tax savings from a harvested loss are smaller than the brokerage commissions or bid-ask spread costs of executing the trade, the strategy destroys value rather than creating it. This is less of a concern with commission-free brokers and liquid ETFs, but still worth evaluating.
- Ignoring long-term portfolio drift: Repeatedly harvesting losses and replacing with similar-but-different funds can gradually shift your portfolio away from its target allocation if not actively managed. Regular rebalancing discipline must accompany tax-loss harvesting.
- Deferring too much gain recognition: The goal is not to avoid all capital gains forever. Constantly deferring gains while adding carryforward losses can result in very large embedded gains that will eventually be taxed, potentially at higher rates. The strategy works best when integrated with a long-term realization plan.
- Forgetting about reinvested dividends: Automatic dividend reinvestment (DRIP) within the 30-day wash-sale window can inadvertently trigger the rule on a position you intentionally sold for a loss. Many practitioners disable DRIP on positions they’re actively harvesting.
Frequently Asked Questions
Can I use tax-loss harvesting in my IRA or 401(k)?
No. Tax-loss harvesting only applies to taxable investment accounts. Losses realized inside an IRA or 401(k) have no tax consequence because gains in those accounts are already sheltered from current taxation. The tax efficiency strategy for retirement accounts is a different type of planning, focused on account type, withdrawal sequencing, and Roth conversion decisions.
How much can tax-loss harvesting save each year?
The savings depend on the size of your taxable portfolio, market volatility during the year, your tax bracket, and the types of gains being offset. Research from Vanguard and other institutions suggests that systematic tax-loss harvesting can add between 0.5% and 1.5% per year in after-tax returns over long periods, though returns vary significantly from year to year depending on market conditions.
What is a good replacement investment to avoid the wash-sale rule?
Good replacement investments are those that provide similar market exposure but are not substantially identical to the sold position. For example, replacing Vanguard Total Stock Market ETF (VTI) with iShares Core S&P 500 ETF (IVV) maintains broad U.S. equity exposure without violating the wash-sale rule. The IRS has not defined exactly what constitutes substantially identical, but different fund managers tracking different indices are generally considered safe.
Should I harvest losses even when markets are going up?
Even in a rising market, individual securities or sectors within a diversified portfolio often experience periods of decline. Systematic loss harvesting throughout the year, rather than waiting until year-end, can capture these opportunities. Many robo-advisors and tax-aware investment managers monitor portfolios continuously for harvesting opportunities, which maximizes the annual benefit.
Does the $3,000 cap on offsetting ordinary income ever increase?
No. The $3,000 cap is set by IRC §1211(b) and has been frozen since 1978. It is not indexed for inflation. Married couples filing separately are limited to $1,500 each. Because the cap is fixed in nominal dollars, its real value erodes over time, which is one reason building strategic carryforward losses for future use is more valuable for high-net-worth investors than relying on the modest $3,000 annual offset against ordinary income.
Integrate Tax-Loss Harvesting Into Your Overall Retirement Tax Plan
Tax-loss harvesting is most powerful when it works in concert with your Roth conversion strategy, retirement account withdrawal sequencing, and MAGI management for Social Security and Medicare purposes. In isolation, it saves taxes. As part of a coordinated tax plan, it can substantially compress your lifetime tax burden. Q3 Advisors, led by Craig Wear, CFP®, helps IRA millionaires and pre-retirees build comprehensive tax strategies that include taxable account optimization alongside Roth planning and income management throughout retirement.
Call (720) 730-5650 or schedule a consultation to discuss how tax-loss harvesting fits into your broader retirement tax plan.