← Back to Blog

Tax Loss Harvesting to Offset Capital Gains

2026-03-16

How Can You Use a Capital Gains Tax Calculator for Tax Loss Harvesting to Offset Capital Gains?

Introduction

If you sold winning investments this year, you might be staring at a tax bill that feels bigger than expected. Maybe you took profits on stocks, crypto, or even real estate—and now you’re wondering how to keep more of your gains. That’s where tax loss harvesting comes in. By strategically selling underperforming assets, you can offset taxable gains and potentially reduce what you owe.

In this guide, you’ll learn exactly how tax loss harvesting works, when it makes sense, and how to estimate your savings before making a move. We’ll break down short-term and long-term treatment, IRS limits, and common mistakes to avoid. You’ll also see practical examples with real numbers so you can compare outcomes clearly.

To make the process easier, use a capital gains tax calculator to model your scenarios quickly. If you also have freelance or business income, pair it with the Self Employment Tax Calculator or Freelance Tax Calculator for a complete tax picture.

🔧 Try Our Free Capital Gains Tax Calculator

Want a fast estimate of what you might owe—or save—before year-end? Our tool helps you test different gain/loss combinations in minutes so you can make smarter sell decisions with confidence. It works whether you’re managing stocks, crypto, or real estate transactions.

👉 Use Capital Gains Tax Calculator Now

How Tax Loss Harvesting Works

Tax loss harvesting means selling investments at a loss to offset gains from other investments. The goal is simple: lower your taxable gains and reduce your final bill. A good investment tax calculator helps you test this before placing trades.

Here’s the step-by-step process:

1. Calculate your total gains

- Add gains from stocks, crypto, and property sales.

- Separate them into short term capital gains tax and long term capital gains tax categories.

- Short-term gains (held 1 year or less) are taxed at ordinary income rates.

- Long-term gains (held over 1 year) typically get lower tax rates.

2. Identify unrealized losses

- Review positions currently below your purchase price.

- Consider whether selling now fits your investment plan.

3. Match losses against gains

- Losses first offset gains of the same type.

- Remaining losses can offset the other type.

- If losses exceed gains, up to $3,000 can reduce ordinary income annually (with carryforward for extra losses).

4. Watch wash-sale rules

- Don’t buy a “substantially identical” security within 30 days before/after selling at a loss.

- Violating this can disallow the deduction.

5. Recalculate before year-end

- Run scenarios using a stock capital gains tax calculator for equities and a crypto capital gains tax calculator for digital assets.

- If property is involved, model real estate capital gains tax separately because exclusions and basis adjustments can change results.

If you’re balancing tax planning with long-term goals, connect this strategy with your savings plan using the Retirement Savings Calculator.

Real-World Examples

Below are practical scenarios to show how tax loss harvesting can change your tax outcome.

Scenario 1: Stock investor with mixed results

Maria (single filer) realizes:

  • $18,000 gain from stock A held 8 months (short-term)
  • $7,000 loss from stock B held 10 months (short-term)
  • Using a stock capital gains tax calculator, here’s the impact:

    | Item | Without Harvesting | With Harvesting |

    |---|---:|---:|

    | Short-term gains | $18,000 | $18,000 |

    | Short-term losses | $0 | $7,000 |

    | Net short-term gain | $18,000 | $11,000 |

    | Estimated tax rate | 24% | 24% |

    | Estimated tax | $4,320 | $2,640 |

    Estimated tax savings: $1,680

    Because this is short term capital gains tax, Maria is taxed at her ordinary rate. Harvesting losses matters more when rates are higher.

    ---

    Scenario 2: Crypto trader with volatile positions

    Darren has:

  • $25,000 gain on Bitcoin sold after 14 months (long-term)
  • $10,000 loss on altcoin sold after 5 months (short-term)
  • A crypto capital gains tax calculator can help map offset order:

    | Item | Amount |

    |---|---:|

    | Long-term gain | $25,000 |

    | Short-term loss | -$10,000 |

    | Net taxable gain | $15,000 |

    If Darren’s long term capital gains tax rate is 15%, tax on $15,000 is about $2,250.

    Without harvesting, tax on $25,000 would be $3,750.

    Estimated tax savings: $1,500

    Even though gain/loss holding periods differ, netting rules still provide benefit. For active traders, running quarterly checks with a crypto capital gains tax calculator can prevent unpleasant surprises in April.

    ---

    Scenario 3: Real estate sale plus portfolio losses

    Tanya sells an investment property and owes potential real estate capital gains tax:

  • Property gain: $60,000 (long-term)
  • Stock losses harvested: $22,000 (long-term)
  • | Item | Without Harvesting | With Harvesting |

    |---|---:|---:|

    | Long-term real estate gain | $60,000 | $60,000 |

    | Long-term stock losses | $0 | $22,000 |

    | Net long-term gain | $60,000 | $38,000 |

    | LTCG rate (example 15%) | 15% | 15% |

    | Estimated tax | $9,000 | $5,700 |

    Estimated tax savings: $3,300

    This is where an investment tax calculator becomes valuable: you can compare sale timing, expected gain, and available losses in one place. After tax savings, Tanya redirects part of the difference to cash reserves using the Emergency Fund Calculator, which helps reduce future pressure to sell assets at the wrong time.

    Frequently Asked Questions

    Q1: How to calculate capital gains tax?

    Start by subtracting your cost basis (purchase price plus eligible costs) from your sale price. Then split gains into short-term and long-term buckets based on holding period. Apply the correct federal rate to each, then subtract harvested losses. A capital gains tax calculator speeds this up and helps avoid manual errors, especially when you have multiple transactions across different assets.

    Q2: What is the capital gains tax rate 2025?

    For many taxpayers, long-term federal rates remain 0%, 15%, or 20%, depending on taxable income, while short-term gains are taxed as ordinary income. Actual liability can change with NIIT, state taxes, filing status, and deductions. Use a stock capital gains tax calculator or crypto capital gains tax calculator to estimate your specific 2025 exposure based on current numbers.

    Q3: What is short term vs long term capital gains?

    Short term vs long term capital gains depends on how long you held the asset before selling. One year or less is short-term and usually taxed at your ordinary income rate. More than one year is long-term and often taxed at lower preferential rates. This difference is why timing sales by even a few weeks can significantly change total tax owed.

    Q4: How does capital gains tax on cryptocurrency work?

    Capital gains tax on cryptocurrency applies when you sell, trade, or dispose of crypto for a profit. Holding period determines whether it’s short term capital gains tax or long term capital gains tax. Because crypto traders often have many transactions, using a crypto capital gains tax calculator helps organize gains, losses, and netting rules quickly and accurately before filing.

    Q5: How to avoid capital gains tax on home sale?

    For primary residences, many homeowners can exclude up to $250,000 (single) or $500,000 (married filing jointly) of gain if ownership and use tests are met. That rule differs from capital gains tax on home sale for investment properties, where exclusions are more limited. Improve results by tracking home improvements for basis and planning sale timing before listing the property.

    Take Control of Your Capital Gains Taxes Today

    Tax loss harvesting is one of the most practical ways to reduce investment taxes without changing your long-term wealth goals. The key is timing, accurate records, and clear projections before you sell. Instead of guessing, run your numbers with a capital gains tax calculator to compare “harvest now” vs “hold” outcomes in minutes. If your finances include side income, combine your plan with the Freelance Tax Calculator for a full-year estimate and cleaner cash-flow planning.

    👉 Calculate Now with Capital Gains Tax Calculator