Investing basics · updated October 2026

Rate of return: the formula, how to calculate yours, and a calculator

Your rate of return is what you gained, as a percentage of what you put in. Add the investment's value now to any dividends or interest it paid you, take off what you paid, and divide by what you paid. For a yearly rate, don't divide by the number of years: compound it over the time you held it.

A real example: the S&P 500$10,000 in SPY at the close on 2 Jan 2020, valued on 26 Oct 2026, dividends taken as cash
30.78 shares are worth now$23,559
plus 26 dividends paid to you+ $1,305
minus what you paid− $10,000
Gain$14,865
Rate of return148.65%$14,865 ÷ $10,000
A year14.29%over 6.8 years (2,489 days)
Value of $10,000 put into SPY on 2 January 2020, month by month to 26 October 2026: the shares fell to $7,934 at the end of March 2020 and are worth $23,559 now, with $1,305 of dividends paid on top $0 $10k $20k $30k 2020202220242026
Shares plus dividends paidShares alone$10,000 paid

Rate of return calculator

Enter what you paid, what it's worth now and any income it paid you. Add the dates for the yearly rate, and any money you added or took out along the way.

$
$
$
Leave at 0 if they were reinvested: they're already in the value. If you add deposits below, enter dividends paid out as money taken out on the date they were paid, and leave this at 0.
Money added or taken outOptional
Rate of return148.65%in total
A year14.29%annualized
Gain$14,865on $10,000

The rate of return formula

Two formulas cover almost every case: the total return over the time you held the investment, and the yearly rate that gets you there.

Rate of return

Rate of return =Value now + Income − CostCost
Value now
What the investment is worth today, or what you sold it for.
Income
Dividends or interest paid out to you. If they were reinvested, they're already in the value; don't count them twice.
Cost
What you paid, including the commission.

SPY: (23,559 + 1,305 − 10,000) ÷ 10,000 = 148.65%. Also called the holding period return, total return or ROI. It doesn't say how long it took.

Annualized rate of return

(1 + total return)365 ÷ days − 1

This is the yearly rate that, compounded, turns what you paid into what you have. It's the figure to compare investments held for different lengths of time. Over whole years, use 1 ÷ years as the power.

SPY: 2,489 days from 2 January 2020. (1 + 1.4865)365 ÷ 2,489 − 1 = 14.29% a year. Dividing 148.65% by 6.8 years gives 21.8%, which is too high, because each year's gain builds on the last.

In Excel or Google Sheets: =(B2+B3-B1)/B1 for the total, then =(1+B6)^(365/(B5-B4))-1 with the two dates in B4 and B5, or =RRI(years, cost, value + income).

When you add money along the way

Most portfolios aren't one purchase. As soon as you add or take out money, gain divided by what you put in stops being a fair rate, because each deposit was invested for a different length of time. Here is SPY again, with a second $10,000 added two years later.

$10,000 in January 2020, another $10,000 in January 2022

SPY, dividends reinvested, month-end values to 26 October 2026 Value of the two-deposit SPY portfolio: $15,099 at the end of 2021, $25,186 straight after the second deposit, down to $19,049 in September 2022, and $42,998 on 26 October 2026, against $20,000 put in $0 $10k $20k $30k $40k $50k 2020202220242026 +$10,000 at the January 2022 high
Portfolio valueMoney put in
Gain ÷ money put in114.99%in total

$22,998 on $20,000. It treats the second $10,000 as if it had been there from the start, so it reads lower than the fund did.

Time-weighted return14.99%a year

159.26% in total: what SPY itself did. Deposits are taken out, so it's the number to compare with an index or a fund.

Money-weighted return (IRR)13.90%a year

What your money earned, counting when each dollar went in. Lower than the fund, because half of it arrived at the top.

The same fund, three different numbers

Nothing here is wrong: they answer different questions. The first $10,000 is now worth $25,926. The second, put in on 3 January 2022, is worth $17,072, an 11.75% a year return of its own, and it was down to $7,550 by October 2022. Your blend of the two is the 13.90%.

Which one to use

To judge your choices against an index fund you could have bought, use the time-weighted return. To know what your savings actually earned, timing included, use the money-weighted return, or IRR. In a spreadsheet, that's XIRR on your deposits and today's value.

What is a good rate of return?

A useful yardstick is what a plain index fund did over the same dates. Here is SPY, an S&P 500 fund, over different stretches ending on 26 October 2026. The start date changes the answer more than anything else.

Held forA year, with dividendsChartA year, price only$10,000 became
1 yearfrom 27 Oct 202512.93%
11.73%$11,290
3 yearsfrom 26 Oct 202324.34%
22.85%$19,236
5 yearsfrom 26 Oct 202112.40%
10.91%$17,950
10 yearsfrom 26 Oct 201615.41%
13.60%$41,959
20 yearsfrom 26 Oct 200610.92%
8.91%$79,541
Since January 2000from 3 Jan 20008.27%
6.38%$84,257
With dividends reinvestedPrice only

Compare over the same dates

A 9% year looks great next to the 2000s and poor next to the last three years. Set your own return against an index fund for exactly the period you were invested, and after costs.

A good return depends on the risk

Bonds and savings pay less than shares because they swing less. 5% from a government bond held to maturity and 5% from a single stock are not the same result. A portfolio's mix of assets sets the return you can reasonably expect.

Four mistakes that make a return look better or worse than it is

All four come from the same place: a percentage without the time or the money it relates to.

Averaging the yearly returns

SPY lost 18.17% in 2022 and gained 26.19% in 2023. The average is 4.01% a year, but $10,000 became $10,326 over the two years: 1.62% a year. A loss needs a bigger gain to recover, so the plain average always flatters a bumpy record.

Annualizing a short gain

SPY's price rose 13.81% from 8 April to 8 May 2025. As a yearly rate that's 382.7%, which tells you nothing about the next eleven months. Quote returns under a year as they are.

Leaving out the dividends

Since January 2000, SPY's price grew 6.38% a year; with dividends reinvested it was 8.27%. On $10,000 that's $52,625 against $84,257. A return on price alone undersells any fund or stock that pays out.

Counting your deposits as gains

If your account went from $10,000 to $25,000 and you added $10,000 of it, you made $5,000, not $15,000. Take out every deposit and withdrawal, or use a time-weighted or money-weighted return, which do it for you.

Which return your portfolio tracker shows

Broker statements and portfolio apps label these numbers differently. Each answers its own question; here they are on the two-deposit SPY portfolio above.

FigureThe question it answersTwo-deposit SPYUse it to
Total return, gain %or ROIHow much did I make on what I put in?114.99%Read a single trade or holding at a glance.
Annualized returnor CAGRWhat yearly rate turns one amount into another?n/a with two depositsCompare one purchase with another held for a different time.
Time-weighted returnTWRHow did the investments do, leaving my deposits out?14.99% a yearCompare with an index, a fund or an adviser.
Money-weighted returnIRR, XIRR, personal rate of returnWhat did my money earn, given when I put it in?13.90% a yearSee what your savings actually earned.
Any two dates

Your rate of return for any stretch of time

Pick a start and an end date and the dashboard works out that period from the trades and prices in it: the growth rate (IRR) a year, and the capital gain in money and as a percentage. Pick a combined portfolio and it's the return on every account in it, not one broker at a time.

What IRR means
AllInvestView AllInvestView dashboard from 1 January to 31 December 2025: Growth Rate (IRR) 31.14%, portfolio 36,265.55 USD with cost basis 29,482.90 USD, capital gain +6,974.59 USD (22.25%), dividend 2.80% AllInvestView dashboard from 1 January to 31 December 2025: Growth Rate (IRR) 31.14%, portfolio 36,265.55 USD with cost basis 29,482.90 USD, capital gain +6,974.59 USD (22.25%), dividend 2.80%
A demo portfolio from 1 January to 31 December 2025: a growth rate of 31.14% a year and a capital gain of USD 6,974.59. Demo account.View full-size View full-size
Year by year

Each year's return, time-weighted or money-weighted

Every calendar year of the whole portfolio is a bar, so you see the years behind the average. Time-weighted is the default, the figure to set against an index; one click shows the same years money-weighted, with your deposits counted.

Time-weighted return explained
AllInvestView AllInvestView Annual Returns chart with TWR selected: 2021 21.91%, 2022 -6.73%, 2023 5.87%, 2024 11.73%, 2025 19.00%, 2026 to 17 July 13.67% AllInvestView Annual Returns chart with TWR selected: 2021 21.91%, 2022 -6.73%, 2023 5.87%, 2024 11.73%, 2025 19.00%, 2026 to 17 July 13.67%
A demo portfolio of VOO, Coca-Cola, Johnson & Johnson, Realty Income and AbbVie, as of 17 July 2026. Demo account.View full-size View full-size

Your real rate of return, across every account

Link your brokers or import your trades. AllInvestView takes every deposit, withdrawal and dividend into account and shows your return time-weighted and money-weighted, for any dates you pick.

Create a free account

Rate of return questions

How do you calculate the rate of return?

Take what the investment is worth now, add any dividends or interest it paid you, subtract what you paid, and divide by what you paid. $10,000 put into SPY on 2 January 2020 was worth $23,559 on 26 October 2026 and had paid $1,305 in dividends: (23,559 + 1,305 − 10,000) ÷ 10,000 = 148.65%.

How do you calculate an annualized rate of return?

Add 1 to the total return, raise it to the power of 365 divided by the number of days you held it, and subtract 1. The SPY example is 2,489 days: 2.4865 to the power of 365 ÷ 2,489, minus 1, is 14.29% a year. Under a year, leave the return as it is: annualizing a few weeks gives silly numbers.

What is a good rate of return on investments?

One that beats what you could have earned in a simple index fund over the same dates, for the risk you took. SPY, an S&P 500 fund, returned 15.41% a year with dividends over the 10 years to 26 October 2026, but only 8.27% a year from January 2000, because that start sits just before two big crashes. The dates you pick change the answer a lot.

How do I calculate my return if I added money along the way?

The simple formula stops working, because money added late had less time to grow. Use the money-weighted return (XIRR in Excel or Google Sheets) to see what your money earned a year, or the time-weighted return to compare with an index. Two $10,000 deposits into SPY, in January 2020 and January 2022, earned 13.90% a year money-weighted, while the fund itself did 14.99% a year.

Is rate of return the same as ROI?

For an investment, yes: both are the gain divided by what you put in, and neither says how long it took. ROI is the word businesses use for projects and marketing spend. To compare investments held for different lengths of time, use the annualized figure.

What is the difference between annualized return and CAGR?

For one amount in and one amount out they are the same number: the yearly rate that turns the start value into the end value. People say CAGR when they talk about growth between two values, such as revenue, and annualized return when they talk about an investment. Average annual return is different: it adds up each year's return and divides, which overstates what you earned whenever returns swing.

How do I calculate rate of return in Excel or Google Sheets?

With the amount paid in B1, the value now in B2 and income in B3, the total return is =(B2+B3-B1)/B1. With the buy date in B4 and today in B5, the yearly rate is =(1+B6)^(365/(B5-B4))-1, where B6 holds the total return. For deposits on different dates, list each one as a negative number with its date, put the value now as a positive number, and use =XIRR(values, dates).

What is the real rate of return?

Your return after inflation. Divide 1 plus your return by 1 plus inflation and subtract 1: an 8% year with 3% inflation is 1.08 ÷ 1.03 − 1 = 4.85% in real terms, a little less than the 5% you get by subtracting.

Related guides and tools

Sources

  • SPDR S&P 500 ETF Trust (SPY): daily closing prices and dividends, 3 January 2000 to 26 October 2026, worked out by AllInvestView. Reinvested dividends buy shares at the close on the ex-dividend date; no trading costs or taxes.
  • Microsoft, XIRR function and RRI function
  • CFA Institute, Global Investment Performance Standards (GIPS), time-weighted and money-weighted returns

Checked on 27 October 2026. Past returns don't tell you what markets will do next. This page explains how returns are measured and isn't advice to buy or sell any investment.