How Tax Loss Harvesting Works

Tax loss harvesting means selling an investment below its cost so the loss cancels capital gains. At ModernWallet, we show the math in the guides we publish here, starting with a $10,000 loss. If your losses exceed your gains, the Internal Revenue Service (IRS) lets you deduct up to $3,000 of the excess from other income each year ($1,500 if married filing separately). You carry the rest forward.

The saving equals the tax rate on the gains the loss cancels, so a loss against gains taxed at 0% saves nothing. Most of the benefit is a deferral, because the replacement investment starts with a lower cost basis. Buying the same or a substantially identical security within 30 days before or after the sale triggers the wash sale rule and blocks the deduction.

Tools for this journey

What Tax Loss Harvesting Can Deduct Each Year

Tax loss harvesting works by selling an asset for less than its adjusted basis and claiming the difference as a capital loss. IRS Topic 409 says an asset's basis is generally its cost, and a sale for more than that basis is a capital gain. Losses from selling personal-use property, such as a home or car, are not tax deductible.

A capital loss on an investment cancels capital gains. If losses are still left over, you can claim the lesser of $3,000 ($1,500 if married filing separately) or your total net loss from line 16 of Schedule D against your other income. Any net loss above that limit carries forward to later years.

The holding period sets the type of loss. IRS Topic 409 treats an asset held more than one year as long-term and one held one year or less as short-term.

The type matters because the two are taxed differently. Net short-term capital gains are taxed as ordinary income at graduated rates. Most net capital gain is taxed at 0%, 15% or 20%. IRS Topic 409 names higher maximum rates for a few gains: 28% for collectibles and section 1202 stock, and 25% for unrecaptured section 1250 gain.

What a Harvested Loss Is Worth at 0%, 15% and 20%

A harvested loss is worth the tax rate on the gain it cancels, multiplied by the size of the loss. In our internal modeling, we ran a $10,000 harvested loss against $10,000 of long-term gains taxed at 0%, 15% and 20%. The saving came out to the rate times the loss, which is nothing at 0%.

Long-term gains rateGain cancelledFederal tax saved
0%$10,000$0
15%$10,000$1,500
20%$10,000$2,000

The inputs are a $10,000 loss, $10,000 of long-term gain and one federal rate per row. The model leaves out ordinary-income rates, state tax, the net investment income tax and transaction costs, so every figure is illustrative.

Your rate depends on your 2026 taxable income, and that test includes the gain itself. IRS Revenue Procedure 2025-32 sets these 2026 ceilings for the 0% and 15% rates:

Above the 15% ceiling for your filing status, the 20% rate applies.

A year with losses and no gains works differently. With a $10,000 net capital loss and no gains, our model deducts $3,000 against other income and carries $7,000 forward. A married person filing separately deducts $1,500. The cash value of that deduction depends on the rate on your other income, which we did not model. A tax professional can apply your rate.

Tax Loss Harvesting Usually Defers Tax to a Later Year

Tax loss harvesting usually moves tax to a later year, because the replacement you buy has a lower basis than the investment you sold. In our internal modeling, a share bought for $10,000 and sold at $7,000 produces a $3,000 loss. A replacement bought for $7,000 has a $7,000 basis.

Sell that replacement later for $10,000 and you realize a $3,000 gain. The gain equals the loss you harvested.

The tax comes back unless the rates differ between the two years or the gain is never realized. A later rate above today's rate makes the deferral cost more than it saved. Some cases, such as a 0% year, a basis step-up at death or a gift to charity, can change the result. A tax professional can explain how they apply to your return.

The Wash Sale Rule and Tax Loss Harvesting in an IRA

The wash sale rule blocks a harvested loss when, within 30 days before or after the sale, you acquire substantially identical stock or securities. IRS Publication 550 lists four ways to trigger it:

A purchase of substantially identical stock by your spouse or by a corporation you control also creates a wash sale.

In a taxable account, the disallowed loss is added to the cost of the new shares, which becomes their basis. The added cost postpones the deduction until you sell the new shares, and the holding period of the shares you sold carries over to them. Publication 550 gives this example. You buy 100 shares of X stock for $1,000 and sell them for $750. Within 30 days you buy 100 shares for $800. You cannot deduct the $250 loss, and your new basis is $1,050.

When the repurchase is for an IRA or Roth IRA, Publication 550 does not add the disallowed loss to the cost of the new stock. A tax professional can explain what that means for your loss.

No mechanical formula defines substantially identical, as our wash sale rule guide explains. You weigh all the facts and circumstances, and stock of two different corporations is ordinarily not substantially identical.

When Tax Loss Harvesting Does Not Pay

Tax loss harvesting saves nothing now when the gains it cancels would have been taxed at 0%. Four cases reduce or remove the benefit:

The rules above describe sales in taxable accounts that you report on Form 8949. Losses inside an IRA or another tax-deferred account are a question for a tax professional. If you need a decision on your own holdings, a tax professional can apply these rules to your return.

Our answer would change if your bracket differs from the ones modeled, or if the $3,000 limit or the wash sale rule changes. The IRS pages cited above do not cover state tax treatment, the net investment income tax or cryptocurrency, so a tax professional can add those to your figures. Our wash sale rule guide covers how brokers report wash sales across accounts. Our tax tips guide covers other year-end moves.

How to Report a Harvested Loss

You report a harvested loss on Form 8949, Sales and Other Dispositions of Capital Assets, which IRS Topic 409 names as the form for most sales of capital assets. Each sale's gain or loss is figured there and then totalled on Schedule D.

IRS Publication 550 has you combine your net short-term gain or loss from Schedule D line 7 with your net long-term gain or loss from line 15. The total goes on Part III, line 16. A net loss allowed against other income goes on line 7a of Form 1040, Form 1040-SR or Form 1040-NR.

Any loss above the yearly limit is tracked with the Capital Loss Carryover Worksheet. That worksheet appears in Publication 550 and in the IRS Instructions for Schedule D, with separate lines for short-term and long-term carryovers. To figure the tax on one specific sale before you report it, use our Stock Capital Gains Tax Calculator.

Our Takeaway

For a US taxpayer with realized capital gains taxed at 15% or 20%, harvesting a loss saves 15 or 20 cents of federal tax per dollar of loss now. With gains taxed at 0% it saves nothing, and with no gains it saves tax only on the first $3,000 of loss a year. That conclusion applies to taxable accounts and rests on IRS rules plus our worked arithmetic.

The answer changes if you buy the same or a substantially identical security within the 30-day windows, including in an IRA. It also changes if a higher future rate makes the deferral cost more than it saved.

List your 2026 realized gains and losses, and check your trade history for any repurchase inside the 30-day windows before you harvest a loss. If your case is not simple, take that list to a tax professional before any tax loss harvesting sale.

Frequently asked questions

Is it possible to sell stocks at a loss to reduce taxes?

Yes. Selling stock below its adjusted basis creates a capital loss that cancels capital gains. IRS Topic 409 lets you deduct up to $3,000 of any excess against other income ($1,500 if married filing separately). The deduction is blocked if you buy substantially identical stock within 30 days before or after the sale.

Do I get $3,000 back from a stock loss?

No. The $3,000 limit is a deduction that lowers your taxable income on line 7a of Form 1040. The cash you save depends on the tax rate on that income, and any loss above the limit carries forward to later years.

Is there a downside to tax loss harvesting?

Yes, the saving is usually a deferral. The replacement investment has a lower basis, so in our $10,000 example the $3,000 harvested loss returns as a $3,000 gain when the replacement is sold at $10,000. A wash sale repurchase postpones the deduction, and a higher future tax rate can make the deferral cost more than it saved.

Does tax loss harvesting reduce taxable income?

Yes, up to a limit. After your losses cancel your capital gains, the remaining loss lowers your taxable income on line 7a of Form 1040. The limit is the lesser of $3,000 ($1,500 if married filing separately) or your total net loss. The rest carries forward to later years.

Is tax loss harvesting just deferring taxes?

Mostly, yes. Because the replacement starts at a lower basis, the gain you avoid now comes back when you sell it, unless the tax rates differ or the gain is never realized. A tax professional can explain how a 0% year, a basis step-up at death or a gift to charity apply to you.

Can short-term losses offset long-term gains?

Yes, Schedule D combines them into one net result. IRS Publication 550 has you combine net short-term gain or loss from line 7 with net long-term gain or loss from line 15 into one total on line 16. Any carryover keeps its short-term or long-term character, and the Schedule D instructions show a separate carryover line for each.

Sources

We prioritize primary sources for rules, formulas, rates, limits, and definitions. See our calculator methodology and editorial policy.