Skip to content
YouNeed Tools
Free VPN

Stock Profit and Dividend Calculator

See the full return on a share: the price gain, the dividends along the way, the yield and the yearly return, and how much more you would have by reinvesting dividends.

Total return

$1,980.00

+39.60%, 11.76% a year

Price gain

$1,500.00

On the shares you bought, after commissions

Dividends received

$480.00

Dividend yield

2.46%

At the sell price

Yield on cost

3.20%

At your buy price

Breakdown
Cost incl. commission$5,000.00
Shares at the end100
Sale value after commission$6,500.00
Cash dividends$480.00
Total return$1,980.00

Before tax. The DRIP option assumes the price moves steadily from your buy price to your sell price and the dividend per share stays the same.

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?
Price gain = shares × (sell price − buy price) − commissions. Add the dividends you received for the total return, and divide by what you paid to get it as a percentage.
What is dividend yield?
The yearly dividend per share divided by the share price. A $1.60 dividend on a $65 share is a 2.46% yield. Yield on cost uses the price you paid instead, so it rises as the company raises its dividend.
What is a DRIP?
A dividend reinvestment plan uses each dividend to buy more shares, often fractional ones and commission-free. Those extra shares earn dividends too, so the holding compounds. Reinvested dividends are still taxable in the year they are paid.
What is the annual return?
The compound yearly rate that turns what you paid into what you end up with (sale value plus dividends), also called CAGR. It lets you compare holdings kept for different lengths of time.
Are dividends and gains taxed?
In the US, qualified dividends and gains on shares held over a year are taxed at long-term capital gains rates (0%, 15% or 20%), shorter holdings at income tax rates; in an IRA or 401(k) they aren’t taxed until withdrawal. In the UK, dividends and gains above the yearly allowances are taxed unless the shares are in an ISA.

Last updated: 2026-11-26