Tax-loss harvesting means selling investments at a loss by December 31 to reduce what you owe in capital gains taxes. Done correctly, it can shave hundreds or thousands of dollars from your bill, but the wash sale rule adds a critical constraint you have to plan around.
How Does Tax-Loss Harvesting Reduce Your Tax Bill?
When you sell an investment at a loss, the loss offsets your capital gains:
- Short-term losses offset short-term gains first; long-term losses offset long-term gains first
- Excess losses cross over to offset the other category
- Any remaining net loss offsets up to $3,000 of ordinary income per year ($1,500 if married filing separately)
- Losses beyond that carry forward to future tax years indefinitely under IRC Section 1212(b)
Example: You realize $15,000 in long-term gains but hold a position sitting at a $10,000 loss. Sell it by December 31 and your taxable long-term gain drops to $5,000.
How much can tax-loss harvesting save you? That depends on your tax rate and the size of your gains. A $10,000 loss used against $10,000 of long-term gains saves $1,500 to $2,380 of federal tax, at rates from 15 percent up to 23.8 percent once the net investment income tax applies. A holder whose taxable income keeps the gain in the 0 percent long-term bracket saves nothing on that part, so the harvest is worth less there. Any excess loss that reaches ordinary income saves tax at your marginal rate.
What Is the Wash Sale Rule?
Under IRC Section 1091, a loss is disallowed if you buy the same or a substantially identical security within 30 days before or after the sale. The window is 61 days total: 30 days before the sale date plus the sale date plus 30 days after.
The rule also reaches:
- Your spouse's brokerage accounts
- IRAs you own (if you rebuy inside an IRA, the loss is permanently forfeited with no future recovery)
- 401(k) purchases are a gray area. The IRS has ruled only on IRAs and Roth IRAs and has said nothing about 401(k) plans, so avoid buying the same fund in your 401(k) within 30 days before or after the sale
When a wash sale applies in a taxable account, the disallowed loss gets added to the cost basis of the replacement shares. The loss is deferred until you eventually sell those shares. Inside an IRA, there is no basis recovery at all.
Year-end timing note: If you sell on December 15, you cannot rebuy the same security until at least January 15, 2027. The wash sale window does not reset on January 1.
Three Strategies for Year-End Harvesting
Replace With a Similar ETF
Sell the losing position and immediately buy an ETF or fund that tracks a different but similar index, such as an S&P 500 fund swapped for a total market fund. The IRS decides whether two securities are substantially identical on all the facts, and it has not ruled on two funds from different sponsors that track the same index, so a different index is the safer swap. You lock in the loss while maintaining market exposure.
Sell and Wait 31 Days
Sell the losing security, hold the proceeds in a money market fund or short-term bond ETF for at least 31 days, then repurchase the original position. This fully avoids the wash sale rule. The risk is missing a price recovery during those 31 days.
Combine Harvesting With Rebalancing
If your portfolio needs rebalancing anyway, harvest losses while you adjust. Sell overweight positions that sit at a loss, then reinvest in underweight asset classes using different securities. You accomplish rebalancing and tax savings in the same trade without any timing risk.
What Tax-Loss Harvesting Cannot Do
A few limits worth knowing:
- Little benefit in the 0% bracket. If your long-term gains fall in the 0% bracket, a harvested loss offsets gains that would have cost you nothing. The only immediate gain is any loss left over to offset up to $3,000 of ordinary income.
- The $3,000 ordinary income cap is fixed. It is not indexed for inflation, and the OBBBA did not change it.
- Losses offset only $3,000 a year of other income. Beyond that, capital losses cannot offset IRA or 401(k) distributions, which are taxed as ordinary income.
- Watch December fund distributions. Many mutual funds pay capital gain distributions in December. Harvest losses elsewhere in your portfolio to offset them.
Key Year-End Deadlines
- December 31, 2026 is the last trade date for a 2026 loss on U.S. stocks and ETFs. The trade date decides the tax year, so the sale counts for 2026 even though it settles on the next business day.
- November 30, 2026 is the last date to sell and still repurchase the same security on December 31, 2026, the 31st day, without a wash sale.
What If You Missed December 31, 2026?
A sale made in 2027 counts on your 2027 return. December 31, 2027, a Friday, is the last trade date for a 2027 loss. On your 2026 return, report each sale on Form 8949 and Schedule D, and carry any loss above $3,000 into 2027 with the Capital Loss Carryover Worksheet in the Schedule D instructions; a carried loss keeps its short-term or long-term character. If you sold at a loss in late December 2026 and bought the same security back in January 2027 within 30 days, the 2026 loss is disallowed and added to the basis of the January shares.
What Are the 2026 and 2027 Capital Gains Brackets?
| Filing status | 0% up to (2026) | 15% up to (2026) | 0% up to (2027) | 15% up to (2027) |
|---|---|---|---|---|
| Married filing jointly | $98,900 | $613,700 | $102,100 | $633,600 |
| Single | $49,450 | $545,500 | $51,050 | $563,200 |
| Head of household | $66,200 | $579,600 | $68,350 | $598,400 |
| Married filing separately | $49,450 | $306,850 | $51,050 | $316,800 |
The 3.8% net investment income tax applies above modified AGI of $200,000 (single or head of household), $250,000 (joint) or $125,000 (married filing separately). These thresholds are not indexed. Source: IRS Rev. Proc. 2025-32 and Rev. Proc. 2026-35.
Does the Wash Sale Rule Apply to Crypto?
Not under current law. Section 1091 covers stock and securities, and the IRS treats digital assets as property, so selling a coin at a loss and buying it back does not trigger a wash sale. Crypto gains and losses still go through the same short-term and long-term netting. Congress has proposed extending the rule to digital assets, so check the law in the year you sell. A bill introduced in September 2026 (H.R. 10357) would apply the wash sale rule to traded crypto for sales after September 14, 2026 if it becomes law in its current form, so waiting 31 days to buy back the same coin avoids that risk. Our crypto wash sale guide covers the details.
Questions about year-end investment planning? Contact TS CPA for a free consultation. We respond within the same day.
Frequently Asked Questions
What is tax-loss harvesting?
Tax-loss harvesting means selling investments that have declined in value to realize a capital loss. That loss offsets capital gains you've realized during the year, reducing your taxable income. Any net loss beyond your gains can offset up to $3,000 of ordinary income per year, with the remainder carrying forward indefinitely.
What is the wash sale rule for tax-loss harvesting?
Under IRC Section 1091, if you buy the same or a substantially identical security within 30 days before or after selling it at a loss, the loss is disallowed. The window is 61 days total. In a taxable account, the disallowed loss is added to the cost basis of your replacement shares and recovered later. Inside an IRA, the loss is permanently forfeited.
When is the deadline to harvest losses for 2026?
December 31, 2026 is the last trade date for a 2026 loss on U.S. stocks and ETFs. The trade date decides the tax year, so a December 31 sale counts for 2026 even though it settles in January. To rebuy the same security before year-end, sell by November 30, 2026 and rebuy no earlier than December 31. For 2027, the last trade date is Friday, December 31, 2027.
How much can tax-loss harvesting save me?
The savings depend on your tax rate and the size of your gains. A $10,000 loss offset against $10,000 in long-term gains could save $1,500 to $2,380 in federal tax (at the 15% to 23.8% NIIT-inclusive rate). Additional savings come if the excess loss reduces ordinary income at your marginal rate.

