How tax-loss harvesting works
By Jude Wallis
Tax-loss harvesting is selling a holding in a taxable account for less than its basis so the realised loss can offset gains, and then a limited amount of ordinary income. On a $10,000 basis sold for $6,000, the $4,000 loss saves $880 at a 22 percent rate.
Total return
8.00%
Price change 5.00%. Income yield 3.00%.
- Beginning value
- $100.00
- Ending value
- $105.00
- Income
- $3.00
- Price change
- 5.00%
- Income yield
- 3.00%
- Total return
- 8.00%
What you paid, or the value at the start of the period.
Price or market value at the end of the same period, before adding income.
Dividends, coupon, or rent paid during the period. Not the ending price.
On this page
In short
- A harvested loss is proceeds minus basis when proceeds are lower. On a $10,000 basis sold for $6,000, the loss is $4,000.
- At a 22 percent rate that would have applied to a matching gain or to ordinary income in the limited bucket, the tax saved is $880.
- Sold instead for $7,000, the loss is $3,000 and the tax saved at 22 percent is $660.
- A substantially identical purchase within 30 days before or after the sale can disallow the current loss. The disallowed amount is generally added to the replacement holding's basis.
A realised loss is an input, not a strategy slogan
Tax-loss harvesting means closing a position in a taxable account for less than its cost basis so the realised loss can be used on the return. The first number is arithmetic: basis minus proceeds when proceeds are lower.
On a $10,000 basis sold for $6,000, the loss is $4,000. Sold for $7,000, the loss is $3,000. Nothing about the market's later path is in those two lines. They are sale results.
How investments are taxed is the wider schedule: ordinary income, long-term gains, and the way losses net against them. This page owns one realised loss and the tax it displaces at a stated rate.
The tax saved is the loss times the displaced rate
A loss is useful because it can cancel a gain that would have been taxed, or, after gains are exhausted, a limited amount of ordinary income. The teaching identity is
where is the rate that would have applied to the income the loss displaces. At 22 percent, a $4,000 loss saves $880. A $3,000 loss saves $660.
That 22 percent is an input, not a claim about every filer. A long-term gain might have met a lower statutory rate. Ordinary income might have sat in a different band. Put the rate that the cancelled dollars would actually have paid.
The tax value can arrive now or later. If the loss cannot be used in the current return, carryforward rules determine when it meets taxable gains or income.
Replacement, wash sales, and the account type
Under United States wash-sale rules, buying a substantially identical security within 30 days before or 30 days after a loss sale can disallow the current loss. Looking only at purchases after the sale misses the purchases in the earlier half of the window.
For an ordinary replacement in a taxable account, the disallowed loss is generally added to the replacement holding's basis and the old holding period carries over. The deduction is postponed until a later sale that does not begin another wash sale. The economic loss remains even when its tax use moves to a later return.
The account type matters before any rate. A loss inside a tax-deferred wrapper does not appear on this year's return as a harvested capital loss. A capital gain realised in a taxable account is the usual first use of an allowed loss. Only the net loss left after gain netting reaches the capped ordinary-income bucket.
Scope of this sheet
The two teaching sales are a $10,000 basis at $6,000 and at $7,000, both at 22 percent. They show how proceeds change the loss and how the same rate scales the tax saved. The applicable rate, loss character, available gains, carryforwards, account type, and replacement purchases determine an actual result.
A replacement can change market exposure and future basis even when the immediate tax arithmetic is correct. This is educational material, not financial advice.
Worked examples
A \$4,000 loss at 22 percent
A holding with a $10,000 basis is sold for $6,000. The rate that would have applied to the displaced income is 22 percent. What is the loss, and what tax does it save?
- Loss is basis minus proceeds: , so $4,000.
- Tax saved is the loss times 22 percent: , so $880.
The realised loss is $4,000. At 22 percent, the tax saved is $880.
A \$3,000 loss at the same rate
The same $10,000 basis is sold for $7,000. The displaced rate is still 22 percent. What is the loss and the tax saved?
- Loss is , so $3,000.
- Tax saved is , so $660.
The realised loss is $3,000. At 22 percent, the tax saved is $660.
Common questions
Does harvesting a loss lock in a bad investment?
The sale realises the loss. Whether you stay out of that exposure, or replace it with a similar holding that is not a wash-sale partner, is a separate choice. The tax identity only prices the allowed loss.
Can I harvest a loss inside a 401(k) or IRA?
A loss inside a tax-deferred or Roth wrapper does not pass through as a capital loss on this year's return. Harvesting, as this page uses the word, is a taxable-account sale.
Keep reading
This page is educational material, not financial advice. The figures come from the formula shown and assume the inputs you enter hold for the whole term. Your own rate, fees, taxes and timing will differ, so treat the output as arithmetic to check a decision against, not as a recommendation.