Tax Loss Harvesting: Turn Market Losses Into a Tax Asset
Sell the loser, stay invested, and let the loss offset gains, then $3,000 of ordinary income, then carry forward for decades. Here is the mechanics, the 61-day wash sale window, and the honest cases where harvesting costs more than it saves.
A guide by Taxstra Tax & Accounting · CPA-led tax strategy for business owners
Written by Bryan Martin, CPA, Managing Partner and Founder of Taxstra. Last updated July 19, 2026.
Tax loss harvesting is selling an investment that is down, capturing the loss for tax purposes, and immediately reinvesting in something similar so your portfolio never leaves the market. The loss first cancels capital gains dollar for dollar, then deducts up to $3,000 a year against ordinary income, and whatever remains carries forward indefinitely. Done right, it converts a bad quarter into decades of tax savings. Done carelessly, the wash sale rule quietly erases the loss, or you burn a deduction offsetting gains that were never going to be taxed anyway. The difference is about 60 days of calendar discipline and knowing your own bracket.
How Tax Loss Harvesting Works
A paper loss becomes a tax asset only when you sell
An investment that fell from $50,000 to $35,000 gives you nothing on your tax return while you hold it. Sell it and the $15,000 loss becomes real: a deduction that offsets other gains this year or in any future year. The insight that makes harvesting a strategy instead of surrender is that selling does not mean leaving the market. You immediately buy a similar (not identical) investment, so a rebound benefits you just the same, and the tax loss is banked either way.
Where a $40,000 Harvested Loss Goes
The harvest
Sell the losing position, bank the loss
$40,000
Step 1: offset capital gains
Wipes out $30,000 of realized gains, no limit on this step
$30,000
Step 2: offset ordinary income
Up to $3,000 per year against wages and other income
$3,000
Step 3: carry forward
Rolls into next year and repeats, indefinitely, until used up
$7,000
Hypothetical, illustrative round numbers. The carryforward keeps its short-term or long-term character and never expires during your lifetime, but unused losses die with you.
Two features of the waterfall deserve emphasis. The $3,000 ordinary income offset ($1,500 if married filing separately) is per year, not per loss, and it has not been raised in decades, so a large harvested loss is mostly a gain-offsetting asset, not an income deduction. And the carryforward is indefinite: a $100,000 loss banked in a bad market can sit quietly for years and then erase the gain on a rental property or business sale. Unused losses do die with you, which is a real planning point for older investors sitting on big carryforwards.
The Netting Order: Short-Term Losses Are Worth More
Which losses hit which gains, and why it matters
Losses do not hit gains at random. Short-term losses first net against short-term gains (taxed at ordinary rates, up to 37% federal plus the 3.8% net investment income tax). Long-term losses first net against long-term gains (taxed at 0%, 15%, or 20% plus NIIT). Only after each pile nets internally do the leftovers cross over to the other side.
The order creates a value hierarchy. A short-term loss that lands on short-term gains saves tax at up to 40.8% for a top-bracket investor; the same dollar of loss absorbed by long-term gains saves at most 23.8%. Practical translations: positions held under a year are the most valuable harvests, and an investor with both kinds of gains should realize the loss whose character matches the expensive gain.
| Loss absorbed by | Federal rate it offsets | Value of a $10,000 loss |
|---|---|---|
| Short-term gains (top bracket) | Up to 40.8% | Up to $4,080 |
| Long-term gains (top bracket) | Up to 23.8% | Up to $2,380 |
| Ordinary income ($3,000/yr cap) | Your marginal bracket | $3,000 offsets at up to 37% |
| Gains already in the 0% bracket | 0% | $0, the loss is wasted |
The bottom row is the one the robo-advisor marketing skips, and it gets its own section below. The current 0%, 15%, and 20% bracket breakpoints live on our capital gains tax guide.
A Worked Harvest, Start to Finish
One investor, one December, real arithmetic
Worked example (hypothetical, illustrative round numbers)
In December, an investor holds an international fund down $28,000 and a bond fund down $12,000: $40,000 of harvestable losses. Earlier in the year she rebalanced and realized $22,000 of long-term gains, and she sold a six-month-old position for an $8,000 short-term gain. She sells both losers and immediately buys different funds tracking different indexes in the same asset classes.
The netting: $40,000 of losses absorbs the $8,000 short-term gain (which would have been taxed at her 35% ordinary rate, saving $2,800) and the $22,000 of long-term gains (at 15%, saving $3,300). The remaining $10,000 deducts $3,000 against her salary at 35%, saving $1,050, and carries $7,000 forward.
Total federal savings this year: about $7,150, plus a $7,000 carryforward worth roughly another $1,000 to $2,900 depending on what it eventually offsets. Her portfolio allocation is unchanged. The one real cost: her new funds start with a basis $40,000 lower than her old cost, so some of this is deferral rather than pure savings. Deferral at 0% interest, with the chance the gain is never taxed at all if the shares are held until death or donated.
That last paragraph is the honest frame for the whole strategy: harvesting is mostly a tax deferral machine with a genuinely free kicker (the rate arbitrage between short-term offsets and long-term payback, and the $3,000 ordinary offset). The deferral becomes permanent forgiveness for shares that get a basis step-up at death or go to charity. For everyone else it is an interest-free loan from the IRS, which is still worth taking.
The Wash Sale Rule: 30 Days on Both Sides
The 61-day window that decides whether your loss counts
Buy the same or a substantially identical security within 30 days before or after your loss sale and the loss is disallowed. The window is 61 days counting the sale date, and the "before" half surprises people: shares bought on December 10 can wash a loss you take on December 20, including shares bought automatically by dividend reinvestment or a 401(k) contribution schedule.
The Wash Sale Window: 61 Days, Both Directions
A disallowed loss in a taxable account is deferred, not destroyed: it adds to the basis of the replacement shares and comes back when you sell them. The permanent damage happens across account lines. Under Rev. Rul. 2008-5, repurchasing in your IRA within the window disallows the loss with no basis adjustment anywhere: the deduction is simply gone forever. The rule also reaches your spouse's accounts and accounts you control.
One asset class currently sits outside the rule entirely: cryptocurrency, which the IRS classifies as property rather than a security. Crypto losses can be harvested with an immediate rebuy under current law, an asymmetry Congress keeps proposing to close. The full mechanics, the ETF boundary cases, and the 1099-DA reporting angle are on our crypto wash sale rules guide; this page stays in securities land.
Sitting on losses and not sure what to sell before year-end?
A free initial consultation reviews your positions, gains, and bracket, and maps a harvest that clears the wash sale window.
Book a Free 30-Minute ConsultationReplacement Securities: Similar, Not Substantially Identical
Staying invested without washing the loss
The whole harvest depends on the replacement being different enough. The IRS has never drawn a bright line around "substantially identical," but the working consensus is clear at the edges. Rebuying the identical fund, another share class of the same fund, or an ETF that tracks the exact same index as the fund you sold: asking for trouble. Swapping into a fund from a different sponsor that tracks a different index in the same asset class, a total-market fund for a 500-stock large-cap fund, for example: standard practice with near-identical market exposure.
For individual stocks, the clean answers are an industry ETF (sell the bank stock, hold a financials fund for 31 days) or simply waiting out the window in cash for that slice. One stock is never substantially identical to a different company's stock, so rotating within a sector is also fine. After 31 days you can return to the original position if you want it, at the cost of a second round of transactions and any price movement in between.
Direct indexing industrializes all of this: own the index's individual stocks and a manager (or software) harvests losers stock by stock all year, swapping into correlated names to maintain exposure. In the first years it can produce meaningfully more harvested losses than fund-level harvesting, which is why it has become the default pitch to high earners with large taxable accounts. The trade-offs are fees, hundreds of tax lots, tracking error, and the fact that the harvest naturally dries up as the portfolio appreciates. It earns its fee most clearly for investors with big recurring gains to offset or concentrated stock to diversify gradually.
The RSU Employee: Harvesting's Best Customer
Recurring stock income makes losses unusually valuable
Tech employees paid in RSUs are structurally perfect harvesting candidates: shares arrive every vest at a fresh basis, in a volatile stock, on top of a high salary. Any dip below a recent vest price creates a harvestable loss, and any sale of appreciated older lots creates gains that are often short-term. Losses that offset those short-term gains save tax at 35% or 37% rates, not 15%.
Worked example (hypothetical, illustrative round numbers)
An engineer's March vest delivered shares at $180; the stock now trades at $130. She holds 400 shares from that lot: a $20,000 unrealized loss. She also wants to diversify $50,000 of old low-basis shares carrying a $30,000 long-term gain. Selling both, the $20,000 loss erases two thirds of the gain; tax falls from $30,000 × 15% = $4,500 to $10,000 × 15% = $1,500, saving $3,000 federally, more once state tax counts.
The trap: her next vest is April 15. Shares delivered at vest are an acquisition, so a vest inside the 30-day window washes her loss on the shares she sold. RSU harvesters have to sell more than 30 days after the last vest and more than 30 days before the next one, which for quarterly vesting schedules leaves a genuinely narrow window.
The vest-and-sell math, withholding shortfalls, and lot selection are their own subject: run your numbers through our RSU tax calculator. And for Californians, harvesting is worth more than the federal math alone suggests, since the state taxes capital gains as ordinary income at rates up to 13.3%; see the California capital gains guide.
When Tax Loss Harvesting Is NOT Worth It
The cases where the textbook move loses money
1. Your gains are already taxed at 0%.
If taxable income keeps your long-term gains inside the 0% bracket (up to $49,450 single, $98,900 married filing jointly for 2026), a harvested loss offsets a tax of zero and lowers your future basis for nothing. Retirees in gap years, sabbatical takers, and early-career investors are usually better off doing the opposite: harvesting gains at 0% to step their basis up, which no wash sale rule restricts.
2. You would repurchase at a much lower basis and higher future rate.
Harvesting trades today's deduction for a bigger gain later. That trade loses when today's benefit lands at 15% and the future sale will land at 23.8% plus a state tax you moved into. Deferral is usually worth it; deferral into a predictably higher rate is not. The break-even is your rate today versus your realistic rate at the eventual sale.
3. The friction eats the alpha.
Bid-ask spreads, market movement during a 31-day exile from a concentrated position, imperfect replacement funds, and your own December attention all cost something. Harvesting $2,000 of losses to save $300 while risking a tracking mismatch on a $500,000 portfolio is activity, not strategy. The move earns its keep on meaningful losses, in meaningful brackets, with clean replacements.
4. Mutual fund distributions are about to undo your work.
Buying a replacement mutual fund in late November can put you in line for its December capital gain distribution, taxable income you did not need to acquire. Check estimated distribution dates before choosing the replacement, or use an ETF wrapper, which rarely distributes gains.
5. You are harvesting to justify a bad portfolio.
The tax tail should not wag the investment dog. If the position deserves selling, sell it and take the loss gladly. If it deserves holding, harvest only when a genuinely equivalent replacement exists. Selling a good investment into a worse one to capture a 15% deduction is how people turn a tax strategy into an investment mistake that costs multiples of the savings.
Frequently Asked Questions
Tax loss harvesting rules, answered
Harvest the Losses Without Washing Them Away
A free initial consultation reviews your gains, losses, and bracket, and turns them into a year-end plan that clears every 61-day window.
Book a Free 30-Minute Consultation