Tax Loss Harvesting Explained: How to Reduce Your Tax Bill
If you've ever sold an investment at a loss, you've already done tax loss harvesting — you just might not have known it. Tax loss harvesting is the practice of selling investments at a loss to offset capital gains and reduce your tax bill.
When done right, it can save you thousands of dollars in taxes every year. When done wrong, you could trigger the wash sale rule and lose the tax benefit.
How Tax Loss Harvesting Works
The concept is simple: sell losing investments to generate capital losses, then use those losses to offset capital gains from winning investments.
Step 1: Sell an investment that has lost value (e.g., a stock down 20%).
Step 2: Use the realized capital loss to offset capital gains from other sales.
Step 3: If your losses exceed your gains, you can deduct up to $3,000 against ordinary income ($1,500 if married filing separately).
Step 4: Any remaining losses carry forward to future years.
Real‑World Example
Scenario: You have two investments:
- Investment A: Gain of $10,000
- Investment B: Loss of $7,000
Without harvesting: You pay tax on $10,000 of gains (at 15% long‑term rate → $1,500 tax).
With harvesting: You sell Investment B, realize the $7,000 loss, offset the $10,000 gain → taxable gain is $3,000. Tax = $450. You saved $1,050.
Short‑Term vs Long‑Term Losses
- Short‑term losses offset short‑term gains first (taxed at ordinary income rates).
- Long‑term losses offset long‑term gains first (taxed at preferential rates).
- If losses exceed gains in the same category, the remaining losses offset gains in the other category.
Strategy: Harvest losses that offset your highest‑taxed gains — usually short‑term gains.
The Wash Sale Rule: What You Need to Know
The wash sale rule prevents you from claiming a loss if you buy the same or substantially identical security within 30 days before or after the sale.
Example: You sell 100 shares of XYZ stock at a loss on December 1. If you buy 100 shares of XYZ on December 20 (within 30 days), the loss is disallowed — you can't claim it on your tax return.
How to Avoid the Wash Sale Rule
- Wait 31 days before buying the same security back.
- Buy a different but similar security (e.g., sell S&P 500 fund, buy a total market fund).
- Harvest losses in tax‑advantaged accounts — the wash sale rule applies across all accounts (including IRAs).
Tax Loss Harvesting with Crypto
Important: The wash sale rule does not apply to cryptocurrency in 2026. You can sell crypto at a loss and buy it back immediately — and still claim the loss. This is a major advantage for crypto investors.
Read our complete crypto tax guide for more →
Tax Loss Harvesting Strategies
1. Year‑End Harvesting
Review your portfolio in December to identify losses you can harvest. Sell losing positions to offset gains from the year.
2. Ongoing Harvesting
Harvest losses throughout the year as they occur — don't wait until December. This gives you more flexibility and helps you avoid the wash sale rule.
3. Harvesting to Offset $3,000 of Ordinary Income
If you have no capital gains, harvest losses up to $3,000 to deduct against ordinary income. If you're in the 24% bracket, that's a $720 tax saving.
4. Carry Forward Losses
If you have losses beyond $3,000, carry them forward. They never expire — you can use them in future years.
Tax Loss Harvesting in Tax‑Advantaged Accounts
You cannot harvest losses in tax‑advantaged accounts (IRAs, 401(k)s). But you can harvest losses in taxable accounts. This is why it's often recommended to hold taxable investments in a separate brokerage account from your retirement accounts.
Want to calculate your capital gains and losses?
Use our capital gains tax calculator to see how tax loss harvesting can reduce your tax bill.
Final Verdict
- Tax loss harvesting is one of the few "free lunches" in investing — you reduce taxes without changing your risk profile.
- Avoid the wash sale rule — wait 31 days or buy a similar but different security.
- Crypto investors have an advantage — the wash sale rule doesn't apply to crypto.
- Harvest losses strategically — use them to offset your highest‑taxed gains first.
Frequently Asked Questions
Can I use tax loss harvesting to offset capital gains from real estate?
Yes — capital losses from stocks can offset capital gains from real estate sales. Both are capital assets.
What happens if I harvest a loss and then die?
Your heirs receive a step‑up in basis — the cost basis is adjusted to the fair market value at your death. This means the loss is effectively "reset."
Can I harvest losses in a robo‑advisor account?
Yes — most robo‑advisors (Betterment, Wealthfront, etc.) offer automated tax loss harvesting as a feature.
Is tax loss harvesting worth it for small accounts?
Yes — even small accounts can benefit. A $3,000 loss deduction saves $660–$1,100 in taxes depending on your bracket. Over time, the savings compound.
Disclaimer: This article is for educational purposes only and is not financial, tax, or legal advice. Consult a qualified professional for guidance specific to your situation.