RatRaceScoreTrack your way to financial independence
LearnChartsWhy Track?SnowballSign inCreate account

Investing basics

Tax-Loss Harvesting Explained: How to Turn Investment Losses Into Tax Savings

Investments go down in value sometimes, and in a taxable account, the tax rules let you do something useful with that: sell the losing position, record the loss, and use it to reduce the tax you owe on gains elsewhere. That practice is called tax-loss harvesting, and it's less a way to make money than a way to keep a bit more of what you've already made. This isn't tax advice for your specific situation — the rules around losses, deduction limits, and what counts as a substantially identical investment are detailed and change over time, so confirm the current details for your country and filing status before acting. What follows is the general mechanism and where it tends to be worth the effort.


What tax-loss harvesting actually is

When you sell an investment for more than you paid, the difference is a capital gain, and it's generally taxed. When you sell for less than you paid, the difference is a capital loss, and the tax code generally lets you use that loss to offset gains. Tax-loss harvesting is simply the deliberate version of this: instead of waiting for a loss to sit on your statement, you sell the position while it's down, lock in the loss for tax purposes, and put the money into a similar investment so you stay invested. Your portfolio ends up looking much the same as before, but you now hold a tax loss you can use.

How a harvested loss gets used

In many tax systems, realized losses are applied first against realized gains of the same type, then against other gains, and any leftover can often offset a limited amount of ordinary income each year with the remainder carried forward to future years. The specific categories, the annual limit, and the carryforward rules vary by country and change over time, so check the current figures rather than relying on a number from an article. The practical point is that a loss isn't wasted even in a year when you have no gains to offset — it can often be saved for later, which is why harvested losses have value beyond the year they were created.

The wash sale rule: the catch

If you could sell a loser and immediately buy the exact same thing back, the loss would be pure paperwork, and tax authorities know it. In the United States, the wash sale rule generally disallows the loss if you buy the same or a substantially identical investment within a window of about 30 days before or after the sale. Other countries have their own versions of this rule, or different ones entirely. People who harvest losses typically sidestep the problem by switching into a similar but not identical fund for the waiting period. What counts as "substantially identical" isn't always clear-cut, which is a good reason to read the current guidance or ask a tax professional before relying on a particular swap.

It only matters in a taxable account

Tax-loss harvesting does nothing inside a 401(k), IRA, or HSA, because gains and losses inside those accounts aren't taxed as they occur — there's no tax bill for a loss to offset. That makes it a taxable-account technique, which connects directly to the order of operations in taxable vs. tax-advantaged accounts. If most of your savings sit in retirement accounts, there may be little to harvest. It's also worth remembering that harvesting is mostly useful against the kind of gains and dividends laid out in passive income taxes, which is where a taxable brokerage account tends to generate its tax bill.

It defers tax more than it eliminates it

Selling at a loss and buying a replacement lowers your cost basis in the new holding — the number used to calculate the gain when you eventually sell. A lower basis means a larger taxable gain later, so in many cases harvesting postpones tax rather than erasing it. That postponement still has value, since money you didn't pay in tax this year stays invested and keeps compounding, and it can pay off more if your tax rate is lower when you finally sell. But it's a deferral with trade-offs, not free money, and the benefit depends on your tax situation then versus now.

When it's worth the effort

Harvesting adds complexity: tracking each purchase lot, watching the wash sale window across every account you and your spouse own (including automatic dividend reinvestment), and keeping clean records. For someone who invests steadily in a handful of broad index funds inside mostly tax-advantaged accounts, the benefit may be small enough that skipping it is perfectly reasonable. It tends to matter more for people with a large taxable balance, meaningful realized gains to offset, or a market downturn that hands them losses they can use. A loss can also take some of the sting out of rebalancing a taxable portfolio, since selling a winner to restore your target mix can create a gain. The tax savings are also never worth selling an investment you'd otherwise hold for sound reasons.

"A tax loss is a small consolation prize for a down market — worth collecting if it's easy, not worth chasing if it isn't."

Where this fits in your ratio

Harvesting a loss doesn't change your passive income today, so it doesn't move the ratio behind RatRaceScore directly:

RatRace Score = Monthly Passive Income ÷ Monthly Expenses

What it can do is lower the tax drag on a taxable portfolio, leaving more of the balance invested to grow into the income that eventually fills the numerator — the same slow build described in the Snowball Effect. A quick annual look at whether any losses are worth harvesting, folded into the rest of your tracking routine, is usually enough.

The takeaway

Tax-loss harvesting turns a paper loss in a taxable account into a tax benefit, as long as you stay clear of the wash sale rule and understand that you're often deferring tax rather than avoiding it. It's a modest optimization, most useful for people with sizable taxable holdings, and a reasonable thing to skip if it would add more complexity than it saves. Confirm the current rules where you live, or ask a tax professional, before building it into your plan.


See your own RatRace Score in minutes — no spreadsheet required.

Create a free account →

Home · Learn · Charts · Why Track? · Snowball · Terms · Privacy