Dividend reinvestment plans — DRIPs — use dividend payouts to automatically purchase additional shares of the same security, typically without commission. Most brokerage accounts offer this feature, and many investors enable it across all positions as a default convenience setting. For a passive long-term hold strategy, DRIP is straightforward. For a tax-loss harvesting program, it can create an inadvertent and easy-to-overlook wash-sale problem.

The mechanism is governed by IRC §1091's wash-sale rule, which disallows a loss sale whenever substantially identical securities are acquired within 30 days before or after the sale — and automatic DRIP purchases count the same as intentional ones. If a DRIP payment executes inside that window, the harvested loss may be disallowed, regardless of intent. The problem extends across household accounts: a DRIP in a spouse's account or an IRA can trigger the same disallowance on a taxable-account harvest with potentially more lasting consequences. For the foundational wash-sale mechanics, see the wash-sale rule, demystified.

How can an automatic dividend reinvestment plan trigger the wash-sale rule?

How can an automatic DRIP purchase trigger IRC §1091's wash-sale rule on a loss that was harvested from the same position?

Under IRC §1091, any acquisition of substantially identical securities within 30 days before or after a loss sale — including automatic DRIP purchases — counts as the repurchase that triggers wash-sale treatment, regardless of whether the acquisition was planned or automatic.

The wash-sale rule applies to the calendar of the transaction, not to its intent. A DRIP purchase on a dividend payment date that falls inside the 61-calendar-day window (30 days before and 30 days after the loss sale) is treated identically to a deliberate same-day repurchase from the IRS's perspective. Both result in the same §1091 analysis: if the purchased security is the same or substantially identical to the sold one, the loss is disallowed.

The scenario is most common with quarterly dividend payers. Many large-cap equity positions pay dividends on a predictable quarterly schedule. An investor who harvests a loss in late September from a position that pays a dividend in early October — and has DRIP enabled — may find that the reinvestment purchase falls within the 30-day post-sale window and triggers §1091. (Source: IRC §1091; IRS Publication 550, Chapter 4.)

STEP 1: LOSS HARVEST Sell XYZ stock at a loss §1091 window opens: 30 days before + 30 after DRIP still enrolled STEP 2: DIVIDEND PAID Quarterly dividend on XYZ DRIP auto-buys new shares inside the 30-day post-sale window — same security STEP 3: §1091 APPLIES Wash sale triggered Harvested loss disallowed Intent is irrelevant — automatic counts
The DRIP wash-sale sequence in three steps: the investor sells a position at a loss with the §1091 window open (Step 1); the broker's DRIP plan executes a reinvestment purchase of the same security inside the 30-day post-sale window when the quarterly dividend pays (Step 2); IRC §1091 treats the automatic purchase identically to an intentional repurchase, disallowing the harvested loss (Step 3). (Source: IRC §1091; IRS Publication 550, Chapter 4.)

What happens to the disallowed loss when a DRIP purchase causes a wash sale?

When a DRIP purchase causes a §1091 wash-sale disallowance, what happens to the harvested loss that was intended?

In a taxable account, the disallowed loss is generally added to the cost basis of the newly acquired DRIP shares — deferring rather than permanently eliminating the potential benefit — but when the triggering DRIP purchase occurs inside an IRA or retirement account, per Revenue Ruling 2008-5, the loss may be permanently unavailable rather than merely deferred.

The basis-carryover mechanism for taxable accounts means the loss is not destroyed in all cases. When the DRIP purchase is in the same taxable account as the harvested position, the disallowed loss amount adds to the cost basis of the newly purchased shares. The holding period of the sold lot also tacks onto the new lot — meaning the replacement shares start with a longer holding period than their actual purchase date would suggest. When those shares are eventually sold, the previously disallowed loss surfaces as a higher basis and a correspondingly smaller gain or larger loss at that future sale.

The IRA scenario is more consequential. When the DRIP purchase that triggers the wash sale is inside a traditional or Roth IRA rather than a taxable account, the basis-carryover mechanism does not apply — the tax character of retirement account assets is fundamentally different, and there is no cost-basis ledger inside a traditional IRA that can absorb the disallowed loss amount. In practice, that loss may be permanently unavailable, not merely deferred. For the broader rules on how IRA and spousal account transactions interact with wash-sale treatment, the wash sales across spouse accounts article covers Revenue Ruling 2008-5 mechanics in detail.

Does DRIP in a spouse's account or IRA amplify wash-sale risk?

Can a DRIP purchase in a spouse's brokerage account or a retirement account trigger the wash-sale rule on a loss that was harvested in a separate taxable account?

Yes — Revenue Ruling 2008-5 holds that a purchase of substantially identical securities inside a spouse's account or an IRA within the 61-day wash-sale window can disallow a loss in the harvesting account, and when the triggering DRIP purchase is inside an IRA, the disallowed loss may be permanently unavailable rather than added to the account's basis.

The household extension of §1091 means that a DRIP enrollment in any account in the household — not just the account where the harvest occurred — can trigger disallowance. A spouse who holds the same dividend-paying stock with DRIP enabled, and whose quarterly reinvestment falls within the relevant window, can inadvertently disallow a loss that the other spouse harvested in a separate brokerage account. Rev. Rul. 2008-5 clarified that the "same taxpayer" concept in §1091 extends to spousal accounts and retirement accounts held by either spouse.

Married couples filing jointly face the broadest exposure because both spouses' accounts are considered part of the same household pool for wash-sale analysis. A quarterly DRIP enrollment that neither spouse actively monitors can silently disallow a carefully planned harvest in a different account. For a detailed breakdown of how the household pool affects wash-sale treatment — including specific examples of IRA and spousal account interactions around intentional repurchases — the principles in the spousal account coordination article apply identically to DRIP repurchases.

What approaches do tax-aware investors use to manage DRIP wash-sale risk?

What practical approaches do tax-aware investors commonly use to reduce the risk of automatic DRIP purchases causing inadvertent wash-sale disallowances?

Temporarily suspending DRIP enrollment before a planned harvest — or redirecting dividends to cash rather than reinvestment — across all accounts in the household for the 61-day window around each loss sale is the most direct approach, since it removes the automatic repurchase mechanism entirely for the relevant period.

Several considerations follow from the mechanics of the problem:

  • Suspend DRIP before as well as after the harvest. Because the §1091 window runs 30 days before the loss sale as well as 30 days after, a DRIP purchase that executed in the pre-harvest period can also trigger disallowance. Evaluating open DRIP reinvestments in the prior 30 days before completing a planned sale is part of the timing analysis.
  • Apply suspension across all household accounts. DRIP settings are account-by-account and sometimes position-by-position at the broker level. A suspension in the harvesting account is insufficient if a spouse's account or an IRA holds the same position with DRIP enrolled.
  • Time harvests around known dividend dates. For positions with predictable quarterly payment dates, many investors evaluate harvest opportunities outside the 30-day pre-payment window where a reinvestment could execute inside the look-back period. A position paying on the first of January, April, July, and October has known risk windows around those dates that can be accounted for in harvest timing.
  • Use a non-identical replacement after harvesting. After selling at a loss, switching to a replacement security in a related sector — rather than remaining eligible for DRIP reinvestment in the same position — eliminates the same-security repurchase risk for the 30-day post-sale window. For the "substantially identical" standard used to evaluate replacement securities, the substantially identical deep dive covers the IRS guidance and gray areas.
The pre-harvest window matters too: The §1091 window extends 30 days before the loss sale, not only 30 days after. A DRIP purchase in the month before a planned harvest triggers the same disallowance as one in the month following it. Checking recent DRIP activity before completing a harvest is as important as suspending enrollment after.

How does HarvestEngine account for DRIP-related wash-sale risk?

How does HarvestEngine's wash-sale logic handle the risk that an automatic dividend reinvestment could disallow a harvested loss?

After each realized-loss sale, HarvestEngine creates a WASH_COOLDOWN record that blocks the engine from generating new buy proposals in the same symbol for the post-harvest window — preventing HarvestEngine's own proposals from constituting the disqualifying repurchase — but DRIP purchases execute at the broker level outside HarvestEngine's direct control.

The WASH_COOLDOWN mechanism is implemented in the wash engine module (src/tlh/wash_engine/). After a loss sale, the engine writes a cooldown entry that prevents the optimizer from recommending buying back the sold position within the restriction window. This addresses the risk of HarvestEngine's own proposal flow creating a wash-sale violation through an immediately recommended re-entry. The wash-sale rule article covers how the 30-day post-harvest restriction interacts with replacement security selection in the broader harvesting workflow.

Automatic dividend reinvestments, however, bypass HarvestEngine's proposal system entirely — they execute when the broker processes the quarterly payment, regardless of any strategy-level restrictions generated by the engine. HarvestEngine cannot suspend broker-side DRIP enrollment or detect when a reinvestment has occurred independently of a proposal, so awareness of DRIP timing relative to harvest dates remains a household-level responsibility. For the full IRS code framework governing wash sales — including §1091, the household extension under Rev. Rul. 2008-5, and how disallowed losses are treated across account types — the IRS code TLH cheat sheet provides a consolidated reference.

Read this next with the wash-sale rule demystified, substantially identical securities deep dive, wash sales across spouse and IRA accounts, dividend washing and wash sales, and the IRS code TLH cheat sheet.