How DRIP affects your cost basis

A reinvested dividend is both income and a purchase. A worked example of how DRIP changes share count, cost basis, average price and ROI.

Updated 2026-09-07 · TreeSolutions

The short version: a DRIP transaction is a dividend you were paid and a purchase you made with it, on the same day, at that day's price. Record it as one event of type DRIP with the shares received and the price. Cost basis goes up by the dividend amount, share count goes up by the shares received, average price moves toward that day's price, and dividend income goes up by the dividend amount. Miss any one of those and your ROI is wrong.

What a DRIP actually is

A Dividend Reinvestment Plan takes the cash dividend you're owed and buys more shares (often fractional) instead of paying it out. Economically, two things happened: you received income, and you bought shares. Most tracking mistakes come from recording only one of them.

  • Record only the buy → your cost basis is right but your dividend income is missing, so “ROI including dividends” is understated and the position looks like it never paid you.
  • Record only the dividend → income is right but share count and cost basis are wrong, so your unrealised P&L and average price are fiction.

A worked example

You buy 100 shares of an ETF at $50 (ignore fees for a moment).

EventSharesCost basisAverage priceDividend income
Buy 100 @ $50100$5,000$50.00$0
DRIP: $60 dividend reinvested @ $55 → 1.0909 sh101.0909$5,060$50.05$60
DRIP: $62 dividend reinvested @ $48 → 1.2917 sh102.3826$5,122$50.03$122

Notice three things:

  1. Cost basis rose by exactly the dividends ($5,000 → $5,122), even though you deposited nothing new. Your cash invested is still $5,000.
  2. Average price moved toward each reinvestment price — up after the $55 buy, down after the $48 buy. That's dollar-cost averaging happening automatically.
  3. Dividend income is $122, and that $122 is also sitting inside cost basis as shares. Nothing is double-counted: income is one measure, cost basis is another.

If the ETF is now $52: market value is 102.3826 × $52 = $5,323.90. Unrealised P&L is $5,323.90 − $5,122 = +$201.90 (3.9% on cost basis). ROI on cash invested including dividends is ($5,323.90 − $5,000) / $5,000 = +6.5%. Both numbers are true; they answer different questions.

The formulas

For a position with transactions t:

  • Shares held = Σ shares bought (Buy + DRIP) − Σ shares sold
  • Cost basis = Σ (shares × price + fee) over Buy and DRIP, reduced proportionally when shares are sold
  • Average price = cost basis ÷ shares held
  • Dividend income = Σ Dividend amounts + Σ DRIP amounts (the DRIP amount is shares × price)
  • Unrealised P&L = shares held × current price − cost basis
  • ROI incl. dividends = (market value + dividends taken as cash + realised P&L − cash invested) ÷ cash invested

Where spreadsheets go wrong

  • Treating DRIP as a plain buy with money from nowhere. Income vanishes.
  • Adjusting average price by hand after each reinvestment. One typo and every later figure is off.
  • Fractional shares. DRIP almost always produces fractions; a sheet that rounds to whole shares drifts a little every quarter.
  • Return of capital distributions. Not income; they reduce cost basis. If your fund does this, your statement will say so — record the income part only.

How Nudge Invest records it

Add a transaction, choose DRIP, enter the shares received and the price per share. That single entry updates share count, cost basis, average price, dividend income, and both ROI figures. Nothing else to maintain. If your broker's statement lists reinvestments, import it as CSV or let the AI coach read the PDF and propose the DRIP rows for your approval.

Under the hood: in Nudge's metrics, Buy and DRIP both add to bought quantity and cost basis (fees increase net cost); Dividend and DRIP both add to dividend income. That's the whole model, and it's unit-tested.

DRIP questions

Does DRIP increase my cost basis?

Yes. Each reinvestment buys shares at that day's price, and those shares are added to cost basis at what they cost — the dividend amount. Over years of reinvesting, a large share of your cost basis can be reinvested dividends rather than cash you deposited.

Is a reinvested dividend still taxable income?

In most jurisdictions, yes — a DRIP is treated as if you received the cash and immediately bought shares. That is exactly why Nudge Invest records DRIP as income and a buy. Check your local rules.

What is the difference between “cash invested” and “cost basis” after DRIP?

Cash invested is the money you personally put in. Cost basis includes reinvested dividends too. After years of DRIP, cost basis is higher than cash invested; the gap is income you never saw as cash.

Track your portfolio privately

Free on Android. No account, no cloud, no ads — your data stays on your phone.

Get it on Google Play