Tax-Loss Harvesting: Cut Your Tax Bill Legally

A flat lay of a desk with a laptop, calculator, cash, and wooden tiles spelling TAXES, representing retirement and dividend tax planning.
Investing

Tax-Loss Harvesting: Cut Your Tax Bill Legally

April 27, 2026

Quick Answer

Tax-loss harvesting (TLH) is the practice of selling a security at a realized loss to offset capital gains, plus up to $3,000 of ordinary income per year ($1,500 if married filing separately). Excess losses carry forward indefinitely. For 2026, federal long-term capital gains and qualified dividends are still taxed at 0%, 15%, or 20%, with the 0% bracket reaching $49,450 taxable income for single filers and $98,900 for married filing jointly under IRS Revenue Procedure 2025-32. The One Big Beautiful Bill Act (OBBBA), signed July 4, 2025, did not change these rates.

For a dividend portfolio, TLH is harder than for a growth portfolio. Two IRS clocks run at the same time: the 30-day wash-sale window on either side of the loss sale (61 days total) and the 61-day qualified-dividend holding period inside a 121-day window around the ex-dividend date. Mishandle either, and you forfeit the loss, the preferential dividend rate, or both.

How Tax-Loss Harvesting Works in 2026

You realize a capital loss when you sell a security in a taxable account for less than your adjusted cost basis. That realized loss can be applied in a fixed order set by the Internal Revenue Code.

Short-term losses first offset short-term gains. Long-term losses first offset long-term gains. Any remaining losses then cross over and offset gains of the other type. Whatever is left over — the net capital loss — can offset up to $3,000 of ordinary income each year. Anything still unused carries forward to future tax years with no expiration.

The $3,000 ceiling has not moved since 1978. It is not indexed for inflation, which means its real value erodes a little each year. Carryforwards, however, never expire under current law.

2026 Long-Term Rate Brackets

For tax year 2026 (returns filed in 2027), the IRS thresholds for long-term capital gains and qualified dividends are:

2026 Long-term capital gains and qualified dividend thresholds — IRS Rev. Proc. 2025-32
Filing status 0% rate up to 15% rate up to 20% rate above
Single $49,450 $545,500 $545,500
Married filing jointly $98,900 $613,700 $613,700
Head of household $66,700 $579,600 $579,600
Married filing separately $49,450 $306,850 $306,850

Short-term gains — on assets held one year or less — remain taxed at ordinary rates of 10% to 37%. The OBBBA made the seven-bracket TCJA structure permanent and adjusted thresholds for inflation, but it left the capital-gains and qualified-dividend rate schedule untouched.

Why the Strategy Pays

The arithmetic is straightforward. A $10,000 long-term loss harvested against a $10,000 long-term gain at 15% saves $1,500 in federal tax. Apply the same loss against ordinary income at a 32% marginal rate (subject to the $3,000 cap) and the saving is $960 on that slice. Layer in state tax and the 3.8% Net Investment Income Tax for higher earners, and the after-tax difference grows.

Why Dividend Investors Face a Different Calculus

A growth-stock investor sells a loser, buys a non-identical replacement, and waits 31 days. The mechanics are simple because the replacement has no recurring cash payment. A dividend investor cannot ignore the cash payment. The dividend itself is what triggers a second set of rules.

To pay tax on a dividend at the favorable 0%, 15%, or 20% rate — rather than at ordinary rates of up to 37% — the dividend must be qualified. To be qualified, you must have held the stock for more than 60 days during the 121-day period that begins 60 days before the ex-dividend date. For preferred stock paying dividends attributable to periods longer than 366 days, the requirement extends to more than 90 days during a 181-day window.

This means a dividend portfolio is exposed to two penalty regimes at once. Sell too quickly and you lose the loss deduction (wash sale). Sell too quickly relative to a recent dividend and you also lose the preferential rate on dividends already received. The strategy therefore is not “harvest the loss.” It is “harvest the loss without breaking the holding period.”

Real estate investment trust (REIT) distributions, master limited partnership distributions, money-market dividends, and dividends from non-qualified foreign corporations sit outside the qualified-dividend regime entirely. They are taxed as ordinary income regardless of holding period, though most REIT ordinary distributions still qualify for the 20% Section 199A deduction through 2026. For a REIT-heavy sleeve, the holding-period trap is less severe, but the wash-sale trap remains identical.

The Wash-Sale Rule, Applied to Dividend Stocks

The wash-sale rule, codified at IRC §1091 and detailed in IRS Publication 550, disallows a loss on the sale of stock or securities if you acquire substantially identical stock or securities within 30 days before or after the sale. The window is therefore 61 days long — 30 before, the day of sale, and 30 after.

The disallowed loss is added to the basis of the replacement security. The original holding period also tacks onto the replacement. The deduction is deferred, not destroyed — with one critical exception. If the replacement is acquired inside an IRA or Roth IRA, the disallowed loss disappears permanently and is not added to any basis. The IRS confirmed this position in Revenue Ruling 2008-5.

Five Traps That Hit Dividend Investors Hardest

Dividend reinvestment plans (DRIPs). A reinvestment that occurs within the 61-day window counts as the purchase of substantially identical securities. Even a single $40 DRIP purchase can trigger a partial wash sale on a much larger loss harvest. Turn DRIPs off in any taxable account where you plan to harvest losses, and confirm the dividend reinvestment status of the same fund in any tax-deferred account.

Cross-account purchases. The wash-sale rule reaches across all of your accounts and your spouse’s accounts — taxable, traditional IRA, Roth IRA, and accounts held by an entity you control. A 401(k) plan’s automatic payroll-driven purchase of the same fund within 30 days of your loss sale can disallow the loss. Brokers are required to report wash sales only within the same account on the same CUSIP, so the burden of cross-account tracking is yours.

Mutual fund and ETF share classes. Two share classes of the same fund (for example, an Admiral and an ETF share class of one Vanguard index fund) are almost certainly substantially identical. Two different funds tracking the same index from different sponsors are an unsettled question, but the IRS has not issued a definitive ruling, and tax practitioners disagree. Tracking different indexes is the safer path.

Options on the same security. Buying a call option on the security you just sold for a loss triggers the rule. So does selling a deep in-the-money put.

Cryptocurrency. The IRS classifies cryptocurrencies as property rather than securities, so the wash-sale rule does not currently apply to direct crypto holdings. Several legislative proposals would close this gap, and crypto-related securities — including spot Bitcoin and Ether ETFs — are subject to the rule. Treat ETF wrappers around crypto as ordinary securities for this purpose.

Protecting the Qualified-Dividend Holding Period

The wash-sale rule is the harvester’s best-known enemy. The qualified-dividend holding period is the dividend investor’s quieter, more common one.

The rule, set out in IRC §1(h)(11) and IRS Publication 550, requires you to hold the share for more than 60 days during the 121-day window that begins 60 days before the ex-dividend date. Days are counted starting the day after purchase. Days during which your risk of loss was reduced — for example, by writing a covered call, buying a protective put, or holding a short position in substantially identical stock — do not count toward the holding period.

Apply this to a TLH scenario. Suppose you bought 1,000 shares of a dividend ETF on January 5, the ex-dividend date is March 15, and the fund pays a qualified dividend on March 30. If you sell at a loss on April 5 to harvest, you have held only 90 calendar days from purchase, but the IRS counts only days inside the 121-day window. If you fail the more-than-60-day test inside that window, the March 30 distribution is reclassified from qualified to ordinary on Form 1099-DIV. The dividend you already collected is now taxed at your ordinary marginal rate.

The remedy is sequence. Harvest losses on positions before the dividend has been earned in the holding-period sense, or after the 61-day requirement has been clearly met inside the relevant 121-day window. A position you have held continuously for several months and that did not pay a dividend in the last 60 days is generally safe.

This is also why aggressive TLH on a high-yield monthly-pay portfolio — some BDCs, some monthly REIT ETFs — can backfire. Each monthly distribution starts a fresh holding-period analysis. The administrative cost of tracking can outweigh the tax saving.

A 2026 Step-by-Step Process

The following sequence is calibrated for a typical dividend portfolio held in a taxable brokerage account.

Step 1: Identify candidates

Pull a lot-level unrealized gain/loss report. Filter for positions with at least a 5% unrealized loss and a position size large enough that the after-tax saving exceeds your trading and tracking costs. Sort by tax lot using the specific-identification method, not average cost — this lets you sell only the highest-basis lots and preserve cheaper ones.

Step 2: Map the dividend calendar

For each candidate, find the most recent and next ex-dividend dates. Confirm whether you satisfy the more-than-60-day rule across the relevant 121-day window. If a dividend was paid within the past 60 days and you have not yet held the position for 61 days inside the qualifying window, postpone the sale until you do.

Step 3: Audit all accounts for replacement risk

List every account that could hold the same security: your taxable brokerage, your IRA, your Roth IRA, your spouse’s accounts, and any 401(k) where the same fund is held. Confirm that no automatic purchase — payroll contribution, DRIP, scheduled rebalancing — will land within 30 days before or after the planned sale.

Step 4: Choose a substitute

Select a substitute that maintains your asset-class exposure but tracks a different index or has a meaningfully different mandate. The substitute should not be a different share class of the same fund. See the next section for examples.

Step 5: Execute and document

Sell the loser and buy the substitute on the same day to maintain market exposure. Save trade confirmations. Note the date the 31-day window ends if you intend to swap back. Update tax-lot accounting so the substitute’s basis is correctly recorded.

Step 6: Report on Form 8949 and Schedule D

Report each lot on Form 8949 with codes for adjustments (including any wash-sale adjustments your broker did not catch automatically). Carry totals to Schedule D. If a portion of the loss was disallowed by a wash sale, code W applies and the disallowed amount is added to the substitute’s basis.

Choosing a Substitute Security

The IRS has never formally defined “substantially identical.” Publication 550 says ordinarily, securities of one corporation are not substantially identical to those of another corporation. Bonds and preferred stock of the same issuer are generally not substantially identical to its common stock. For funds, the working consensus among tax practitioners is that two funds tracking different indexes, or an index fund and an actively managed fund in the same asset class, are not substantially identical.

Below are common dividend-portfolio pairs that practitioners have used. None is risk-free, and the IRS has not blessed any specific pair. They are reasonable interpretations of current guidance, not safe harbors.

Example substitute pairs for dividend-focused holdings
Sold at a loss Possible substitute Why it differs
S&P 500 high-dividend ETF Russell 1000 high-dividend ETF or fundamental-weighted dividend ETF Different index methodology and constituents
Dividend Aristocrats ETF Quality-dividend ETF (different screen, different index) Different screening criteria and reconstitution rules
Total US REIT ETF Sector-specific REIT ETF (e.g., residential or healthcare) Narrower sector exposure, different holdings
Single dividend stock Sector ETF covering the same industry Diversified basket vs. single issuer; not substantially identical
Broad investment-grade bond ETF Actively managed core bond fund Different mandate, different holdings, active management

One legitimate alternative to a substitute is to hold cash or a money-market fund for 31 days, then repurchase the original security. The cost is market exposure during the gap. In a sharp rally, that cost can exceed the tax saving.

NIIT and the Higher-Income Dividend Investor

Dividends, interest, and capital gains are all subject to the 3.8% Net Investment Income Tax under IRC §1411 when modified adjusted gross income exceeds the statutory threshold. For 2026 the thresholds remain $200,000 for single filers and heads of household, $250,000 for married filing jointly, and $125,000 for married filing separately. These figures are not indexed to inflation and have been frozen since the tax took effect in 2013.

The NIIT is calculated on the lesser of net investment income or the amount by which MAGI exceeds the applicable threshold. A realized capital loss reduces net investment income directly. For a married couple at $300,000 MAGI with $40,000 of net investment income, harvesting a $10,000 net loss reduces the NIIT base to $30,000, saving $380 in NIIT alone — on top of the federal capital-gains saving and any state-level benefit.

For top-bracket investors, the effective marginal rate on a non-qualified dividend can reach 40.8% federal (37% + 3.8%) before state tax. Coordinating TLH with dividend timing therefore matters more, not less, as income rises. The same harvested loss is worth approximately 25% more on a 40.8% marginal dollar than on a 32% marginal dollar.

Mistakes That Disqualify the Strategy

Harvesting losses inside a tax-advantaged account. Losses inside a traditional IRA, Roth IRA, 401(k), 529, or HSA produce no current tax deduction. The strategy only works in a taxable account.

Forgetting the spouse’s accounts. Publication 550 confirms that a purchase by your spouse in any account triggers the wash-sale rule even if you file separately. Joint households need a single, consolidated trade calendar.

Letting tax savings drive asset allocation. A loss is not a profit. Selling a fundamentally sound position purely to capture a loss often costs more in tracking error and trading friction than it saves.

Confusing realized and unrealized losses. Only realized losses (positions actually sold) reduce your tax bill. Paper losses do not.

Repurchasing inside an IRA. If the loss sale is in your taxable account and the IRA buys the same security inside the 61-day window, the loss is permanently lost. There is no basis adjustment to recover it.

Ignoring state rules. Most states conform to the federal capital-gains structure but impose their own rates. A few — including New Hampshire and Tennessee — treat investment income unusually. Confirm state treatment before assuming the federal saving is the full saving.

Frequently Asked Questions

Can I use harvested losses to offset dividend income directly?
Capital losses first offset capital gains. Any net loss then offsets up to $3,000 of ordinary income per year. Qualified dividends are taxed at capital-gains rates but are not themselves capital gains, so they cannot be offset dollar-for-dollar by capital losses. The $3,000 ordinary-income offset, however, can apply against your overall ordinary-income figure.
Does the wash-sale rule apply to losses or gains?
Only to losses. You can repurchase a security at any time after a gain sale without triggering the rule.
How long must I wait before repurchasing the original security?
At least 31 days after the sale. The rule covers 30 days before and 30 days after, so the safe repurchase date is the 31st day after the loss sale.
Are bond funds subject to the wash-sale rule?
Yes. The rule applies to stocks, bonds, options, ETFs, and mutual funds, plus options or futures contracts on those securities.
Can I harvest a loss and have my IRA buy the same fund?
The IRS treats this as a wash sale, and the disallowed loss disappears permanently. There is no basis adjustment in the IRA.
Does selling at a loss reset the qualified-dividend holding period for the replacement?
No. The replacement begins its own holding period. If a dividend on the replacement falls inside its first 60 days of ownership, the qualified-dividend test must be satisfied independently.
Are crypto losses subject to the wash-sale rule in 2026?
Direct cryptocurrency holdings are still classified as property, not securities, so the wash-sale rule does not currently apply to them. Crypto-related securities, including spot Bitcoin and Ether ETFs, are securities and are subject to the rule. Pending legislation could change the treatment of direct crypto.
Did the One Big Beautiful Bill Act change capital-gains or dividend rates for 2026?
No. The OBBBA, signed July 4, 2025, made the TCJA ordinary-income brackets permanent and adjusted thresholds for inflation, but it did not change the 0%/15%/20% rate schedule for long-term capital gains and qualified dividends.
How much loss can I carry forward if I cannot use it this year?
An unlimited amount, indefinitely. Losses retain their character (short-term or long-term) when carried forward, and you continue to apply up to $3,000 against ordinary income each future year until the carryforward is exhausted.
Do I have to itemize to claim a capital loss?
No. Capital losses are reported on Schedule D and reduce taxable income above the line. They are available regardless of whether you take the standard deduction.

Authoritative Sources

Leave Comment

Your email address will not be published. Required fields are marked *

Reach the Editor
AdvoraHQ

AdvoraHQ Editorial

Online

Welcome to AdvoraHQ. We decode complex financial concepts—from tax strategies to market investing—using strictly primary sources and deep research.

Got a specific question, a topic request, or feedback on our research? We'd love to hear from you.

Email the Editor