Does Dividend Reinvestment Cause a Wash Sale? (w/Examples) + FAQs

This article reflects federal IRS rules as of June 2026 and covers tax year 2025 (the 2026 filing season). Most states that tax capital gains follow the federal wash sale rule, but confirm your state’s treatment before you file. Tax law changes — verify current figures before filing.

Quick Answer

Yes. Dividend reinvestment can cause a wash sale. For tax year 2025, if you sell a stock or fund at a loss and an automatic dividend reinvestment buys the same security within 30 days before or after that sale, the IRS disallows part or all of your loss under Section 1091.

Most investors never see it coming. You turn on a dividend reinvestment plan (a DRIP) years ago, forget about it, then sell a losing position in December to cut your tax bill — and a tiny reinvested dividend three weeks earlier quietly erases your deduction. The loss is not destroyed, but it is locked up, and the surprise often shows up only when your broker’s Form 1099-B lands in February.

Tax-loss harvesting is popular for a reason: investors used it heavily after volatile markets, and Morningstar analyst Amy Arnott notes in a 2025 dividend overview that reinvested dividends quietly reshape cost basis in ways most people never track. A reinvested dividend of even a few dollars counts as a purchase, and that is all it takes to trip the rule.

Here is what you will learn:

  • 🧩 How the wash sale rule treats an automatic dividend reinvestment exactly like a manual purchase.
  • 💸 A fully worked example showing the disallowed loss and the new cost basis, with real dollar math.
  • 🏦 The brutal IRA trap where a reinvested dividend can destroy your loss permanently, not just defer it.
  • 📋 How to report the wash sale on Form 8949 and Schedule D, line by line, using code “W.”
  • 🛡️ The simple settings change that prevents accidental DRIP wash sales before you harvest.

What a Wash Sale Actually Is

A wash sale happens when you sell a security at a loss and buy the same security, or one that is substantially identical, within a 61-day window. That window runs 30 days before the sale and 30 days after it, with the sale date in the middle. The rule lives in Internal Revenue Code Section 1091 and is explained for individuals in IRS Publication 550.

The point of the rule is simple. Congress did not want you to claim a tax loss while keeping the exact same investment position. So if you sell at a loss but effectively never leave the market, the IRS says you cannot deduct that loss right now.

The rule applies to stocks, bonds, mutual funds, ETFs, and options held in a taxable brokerage account. According to Charles Schwab, if a security has a CUSIP number — a unique nine-character identifier — it is almost certainly covered. Buying a call option on a stock you just sold at a loss can trigger the rule too.

Two things matter most. First, the rule does not care about your intent — an accidental purchase counts. Second, the disallowed loss is not gone forever in a normal taxable account; it gets added to the cost basis of the shares you bought, as Fidelity explains. The consequence of missing this is a tax bill larger than you planned, and the fix is knowing the window before you sell.

Why Dividend Reinvestment Triggers It

A dividend reinvestment plan, or DRIP, automatically uses your cash dividends to buy more shares of the same security. You set it once and the broker buys for you, often quarterly, sometimes monthly. To the IRS, that automatic buy is a purchase like any other.

That is the whole trap. The wash sale rule counts any acquisition of the same or substantially identical security inside the window — manual or automatic, large or tiny. As Fidelity states plainly, automatic repurchases through dividend reinvestment “count as acquiring substantially identical securities, disallowing the loss.” A $4 reinvested dividend can disallow a portion of a $4,000 loss.

The danger is highest with mutual funds and ETFs that pay frequent distributions, and with anyone who sells only part of a position. Schwab gives the classic case: you sell some shares for a tax loss, then a reinvested dividend buys shares back, and you lose part of the break without ever clicking “buy.” An old archived CPA Journal analysis flagged this same mutual fund reinvestment trap decades ago, and it still catches investors today.

The consequence is a partly or fully disallowed loss. The fix is to know your fund’s distribution dates and turn reinvestment off before harvesting, which we cover below.

A Fully Worked Example (Real Dollar Math)

Numbers make this concrete. Here is the math step by step so you can copy it for your own situation in tax year 2025.

Say you own 500 shares of a fund, bought for $20 per share, a $10,000 cost basis. The fund drops, and on December 10, 2025 you sell all 500 shares at $16 each, for $8,000. Your realized loss looks like $2,000.

But on December 1, 2025 — nine days before your sale, inside the 30-day-before window — your DRIP reinvested a dividend and bought 10 new shares at $16.50, for $165. Those 10 shares are replacement shares.

Now the wash sale math kicks in:

  • Shares sold at a loss: 500. Replacement shares bought in the window: 10.
  • Disallowed loss applies only to the 10 matched shares. Loss per share is $20 minus $16, or $4. Disallowed loss is 10 × $4 = $40.
  • Deductible loss this year: $2,000 minus $40 = $1,960.
  • The $40 disallowed loss is added to the basis of the 10 replacement shares: $165 + $40 = $205, so their adjusted basis is $20.50 per share.
  • The holding period of the sold shares tacks onto those 10 replacement shares, which can help you reach long-term rates, per Schwab’s worked example.

The damage here is small — $40 — because only 10 shares were repurchased. But flip the facts: if your DRIP had reinvested into 500 shares, the entire $2,000 loss would be disallowed and rolled into basis. The lesson is that the size of the reinvestment, not the size of your sale, sets how much loss you lose this year.

The IRA Trap: When the Loss Disappears Forever

This is the most dangerous version, and most investors have never heard of it. The wash sale rule applies across all your accounts, including your IRA and your spouse’s accounts, not just the account where you sold.

Under Revenue Ruling 2008-5, if you sell a security at a loss in your taxable account and the same security is bought inside your IRA or Roth IRA within the window — including by an automatic dividend reinvestment — it is a wash sale. The catch is that the disallowed loss is not added to the basis of the IRA shares.

That difference is everything. In a normal taxable wash sale, your loss is deferred and you recover it later through higher basis. In the IRA version, the loss is permanently forfeited. As Fidelity confirms, “the disallowed loss is effectively forfeited, not deferred.” You lose the deduction and never get it back.

The fix: if you run DRIPs in an IRA holding a security you also own in a taxable account, turn off reinvestment in the IRA before you harvest a loss, and check distribution dates in every account. The deadline is the 61-day window around your sale.

Which Situation Applies to You?

The answer changes based on what you own and where. Find your situation below.

Your Situation What to Watch For
You own individual stocks with DRIP in one taxable account Check whether a dividend reinvested within 30 days before or after your loss sale; same CUSIP, same account is the clearest trigger.
You own mutual funds or ETFs with frequent distributions Highest accidental-trigger risk; monthly or quarterly DRIPs often buy shares right inside the window without you noticing.
You hold the same security in a taxable account and an IRA Most dangerous; an IRA reinvestment can permanently destroy the loss under Rev. Rul. 2008-5, with no basis recovery.
You and your spouse both own the security The IRS treats a purchase by your spouse as your purchase; coordinate before either of you harvests.
You sold only part of a position A small reinvested dividend can still disallow a slice of the loss; Schwab calls this the most common surprise.

Three Common Scenarios

These three patterns cover most accidental DRIP wash sales found in tax-loss harvesting.

Scenario 1 — The quarterly DRIP catches a December sale.

Trigger Result
Fund pays a quarterly dividend on December 1, DRIP buys shares; you sell at a loss December 10 Reinvested shares fall inside the 30-day-before window, so a portion of the loss is disallowed and added to the new shares’ basis.

Scenario 2 — The post-sale reinvestment.

Trigger Result
You sell all shares at a loss January 5; a stray dividend reinvests January 20 The January 20 buy is inside the 30-day-after window, disallowing loss on the matched replacement shares even though you “sold everything.”

Scenario 3 — The IRA cross-account buy.

Trigger Result
You harvest a loss in your brokerage account; the same fund’s DRIP buys shares in your Roth IRA within 30 days Wash sale applies, and under Rev. Rul. 2008-5 the loss is permanently lost with no basis step-up.

Three Named Examples

Maria, the year-end harvester. Maria sells 300 shares of a tech ETF at a $3,000 loss on December 18, 2025 to offset gains elsewhere. She forgot her DRIP bought 12 shares on December 15. Those 12 shares are replacement shares, so part of her loss is disallowed and rolled into their basis. Her actual deductible loss for 2025 is slightly under $3,000.

David, the retiree living on distributions. David holds a dividend mutual fund with monthly reinvestment. He sells the fund at a loss in March 2026 but a March 31 dividend reinvests automatically. Because the reinvestment lands inside the 30-day-after window, David’s loss is disallowed on the matched shares — a classic mutual fund trap the CPA Journal warned about.

Priya, the dual-account investor. Priya sells a stock at a $5,000 loss in her taxable account in November 2025. The same stock’s DRIP reinvests in her Roth IRA two weeks later. Under Rev. Rul. 2008-5, her loss is a wash sale and is gone for good, because IRA basis is not adjusted.

How to Report It on Form 8949 and Schedule D

You report a wash sale on Form 8949, then carry the totals to Schedule D. Your broker reports the sale on Form 1099-B, and may already flag a wash sale, but only within the same account and same CUSIP — cross-account DRIP wash sales are your job to catch.

Walk through Form 8949 column by column for the loss sale:

  • Column (a): description of the security and number of shares sold.
  • Columns (b) and (c): date acquired and date sold.
  • Columns (d) and (e): proceeds and cost basis.
  • Column (f): enter code “W” for a wash sale, per the Form 8949 instructions.
  • Column (g): enter the disallowed loss as a positive adjustment, which reduces your reported loss.
  • Column (h): the resulting gain or loss after the adjustment.

The consequence of skipping code “W” is an overstated loss that can draw an IRS notice (a CP2000) when the agency matches your return to the 1099-B. A common misconception is that the broker handles everything; it does not handle cross-account or spousal wash sales. Your next step is to reconcile every account by hand before filing. The filing deadline is April 15, 2026 for tax year 2025.

How to Avoid an Accidental DRIP Wash Sale

The simplest fix is to turn off automatic dividend reinvestment on any security you plan to harvest, in every account you own, before you sell. Do it at least 31 days before the sale so no reinvestment lands in the before-window.

To safely avoid the rule entirely, Fidelity advises waiting until the 31st day after the sale to reacquire the security, and making sure no DRIP buys it in the meantime. If you sell on July 1, do not let any purchase — manual or automatic — occur through July 31.

If you want to stay invested in the market, you can buy a similar but not substantially identical security with the sale proceeds. Schwab’s example swaps an S&P 500 ETF for a Russell 1000 ETF to keep your allocation while sidestepping the rule. There is no bright-line IRS definition of “substantially identical,” so when unsure, consult a tax professional.

Mistakes to Avoid

  • Leaving DRIP on in every account. Even one small reinvestment inside the window disallows part of your loss.
  • Forgetting your IRA. A reinvestment in an IRA can destroy the loss permanently under Rev. Rul. 2008-5, with no recovery.
  • Ignoring your spouse’s accounts. The IRS treats a spouse’s purchase as yours, voiding the loss.
  • Trusting the 1099-B completely. Brokers track wash sales only within one account and one CUSIP, missing cross-account triggers.
  • Counting only 30 days, not 61. The window is 30 days before and after, a 61-day total span centered on the sale.
  • Selling across the new year and assuming you’re safe. Per Schwab, a December sale and January repurchase still triggers the rule.
  • Omitting code “W” on Form 8949. This overstates your loss and can prompt an IRS CP2000 matching notice.

Do’s and Don’ts

Do:

  • Turn off DRIP 31+ days before harvesting, because one auto-buy can void the loss.
  • Check distribution dates for every fund, since frequent payers reinvest inside the window easily.
  • Track all accounts including IRAs and your spouse’s, because the rule spans them all.
  • Use code “W” and column (g) on Form 8949, so your reported loss matches the law.
  • Keep records of basis and dates, because you must reconcile what brokers do not.

Don’t:

  • Don’t repurchase inside the 61-day window, or the loss is disallowed.
  • Don’t reinvest into an IRA near a loss sale, because the loss vanishes for good.
  • Don’t assume “substantially identical” is loosely defined in your favor; there is no safe-harbor list.
  • Don’t ignore tiny reinvested dividends, since even a few dollars triggers a partial disallowance.
  • Don’t file without reconciling cross-account activity, or you risk an IRS notice.

Pros and Cons of the Wash Sale Outcome

Pros:

  • The disallowed loss is added to your replacement shares’ basis in a taxable account, lowering future tax.
  • The original holding period tacks on, which can qualify you for lower long-term rates sooner.
  • A higher basis means a smaller future gain, or a larger future deductible loss.
  • The loss is deferred, not destroyed, in ordinary taxable accounts.
  • It can ultimately reduce tax on the eventual sale of the replacement shares.

Cons:

  • You lose the deduction this year, raising your current tax bill.
  • In an IRA, the loss is permanently forfeited with no basis recovery.
  • Tracking across accounts is tedious and error-prone.
  • Brokers do not catch cross-account or spousal wash sales for you.
  • The rule can quietly undo a carefully planned harvest at the worst time — year-end.

What to Do Next

Take these steps in order before you file for tax year 2025:

  1. Log into every account — taxable, IRA, and spouse’s — and turn off DRIP on any security you plan to sell at a loss.
  2. List all dividend reinvestment dates within 30 days before and after your loss sales.
  3. Match each reinvestment to a loss sale to find disallowed amounts.
  4. Report the loss sale on Form 8949 with code “W” and the column (g) adjustment, then carry totals to Schedule D.
  5. Adjust the basis of replacement shares (except in an IRA) and keep the records.
  6. File by April 15, 2026; if your situation involves IRAs, spousal accounts, or large losses, call a CPA or tax advisor — this article is educational and not a substitute for advice on your specific facts.

Frequently Asked Questions

Does dividend reinvestment cause a wash sale? Yes. An automatic reinvested dividend counts as buying the same security. If it lands within 30 days before or after a loss sale of that security, it disallows part or all of the loss under Section 1091.

How long do I have to wait to avoid a wash sale? 31 days. Wait until the 31st day after your loss sale before any purchase of the same security, and make sure no DRIP buys it during that span, per Fidelity guidance for tax year 2025.

Is a tiny reinvested dividend enough to trigger it? Yes. Even a few dollars of reinvested dividends buys replacement shares. The loss is disallowed only on the matched shares, so a small buy causes a small, but real, partial disallowance.

Does the wash sale rule apply to my IRA? Yes. Under Revenue Ruling 2008-5, a reinvestment in your IRA tied to a taxable loss sale is a wash sale, and the loss is permanently lost because IRA basis is not increased.

Is the disallowed loss gone forever? No, usually not. In a taxable account the loss is added to the replacement shares’ basis and recovered later. The exception is an IRA, where the loss is permanently forfeited.

Does the wash sale rule cross the calendar year? No, it ignores the year boundary. Schwab confirms a December 15 sale and a January 4 repurchase still trigger the rule if within 30 days.

What code do I use on Form 8949 for a wash sale? Code “W.” Enter it in column (f), put the disallowed loss as a positive number in column (g), and report the net in column (h), per the IRS Form 8949 instructions.

Will my broker report the wash sale automatically? Sometimes, but not fully. Brokers track wash sales only within the same account and CUSIP. Cross-account and spousal wash sales are your responsibility to find and report.

Do ETFs and mutual funds count for wash sales? Yes. Any security with a CUSIP, including ETFs and mutual funds, is covered. Funds with frequent reinvested distributions are the most common accidental trigger.

Can I avoid it by buying a similar fund instead? Yes. Buying a similar but not substantially identical fund — like swapping one index ETF for a different index ETF — keeps you invested without triggering the rule, though “substantially identical” has no bright-line IRS definition.

Does selling my entire position protect me? No. A reinvested dividend after you “sold everything” still buys replacement shares within the window, disallowing the loss on those shares.

Do states follow the federal wash sale rule? Mostly yes. States that tax capital gains generally conform to the federal treatment, but conformity varies. Confirm your state’s rule with its tax agency before you file for tax year 2025.

Word count: approximately 2,650.