Tax-loss harvesting means selling an investment that's worth less than you paid for it so the loss can offset gains, and possibly some ordinary income, on your tax return. It's one of the few tax moves an ordinary investor with a taxable brokerage account can make on their own. It's also easy to get wrong, mainly because of the wash sale rule.
This guide covers how capital losses offset gains, the $3,000 limit and carryovers, the 2026 capital gains thresholds, how the wash sale rule works, how to report harvested losses and when harvesting isn't worth it. Sources are IRS Publication 550, IRS Tax Topics 409 and 559, Revenue Procedure 2025-32 and the Form 8949 instructions, all read on Nov. 19, 2026. If you need a refresher on how gains are classified, start with our explainer on short-term vs. long-term capital gains.
What tax-loss harvesting is
When you sell an investment held in a taxable account, you have a capital gain if you sell for more than your basis, which is usually what you paid, and a capital loss if you sell for less. Gains and losses are netted against each other on Schedule D. Harvesting is simply choosing to realize a loss, often near the end of the year, so it's available to reduce the tax on gains you've already realized or will realize.
Three things make it work:
- Losses offset gains. Capital losses reduce capital gains dollar for dollar.
- Excess losses offset some ordinary income. If losses are bigger than gains, up to $3,000 a year can reduce other income.
- Unused losses carry forward. What you can't use this year rolls into future years until it's used up.
Harvesting doesn't erase the economic loss. The investment really did go down. What it changes is when and how the loss shows up on your return. In many cases it also lowers your basis in whatever you buy next, which can mean a bigger gain later. We'll come back to that.
Harvesting only matters for investments in a taxable account. Gains and losses inside retirement accounts like IRAs and 401(k)s aren't netted this way each year. Our comparison of a brokerage account vs. an IRA explains the difference in how each is taxed.
Short-term and long-term losses
According to IRS Topic 409, if you hold an asset for more than one year before you dispose of it, the gain or loss is generally long-term. If you hold it for one year or less, it's short-term. The distinction matters because net short-term gains are taxed as ordinary income at regular rates, while net long-term gains get lower rates.
Netting happens in steps on Schedule D. Short-term gains and losses are combined, long-term gains and losses are combined, and then the two results are combined. Topic 409 defines "net capital gain" as the amount by which net long-term capital gain is more than net short-term capital loss. That's the amount eligible for the lower long-term rates.
The holding period counts from the trade date. Publication 550 says that for securities traded on an established market, your holding period begins the day after the trade date you bought and ends on the trade date you sold. It also warns not to confuse the trade date with the settlement date, when the shares are delivered and paid for.
The $3,000 limit and carryovers
If your capital losses are more than your capital gains, you can deduct the excess against other income, up to a limit. Publication 550 says the allowable deduction is the lesser of:
- $3,000, or $1,500 if you're married and file a separate return, or
- Your total net loss shown on line 16 of Schedule D.
Anything above that carries over to the next year and is treated as if you incurred it in that year. If part is still unused, it keeps carrying over until it's used up.
A carried-over loss keeps its character. Publication 550 says a long-term loss you carry over reduces the next year's long-term gains before it reduces short-term gains. When you figure the carryover, short-term losses are used first. Publication 550 has a worksheet, Worksheet 4-1, for the calculation.
The publication's own example: Bob and Shelly sold securities in 2025 at a capital loss of $7,000. They had no other capital transactions and taxable income of $26,000. On their joint 2025 return, they can deduct $3,000, and they carry the remaining $4,000 over to 2026.
A worked example
Here's a simplified example using hypothetical numbers. Say that this year you sold an index fund for a $6,000 long-term gain. You also own shares of a stock that are now $10,000 below what you paid, and you've held them for more than a year. You sell them.
| Step | Amount |
|---|---|
| Long-term gain from the fund | $6,000 |
| Long-term loss from the stock | −$10,000 |
| Net capital loss | −$4,000 |
| Deducted against other income this year | $3,000 |
| Carried over to next year (long-term) | $1,000 |
Without the sale, the $6,000 gain would have been taxable. If it would have been taxed at a 15% long-term rate, that's $900 of federal tax you no longer owe on it. You'd also get a $3,000 deduction against other income, and a $1,000 long-term loss to use next year.
This is a simplified illustration. It ignores state taxes, the net investment income tax and any other income or losses. Your actual result depends on your whole return.
The 2026 capital gains thresholds
Long-term gains are taxed at 0%, 15% or 20%, depending on your taxable income. The IRS's Topic 409 page still shows 2025 figures. For tax year 2026, the thresholds come from Revenue Procedure 2025-32:
| Filing status | 0% rate up to | 15% rate up to |
|---|---|---|
| Married filing jointly | $98,900 | $613,700 |
| Married filing separately | $49,450 | $306,850 |
| Head of household | $66,200 | $579,600 |
| All other individuals (single) | $49,450 | $545,500 |
Long-term gains are taxed at 20% to the extent your taxable income exceeds the 15% ceiling. Topic 409 notes a few exceptions where certain gains are taxed at higher rates.
Higher earners may also owe the 3.8% net investment income tax. IRS Topic 559 says it applies to the lesser of your net investment income or the amount by which your modified adjusted gross income is over $250,000 if married filing jointly, $125,000 if married filing separately, or $200,000 if single or head of household. Harvested losses can reduce net investment income, too.
The 0% bracket points to a mirror-image idea some investors use: in a year with low taxable income, realizing long-term gains on purpose, up to the 0% ceiling, so they're taxed at 0%. That's sometimes called tax-gain harvesting. It only works if your taxable income, including the gain, stays within the 0% range, so run the numbers first. For 2027 inflation adjustments to brackets, see our coverage of 2027 tax brackets and the standard deduction.
The wash sale rule
This is where most harvesting mistakes happen. Publication 550 says you can't deduct a loss from a sale of stock or securities in a wash sale. A wash sale happens when you sell at a loss and, within 30 days before or after the sale, you:
- Buy substantially identical stock or securities,
- Acquire substantially identical stock or securities in a fully taxable trade,
- Acquire a contract or option to buy substantially identical stock or securities, or
- Acquire substantially identical stock for your traditional IRA or Roth IRA.
It's also a wash sale if you sell and your spouse, or a corporation you control, buys substantially identical stock.
The 30 days run in both directions, so the window is 61 days long, counting the day of the sale. If you sell on Dec. 1, 2026, the window runs from Nov. 1 through Dec. 31, 2026. If you sell on Dec. 15, 2026, it runs from Nov. 15, 2026, through Jan. 14, 2027. A purchase made in the weeks before the sale counts, which catches people who added to a position shortly before harvesting it.
Automatic purchases count too. A dividend reinvestment plan or recurring purchase that buys more of the same holding inside the window can trigger the rule on at least part of the loss.
What happens to a disallowed loss
A wash sale usually postpones the loss rather than destroying it. Publication 550 says to add the disallowed loss to the cost of the new shares. That becomes your basis in the new shares, so the loss shows up later, when you sell them. Your holding period for the new shares also includes the holding period of the shares you sold.
Publication 550's example: you buy 100 shares of X stock for $1,000 and sell them for $750. Within 30 days you buy 100 shares of the same stock for $800. You can't deduct the $250 loss. Instead, you add $250 to the $800 cost, so your basis in the new shares is $1,050.
The IRA case is different. The publication's basis adjustment specifically excludes the fourth situation, buying substantially identical stock in an IRA or Roth IRA. If you harvest a loss in your brokerage account and your IRA buys the same security within the window, the disallowed loss isn't added to the IRA shares' basis. That's the version of a wash sale to be most careful about.
If you buy more or fewer shares than you sold, Publication 550 says to match the shares bought with an equal number of shares sold, in the order you bought them. The wash sale rule applies only to the matched shares, so a partial loss can still be deductible.
What "substantially identical" means
There's no bright-line list. Publication 550 says you must consider all the facts and circumstances. Ordinarily, stock of one corporation is not substantially identical to stock of another corporation, though it can be in some cases, such as a reorganization where predecessor and successor stock may be. Bonds or preferred stock of a corporation ordinarily aren't substantially identical to its common stock, unless they're convertible and trade like it.
Publication 550 doesn't say when two mutual funds or ETFs are substantially identical. Investors who want to stay invested while harvesting often switch to a fund that's similar but not the same, such as a fund tracking a different index. Whether two particular funds are substantially identical depends on the facts, so if you're unsure, it's worth asking a tax professional. Our comparison of index funds vs. ETFs covers how funds that look alike can differ.
How to report harvested losses
You report sales on Form 8949 and carry the totals to Schedule D. Your broker reports most sales to you on Form 1099-B.
If a loss is disallowed under the wash sale rule, the Form 8949 instructions say to enter code W in column (f) and enter the nondeductible loss as a positive number in column (g). If the wash sale loss shown in box 1g of Form 1099-B, or box 1i of Form 1099-DA, is wrong, you enter the correct amount in column (g) and follow the instructions for the adjustment.
That last point matters because a broker generally tracks only what happens in the accounts it holds. A purchase in your IRA, your spouse's account or an account at a different broker may never show up on your 1099-B, and it's your responsibility to account for it.
The year-end deadline
For a loss to count in 2026, the sale needs to happen in 2026. Dec. 31, 2026, falls on a Thursday. For stocks traded on an exchange, the trade date, not the settlement date, is what counts: Publication 550's example says a stock sold on Dec. 31, 2025, and settled in January 2026 is reported on the 2025 return. Even so, it's safer not to wait for the last afternoon of the year. Check your broker's trading hours and any holiday schedule.
Also remember the window runs into January. A sale late in December followed by a repurchase of the same holding in early January can still be a wash sale.
When harvesting isn't worth it
Harvesting isn't free, and it isn't always useful:
- Your gains may already be taxed at 0%. If your taxable income is within the 0% long-term range, there may be little tax to save this year, though a carryover can still help later.
- It lowers your basis. If you buy a replacement at a lower price, your future gain on it will be larger. Harvesting often defers tax rather than eliminating it.
- It can change your portfolio. Selling a holding to capture a loss can leave you less diversified or out of the market for a period. Our guide to diversification basics covers what to keep in mind.
- Trading costs and spreads add up. On a small loss, costs can eat the benefit.
- Personal-use property doesn't count. Publication 550 says you can't deduct a loss from selling property held for personal use, such as your car.
- Income you receive isn't harvested. Harvesting deals with sales. Dividends you receive while you hold a fund are reported separately, and a reinvested dividend is a purchase that can matter for the wash sale window. See our guide to how dividends work.
Losses are also different from deductions you claim elsewhere on your return. Our explainer on deductions vs. credits covers how each lowers your tax.
Sources and methodology
- Internal Revenue Service, Publication 550, "Investment Income and Expenses" (for 2025 returns).
- Internal Revenue Service, Topic No. 409, "Capital gains and losses."
- Internal Revenue Service, Revenue Procedure 2025-32, section on maximum capital gains rate amounts for taxable years beginning in 2026.
- Internal Revenue Service, Topic No. 559, "Net investment income tax."
- Internal Revenue Service, Instructions for Form 8949, "Sales and Other Dispositions of Capital Assets."
Sources were read on Nov. 19, 2026. The X stock and Bob and Shelly examples come from Publication 550. The $6,000 and $10,000 example and the wash sale window dates are our own illustrations, calculated by the editor; they don't describe any specific investment. The 2026 thresholds come from Revenue Procedure 2025-32 because the IRS Topic 409 page showed 2025 figures when we checked. Tax rules for your situation may differ; consider a tax professional for complex cases.
By Thiago Costa. Updated Nov. 19, 2026.
This content is for general education and is not financial advice.





