Purchase lots (leave lots 2 and 3 empty for a single purchase)
Sale, dividends and splits
Two annualised figures exist and they are not interchangeable. A single purchase gets a CAGR over its holding interval. Multiple dated purchases get a money-weighted return, which solves for the annual rate that makes the dated cash flows net to zero, because no single interval exists. The page prints whichever one the inputs support and labels it, and never annualises a multi-lot position with a single-interval formula. Capital-gains tax is a separate calculation and is not deducted here; future assumed growth belongs to the investment-growth page, not this one.
| Line | Amount |
|---|
Disclaimer: This calculator gives estimates for general information only. It is not financial, medical or other professional advice. Returns use the prices, fees, dividends and dates you enter; corporate actions beyond a single split factor, taxes, and return-of-capital adjustments are not modelled, so confirm cost basis against the broker’s records before filing.
What this calculator does
Works out what a stock position actually returned: profit in dollars, total return in percent, the price return separated from the dividend contribution, cost basis per share including fees, and one honestly labelled annualised figure. It handles up to three purchase lots, so averaging down or building a position over time is priced on its real dated cash flows instead of being forced into a single-buy formula that would misstate the timing.
How to use it
- Enter lots in the order bought: each lot carries its own date, shares, price and fee. A lot with no shares is ignored, so a single purchase is just lot 1 with the other two left blank.
- Count dividends once: dividends received, whether taken as cash or reinvested, are entered as a single total and added to the ending value. Entering reinvested dividends as both dividends and extra shares would double-count them.
- Enter the split factor, not adjusted prices: a 2-for-1 split doubles the share count and halves the per-share basis; the page applies it to every lot equally, which is correct for a split that happens while all lots are held. A split between purchases needs the lots entered at their split-adjusted share counts instead.
The method
Invested cost = sum over lots of (shares times price plus fee). Effective shares = total shares times split factor. Ending value = effective shares times sale price minus sale fee. Profit = ending value plus dividends minus invested cost. Total return = profit divided by invested cost. Price return for a single lot = (sale price divided by split factor minus buy price) divided by buy price; for multiple lots the price return is shown on the average-cost basis instead, because no single buy price exists. Cost basis per share = invested cost divided by effective shares. Dividend contribution = dividends divided by invested cost, in percentage points of the total return. Annualised return: for one lot, CAGR = ((ending value plus dividends) divided by invested cost) to the power of (365.25 divided by holding days) minus 1. For multiple lots, the money-weighted return solves the sum of dated cash flows discounted at the annual rate to zero, by bisection, with years measured from the first lot’s date in days divided by 365.25. Dates are calendar dates; holding days are counted as the difference between dates.
Worked examples
Single holding: 100 shares bought at $50 on 2 January 2024, fee $10, sold at $75 on 2 January 2026, fee $10, dividends $200. Invested cost $5,010.00, ending value $7,490.00, profit $2,680.00, total return 53.49%, price return 50.00%, dividend contribution 3.99 percentage points, cost basis $50.10 per share, CAGR 23.87% over 731 days. The fees matter here: ignoring both fees would overstate the profit by $20 and the basis by 20 cents a share, small on this trade and decisive on small ones.
Two lots, averaging up: 50 shares at $40 on 2 January 2024 (fee $5) and 50 at $60 on 2 January 2025 (fee $5), sold at $70 on 2 January 2026 (fee $10), dividends $100. Invested cost $5,010.00, ending value $6,990.00, profit $2,080.00, total return 41.52%, average cost $50.10 per share, money-weighted return 27.49% a year. The money-weighted figure exceeds a naive CAGR here because the second, larger purchase had only one year to compound: timing is doing work that a single-interval formula would hide.
Split: 100 shares bought at $100, 2-for-1 split, sold at $60, no fees, no dividends. Effective shares 200, ending value $12,000.00, profit $2,000.00, total return 20.00%, cost basis $50.00 per share. Without the split factor the same inputs would show a 40% loss, which is the classic split error: the price halved because the share count doubled, and only the factor reconciles the two.
Reading your result
Read total return first, then its split: price return versus dividend contribution tells you whether the position paid you for holding it or for its price moving. Cost basis per share is the number to compare with the sale price for the gain per share, and it must include fees, or it understates the hurdle the sale had to clear. The annualised figure is only comparable across positions when the method matches: CAGR against CAGR, money-weighted against money-weighted. Comparing one position’s CAGR with another’s money-weighted return compares two different questions.
Limitations
- No tax: capital-gains tax, dividend tax and return-of-capital adjustments are not deducted; the profit here is pre-tax, and the tax calculation is a separate page by design.
- One split factor for all lots: a split between purchases, a reverse split, a spin-off or a merger needs the lots restated at split-adjusted counts, because the page applies one factor to every lot equally.
- Dividends as a single total: dividend timing inside the holding period is not modelled for the CAGR case, and reinvested dividends are counted once as dividends, not as additional lots, which slightly understates compounding for heavy reinvestors.
- Money-weighted, not time-weighted: the multi-lot annualised figure reflects when money went in, so it rewards or punishes timing; it is not a fund-manager-style time-weighted return and should not be compared with one.
Frequently asked questions
Why is my total return not the same as my annualised return?
Because total return covers the whole holding period and the annualised figure spreads it over years. A 53.49% total return over two years is 23.87% a year compounded, not 26.75% a year, because compounding multiplies rather than adds. Dividing a total return by the number of years is the most common return error, and it always overstates the annual figure.
Should fees be included in cost basis?
Yes. The money spent buying the shares is the purchase price plus the buy fee, and the money received is the sale price minus the sell fee. Leaving fees out flatters every trade slightly and small trades badly: a $10 fee on a $500 purchase is 2% of the position, which is larger than many annual returns.
What is the difference between CAGR and the money-weighted return?
CAGR assumes one sum invested for one interval and asks what constant annual rate reproduces the ending value. The money-weighted return asks what constant annual rate makes a set of dated cash flows, in and out at different times, net to zero. With one purchase they are closely related but not identical when dividends are counted; with several purchases only the money-weighted figure is meaningful, which is why the page switches methods and labels the switch.
How do I handle a stock split?
Enter the split factor: 2 for a 2-for-1 split, 0.1 for a 1-for-10 reverse split. The page doubles the share count and halves the per-share basis, so the position’s value is unchanged by the split itself. If the split happened between two purchases, restate the earlier lot’s shares at the split-adjusted count and leave the factor at 1.
Related calculators
Method: profit = ending value plus dividends minus invested cost; total return = profit divided by invested cost; cost basis = invested cost divided by effective shares; single-lot annualisation by CAGR over holding days; multi-lot annualisation by money-weighted return (bisection on dated cash flows). No tax modelling. Last reviewed: 24 October 2026.
