↑ ↓ to moveEnter to openEsc to close
Year-End Planning

Tax-Loss Harvesting and the Wash-Sale Rule: 2026 Basics

"Tax-loss harvesting" is an informal name for selling an investment that is worth less than you paid so the loss can offset capital gains on your tax return. The IRS rules behind it are simple to state: losses first offset gains, up to $3,000 of any extra loss ($1,500 if married filing separately) can reduce other income each year, and the rest carries forward. The catch is the wash-sale rule, which blocks the loss if you buy the same or a substantially identical investment within 30 days before or after the sale.

General information only — not tax, legal or financial advice. Verify current figures at IRS.gov. Full disclaimer.

Free tool

Tax bracket calculator — Your marginal and effective rate, tax by bracket and the dollars left before the next bracket.

Open the tool

Related reading

This post walks through those rules using IRS Publication 550, Topic no. 409 and the Schedule D and Form 8949 instructions, all checked on November 11, 2026. It explains how the rules work. It is not a recommendation to buy or sell any investment.

Key takeaway

A capital loss can offset capital gains and up to $3,000 a year of other income ($1,500 if married filing separately), with any extra carried forward, but buying substantially identical stock or securities within 30 days before or after the sale generally postpones the loss.

Try it: Tax bracket calculatorYour marginal and effective rate, tax by bracket and the dollars left before the next bracket.

How a capital loss offsets gains

When you sell a capital asset, such as stock or a mutual fund held as an investment, the difference between your adjusted basis (generally what you paid) and the amount you got is a capital gain or a capital loss, according to IRS Topic no. 409. If you held the asset more than one year, the result is long-term. If you held it one year or less, it is short-term.

On Schedule D, short-term gains and losses are netted together, long-term gains and losses are netted together, and then the two results are combined on line 16, as Publication 550 describes. A loss therefore reduces your gains before anything else happens. That matters because short-term gains are taxed at ordinary income rates, while long-term gains can qualify for the 0%, 15% or 20% rates. Our capital gains rates page covers those rates in detail.

Losses on personal-use property, such as your home or car, are not deductible, Topic no. 409 says. Publication 550 also notes that its rules do not apply to investments held inside IRAs, 401(k) plans and other qualified retirement plans, so selling at a loss inside those accounts does not create a capital loss on your return.

2026 long-term capital gains rate thresholds (taxable income), from Revenue Procedure 2025-32
Filing status0% rate up to15% rate up to
Single$49,450$545,500
Married filing jointly or surviving spouse$98,900$613,700
Married filing separately$49,450$306,850
Head of household$66,200$579,600

Above the 15% amounts, the 20% rate applies to the extent taxable income is higher. Some people with significant investment income also owe the 3.8% net investment income tax, which applies when modified adjusted gross income is above $200,000 (single or head of household), $250,000 (married filing jointly or qualifying surviving spouse) or $125,000 (married filing separately), according to IRS Topic no. 559.

The $3,000 limit and carrying losses forward

If your capital losses are larger than your capital gains for the year, Publication 550 says the deduction against other income is the lesser of $3,000 ($1,500 if married filing separately) or your total net loss on Schedule D, line 16. The deduction goes on Form 1040, line 7a.

Anything above that limit is not lost. You can carry the unused part to the next year and treat it as if it happened in that year, and keep carrying any remainder until it is used up. Two details from Publication 550 are easy to miss:

  • A carried-over loss keeps its character. A long-term loss stays long-term, and in the next year it reduces long-term gains before short-term gains.
  • When you figure the carryover, you must take the current year's allowable deduction into account whether or not you actually claimed it, and even if you did not file a return.

The Schedule D instructions include a Capital Loss Carryover Worksheet, and the same worksheet appears in Publication 550. Keep last year's Form 1040 and Schedule D handy, since the worksheet uses figures from them. Our page on how long to keep tax records explains why those records matter for years after a sale.

Example

Suppose a single filer sold a fund in 2026 for a $4,000 long-term gain and later sells another fund for a $9,000 long-term loss. The net result on Schedule D is a $5,000 loss ($4,000 minus $9,000). The gain is fully offset, $3,000 of the remaining loss can reduce other income for 2026, and $2,000 carries forward to 2027 as a long-term loss. This is a hypothetical illustration only, and actual results depend on the whole return.

How the wash-sale rule works

Publication 550 says you cannot deduct a loss from selling or trading stock or securities in a wash sale. A wash sale happens when, within 30 days before or after the sale at a loss, you:

  1. Buy substantially identical stock or securities.
  2. Acquire substantially identical stock or securities in a fully taxable trade.
  3. Acquire a contract or option to buy substantially identical stock or securities.
  4. Acquire substantially identical stock for your IRA or Roth IRA.

It also counts as a wash sale if you sell stock and your spouse, or a corporation you control, buys substantially identical stock. The window runs in both directions, so a purchase made shortly before the sale can trigger the rule just as a purchase made after it can.

The loss is usually postponed, not erased

In most wash sales, the disallowed loss is added to the cost basis of the new shares, and your holding period for the new shares includes the time you held the old ones. That pushes the loss into the future, when you sell the new shares. The exception is the IRA and Roth IRA case (item 4 above): Publication 550 does not apply the basis adjustment there.

Example

Say you paid $2,000 for 50 shares of a stock, sold them for $1,400 and, within 30 days, bought 50 shares of the same stock for $1,450. The $600 loss ($2,000 minus $1,400) is not deductible now. Your basis in the new shares becomes $2,050 ($1,450 plus $600). This is a hypothetical illustration only.

What "substantially identical" means

The IRS says to consider all the facts and circumstances. Publication 550 says stock of one corporation ordinarily is not substantially identical to stock of another corporation, although it can be in some cases, such as a reorganization. Bonds or preferred stock of a company ordinarily are not substantially identical to its common stock, unless convertible features and pricing make them so. The publication does not give a list of which funds count, so read the full section when the answer is unclear.

If you buy more or fewer shares than you sold within the window, Publication 550 explains how to match them so that only part of the loss may be disallowed.

Year-end timing and reporting

For securities traded on an established market, Publication 550 says the holding period ends on the trade date of the sale, and it warns not to confuse the trade date with the settlement date. Its example shows a stock sold on December 31 being reported on that year's return even though payment arrived in January. In other words, the trade date decides which year the loss belongs to.

On the return, sales generally go on Form 8949 and then Schedule D. If your broker sends Form 1099-B, box 1g shows a disallowed wash-sale loss when the securities were covered securities and the replacement shares had the same CUSIP number and were bought in the same account. Publication 550 is clear that a wash-sale loss is still not deductible even if the 1099-B does not show it, for example when the replacement purchase was in a different account. Under the Form 8949 instructions, you report a wash sale with code W in column (f) and the disallowed amount as a positive number in column (g).

What to check before December 31

  • Review realized gains and losses for 2026 in every taxable account you own.
  • Note any planned purchases of the same or similar investments within 30 days before or after a sale, including in a spouse's account or an IRA.
  • Look up any capital loss carryover from your 2025 Schedule D.
  • If a large gain is coming, the estimated tax payments page explains how quarterly payments work, and Topic no. 409 notes that a taxable capital gain may require them.

Our year-end tax planning checklist and the 2026 year-end tax moves post cover other items with a December 31 deadline, and the tax terms list defines basis and other words used here. For the final word on any rule in this post, see IRS Publication 550, Topic no. 409 and the Schedule D and Form 8949 instructions listed in the sources below.

About the author: Fadal Abdul writes and maintains Plain Tax Help. He researches tax topics from IRS.gov and official state sources and explains them in plain English. He is not a CPA, attorney or enrolled agent, and this is general education, not tax advice. See the About page and our editorial policy.

Sources

Figures, dates and rules in this post were checked against these official pages on November 11, 2026. Open them to confirm the current numbers before you act.

General information only — not tax, legal or financial advice. Tax figures change every year; verify the current numbers at IRS.gov or with a qualified professional. Read the full disclaimer.

Up next on the blogYear-End Tax Moves: A 2026 Checklist to Review Before Dec. 31A plain-English checklist of year-end tax items to review before December 31, 2026: withholding, accounts, giving, standard deduction and expired credits.