StructureX

Home › Guides › Dividends

How to calculate dividend reinvestment: shares, count and cost basis

Multiply your shares by the dividend. Divide that cash by the price. Add the new shares to your count. Then add the cash to your cost. This page does it six times with real dividends.

Beginner guide · 7-minute read · By Paspir · Updated 2026-11-28

To calculate a dividend reinvestment, do four things each payment. Multiply your shares by the dividend per share. Divide that cash by the share price. Add the new shares to your count. Add the cash to your Cost basis.

The dividends below are real. They are the last six that Coca-Cola and Fortis paid, from our own Coca-Cola and Fortis pages. The share prices are made up, and the holdings are made up. They are there so the arithmetic has something to chew on. This page names the two companies only as examples and isn't a recommendation to buy either.

The four steps

StepFormula
1. Cash paidshares before × dividend per share
2. Shares boughtcash paid ÷ share price on the pay date
3. New share countshares before + shares bought
4. New costold cost + cash paid

In the tables, cash is rounded to the cent and shares to four decimals. Many brokers buy fractions. Some buy whole shares only and pay you the rest. Synthetic DRIP in Canada covers that.

Example 1: Coca-Cola, in US dollars

Say you own 100 shares, bought for $58.00 each, a cost of $5,800.00. The table uses the last six pay dates: Coca-Cola paid $0.51 a share on the last three in 2025 and $0.53 on three in 2026. The price column is made up.

Pay dateShares beforeDividend per shareCash paidMade-up priceShares boughtShares after
Jul 1, 2025100.0000$0.51$51.00$60.000.8500100.8500
Oct 1, 2025100.8500$0.51$51.43$62.000.8295101.6795
Dec 15, 2025101.6795$0.51$51.86$64.000.8103102.4898
Apr 1, 2026102.4898$0.53$54.32$61.000.8905103.3803
Jul 1, 2026103.3803$0.53$54.79$63.000.8697104.2500
Oct 1, 2026104.2500$0.53$55.25$66.000.8371105.0871

Check row 1 by hand. 100 × $0.51 = $51.00. $51.00 ÷ $60.00 = 0.85 shares. 100 + 0.85 = 100.85. Each row starts from the row above it.

Over six payments you got $318.65 in dividends and 5.0871 new shares. Your count went from 100 to 105.0871.

Cost basis per lot (US)

In the US, every reinvestment is its own lot. It has its own cost and its own date. IRS Publication 550 says that for reinvested shares "the holding period of each new share begins the day after that share was purchased".

LotBoughtSharesCost
Originalbefore 2025100.0000$5,800.00
1Jul 1, 20250.8500$51.00
2Oct 1, 20250.8295$51.43
3Dec 15, 20250.8103$51.86
4Apr 1, 20260.8905$54.32
5Jul 1, 20260.8697$54.79
6Oct 1, 20260.8371$55.25
Total105.0871$6,118.65

Check the total: $5,800.00 + $318.65 = $6,118.65. The cost of each lot is the cash it used. Pub 550 says the dividend is still income when reinvested: "If you use your dividends to buy more stock at a price equal to its fair market value, you must still report the dividends as income."

At the last made-up price of $66.00, 105.0871 shares are worth $6,935.75. That's $817.10 above your total cost of $6,118.65. Change the price and that number changes. The dividends and the shares don't.

Example 2: Fortis, in Canadian dollars

Canada pools your cost. Every share of one company in a regular account goes into one Adjusted cost base, and you divide by the share count. Say you own 200 shares with an ACB of C$12,400.00. The table uses the last six pay dates: Fortis paid C$0.615 a share on two in 2025 and C$0.64 on four after that. The price column is made up. Fortis's own plan prices new shares at a discount, which the Fortis page explains. This example uses plain market buys.

Pay dateShares beforePer shareCash paidMade-up priceShares boughtShares afterACB afterACB per share
Jun 1, 2025200.0000C$0.615C$123.00C$65.001.8923201.8923C$12,523.00C$62.0281
Sep 1, 2025201.8923C$0.615C$124.16C$67.001.8531203.7454C$12,647.16C$62.0734
Dec 1, 2025203.7454C$0.64C$130.40C$68.001.9176205.6630C$12,777.56C$62.1286
Mar 1, 2026205.6630C$0.64C$131.62C$66.001.9942207.6572C$12,909.18C$62.1658
Jun 1, 2026207.6572C$0.64C$132.90C$69.001.9261209.5833C$13,042.08C$62.2286
Sep 1, 2026209.5833C$0.64C$134.13C$70.001.9161211.4994C$13,176.21C$62.2990

Check the last row. 209.5833 × C$0.64 = C$134.13. C$134.13 ÷ C$70.00 = 1.9161 shares. ACB is C$13,042.08 + C$134.13 = C$13,176.21. Divide by 211.4994 shares and you get C$62.2990.

Watch the last column. It creeps up. That's because each reinvestment buys at a price above your average cost. If the made-up prices had been below C$62, it would have crept down. The total: C$776.21 in dividends and 11.4994 new shares.

A loss denied under the CRA's superficial loss rule is added to this same ACB. That rule is in wash sale and dividend reinvestment.

Where the made-up prices matter

The cash paid doesn't depend on your price guess. It depends on your shares and the declared dividend. The price only sets how many shares that cash buys. A lower price buys more shares. A higher one buys fewer.

To test your own mix of yield, deposits, raises and price changes, use the dividend reinvestment calculator. It runs a reinvest path and a take-the-cash path side by side. For the choice itself, read DRIP vs taking dividends in cash. For the tax side, read reinvested dividends: taxes and cost basis.

Questions

How do you calculate shares bought from a reinvested dividend?

Multiply your shares by the dividend per share to get the cash. Divide the cash by the share price on the pay date. For 100 shares, a $0.51 dividend and a $60 price: $51.00 ÷ $60 = 0.85 shares.

Does a reinvested dividend change my cost basis?

Yes. Add the cash you reinvested to your cost. In the US each reinvestment is its own lot. In Canada it goes into one pooled adjusted cost base.

Which price do I use?

The price your broker or plan paid on the pay date. The prices on this page are made up.

Why is my share count a long decimal?

Brokers that buy fractions record them. Many Canadian brokers buy whole shares only and pay out the rest as cash.

Do the dividends here come from real data?

Yes. The amounts are the dividends Coca-Cola and Fortis declared and paid on the dates shown. Prices and holdings are made up.

Follow along

XTradingViewFacebook