Investing

Tax-Loss Harvesting Explained for Beginners

Selling a losing investment can lower your tax bill — if you do it correctly. This guide explains the rules, the traps, and when it is worth doing.

Tax documents for tax-loss harvesting — tax-loss harvesting explained

Tax-loss harvesting is the practice of selling an investment that has fallen in value in order to realize the loss for tax purposes, then using that loss to offset taxable gains elsewhere. Done correctly, it can reduce a tax bill without changing your long-term investment strategy, because the proceeds are usually reinvested in a similar — but not identical — asset. Done carelessly, it can trigger a rule that disallows the loss entirely, or sell you out of a position you wanted to keep. This guide explains the mechanics, the rules, and the judgment calls, in plain language.

The key idea is simple: tax is generally charged on gains when they are realized by selling, and realized losses can offset realized gains. Harvesting is therefore a timing tool, not a way to manufacture money — you are not profiting from the loss, you are using a loss that already exists to reduce the tax on a gain. Whether it is worth doing depends on your tax situation, your accounts, and your willingness to follow the rules precisely.

1. How realized gains, losses, and offsets work

When you sell an investment for more than you paid, the difference is generally a realized capital gain; when you sell for less, it is a realized capital loss. In many tax systems, realized losses can offset realized gains in the same year, and unused losses may be carried forward or, within limits, used against other income, depending on the rules where you live. Harvesting simply means choosing to realize a loss deliberately, in a year when you have gains to offset, rather than leaving it unrealized while the investment sits in your portfolio.

The distinction between realized and unrealized matters: a falling investment has not produced a tax loss until you sell it, and a rising investment has not produced a taxable gain until you sell that either. That is why harvesting is a year-end and life-event tool — it is most valuable in years when you have realized gains from selling another investment, rebalancing, or receiving a distribution. Before acting, check the current rules for your country and account type on an official source such as the IRS in the United States, since limits, ordering rules, and carryforward provisions change and vary by jurisdiction.

2. The wash-sale rule: the trap that cancels the loss

The most important rule in harvesting is the wash-sale rule, which in the United States disallows a loss if you buy the same or a substantially identical investment within a window around the sale — generally 30 days before or after. The rule exists to prevent taxpayers from claiming a loss while effectively keeping the same position, and it applies across accounts, including retirement accounts, so buying the same fund in another account can still trigger it. If the rule applies, the loss is not permanently lost in every case — it may be added to the cost basis of the replacement — but the immediate tax benefit you wanted is gone.

The practical defense is to wait out the window or to replace the sold investment with something similar but not substantially identical: a fund tracking a different index, for example, rather than the same fund from a different provider in a way that could be judged identical. This is a judgment call with real consequences, so when in doubt, wait the full window or seek professional advice rather than guessing. The investor.gov site from the securities regulator explains wash sales and related rules in plain language, and it is the right first check before any harvest.

3. When harvesting is actually worth doing

Harvesting pays when you have gains to offset, when you are in a tax bracket where the offset saves meaningful money, or when you can use losses against other income within the allowed limits. It pays least when you have no gains to offset and the loss would simply be carried forward for years, or when the transaction costs, spreads, and effort exceed the tax saved. It also makes little sense inside a tax-advantaged retirement account, where gains and losses generally do not affect your current tax bill at all — harvesting belongs in taxable accounts.

A good trigger for reviewing harvesting is any year in which you sold a winner, rebalanced a portfolio, or received a large distribution. The index investing guide explains why rebalancing itself creates the gains that harvesting can offset, and the two decisions belong together: rebalance for strategy, harvest for tax, in the same review. If the only reason to sell is the tax benefit, and the investment still fits your strategy, the benefit needs to be large enough to justify the disruption — otherwise, leave it alone.

Investment chart for harvesting losses — tax-loss harvesting for beginners

4. A step-by-step harvesting workflow

Start by listing your taxable accounts and identifying positions currently showing a loss, along with the size of the loss and how long you have held each position, since holding period can affect how gains and losses are treated. Next, total your realized gains for the year so far and estimate any further sales you plan before year-end, so you know how much loss you can actually use. Then choose which losses to realize, starting with the largest usable ones in positions you are comfortable replacing or pausing, and plan the replacement — either a different asset immediately, or cash held through the wash-sale window.

Execute the sales with the replacement plan already decided, not improvised afterwards, and record everything: sale dates, amounts, cost basis, and what you bought as a replacement and when. Good records are what make the tax return straightforward and what protect you if a wash-sale question arises later. The net worth tracking guide shows a simple monthly record-keeping habit that makes this kind of year-end review far easier, because the information is already organized when you need it.

5. What to buy after you sell

The replacement decision is where harvesting meets investment strategy. If you sell a broad market fund, a common approach is to buy a fund tracking a different index that keeps your overall exposure similar — for example, swapping a total-market fund for a large-cap fund plus a completion fund, or swapping one provider's index fund for another's fund tracking a genuinely different index. The goal is to maintain your asset allocation without buying something that could be judged substantially identical, and without drifting into a risk profile you did not intend.

Alternatively, hold the proceeds in cash or a money-market fund through the wash-sale window and then repurchase, accepting a short period out of the market. That approach is simplest and safest on the rule, but it carries market risk: the asset may rise while you wait, and the gain you miss can exceed the tax you saved. There is no universally right choice — it depends on the size of the position, the size of the tax saving, and your tolerance for being briefly out of the market. Whatever you choose, decide it before you sell, and document the reasoning alongside the trade.

6. Harvesting inside a broader portfolio review

Harvesting works best as one item in an annual portfolio review, alongside rebalancing, checking fees, and reviewing whether each holding still earns its place. A holding that has fallen may deserve to be sold for investment reasons regardless of tax; a holding that has fallen temporarily may deserve to be kept, with harvesting skipped for that position. Let the investment case lead and the tax case follow, not the other way around — selling a good long-term holding purely for a small tax benefit, and then failing to replace it well, is a strategy loss dressed as a tax win.

Review fees and taxes together: a high-fee fund that you harvest out of and replace with a low-fee equivalent has improved on two fronts at once, while a harvest that moves you into a higher-fee product has given back part of the saving every year. The index funds versus ETFs guide helps with the replacement-product comparison, since fund structure affects both costs and tax behavior. An annual review that covers allocation, fees, and taxes in one pass will catch more value than any of those checks run alone.

Calculator for tax-loss harvesting math — tax-loss harvesting explained

7. Mistakes beginners make with harvesting

The most common mistake is triggering the wash-sale rule by accident — buying the same investment in another account, reinvesting a dividend automatically into the same fund, or having a spouse buy the same security in their account within the window. Automatic dividend reinvestment is a frequent culprit: turn it off for the position before harvesting if reinvestment would repurchase the same asset inside the window. The second common mistake is harvesting in a retirement account, where the exercise is pointless because the account's tax treatment makes the loss irrelevant.

A third mistake is letting the tax tail wag the investment dog: selling a position you believe in for a modest tax saving, then watching it recover while your replacement lags. A fourth is poor record-keeping, which turns a simple tax return into a reconstruction exercise. Avoid all four by planning the harvest, the replacement, and the records together, before the first sale, and by keeping the harvested amount proportionate — a useful tax adjustment, not a portfolio overhaul driven by December.

8. When to get professional advice instead

Harvesting is straightforward for a simple portfolio in a taxable account, but several situations call for professional advice: large gains or losses, holdings across multiple countries, employer stock with special rules, estate or trust accounts, or any year in which you also face a major life event such as a business sale or a move between tax jurisdictions. A tax professional can also model whether realizing a loss this year or carrying it forward saves more over several years, which is a calculation that depends on your expected future income and gains.

The cost of advice is often smaller than the cost of a disallowed loss or a mistimed sale, and a single consultation before a large harvest is cheap insurance. Bring your gain and loss summary, your account list, and your replacement plan to the conversation, so the advice addresses your actual numbers rather than generalities. The tax basics guide covers the background concepts that make that conversation productive, and the official sources cited above remain the authority for the current rules in your jurisdiction.

The verdict: harvest deliberately, respect the wash-sale window, invest first

Tax-loss harvesting is worth doing when you have gains to offset, in a taxable account, with a replacement plan decided before you sell and the wash-sale window respected across all your accounts. Do it as part of an annual review, keep clean records, and let the investment case lead. Done that way, it is a legitimate, repeatable way to reduce a tax bill — done hastily, it is a disallowed loss and a disrupted portfolio.

Frequently asked questions

Selling an investment that has fallen in value to realize the loss for tax purposes, then using that loss to offset taxable gains. The proceeds are usually reinvested in a similar but not identical asset, so your overall strategy stays intact.

In the United States, a rule that disallows a loss if you buy the same or a substantially identical investment within 30 days before or after the sale, including in other accounts. Waiting out the window or buying a genuinely different asset avoids it.

There is generally no benefit: gains and losses inside a tax-advantaged retirement account do not affect your current tax bill, so harvesting there does not reduce tax. Harvesting belongs in taxable accounts.

Harvesting is most valuable when you have gains to offset. Unused losses may be carried forward or used against other income within limits, depending on your jurisdiction, but without gains the immediate benefit is smaller and slower.

It depends on the size of the loss and your tax situation. For small losses with no gains to offset, the effort and transaction costs may exceed the saving. Review it annually and act when the numbers justify it.

Keep reading

About MoneyWise

MoneyWise is an independent personal finance publication. Every guide on this site is researched from primary sources — official program pages, government publications, and reputable financial institutions — and reviewed for accuracy before publishing. We show our math, cite our sources, and update articles when facts change.

Our content is educational only and is not financial advice. For decisions involving significant money, consider consulting a qualified financial professional.

Learn more about our editorial standards

Affiliate disclosure: Some links in this article are affiliate links. If you buy through them, MoneyWise may earn a commission at no extra cost to you. We participate in the Amazon Associates Program (as an Amazon Associate, we earn from qualifying purchases) and the AliExpress Affiliate Program. Details on this page can change — always check the official provider page before buying. Content on this site is educational only and is not financial advice.