Tax-Loss Harvesting Explained

Tax-Loss Harvesting Explained: How It Works and When It Pays Off

share:
Facebook
Twitter
LinkedIn

If you hold a taxable brokerage account, some of your positions will spend part of the year underwater. That’s not a problem to wait out, it’s an asset most investors leave sitting on the table. Tax-loss harvesting is the practice of selling a position at a loss on purpose, using that loss to cut your tax bill, and immediately reinvesting in something similar so your portfolio keeps doing its job. Done well, it lowers what you owe without changing your market exposure. Done carelessly, it trips the wash sale rule and the benefit evaporates.

District Capital Management is a fee-only, fiduciary financial planning firm in Washington, DC, founded in 2013. We work with high-earning professionals across the DMV and nationwide, and tax-loss harvesting is one of the most underused tools we see in taxable accounts, especially among tech professionals with concentrated equity and dual-income households juggling several accounts at once. This guide covers how it works, the wash sale trap that catches most people, and when it genuinely pays off.

Key Takeaways

  • Tax-loss harvesting sells a losing position to realize a capital loss, uses it to offset capital gains (no limit) or up to $3,000 of ordinary income per year, then reinvests in a similar, not identical security to stay in the market.
  • The wash sale rule disallows the loss if you buy a substantially identical security within 30 days before or after the sale, in any of your accounts, including an IRA, 401(k)/TSP, or your spouse’s. Trigger it inside a retirement account and the loss is gone for good.
  • It only works in taxable accounts. Losses inside an IRA, Roth IRA, 401(k), or TSP aren’t reportable and produce no tax benefit.
  • The benefit is real but partly a deferral, harvesting lowers your cost basis, so it works best when your tax rate is high now and likely lower later.

What Is Tax-Loss Harvesting, and How Does It Work?

Tax-loss harvesting is selling a security in a taxable account for less than you paid, realizing the capital loss, and using it to offset capital gains or up to $3,000 of ordinary income, while reinvesting in a similar security so you stay in the market. The goal is not to exit; it’s to keep your exposure while shrinking your tax bill.

The mechanics are four steps:

  1. Identify a position in your taxable brokerage account worth less than you paid for it.
  2. Sell it and realize the capital loss.
  3. Immediately reinvest the proceeds in a similar, but not substantially identical security, so your allocation stays intact.
  4. Apply the loss: it offsets your realized capital gains first, then up to $3,000 of ordinary income; anything left over carries forward.

How Much Can You Deduct? The $3,000 Rule and the Carryforward

Harvested losses offset an unlimited amount of capital gains; if your losses exceed your gains, you can deduct up to $3,000 against ordinary income per year, $1,500 if married filing separately, and the rest carries forward indefinitely (IRS Publication 550).

Say you harvest $25,000 of losses in a year when you also have $12,000 of realized gains. The loss erases the $12,000 gain, another $3,000 comes off your ordinary income, and the remaining $10,000 carries into future years — ready to offset a future gain or shave $3,000 off ordinary income again.

For clients with sizable taxable accounts, that carryforward becomes a stored tax asset. We keep a running carryforward ledger for every client with a taxable account, so the balance gets deployed on purpose, ideally into a high-gain year like a business sale or a large RSU vest, rather than trickling away $3,000 at a time.

The Wash Sale Rule — and the Cross-Account Trap Most Investors Miss

The wash sale rule disallows your loss if you buy a substantially identical security within 30 days before or after the sale, a 61-day window in total, and, critically, it applies across all of your accounts, not just the one you sold from (IRS Publication 550). In a taxable account the disallowed loss is added to the cost basis of the replacement, so it’s deferred rather than destroyed. In a retirement account, it’s simply lost. What counts as “substantially identical”:
  • The same stock or fund you just sold.
  • Options or contracts to buy the same security.
  • A fund tracking the same index from a different provider — selling one S&P 500 ETF and buying another S&P 500 ETF is widely treated as a wash sale risk, even with a different ticker.
What’s generally considered safe:
  • Selling Vanguard Total Stock Market (VTI) and buying iShares Core S&P Total U.S. Stock Market (ITOT) — different index, similar broad exposure.
  • Selling a large-cap growth ETF and buying a broad total-market ETF.
  • Selling an individual stock and buying the sector ETF it belongs to.
Here’s the trap we see most often: the rule follows you across every account you control. If you sell a fund at a loss in your brokerage account and your automatic payroll contribution buys that same fund in your 401(k) or TSP three days later, you’ve triggered a wash sale. And because the replacement happened inside a retirement account, the disallowed loss doesn’t get added to basis, it’s gone for good. The same applies to a purchase in your spouse’s account if you file jointly, and to dividend reinvestment (DRIP) you forgot to switch off. For the dual-income DMV households and federal employees we work with, often running a brokerage account, two 401(k)s or a TSP, and a couple of IRAs at once. this is the single most common way a good harvest gets quietly undone. To keep it clean, we maintain a replacement-security map: for each fund a client commonly holds, a pre-vetted, non-identical substitute, so they can harvest quickly in a downturn without guessing whether a swap is safe.

Tax-Loss Harvesting vs. Tax-Gain Harvesting

These are mirror-image strategies: harvest losses when your bracket is high and you have gains to offset; harvest gains when your bracket is temporarily low enough to realize them at the 0% long-term rate.
Tax-Loss Harvesting Tax-Gain Harvesting
What you do Sell positions at a loss Sell positions at a gain
Primary goal Offset gains or reduce ordinary income Lock in gains at a lower rate; reset basis higher
Best used when You have gains to offset or expect high income You’re in the 0% long-term capital gains bracket
Bracket target Higher brackets (32%+) Low-income years (0% LTCG: ≤ $98,900 MFJ / ≤ $49,450 single, 2026)
Result Immediate tax offset; a lower future basis Higher future basis; less gain taxed later
Key risk Wash sale rule Pulling income into the current year by accident
Two opposite tools for two opposite years: loss-harvesting for high-income years, gain-harvesting for low-income ones (2026 figures; IRS). For 2026, the 0% long-term capital gains rate applies to taxable income up to $98,900 for married couples filing jointly and $49,450 for single filers (IRS, 2026). Tax-gain harvesting shines in a transitional low-income year, a sabbatical, parental leave, a startup year, or the gap between early retirement and Social Security, when you can reset your cost basis higher at no federal tax cost.

Tax-Loss Harvesting in Action: A Hypothetical Example

Tax-loss harvesting cuts your tax by lowering your net capital gains for the year — your realized loss is subtracted from your realized gains before the tax rate is applied. Consider Jamie, a hypothetical DC tech professional (illustrative only, not a client or an actual result). Early in the year she realized $18,000 of long-term gains. She also holds a bond fund now worth $40,000 that she bought for $55,000, a $15,000 unrealized loss. She sells the bond fund, harvests the $15,000 loss, and immediately reinvests in a similar, not identical bond fund to keep her fixed-income allocation intact.
Without harvesting With harvesting
Net capital gains $18,000 $3,000 ($18,000 − $15,000)
Long-term rate (15%; IRS, 2026) 15% 15%
Federal tax on those gains $2,700 $450
Illustrative federal tax on the gains only, at a 15% long-term rate (2026); state tax and the rest of Jamie’s return are not shown. In this illustration, the loss reduces the net taxable gain from $18,000 to $3,000, and the tax on those gains from $2,700 to $450, with no change to her actual portfolio. The $15,000 loss did the work; it had simply been sitting unused until she acted on it. Note: Jamie is a hypothetical scenario for illustration. Individual results vary, tax outcomes depend on your full situation, and nothing here is guaranteed.

Does Tax-Loss Harvesting Actually Save Money, or Just Defer It?

Tax-loss harvesting is partly a deferral, not a pure discount; when you reinvest, your new position carries a lower cost basis, so a larger gain waits down the road. The strategy pays off when you harvest at a high rate today and eventually realize the deferred gain at a lower rate, or never realize it at all because the basis steps up to your heirs. That framing matters, because it tells you when harvesting is worth the effort and when it isn’t: If your future tax rate will be higher than today’s, harvesting can actually cost you. The benefit is largest for high-bracket investors with gains to offset. For someone in a low bracket holding broad, low-cost index funds with few gains, it’s often marginal. Thinly traded replacement funds can carry wider bid-ask spreads. Don’t let trading friction or a worse fund eat the tax saving. It adds real tracking work: cost basis, holding periods, and that 61-day window across every account. Automated “robo” harvesting can help, but it only sees the accounts it’s linked to, which is exactly where cross-account wash sales hide. Our general view: harvest deliberately, not reflexively. A loss is worth capturing when it offsets a real gain or a coming one and the replacement fund is genuinely comparable, not simply because the market dipped.

When Tax-Loss Harvesting Makes the Most Sense — and When to Skip It

Tax-loss harvesting delivers the most value to investors in the 32% federal bracket or above who hold a taxable account with both unrealized losses and realized (or expected) gains in the same year. It’s worth doing when:
  • You have gains this year, or a large gain coming, such as a business sale, an RSU vest, a property sale, or a big rebalance.
  • You’re in a high federal bracket, where each dollar of offset saves the most.
  • You have carryforward losses to deploy strategically into a high-gain year.
Skip it (or think twice) when:
  • The position sits in a tax-advantaged account. Gains and losses inside an IRA, Roth IRA, 401(k), or TSP aren’t reportable, so selling at a loss there does nothing for your taxes. Tax-loss harvesting is a taxable-account-only strategy.
  • You have no gains to offset now or soon and you’re already in a low bracket.
  • You can’t find a comparable replacement without drifting from your target allocation.
One local note: the $3,000 ordinary-income offset is a federal figure. DC, Maryland, and Virginia each handle capital losses a little differently on the state return, so the state-level benefit isn’t automatic,  worth checking before you count on it. For clients with both taxable and tax-advantaged accounts, we fold harvesting into the broader fee-only planning process, coordinated with Roth conversions, HSA contributions, and income timing, so the aim is the lowest lifetime tax, not the lowest bill in any single year. Loss-harvesting has become a widely discussed year-end move; Alvin has spoken with Investopedia about using it to offset stock losses. Schedule a free discovery call to see how tax-loss harvesting fits into your overall investment and tax strategy.

Frequently Asked Questions

What is tax-loss harvesting?

Tax-loss harvesting is selling an investment at a loss in a taxable account to offset capital gains, or up to $3,000 of ordinary income per year, then reinvesting in a similar, not substantially identical, security to keep your market exposure. Unused losses carry forward indefinitely (IRS Publication 550). The portfolio stays intact; the tax bill shrinks.

What is the wash sale rule?

The wash sale rule disallows a capital loss if you buy the same or a substantially identical security within 30 days before or after the sale — a 61-day window — in any of your accounts, including retirement accounts and a spouse’s account (IRS Publication 550). In a taxable account the loss is added to the replacement’s basis; in a retirement account it’s lost permanently.

Does tax-loss harvesting work in an IRA or 401(k)?

No. Gains and losses inside IRAs, Roth IRAs, 401(k)s, and the TSP aren’t reportable on your tax return, so selling at a loss there produces no tax benefit. Tax-loss harvesting only helps in a taxable brokerage account.

Does tax-loss harvesting actually save money, or just delay taxes?

Partly both. Reinvesting after a harvest lowers your cost basis, so some of the gain is deferred, not erased. The net win comes from paying at a lower rate later, or never, if the basis steps up to heirs. It’s most valuable when your current bracket is high and your future bracket is likely lower.

What's the difference between tax-loss and tax-gain harvesting?

Tax-loss harvesting sells losers to offset gains or income, best in high-bracket years. Tax-gain harvesting deliberately realizes long-term gains in a low-income year to use the 0% long-term rate (taxable income up to $98,900 MFJ or $49,450 single in 2026; IRS). Both cut lifetime taxes but work in opposite income conditions.

Does District Capital Management help with tax-loss harvesting?

Yes. District Capital Management is a fee-only, fiduciary financial planning firm in Washington, DC, and tax-efficient investing, including tax-loss harvesting, wash sale compliance, and coordination with Roth conversions and income planning, is part of our investment process. Schedule a free discovery call to discuss your taxable account.

Last updated: September 2026

share:

Disclaimer: District Capital Management is a registered investment adviser. The information provided in this blog is for educational and informational purposes only and should not be construed as investment advice. Investing involves risk, including the possible loss of principal. Nothing in this blog should be interpreted to state or imply that past results are an indication of future performance. We recommend that you consult with a qualified financial advisor before making any investment decisions.

District Capital is an independent, fee-only financial planning firm. We help professionals and entrepreneurs in their 30s and 40s elevate their finances and maximize their money. We are based in Washington, D.C and we work with people virtually nationwide.

Search Topics

Financial Advisor Near Me

Recent Posts

Money 101

Ready To Maximize Your Finances?

Schedule A Free Discovery Call With District Capital

Other Great Posts You Might Like

What To Do After Maxing Out Your 401(k) And Roth IRA In 2026

What to do after maxing out 401k and Roth IRA

FREE FINANCIAL TIPS

financial planning in washington dc

Once a month, we send out financial tips and strategies to help you invest smarter, lower your taxes, and grow your wealth.

Join over 2,400 other readers who are making confident financial decisions.