Price gain plus dividends
A share pays you in two ways: the rise in its price and the dividends it pays while you hold it. Looking only at the price misses much of the return on steady dividend payers, which have historically supplied a large part of the stock market’s long-run gains. This calculator adds both, takes off the commission on each trade, and turns the total into a yearly rate so a three-month trade and a ten-year holding can be compared fairly.
Worked example
You buy 100 shares at $50 and sell three years later at $65, with a $1.60 yearly dividend and no commissions. The price gain is $1,500.00 and dividends add $480.00, a total return of $1,980.00 (39.60%, or 11.76% a year). The yield is 2.46% at $65 and the yield on cost 3.20%. Reinvesting each quarterly dividend instead grows the holding to 108.68 shares, worth $7,064.14 at the sale, a total return of $2,064.14.
How the DRIP option is modelled
Dividends are paid four times a year at a quarter of the yearly amount. With reinvestment on, each payment buys shares at that quarter’s price; the price moves steadily (at a constant compound rate) from your buy price to your sell price. Real prices zig-zag, so actual DRIP results vary, but the estimate shows the size of the compounding effect. The dividend per share is held constant: companies that raise their dividend each year would do better.
Reading the numbers
- A very high yield can be a warning: the price may have fallen because the market expects a dividend cut.
- Commissions are zero at most US brokers today but still matter for small trades elsewhere.
- Losses can offset gains for tax; harvesting them before year-end is a common strategy.
Dividend dates that decide who gets paid
To receive a dividend you must own the share before the ex-dividend date; buying on or after it means the seller gets that payment. The share price usually drops by about the dividend on the ex-date, which is why a dividend alone doesn’t create value: the total return, price plus dividends, is what counts. The payment date, when cash or new DRIP shares arrive, can be weeks later.
Comparing holdings
Use the yearly return rather than the total when comparing two investments held for different periods. A 40% total gain over three years is about 11.9% a year; the same 40% over seven years is under 5% a year, which a savings account or bond fund might have matched with far less risk. Enter today’s price as the sell price to check a share you still hold, and remember commissions on both sides even when your broker shows them separately.
Related tools
Frequently asked questions
How do I calculate profit on a stock?
What is dividend yield?
What is a DRIP?
What is the annual return?
Are dividends and gains taxed?
Last updated: 2026-11-26