Most investors with taxable accounts have heard of tax-loss harvesting. It comes up in year-end planning conversations, it shows up in the marketing material of nearly every automated investing platform, and it is usually described in a sentence or two that makes it sound like free money.
The sentence or two leaves out the parts that determine whether it works. There is one rule that can wipe out the deduction entirely, and there is a reason the savings are smaller over a lifetime than they look in any single year. Both are worth understanding before you build a strategy around the idea.
What Is Tax-Loss Harvesting?
Tax-loss harvesting means selling an investment that has fallen below what you paid for it, which turns a paper loss into a realized one, and then applying that realized loss against gains you have taken elsewhere in the portfolio.
The distinction between paper and realized is the whole mechanism. A position can be down 40% and have no effect at all on this year’s taxes. The tax code does not recognize the loss until the position is sold. Harvesting is simply the act of recognizing it on purpose, at a moment when it is useful, instead of waiting for it to happen as a byproduct of some other decision.
One limit applies before any of this: harvesting only works inside taxable accounts. Gains and losses inside an IRA, a Roth IRA, or an employer retirement plan are not reportable events, so selling a losing position in one of those accounts accomplishes nothing for tax purposes. If most of a household’s equity exposure sits in retirement accounts, the opportunity is smaller than the account balances suggest.
How Capital Losses Offset Capital Gains
Realized losses are applied against realized gains first. If the losses are larger than the gains in a given year, the amount you can then deduct against ordinary income is capped at $3,000, or $1,500 for a married individual filing separately.1
That cap surprises people, because it sounds small next to the size of a loss worth harvesting. Nothing above that cap is wasted, though. An unused net short-term loss carries into the following tax year as a short-term loss, and an unused net long-term loss carries forward as a long-term loss.2 A loss that is still unused in the second year continues forward on the same basis. A large harvest taken in a bad market year can go on sheltering gains for a long time.
Whether the loss is short-term or long-term matters, because the rates on the gains it offsets are not the same. Long-term capital gains, on positions held more than a year, are taxed at 0%, 15%, or 20% at the federal level depending on taxable income.3 Short-term gains are taxed as ordinary income, where the rates run considerably higher. Above certain income thresholds, the net investment income tax of 3.8% applies on top of that, which pushes the effective federal rate on a long-term gain from 20% to 23.8%.4
A short-term loss used against a short-term gain is therefore doing more work than the same dollar of loss used against a long-term gain. You do not get to choose the sequencing, since the netting rules dictate it, but it explains why two harvests of identical size can be worth different amounts.
This is not tax advice. The netting rules, the character of each position, and the way a particular state treats capital gains all vary by situation and require coordination with a CPA or tax advisor who can see the household’s full return.
The Wash-Sale Rule and Its 61-Day Window
The rule that most often turns a planned harvest into nothing is the wash-sale rule. Its purpose is to stop an investor from claiming a loss on paper while staying in substantially the same economic position.
The statute disallows the deduction if, within a period beginning 30 days before the sale and ending 30 days after it, you have acquired substantially identical stock or securities, or entered into a contract or option to acquire them.5 Counting the day of the sale itself, that is a 61-day window.
The detail people miss is that the window runs backward as well as forward. A purchase made three weeks before you sell at a loss can disallow that loss just as surely as buying back in afterward. An investor who has been adding to a position on the way down, then decides to harvest, may have already created the problem.
In most cases the disallowed loss is not destroyed. The statute shifts it into the basis of the replacement shares, increasing or decreasing that basis by the difference between what the replacement cost and what the original position sold for.5 The deduction reappears whenever the replacement position is eventually sold. The harvest is delayed instead of lost.
Where the rule catches people
Three situations come up repeatedly.
The first is automatic dividend reinvestment. A reinvested dividend is a purchase, and the statute does not care that it was automatic. A small reinvestment inside the window can disallow part of the loss on a much larger sale.
The second is more costly and less widely known. If you sell a security at a loss in your taxable account and your own IRA or Roth IRA buys the same security inside the window, the IRS has ruled that the loss is disallowed and that your basis in the IRA is not increased to compensate.6 This is the one circumstance where a harvested loss is genuinely gone rather than deferred. A household running a taxable account and a retirement account with similar holdings, or with an advisor managing each separately, can trip this without anyone noticing.
The third is the phrase “substantially identical” itself, which the statute never defines. Two funds tracking the same index, a fund and the individual stocks inside it, different share classes of the same fund: none of these has a bright-line answer in the text. The determination depends on the specific securities, and it is a question for a tax advisor before the trade rather than after it.
What the Numbers Look Like
Consider a household that realizes $200,000 of long-term capital gains while rebalancing a portfolio that has drifted. Elsewhere in the same taxable account sits a position carrying $80,000 of unrealized loss. Selling it brings the net gain for the year down to $120,000.
At the 20% federal long-term rate plus the 3.8% net investment income tax, the combined rate on the $80,000 that no longer gets taxed is 23.8%. The harvest saves roughly $19,000 in federal tax that year. Assuming the proceeds were reinvested in something that is not substantially identical, the portfolio still holds broadly what it held before.
Now carry it forward. The replacement position was bought at the lower price, so its cost basis is $80,000 lower than the basis of the position that was sold. If it recovers and is sold five years later, the gain on that sale is $80,000 larger than it would have been. At the same 23.8% rate, the tax eventually owed on that extra gain is the same $19,000.
For illustrative purposes only. This example is hypothetical and does not represent an actual client or a guaranteed outcome. Actual results depend on individual tax circumstances.
What Happens to Your Cost Basis After a Harvest
That second calculation is the part most descriptions leave out. Tax-loss harvesting moves tax more than it removes it. Reinvesting harvested proceeds resets basis to the lower price, and that lower basis follows the position until it is sold.
Moving tax into a later year is still worth something, and sometimes worth a great deal. The money not paid in April stays invested in the meantime. The eventual sale might fall in a year with a lower marginal rate, or after a move to a state with no income tax. The position might be donated to charity, in which case the embedded gain may never be taxed at all. It might be held until death and receive a step-up in basis under current law.
None of those outcomes is certain when the harvest is made. The value of a harvest depends on what happens to the replacement position and on where the household’s tax rate lands in the years ahead. A single tax year is too short a window to judge it. That is the kind of question the post How to Build a Long-Term Wealth Plan takes up in more depth.
How Harvesting Connects to Rebalancing and Account Structure
Harvesting works best when it is folded into other portfolio decisions. A portfolio that has drifted far enough to need rebalancing is usually going to generate gains on the way back into line, and the same review that identifies those gains can identify the losses available to offset them. The post Rebalancing with Intention covers the tax considerations that come up when positions need to be trimmed.
How the portfolio is built also determines how much opportunity exists at all. A household holding broad funds has fewer individual positions to work with than one holding the underlying securities directly, because a fund can be up overall while many of the holdings inside it are down. The post Why High Net Worth Investors Look Beyond ETFs discusses how direct ownership changes the choices available at the position level.
When Tax-Loss Harvesting Is Worth Little
After a long run of appreciation, there may simply be nothing in the portfolio trading below its purchase price. Harvesting cannot manufacture a loss that does not exist, and chasing one usually means selling something the plan says to keep.
A year with no realized gains limits the benefit to the $3,000 ordinary income offset, which is a modest return on the attention it takes. The loss still carries forward, so the work is not wasted, but it is worth being clear-eyed about the size of the result.
Charitable intent pulls the calculation the other way. An appreciated position given to a qualified charity may avoid the embedded gain entirely, which is a better outcome than offsetting it, and giving away a depreciated position instead would waste the deduction. Moran Wealth Management covers this on its Charitable Giving page.
Timing works against harvesting too, because it has to be completed before the tax year closes and the opportunities tend to appear when markets fall, which rarely coincides with December. A portfolio reviewed only once a year, at filing time, will miss most of them. The post Tax Season Is a Checkpoint, Not a Decision Point makes the case for separating the two.
Frequently Asked Questions
How does tax-loss harvesting work?
You sell a position in a taxable account that has fallen below its purchase price, which realizes the loss for tax purposes. That realized loss is applied against realized capital gains elsewhere in the portfolio. If the losses exceed the gains, up to $3,000 can be deducted against ordinary income that year, and the remainder carries into later years.
What is the wash-sale rule?
The wash-sale rule disallows a loss deduction if substantially identical securities are acquired within 30 days before or 30 days after the sale that produced the loss, a 61-day window counting the sale date. In most cases the disallowed loss is added to or subtracted from the basis of the replacement shares, so the deduction is deferred instead of lost.
Can my IRA trigger a wash sale on a loss in my taxable account?
Yes. The IRS has ruled that where an individual sells a security at a loss and causes his or her IRA or Roth IRA to buy substantially identical securities within the window, the loss is disallowed and basis in the IRA is not increased. Unlike an ordinary wash sale, the deduction in that situation is lost rather than deferred.
Can I harvest losses in my IRA?
No. Gains and losses inside an IRA, Roth IRA, or employer retirement plan are not reported as taxable events, so a loss realized there produces no deduction at all. Tax-loss harvesting applies to taxable accounts only.
How long can I carry forward a capital loss?
An unused net loss carries into the following tax year, keeping its short-term or long-term character, and is applied against that year’s gains. Whatever remains unused continues forward on the same basis, so a large harvested loss can stay useful well beyond the year it was realized.
Does tax-loss harvesting actually save money or just delay the tax?
It reduces tax in the year of the harvest. Because the reinvested proceeds carry a lower cost basis, a future sale of the replacement position may produce a larger gain and a larger tax bill then. Whether the trade is worthwhile depends on what happens to that position and on the household’s tax rate in the years ahead.
When during the year should harvesting be considered?
Opportunities appear when markets decline, which does not follow the tax calendar. Reviewing the portfolio periodically through the year surfaces more of them than a single look in December, and every harvesting decision has to be completed before the tax year closes.
Connect with Moran Wealth Management
Tax-loss harvesting is one part of managing a portfolio with taxes in view, and what it is worth depends on how it is coordinated with rebalancing, where assets are held, charitable plans, and the household’s expected tax position in future years.
At Moran Wealth Management, a fee-only, fiduciary RIA, our advisors work with individuals and families to build tax considerations into portfolio decisions throughout the year instead of treating them as a December exercise. For details on our services, compensation, and potential conflicts of interest, please refer to our Form ADV Part 2A and Form CRS. We do not provide legal or tax advice, but we coordinate closely with clients’ CPAs, attorneys, and tax advisors to support a cohesive planning process.
To learn more about how we approach tax-aware investing, visit our Strategic Tax Planning page or schedule a conversation with our team.
Sources
- Cornell Law School Legal Information Institute. 26 U.S. Code § 1211, Limitation on capital losses.
- Cornell Law School Legal Information Institute. 26 U.S. Code § 1212, Capital loss carrybacks and carryovers.
- Internal Revenue Service. Topic No. 409, Capital Gains and Losses.
- Internal Revenue Service. Questions and Answers on the Net Investment Income Tax.
- Cornell Law School Legal Information Institute. 26 U.S. Code § 1091, Loss from wash sales of stock or securities.
- Internal Revenue Service. Revenue Ruling 2008-5.