What tax loss harvesting is and how it reduces your tax bill
The difference between realized and unrealized gains and losses
How capital gains and capital losses offset each other
The wash-sale rule and how to avoid it
Step-by-step method to harvest losses responsibly
How to reinvest without breaking the rules
When tax loss harvesting makes sense and when it does not
This article explains general concepts for educational purposes. Tax laws vary by country and change over time. Check rules where you live or consult a qualified professional for personal advice.
Concept explanation
Tax loss harvesting is a way to turn a drop in an investment's price into a tax benefit. When you sell an investment for less than you paid, you create a capital loss. You can use that loss to offset other taxable gains. In simple terms, you are using one loss to cancel out some of your wins, which can lower your tax bill for the year.
There are two important ideas here. First, losses and gains only count for tax when they are realized, meaning you actually sell. If your stock goes down but you keep holding it, that is an unrealized loss and usually has no tax impact yet. Second, tax rules generally let you net your capital gains and losses together, up to certain limits, and sometimes carry leftover losses into future years.
A common worry is that selling at a loss locks in the loss forever. That can be true if you never buy back or if the investment rebounds right after you sell. But the goal of tax loss harvesting is to switch into a similar investment so you keep your market exposure while still capturing the tax benefit. The key is doing it in a way that respects the wash-sale rule, which can disallow your loss if you buy back too soon or buy something too similar.
Think of it like exchanging bruised apples for fresh apples of a different variety. You are still holding apples, so your snack is covered, but you used the swap to get credit for the bruised ones at checkout.
Why it matters
Taxes are one of the few investing costs you can manage with planning. By strategically realizing losses during down markets, you can reduce the taxes you pay on gains and possibly ordinary income, leaving more money invested to grow. Over many years, these saved dollars can compound.
Tax loss harvesting can also smooth the ride when rebalancing. If you need to trim winners and add to laggards to keep your target mix, harvesting losses can offset the gains you realize when you sell appreciated assets.
However, it is not a free lunch. The benefit depends on your tax rate, trade costs, and your ability to stay invested. If you harvest a loss and then miss a rapid rebound because you stayed in cash or broke the wash-sale rule, the lost market return can outweigh the tax savings. The goal is to improve after-tax returns without changing your long-term plan.
Calculation method
Here is the general flow for tax loss harvesting:
Identify positions with unrealized losses. Compare current market value to your cost basis, which is generally what you paid plus certain costs like commissions.
Decide which losses to harvest, considering your tax bracket, upcoming gains, and your portfolio plan.
Sell the position to realize the loss. Record the loss amount for your tax records.
Immediately reinvest in a similar, but not substantially identical, asset to maintain your market exposure without triggering the wash-sale rule.
Track holding periods and basis adjustments, and avoid repurchasing substantially identical securities too soon.
Key formulas and limits to know:
Net capital gain or loss: Your total gains minus your total losses for the year.
Losses offset gains first. If losses exceed gains, you may be able to deduct a limited amount against ordinary income, with the remainder carried forward.
Net capital result = Total realized gains − Total realized losses
Tax savings from harvesting = Harvested loss × Applicable tax rate
After-tax proceeds if gains offset = Gain × Tax rate − Loss × Tax rate
Step-by-step example 1 — Simple offset:
You sell Fund A for a 1,000 loss and sell Stock B for a 1,000 gain.
Net result is zero. Your tax on the gain is offset by the loss.
You have no capital gains tax from these two trades.
Step-by-step example 2 — Excess loss and carryforward:
You harvest 5,000 of losses this year, but only have 2,000 of gains.
Net loss is 3,000. Depending on your local rules, you might deduct up to a set amount against ordinary income this year, and carry the rest forward to future years to offset future gains.
Step-by-step example 3 — Avoiding the wash-sale rule:
You own an index fund that tracks a broad market index and it is down 10 percent.
You sell it to realize a loss and immediately buy a different broad market index fund from another provider that tracks a similar but not identical index.
You stay invested in the market, and the loss is preserved for tax purposes.
The wash-sale rule generally disallows a loss if you buy a substantially identical security within a restricted window around the sale. This includes purchases in all your accounts, including retirement accounts. Keep records and plan your trades to avoid this trap.
Case study
Imagine you invested 20,000 in a diversified stock fund. The market dips, and your fund is now worth 16,000. You also own a bond fund with a 4,000 unrealized gain, and you plan to rebalance soon by trimming bonds and adding to stocks.
Cost basis in stock fund: 20,000
Current value of stock fund: 16,000
Unrealized loss: 4,000
Unrealized gain in bond fund: 4,000
You decide to harvest the 4,000 loss and use it to offset the 4,000 gain from trimming bonds.
Step 1: Sell the stock fund and realize a 4,000 capital loss.
Step 2: Immediately buy a different stock fund that tracks a similar, but not identical, index to stay invested in stocks. For example, if you sold a total market index fund from Provider A, you might buy a large and mid cap index fund from Provider B with similar risk.
Step 3: Sell a portion of the bond fund to realize a 4,000 gain as part of your rebalance.
Tax result: The 4,000 loss offsets the 4,000 gain, so your net capital result for these trades is zero. You have rebalanced without owing capital gains tax on that 4,000 of gain this year. Your portfolio risk stays aligned with your target because you reinvested immediately.
What if you only had 1,000 of gains to offset? You would still harvest the 4,000 loss. The first 1,000 offsets the gain. The remaining 3,000 may be deducted against ordinary income up to the allowed amount this year, and any leftover may carry forward to future years.
Practical applications
Rebalancing with tax efficiency: When you need to sell winners in taxable accounts, first look for losers you can harvest so gains and losses offset.
Annual checkups: Review your taxable accounts a few times per year, especially during market declines, to identify harvestable losses. Avoid overtrading.
Pair trades to stay invested: Sell the loser and immediately buy a similar, not substantially identical, investment. For example, swap one broad market ETF for another that tracks a different index provider.
Avoid the wash-sale window: Refrain from buying the same or substantially identical security for a defined period before and after the sale. Include automatic dividend reinvestments and contributions in the check. Consider turning off reinvestment briefly if needed.
Use tax-advantaged accounts wisely: Harvest losses in taxable accounts. Trades inside tax-deferred or tax-free accounts typically do not create current-year taxable gains or deductible losses.
Plan for carryforwards: Keep track of unused losses. They can offset future gains, such as when you sell a business interest, a rental property, or a long-held investment.
Consider your tax rate: Harvesting is most valuable when offsetting high-tax-rate gains. If you are in a low capital gains bracket this year but expect higher rates later, you might prioritize carryforwards for the future.
Common misconceptions
よくある誤解
- Selling at a loss always hurts returns: When done correctly, harvesting can lower taxes while keeping you invested, improving after-tax outcomes.
- You can repurchase the same security immediately: Buying back the same or substantially identical security too soon can trigger the wash-sale rule and disallow the loss.
- Only stock pickers can harvest: Index fund and ETF investors can also harvest by swapping to a similar but not identical index fund.
- It is only for large portfolios: Even modest accounts can benefit, especially when rebalancing or offsetting a concentrated gain.
- Harvest every small dip: Trading too often can rack up costs and create tracking error. Focus on meaningful losses and stay aligned with your plan.
Summary
まとめ
- Tax loss harvesting uses realized losses to offset gains and sometimes ordinary income.
- Losses only count when realized through a sale; unrealized losses do not affect taxes.
- Avoid the wash-sale rule by not buying substantially identical securities during the restricted window.
- Reinvest in similar alternatives to maintain your market exposure and strategy.
- Track cost basis, holding periods, and loss carryforwards for accurate tax reporting.
- Prioritize meaningful losses and coordinate harvesting with rebalancing goals.
- The value depends on your tax rate, costs, and ability to stay invested.
Glossary
Capital gain: The profit you make when you sell an investment for more than your cost basis.
Capital loss: The amount you lose when you sell an investment for less than your cost basis.
Cost basis: Generally, the amount you paid for an investment, adjusted for certain costs or events.
Realized vs. unrealized: Realized means you sold and it counts for tax; unrealized means you still hold and it does not yet count.
Wash-sale rule: A rule that can disallow a loss if you buy the same or substantially identical security around the time you sell at a loss.
Carryforward: An unused loss or deduction you can apply to future tax years, subject to rules.
Ordinary income: Income like wages or interest that is taxed at your regular income tax rates.