Tax loss harvesting is the practice of selling an investment that has lost value to realize a loss, then using that loss to offset taxable gains. It sounds simple, yet the rules around timing and replacement purchases can trip up even careful investors. This guide explains how the strategy works, what the wash sale rule requires, where tax loss harvesting fits into an investment plan, and which mistakes can be costly. Technical terms are explained in plain language, and tax figures reflect federal rules as of late 2026.
Other factors matter, too. Trading costs and wide bid-ask spreads can reduce the benefits of tax loss harvesting, especially when the losses are small. State tax treatment can differ from federal rules, so consider consulting a tax professional familiar with your state. The annual $3,000 limit on deducting net capital losses against ordinary income may also affect how much you can deduct in a given year.
How Does Tax Loss Harvesting Actually Work?
A loss on paper does not count for tax purposes. It becomes a realized loss only when the investor sells. Tax loss harvesting deliberately realizes losses in a taxable account so they can offset capital gains, which are profits from selling investments above their purchase price. These gains are what harvested losses usually offset.
Losses first offset gains without a dollar limit. Suppose an investor sold one holding for a $10,000 gain and another for a $7,000 loss. The loss offsets $7,000 of the gain, so only $3,000 remains taxable. If losses exceed gains, up to $3,000 of the net loss can reduce ordinary income each year, or $1,500 for a married person filing separately. Any remainder carries forward to later years.
The tactic works only in taxable accounts. Losses inside an IRA or a 401(k) produce no deduction, because those accounts follow different tax rules. Totem Wealth Management lists tax strategies among its services and says it works in coordination with a client’s tax professionals, which suits a tactic that touches both investments and tax filings.
What Is the Wash Sale Rule, and How Long Is the Window?
The wash sale rule blocks a loss when an investor sells a security at a loss and buys the same or a substantially identical security within 30 days before or after the sale. Together, the two periods and the sale date form a 61-day window. A purchase on day 29 or day 31 can make the difference between a usable loss and a disallowed one.
A disallowed loss is not gone forever. It adds to the cost basis of the replacement shares, which is the starting figure used to measure future gains. The tax benefit shifts to a later year instead of vanishing. Even so, the postponement can undo a plan built around a specific tax year.
Several details catch people off guard. The rule applies across accounts, so a purchase inside an IRA can trigger it. A spouse’s purchase can count too. Automatic dividend reinvestment can create a repurchase without anyone noticing. The tax code provides no precise definition of “substantially identical,” so similar funds from different providers require careful review with a tax professional.
When Does Harvesting Make Sense Inside a Portfolio?
Harvesting works best when realized gains exist to offset. Gains often appear after rebalancing, after selling a concentrated position, or after a strong year in one asset. A loss in another holding can soften the tax bill from those sales. Many investors look for opportunities only in December, though regular reviews through the year can catch more of them.
The sale is only half the move. The investor usually wants to stay invested, so the proceeds go into a different holding that fills a similar role. That keeps the target mix intact and supports a diversified portfolio, rather than leaving cash on the sidelines. Spreading risk across assets remains the goal, and harvesting should never undermine it.

Harvesting belongs to a wider approach called tax-efficient investing, which weighs the tax effect of every investment decision. Totem’s guide on how investment planning meets tax planning explains that link. Totem describes its tax strategy process as an initial consultation, analysis, a customized plan, and ongoing monitoring, a rhythm that fits tactics needing regular attention.
How Do Short Term and Long Term Losses Interact?
The holding period shapes the math. Investments held one year or less produce short-term results. Investments held longer produce long-term results. Short-term gains face ordinary income tax rates, while long-term gains generally face lower rates, which makes the type of loss important.
The netting order follows a clear sequence. Short-term losses offset short-term gains first, and long-term losses offset long-term gains first. Then any net loss in one category offsets a net gain in the other. A short-term loss can therefore be especially valuable when short-term gains exist, since it offsets income taxed at higher rates.
Totem’s guide to tax strategies before filing makes the same point about offsetting short-term gains with short-term losses first. Investors who sell a winner after holding it just under a year might want to review the date with an advisor, because a few more weeks can change the character of the gain. Records of purchase dates and costs make every step easier.
What Are the Costs and Limits of Harvesting?
Harvesting defers tax more often than it removes it. The replacement holding usually carries a lower cost basis, so a later sale at the same price produces a larger gain. The benefit comes from timing, because paying tax later can leave money invested longer, and from the chance that the investor realizes gains in a different tax situation.
Ordinary income caps how fast a large loss can be used outside of offsetting gains.
The biggest risk is behavioral. A tax motive can pull a portfolio away from its purpose, leaving a mix that no longer fits the goals. Replacement holdings sometimes carry different risks than the originals, so a diversified portfolio can quietly lose its balance. A written investment policy, which describes how a portfolio should be built and monitored, keeps tax decisions inside the plan instead of above it.
Which Mistakes Make Harvested Losses Disappear?
Most failures come from small timing and tracking errors. Common examples include:
- Buying back the same security within 30 days of the sale
- Forgetting that purchases in an IRA or a spouse’s account count
- Leaving automatic dividend reinvestment turned on for a harvested holding
- Selling in December and repurchasing in early January
- Choosing a replacement that is substantially identical to the sold position
- Harvesting small losses that trading costs consume
- Letting replacement holdings drift away from the target mix
- Skipping records of dates, quantities, and cost basis
A short checklist before each sale, along with a coordinated review by the investment advisor and the tax professional, prevents most of these problems.
Process fixes the rest. A simple routine can start with a list of holdings that have fallen below cost, a check of purchases made in the previous 30 days, and a plan for the replacement. After the sale, the investor waits out the window before considering a return to the original holding. Notes on each step go into a file that the tax professional can review at filing time.
Tax loss harvesting rewards patience, records, and coordination more than clever timing. The tactic can lower a tax bill in the right setting, yet it also lowers cost basis and adds rules that deserve respect. It works best as one piece of tax-efficient investing, not a stand-alone move. Investors who want to see how it fits their own situation can book a free consultation with Totem’s Charlotte team and bring recent statements and last year’s tax return.
Frequently Asked Questions
1. What is tax loss harvesting?
Investors sell holdings at a loss in taxable accounts, then use the realized loss to offset capital gains and, within limits, ordinary income. Unused losses carry forward.
2. How does the wash sale rule work?
The rule disallows a loss if an investor buys a substantially identical security within 30 days before or after the sale. The disallowed loss adds to cost basis.
3. How much loss can be deducted each year?
Losses first offset capital gains without limit. Beyond that, up to $3,000 of net loss ($1,500 if married filing separately) can reduce ordinary income, and the rest carries forward.
4. Does harvesting work in retirement accounts?
No. Losses inside IRAs and 401(k) accounts produce no deductions, so harvesting applies only to taxable accounts. Purchases inside an IRA can still trigger the wash sale rule.
5. Can harvesting hurt a portfolio?
It can, if tax goals override the investment plan. Replacement holdings should preserve the target mix, and a lower cost basis can mean larger gains when sold later.