Tax-Loss Harvesting Capital Gains Offset & Tax Savings Calculator

Estimate current-year tax reduction and loss carryforward from tax-loss harvesting.

Current-Year Tax Savings USD 4,560.00
Capital Gains Offset USD 18,000.00
Ordinary Income Offset (USD 3,000.00 Cap) USD 3,000.00
Indefinite Capital Loss Carryforward USD 5,000.00
Inputs
Try:
Amounts are treated in the selected currency; no foreign-exchange conversion is applied.
USD
Realized capital gains so far this tax year.
USD
Unrealized losses harvested before year-end (observing 30-day wash-sale rule).
%
Applicable capital gains tax rate (%).
%
Marginal ordinary income tax rate applied to the $3,000 offset (%).
Results & Graph
Current-Year Tax Savings
USD 4,560.00
Capital Gains Offset
USD 18,000.00
Ordinary Income Offset (USD 3,000.00 Cap)
USD 3,000.00
Indefinite Capital Loss Carryforward
USD 5,000.00

Current-Year Tax Savings

Graph 1 • How the inputs feed Tax-Loss Harvesting
Tax-Loss Harvesting Capital Gains Offset & Tax Savings Calculator • Custom Domain Schematic (Taxes & Compliance) USDrealizedTax-Loss Harvesting Realized Capital Gains: 18.0k USD • Harvested Capital Losses: 26.0k USD CURRENT-YEAR TAX SAVINGS USD 4,560.00 • Capital Gains Offset: USD 18,000.00 • Ordinary Income Offset: USD 3,000.00 Eq: GainOffset = min(RealizedGains,
Graph 2 • Current-Year Tax Savings as Realized Capital Gains changes (40% to 160% of current)
0 USD 2.9k USD 5.8k USD 2.4k 7.2kUSD 3.1k 10.8kUSD 3.8k 14.4kUSD 4.6k 18.0kUSD 5.3k 21.6kUSD 5.3k 25.2kUSD 5.2k 28.8kUSD
Graph 3 • Realized Capital Gains and Harvested Capital Losses together Compares Current-Year Tax Savings when Harvested Capital Losses is shifted +25% (solid) vs. −25% (dashed).
0 USD 3.1k USD 6.2k USD --- Harvested Capital Losses @ 75% 3.5k -30% 4.0k -15% 4.6k +0% 5.1k +15% 5.6k +30%
Summary: Harvesting USD 26,000.00 offsets USD 18,000.00 in capital gains plus USD 3,000.00 ordinary income, saving USD 4,560.00 this year with USD 5,000.00 carried forward.
Summary: Harvesting USD 26,000.00 offsets USD 18,000.00 in capital gains plus USD 3,000.00 ordinary income, saving USD 4,560.00 this year with USD 5,000.00 carried forward.
Interactive chart & math engine powered by CalculatorGraph

Formula: Tax-Loss Harvesting Mathematical Formula

GainOffset = min(RealizedGains, HarvestedLosses)
IncomeOffset = min(3000, RemainingLoss)
Carryforward = RemainingLoss − IncomeOffset
GainOffset = min(RealizedGains, HarvestedLosses); IncomeOffset = min(3000, RemainingLoss); Carryforward = RemainingLoss − IncomeOffset
  • realizedCapitalGains: Realized Capital Gains (USD)
  • harvestedCapitalLosses: Harvested Capital Losses (USD)
  • capitalGainsTaxRatePct: Capital Gains Tax Rate Pct (%)
  • ordinaryIncomeTaxRatePct: Ordinary Income Tax Rate Pct (%)

Frequently Asked Questions

Does the calculator really stop the ordinary income offset at $3,000?

Yes. After losses cancel your gains, the remainder offsets ordinary income up to $3,000 and no more. On the default, $26,000 of losses first cancel the $18,000 of gains; of the remainder, $3,000 offsets income and $5,000 is carried forward. Larger harvests only enlarge the carryforward line; the ordinary income line stays at $3,000 regardless.

Why is the savings figure not simply the losses times a tax rate?

Because the losses are used in slices taxed at different rates. On the default, $18,000 saves tax at the 20% gains rate, $3,000 at the 32% ordinary rate, and the remaining $5,000 saves nothing this year. Adding the two priced slices gives $4,560, which is far less than $26,000 times either rate.

What happens if my gains are larger than my harvested losses?

Then every dollar of loss cancels a gain and nothing reaches ordinary income or the carryforward. With $27,000 of gains and $26,000 of losses, the page shows $5,200 of savings, which is 20% of the full $26,000 harvested. The ordinary income offset and carryforward lines both show zero in that case.

Is the carryforward included in the savings headline?

No. The headline is this year's savings only. The carryforward, $5,000 on the default, is shown separately because it saves tax only when used in a later year. Its value depends on future gains, income and rates, none of which the calculator knows, so it is not priced at all.

Does the page apply wash sale rules to my trades?

No. It assumes every harvested dollar of loss is allowed. If you buy back the same or a substantially identical investment around the sale, the loss can be disallowed for now and the real savings would be lower than shown. Check the timing and the replacement holding with a tax adviser before relying on the figure.

Which rate should I use if my gains are short term?

Use the rate those gains would actually be taxed at. The page has only one capital gains box, so if most of your realized gain would be taxed at your ordinary rate, enter that rate there. Leaving the default 20% in place for gains taxed at a higher rate understates the savings the harvest produces.

Why does changing the tax rates not change the offsets?

The three offset lines depend only on gains and losses. The rates just price those amounts. On the default, raising the capital gains rate to 37% lifts the savings well above $4,560, while the $18,000, $3,000 and $5,000 lines stay exactly the same. Rates change the value, not the quantity, of the offset.

Is it worth harvesting losses in a year with no gains?

This page can show the immediate part. With zero gains, only the $3,000 ordinary income offset saves tax this year, priced at your ordinary rate, and the rest of the loss is carried forward. Whether the carried loss is worth harvesting now depends on your expected future gains, which is a judgment the calculator cannot make for you.

Should I enter the value of the investments I am selling?

No. Enter the loss, meaning how far below your cost the positions are. The default of $26,000 means the positions sit $26,000 below what you paid for them, whatever their current market value. Entering the sale value instead of the loss is a common mistake and can make the savings look far larger than they are.

Does harvesting reduce my tax permanently?

Not always. If you reinvest the proceeds, the new holding starts at a lower cost, so a future sale may produce a larger gain. The page shows only this year's effect, $4,560 on the default. Whether the overall effect is a saving or mostly a deferral depends on your future rates and timing, so treat it as one half of the picture.

Does the page include state income tax?

Only if you put it in the rates. The two rate boxes are the only place tax enters the sum, so if you want the savings to include a state tax, add the state rate to both the capital gains rate and the ordinary rate before typing. Otherwise the $4,560 on the default reflects only the rates you entered and nothing else.

How the default turns $26,000 of losses into $4,560 of savings

The default investor has $18,000 of realized capital gains this year and sells positions showing $26,000 of losses. The calculator uses those losses in a fixed order. First they cancel gains, up to the full $18,000 of gains. What is left then offsets ordinary income, but only up to a cap of $3,000 a year in this formula. Anything beyond that, $5,000 on the default, is carried forward to later years.

Each slice is then priced at its own rate. The $18,000 that cancels gains saves tax at the 20% capital gains rate. The $3,000 that offsets ordinary income saves tax at the 32% ordinary rate. Add the two and you get the headline, $4,560 of current-year tax savings. The carryforward saves nothing this year, so it does not appear in that figure at all.

I checked the cap by hand and by running the page at other inputs. The ordinary income line never goes above $3,000, however large the harvested loss. That matches the formula shown on the page and the $3,000 limit stated in the description.

The last $5,000 of loss is worth nothing this year

Look at the default from the point of view of one extra dollar of loss. The first $18,000 of losses each save 20 cents. The next $3,000 each save 32 cents. Every dollar after that saves nothing now and simply joins the carryforward.

You can see this by reducing the losses. If you harvest only enough to cover the $18,000 of gains plus the $3,000 of ordinary income, the savings line still reads $4,560 and the carryforward drops to zero. The extra $5,000 of selling on the default bought no tax relief this year.

That does not make it useless. A carryforward can offset gains or income in future years, and the label on the page calls it indefinite. But its value depends on things the calculator cannot know: whether you will have gains later, what rate they will be taxed at, and how long you wait to use it. A dollar of tax saved in a future year is also worth less than one saved today. If the only reason to sell a position is the harvest, the part that lands in the carryforward deserves a harder look than the part that cuts this year's bill.

When gains are smaller or larger than the harvest

The amount of gain you already have is the input that moves the result most. Lower the gains to $10,800 and the savings fall to $3,120: 20% of $10,800 plus 32% of $3,000 of income. Because fewer losses are needed against gains, the carryforward grows to $12,200 in that run.

Raise the gains to $27,000, above the $26,000 harvested, and the picture flips. All the losses are absorbed by gains, nothing is left for ordinary income, and nothing is carried forward. The savings are $5,200, which is simply 20% of the full $26,000 harvested.

Set gains to zero and only the $3,000 ordinary income offset produces savings this year, at the 32% rate. Everything else in the default losses goes to the carryforward. This is the case for someone harvesting in a year with no sales at a profit. The immediate benefit is small, and most of the value rests on future use of the carried loss.

Enter gains as a positive figure. If your other sales this year already produced a net loss, this page does not have a field for it, and that existing loss would share the same $3,000 ordinary income allowance.

Choosing the two rates for your situation

The page asks for one capital gains rate, set to 20%, and one ordinary income rate, set to 32%. Both are placeholders. Use the rates that would actually apply to you, including any state tax if you want the savings to reflect it, and use the same approach for both boxes so the two slices are comparable.

The description mentions short and long term gains, but there is only one gains rate field. If your realized gains are a mix, the single rate is an approximation. Gains that are taxed at your ordinary rate are better entered at that rate, because the offset saves tax at whatever rate the cancelled gain would have paid. Putting 20% in the box when most of your gain would be taxed at 32% will understate the savings.

Changing the rates changes only the headline. Raise the capital gains rate to 37% on the default and the savings rise by several thousand dollars, while the three offset lines stay exactly as they were. The amounts offset depend only on gains and losses; the rates just price them. If you are unsure which rate applies to which gain, that is a question for a tax professional, not something this page can settle.

The wash sale question the calculator does not check

The page address mentions wash sales, but the calculation assumes every dollar of harvested loss is allowed. In practice, buying back the same or a substantially identical investment around the time of the sale can cause the loss to be disallowed for now, and the calculator has no way to see what you bought or when.

If a loss is disallowed this way, the real savings this year could be lower than the $4,560 headline, possibly much lower if the whole $26,000 is affected. The rules on timing and on what counts as substantially identical need to be checked against the actual trades, ideally with a tax adviser or your broker's records before you sell.

A practical habit is to write down, before harvesting, exactly what you will do with the proceeds. If the plan is to stay invested in something similar, make sure the replacement is genuinely different, or wait. The calculator can show what an allowed loss is worth. Whether a given trade counts as allowed is outside its scope.

Savings now can mean a larger gain later

The $4,560 is a tax reduction this year, and for many investors it is partly a deferral rather than a permanent saving. When you sell at a loss and buy a different investment with the proceeds, the new holding starts at a lower cost than the old one did. If it later rises and you sell it, the gain is measured from that lower cost, so more of the eventual sale is taxable.

Whether harvesting saves tax overall depends on the rate you avoid now compared with the rate you pay later, and on how long the money stays invested in the meantime. Offsetting ordinary income at 32% today and paying a lower gains rate years from now can be a real gain. Offsetting at a low rate now and paying a higher one later can cost more than it saves.

The calculator does not model any of this future tax. It shows the current-year effect only. Treat the headline as one side of the ledger and think about the other side before deciding.

Inputs people enter the wrong way

The losses box wants the loss as a positive number, the amount by which the positions are below what you paid. $26,000 means you would realize $26,000 of losses, not that the positions are worth $26,000 today. Entering the market value of what you are selling instead of the loss is the most common slip, and it can inflate the result many times over.

The gains box is for gains already realized this year, net of any losses already taken. If you sold one position earlier at a small loss and another at a large gain, enter the net figure, not the gross gain.

Both rate boxes are percentages: type 20 for 20%, not 0.2. Typing a decimal will make the savings appear almost zero, which is an easy error to catch once you know to look for it. The $3,000 cap is built into the formula as a fixed dollar amount, so it does not scale with anything you type.

Where this estimate fits in a year-end decision

Used well, this page answers one narrow question quickly: if I sell these losing positions now, roughly how much lower is this year's tax, and how much loss rolls forward? On the default, the answer is $4,560 now and $5,000 forward. That is a good starting point for deciding whether a harvest is worth the trading and the paperwork.

It is not a tax return. It does not separate gains by holding period, apply wash sale rules, account for the lower cost of what you buy next, or know your full income picture. Each of those can change the true figure.

A sensible way to use it is to run the page with your realistic numbers, then run it again with half the harvested loss, to see how much of the savings depends on the last few positions you sell. Bring both results, along with the trades themselves, to a tax professional if the amounts are significant. This page describes arithmetic, not advice on what you should sell.