“What did this investment actually earn?” has several honest answers, and this rate of return calculator gives all four. The total return (holding-period return) counts the change in price plus any dividends, interest or rent received. The annualized return spreads that result over the holding period so that a three-year gain can be compared with a one-year one. The real return removes inflation to show the gain in purchasing power. And the money-weighted return, known from spreadsheets as XIRR, handles the common real-life case where you added and withdrew money at different dates.
Choose the return type, enter the values and read the result with the full calculation in the steps. In annualized mode you can give the holding period in years or as two dates; add an inflation rate to also get the real annual return. In cash-flow mode, list each deposit and withdrawal with its date and finish with the current value of the account as a final “money out” row: the calculator finds the single yearly rate that makes all those flows consistent.
For a quick profit percentage on one purchase, the ROI calculator is simpler; to project a balance forward at a chosen rate, use the future value calculator.
How to use this calculator
- Pick the return type: Total, Annualized, Real or Cash flows (XIRR).
- Total / Annualized: enter the starting value, the ending value and any income received. For an annualized figure, give the holding period in years or by start and end date.
- Real: enter the nominal return and the inflation rate for the same period.
- Cash flows: add one row per transaction with its date (YYYY-MM-DD), its type and the amount. The last row is normally the current value, entered as money out.
- Read the result and open the steps or the table to see how it was computed.
The formula
Total (holding-period) return with starting value , ending value and income :
Annualized return over years (with dates, = days ÷ 365):
Real return (exact Fisher relation) for nominal return and inflation :
Money-weighted return (XIRR): the rate that sets the present value of all dated cash flows to zero, with the days since the first flow:
There is no closed form; the calculator solves it with Newton’s method and falls back to bisection when Newton does not converge.
Worked example
Total return with a dividend. A share bought at $128.74, sold at $176.53, paid $2.68 of dividends: 39.20%, of which 37.12% is capital gain and 2.08% dividend yield.
Annualized. $10,000 grows to $12,500 in three years with $300 of income: total return 28.00%, so 8.58% a year. With 2.5% inflation the real annual return is 5.93%.
Real return. A 7% nominal return with 2.5% inflation is 4.390%, slightly less than the 4.5% quick estimate.
XIRR. You invested $10,000 on 15 January 2024 and $2,000 on 1 September 2024, withdrew $1,500 on 30 June 2025, and the account is worth $13,200 on 1 October 2026. The money-weighted return is 8.54% a year for a net gain of $2,700.00. The Microsoft XIRR documentation example (−10,000 then four receipts) gives 37.34% here, matching Excel’s 37.34%.
Time-weighted or money-weighted?
Fund managers report a time-weighted return, which neutralises the timing of clients’ deposits and withdrawals so their skill can be compared. Your personal experience is better described by the money-weighted return: if you invested more just before a fall, your XIRR will be lower than the fund’s published figure, even though you held the same fund. Both are correct; they answer different questions.
Rate of return, yield and return: what to report
Always state the period (total or per year), whether income is included, and whether the figure is before or after fees, taxes and inflation. A 40% total return over ten years is only about 3.4% a year, and after 2.5% inflation the real gain is under 1% a year. Returns of less than a year should not be annualized for comparison: a 3% gain in one month “annualizes” to over 40%, which says little about the future.
Frequently asked questions
What is a good rate of return?
It depends on the risk taken. Compare with a relevant benchmark: a savings account or government bond for low-risk money, a broad stock index for equity funds, and always look at the real return after inflation.
What is the difference between ROI and rate of return?
ROI usually means the total percentage gain over the whole holding period. Rate of return is often expressed per year, so investments held for different lengths of time can be compared.
Should dividends be included?
Yes, for total return. Dividends, interest and rent received are part of what the investment earned. If they were reinvested, they are already in the ending value; do not count them twice.
Why does XIRR need dates?
Money invested for a short time should weigh less than money invested for years. XIRR discounts each cash flow by its exact number of days, which makes the result an annual rate comparable to a bank rate.
Can XIRR fail to find an answer?
Yes, if all flows go in the same direction or the pattern has no rate that balances them. Flows that change sign several times can also have more than one solution; the calculator returns the one nearest to a realistic rate.
Sources
- OpenStax, Principles of Finance — 15.1 Risk and Return to an Individual Asset
- Z. Bodie, A. Kane, A. J. Marcus, Investments, 13th ed., McGraw-Hill — ch. 5 (rates of return, real vs nominal)
- Microsoft Support — XIRR function (definition and worked example)
Last updated: