Skip to main content
Wash Sales

What Happens to Wash Sales When Dividends Are Reinvested?

Pomegra Learn

What Happens to Wash Sales When Dividends Are Reinvested?

Dividend reinvestment plans (DRIPs), where dividends are automatically used to purchase additional shares of the same security, create a subtle interaction with wash sale rules. If you sell a dividend-paying security at a loss and dividends from that security (or a substantially identical one) are reinvested and purchase new shares within the 30-day wash sale window, those reinvested dividends may trigger a wash sale, adding another layer of complexity to your cost basis and tax calculations. Understanding this interaction is especially important for long-term dividend investors who may not realize that their automatic reinvestment is creating wash sale complications.

Quick definition: When a dividend from a security you sold at a loss is automatically reinvested to buy new shares of the same security within 30 days of the sale, a wash sale occurs. The IRS treats the reinvested dividend as a "purchase" of substantially identical securities within the wash sale window, triggering the loss disallowance rule.

Key takeaways

  • A dividend reinvestment (DRIP) purchase can trigger a wash sale if it occurs within 30 days of selling the same security at a loss.
  • The reinvested dividend amount is treated as a separate "purchase" for wash sale purposes, even though you did not execute a manual trade.
  • Reinvested dividends can extend or complicate the wash sale adjustment to your cost basis, especially if multiple dividend payments occur within the 30-day window.
  • Disabling automatic dividend reinvestment around the time of a loss sale is one strategy to avoid wash sale complications.
  • Tracking reinvested dividend purchases is essential for accurate cost basis reporting and can significantly affect your long-term tax position if you hold the security for years.

How reinvested dividends trigger wash sales

Wash sale rules are indifferent to whether a "purchase" is manual or automatic. If you sell a dividend-paying security at a loss and then buy shares of the same or substantially identical security within 30 days—whether by executing a buy order yourself or by allowing dividends to automatically reinvest—a wash sale is triggered.

Consider this scenario: you own 100 shares of a dividend-paying stock, DivStock Inc, purchased at $100/share ($10,000 total). The stock falls to $80/share. On June 1, 2024, you sell your 100 shares for $8,000, realizing a $2,000 loss. On June 15, DivStock pays a dividend of $100, which your broker automatically reinvests to purchase approximately 1.25 shares at $80/share. Because the dividend reinvestment purchase occurs within the 30-day window (June 1 to July 1), a wash sale is triggered.

The IRS disallows your $2,000 loss. The amount of the disallowed loss and how it is allocated to your cost basis depends on the specifics: Are you allocating the full $2,000 loss to the reinvested shares? Or is the loss allocated proportionally across the reinvested shares and any other purchases within the window? The precise calculation varies.

The 30-day window and dividend timing

The wash sale window is 30 days before the sale and 30 days after (61 days total). Any purchase—manual or automatic—within this window can trigger a wash sale. For dividend investors, this creates a timing problem.

If you sell on June 1, the 30-day "after" window extends from June 1 to July 1. If DivStock pays a dividend on June 15 and it is set to reinvest automatically, that reinvestment falls squarely in the window. Most dividend-paying stocks pay quarterly, semi-annually, or annually, so a June sale might coincide with a dividend payment in June or July.

However, if you sell on June 1 and the dividend is paid on July 5 (after the 30-day window), no wash sale occurs from that dividend reinvestment. The timing of dividend payments relative to your sale date matters significantly.

Scenario: selling high-dividend stocks

High-dividend stocks present the most acute wash sale risk because they pay more frequent or higher dividends, increasing the likelihood that a reinvestment will fall within the 30-day window.

For example, you own shares of a real estate investment trust (REIT) that pays a monthly dividend of $0.50/share. You own 100 shares and sell at a loss on June 1. Your monthly dividend of $50 is due to be paid on June 15. If your broker automatically reinvests the $50 to buy new shares of the REIT, a wash sale is triggered. Over the following months, if you have not disabled automatic reinvestment, subsequent July, August, and other dividend payments within the extended window could further complicate the situation.

In extreme cases, with multiple dividend reinvestments within the 30-day window, the tax calculation can become intricate: you must allocate the original disallowed loss across all of the reinvested purchases, determining the adjusted basis for each lot of reinvested shares.

Allocating the disallowed loss when dividends reinvest

When a wash sale occurs involving reinvested dividends, the disallowed loss is allocated to the replacement securities purchased (the reinvested dividend shares, plus any manual purchases within the window).

Suppose you sell 100 shares at a $2,000 loss on June 1. On June 15, a $100 dividend reinvests, buying 1.25 shares. You have one "replacement" transaction: the 1.25 reinvested shares. The $2,000 disallowed loss is allocated to these 1.25 shares, adjusting your cost basis. The adjusted basis per share is:

Adjusted Basis Per Share = (Dividend Amount + Disallowed Loss) / Reinvested Shares Adjusted Basis Per Share = ($100 + $2,000) / 1.25 = $1,680/share

This seems high because the calculation concentrates the loss across a small quantity of shares. However, this is correct: your reinvested shares carry most of the original loss within their basis.

More commonly, if you make additional manual purchases or have multiple dividend reinvestments, the loss allocation spreads across all replacement purchases. The proportional method allocates the loss based on the relative amount of each replacement purchase.

Disabling automatic reinvestment to avoid wash sales

One strategy to avoid wash sale complications is to disable automatic dividend reinvestment temporarily around a loss sale. If you are planning to sell a security at a loss and harvest that loss, you might:

  1. Sell the security on your chosen date (e.g., June 1).
  2. Disable automatic dividend reinvestment for that security in your broker's account settings, typically before the next ex-dividend date.
  3. Collect dividends in cash for the next 30+ days, allowing them to settle into your cash account without repurchasing the security.
  4. Re-enable automatic reinvestment after the 30-day window closes (after July 1 in our example).
  5. Manually reinvest the accumulated cash (or buy a different security if you want to avoid reinvesting in the original position).

This approach prevents the automatic wash sale trigger but requires active management and trades off the compounding benefit of immediate reinvestment. For long-term investors, the loss harvesting benefit often outweighs the compounding loss from missing a month or two of reinvestment.

Diagram: dividend reinvestment within wash sale window

This diagram illustrates the critical difference between a dividend reinvesting within the 30-day window (triggering a wash sale) and one reinvesting after the window closes (no wash sale).

Multiple dividends and compounding wash sales

If a security pays dividends multiple times within the 30-day window, each reinvestment can contribute to the wash sale calculation, potentially compounding the adjusted basis and making the cost basis tracking increasingly complex.

For example, suppose you sell a monthly-dividend stock on June 1 at a $3,000 loss. The June dividend of $150 is reinvested on June 15, and the July dividend of $150 is scheduled for July 10 (still within the 30-day window if the window is calculated to July 1, or just outside if it extends to July 1). If both dividends are reinvested:

  • June 15 reinvestment: 1.9 shares at $79/share = $150.
  • July 10 reinvestment: 1.9 shares at $79/share = $150.
  • Total replacement shares: 3.8 shares.
  • Disallowed loss: $3,000 + $150 + $150 = $3,300 total allocation.
  • Adjusted basis per share: $3,300 / 3.8 = $868/share.

This high adjusted basis per share (significantly higher than the actual purchase price of ~$79) reflects the concentration of loss across a small quantity of replacement shares. Over time, if you hold these shares and receive further dividends, the basis tracking becomes intricate.

Reinvested dividends and substantially identical securities

The wash sale rule for reinvested dividends applies to substantially identical securities, not just the exact same security. If you sell Stock A at a loss and reinvested dividends from Stock A automatically reinvest to purchase Stock B (a substantially identical security, perhaps due to a fund merger or a DRIP switch), a wash sale can occur.

However, most brokers do not automatically reinvest dividends into a different security without explicit instruction. The typical scenario is that a DRIP reinvests dividends into the same security. Be aware, though, that if a security undergoes a merger or reorganization and dividends are reinvested into the successor security, wash sale rules can still apply.

Broker reporting and tax software handling

Brokers are generally required to report wash sales and adjusted basis to the IRS. However, the treatment of reinvested dividend purchases within a wash sale window may vary across brokers.

Some brokers automatically adjust cost basis for reinvested dividends caught in a wash sale window and report this on Form 8949 or supplemental statements. Others may not explicitly call out the interaction, leaving it to the investor to track.

Tax software (TurboTax, TaxAct, etc.) typically imports wash sale adjustments from brokers, but reinvested dividends may be treated as separate transactions, not automatically merged with wash sale disallowances. You may need to manually reconcile the adjustment, especially if the broker's report is unclear.

Real-world examples

Example 1: Quarterly dividend within the window

Elena owns 200 shares of Steady Dividend Corp, a utility stock, purchased at $60/share ($12,000). By October 2024, the stock falls to $50/share ($10,000). She sells for a $2,000 loss on October 15, 2024. Steady Dividend Corp pays a quarterly dividend of $0.75/share on October 25, which would reinvest to purchase approximately 3 shares at $50/share. The October 25 reinvestment falls within the 30-day window (October 15 to November 14), triggering a wash sale.

Elena's $2,000 loss is disallowed. Her cost basis is adjusted by $150 (the reinvested dividend amount) to $2,150 total allocation. The 3 reinvested shares carry an adjusted basis of approximately $717/share ($2,150 / 3).

Example 2: Avoiding the wash sale by disabling DRIP

Marcus owns 100 shares of High Yield REIT purchased at $40/share ($4,000). The REIT falls to $32/share ($3,200). He wants to harvest the $800 loss. He sells on May 1, 2024. The REIT pays a monthly dividend of $0.50/share (500 shares × $0.50 = $50) on May 15, due to reinvest automatically.

Before selling, Marcus disables automatic dividend reinvestment in his broker's account. On May 15, the $50 dividend is paid in cash to his account, not reinvested. No wash sale is triggered by the dividend. The May 15 dividend falls within the 30-day window, but because it was not reinvested in the REIT, there is no purchase of a substantially identical security, so no wash sale.

Marcus's $800 loss is fully disallowed (assuming no other purchases within the window), and it is added to the cost basis of the first substantially identical security he buys after May 31. If he does not buy the REIT again, the loss remains in abeyance, and he cannot claim it. If he manually reinvests the accumulated cash in late May or early June, he can do so knowing the wash sale terms.

Example 3: Multiple dividend payments and loss allocation

Sarah owns 150 shares of Growth Dividend Inc, purchased at $80/share ($12,000). The stock falls to $70/share ($10,500). She sells all 150 shares at a $1,500 loss on June 1, 2024. The stock pays a semi-annual dividend of $0.60/share (150 × $0.60 = $90) on June 20 and another $90 on July 10 (both within the 30-day window to July 1; the July 10 payment is technically outside the window by one day, depending on whether July 1 is inclusive or exclusive).

Assuming both dividends are reinvested:

  • June 20: $90 reinvestment ≈ 1.29 shares at $70/share.
  • July 10: $90 reinvestment ≈ 1.29 shares at $70/share.
  • Total replacement shares: 2.58 shares (if July 10 is in the window) or 1.29 shares (if only June 20 is in the window).

If both dividends are within the window, the total disallowed loss and adjustment is $1,500 + $180 = $1,680, allocated across 2.58 shares = $651/share adjusted basis.

Common mistakes

Mistake 1: Forgetting about automatic dividend reinvestment when harvesting losses

Many investors focus on the manual sale and forget that automatic dividend reinvestment can trigger a wash sale. They think they have harvested a loss, only to discover later that a reinvested dividend created a wash sale disallowance. Always check the dividend payment dates when planning a loss-harvesting sale.

Mistake 2: Not disabling DRIP before a loss sale

If you intend to harvest a loss and avoid a wash sale, disable automatic reinvestment before the sale, not after. Once a dividend is paid and reinvests automatically (before you disable DRIP), it is too late; the wash sale has occurred.

Mistake 3: Miscalculating adjusted basis with multiple reinvestments

If multiple dividends are reinvested within the 30-day window, the adjusted basis calculation becomes complex. Dividing the total disallowed loss plus all reinvested dividends by the total number of reinvested shares requires accurate tracking. An error here can lead to incorrect cost basis for years.

Mistake 4: Assuming reinvested dividends in different accounts avoid wash sales

Wash sale rules apply across all accounts. If you sell a security in your taxable account and allow dividends to reinvest in your IRA account (or vice versa) within 30 days, a wash sale is triggered. Account separation does not protect you from wash sale rules.

Mistake 5: Not reconciling broker and tax software reports

Brokers may or may not clearly communicate how reinvested dividends affect wash sale adjusted basis. Tax software may import the broker's data but not explain the adjustment clearly. Reconcile these reports manually to ensure your cost basis is correct before filing.

FAQ

Can I collect a dividend in cash instead of allowing it to reinvest?

Yes. If you want to avoid a wash sale from a dividend payment, you can disable automatic reinvestment and collect the dividend as cash. This prevents the automatic purchase of new shares, avoiding the wash sale trigger. However, you then need to decide whether and when to manually reinvest the cash.

If a dividend is paid after the 30-day window, does it still cause a wash sale?

No. A dividend reinvestment is only a wash sale if it occurs within 30 days of the sale. If you sell on June 1 and a dividend is paid on July 5 (more than 30 days later), reinvesting that dividend does not trigger a wash sale. However, make sure you count the days correctly.

What if I reinvest dividends from a different but substantially identical security?

If you sell Security A at a loss and dividends from Security B (substantially identical to A) reinvest within 30 days, the reinvestment of B can trigger a wash sale. This is less common but possible in certain scenarios (e.g., fund mergers or index replacements).

How do I adjust my cost basis manually if my broker does not account for reinvested dividend wash sales?

On Form 8949 or in your tax software's capital gains worksheet, add a line item for the reinvested dividend purchase within the wash sale window, note the disallowance, and adjust the cost basis of the affected shares. Your tax software should allow you to input custom adjustments; if not, you may need to amend Form 8949 by hand or consult a tax professional.

If I hold a stock for decades and reinvest dividends throughout, does a wash sale from an early loss affect the adjusted basis for the entire holding period?

Yes, if a wash sale occurs early on, the adjusted basis for the original shares and all subsequent reinvested dividends is affected. For example, if you sell at a loss in year 1 and reinvest in year 1 within the window, the adjusted basis of those reinvested shares remains elevated for as long as you hold them. When you eventually sell, your cost basis (and thus your gain or loss) reflects the original disallowance.

Can I carry a disallowed loss from a reinvested dividend into a future year?

Yes. The disallowed loss is added to your adjusted basis and remains there indefinitely (or until you sell the reinvested shares). If you hold the reinvested shares for years without another wash sale, the loss will eventually be claimed when you sell.

Summary

Dividend reinvestments that occur within 30 days of a loss sale trigger a wash sale, disallowing the loss and adjusting the cost basis of reinvested shares. This interaction is often overlooked by dividend investors who rely on automatic reinvestment. Disable automatic dividend reinvestment before a loss-harvesting sale to avoid wash sale complications, or carefully track multiple dividend reinvestments within the 30-day window and allocate the disallowed loss proportionally across reinvested shares. Understanding this nuance is essential for accurate long-term tax tracking and successful tax-loss-harvesting strategies.

Next

How Do Wash Sale Rules Apply to Stock Options?