DDanfio

ROI Calculator

Return on investment is the gain divided by everything that had to be paid to get it. It answers a simple question: for each dollar put in, how much came back? The same gain can look very different depending on whether it took one year or twenty to arrive.

$
$

Money put in after the first purchase, such as a second buy.

$

What the position is worth today, before selling costs.

$

Cash already paid to you: dividends, coupons or rent.

$

Commissions, platform and transfer fees paid on the way in.

Used for the annualised return. Leave at 0 for an open-ended position.

Results update as you type. Nothing leaves your device.

Profit on $10,000 invested

$4,500.00

$10,000 in, worth $14,500 now

Return on investment
45%
Annualised over 5 years
7.71%
Back per dollar invested
1.45x
Total cost basis
$10,000.00

How the exit value splits

  • Money invested$10,000.00
  • Return$4,500.00

Return on investment compares the gain with everything paid to get it, including fees and every later top-up.

The same position at a different exit price

Price moveValue at exitProfit or lossROIAnnualised
-30%$10,150$1501.5%0.3%
-20%$11,600$1,60016%3.01%
-10%$13,050$3,05030.5%5.47%
Unchanged$14,500$4,50045%7.71%
+10%$15,950$5,95059.5%9.79%
+20%$17,400$7,40074%11.71%
+30%$18,850$8,85088.5%13.52%

A position that has not been sold has not returned anything yet: these rows are what the same holding would show if the price moved before you sold.

What the same return means over other holding periods

Holding periodAnnualised returnValue per $1,000 invested
1 year45%$1,450.00
3 years13.19%$1,450.00
5 years7.71%$1,450.00
10 years3.79%$1,450.00
20 years1.88%$1,450.00

A 45% total return is remarkable in one year and ordinary spread over twenty, which is why the annualised figure is the one to compare.

$10,000 invested became $14,500, a profit of $4,500. Over 5 years that is 7.71% a year compounded, which is the figure to set against an index return, a savings rate or a bond yield. Tax on the gain is not included: enter the after-tax proceeds as the value if you want the net result.

This calculator takes the amount invested, anything added later, the fees paid, the income already received and the current or selling value, then reports the total return, the annualised rate and a table of what the position would show at other exit prices.

How this roi calculator works

The formula

ROI = (final value + income received − initial amount − later additions − fees) ÷ (initial amount + later additions + fees) × 100.

Everything paid counts as invested, which is why a commission belongs in the cost basis instead of being netted off the outcome. A 1% fee on a 10% gain is not a rounding error: it takes a tenth of the return.

Total return and annualised return are different numbers

A 45% gain is a 45% ROI whenever it happened, but it is 7.71% a year over five years and 3.79% a year over ten. Comparing two investments by total return alone rewards whichever one was held longer, so the annualised figure (the compound rate, sometimes written CAGR) is the honest comparison.

The annualised number also exposes small differences over long periods. Two portfolios five percentage points apart in total return are much closer than they look: over five years that is about a percentage point a year.

What is deliberately left out

Tax on the gain is not calculated, because it depends on the account type, the holding period and the bracket. If you want the after-tax figure, enter the post-tax proceeds as the current value.

Risk is not captured either. A 20% return that was guaranteed and a 20% return that could have lost half the money are not the same result, and no single ratio separates them.

Worked examples

Each example below was run through the calculator on this page when the site was built, so the numbers match what you see when you enter the same inputs.

$10,000 grew to $14,500 in five years

Amount invested
$10,000.00
Added later
$0.00
Value now (or at sale)
$14,500.00
Dividends or income received
$0.00
Fees and costs
$0.00
Holding period
5 years

Profit on $10,000 invested

$4,500.00

$10,000 in, worth $14,500 now

Return on investment
45%
Annualised over 5 years
7.71%
Back per dollar invested
1.45x
Total cost basis
$10,000.00

A 45% total return is 7.71% a year compounded, which is the figure to compare with an index fund or a savings rate.

A dividend portfolio topped up along the way

Amount invested
$25,000.00
Added later
$5,000.00
Value now (or at sale)
$31,000.00
Dividends or income received
$1,800.00
Fees and costs
$25.00
Holding period
4 years

Profit on $30,025 invested

$2,775.00

$30,000 in, $25 of fees, worth $31,000 now, plus $1,800 received

Return on investment
9.24%
Annualised over 4 years
0.8%
Back per dollar invested
1.03x
Total cost basis
$30,025.00

The $1,800 of dividends counts towards the return even though the share price barely moved, and the $25 of fees is added to the cost basis rather than deducted from the gain.

A position sold at a loss

Amount invested
$8,000.00
Added later
$0.00
Value now (or at sale)
$5,200.00
Dividends or income received
$120.00
Fees and costs
$20.00
Holding period
2 years

Loss on $8,020 invested

-$2,700.00

$8,000 in, $20 of fees, worth $5,200 now, plus $120 received

Return on investment
-33.67%
Annualised over 2 years
-19.48%
Back per dollar invested
0.65x
Total cost basis
$8,020.00

The return is negative but smaller than the price fall suggests, because the income received and the fees both count in the sum: the price fell 35% while the return is about −34%.

Frequently asked questions

What is a good ROI?

It depends on the risk and the horizon. A broad stock market index has returned roughly 7% to 10% a year before inflation over long periods, a savings account pays a fraction of that with almost no risk, and anything promising a large monthly return is either leveraged or a scam. Judge the return against the alternative you could have held instead, not against zero.

Should I use total return or annualised return?

Use annualised return to compare two investments of different lengths, and total return to see what actually happened to your money. The table above shows both for the same position so the difference is visible: the same total return is a modest annual rate once the period is long.

Do dividends and interest count as part of the return?

Yes. Total return includes price change plus income, and for many holdings the income is most of the result. Enter what you received in cash, not what was reinvested, and add reinvested dividends to the current value instead.

How do fees change the answer?

Fees are added to the money invested, so they reduce the return exactly like a smaller gain would. A 1% fee on a portfolio earning 8% costs around 12% of the return over a decade and much more over a lifetime, because the money that paid the fee never compounds.

Can ROI be negative?

Yes, and the calculator reports it that way: a negative figure is the share of the money that did not come back. A −100% return means the whole investment was lost, which is the floor for a long position.

Does this calculator account for tax and inflation?

No. Enter the after-tax proceeds to see a net figure, and remember that a 7% return with 2.5% inflation is about 4.4% in real purchasing power. The compound interest calculator on this site shows that restatement explicitly.

Assumptions and sources

  • Return on investment and the compound annual growth rate are standard arithmetic: ROI = (gain ÷ cost) × 100, and the annualised rate solves (1 + ROI)^(1 ÷ years) − 1.
  • This is not investment advice. A return that has already happened says nothing about the next one, and past performance of any asset does not predict its future result.
  • Not modelled: tax on the gain, transaction spreads, currency movement on foreign holdings, and the timing of the cash flows inside the holding period, which are treated as a single sum for the annualised figure.
  • Updated for the 2026 tax year; the calculator itself does not depend on any published rate or limit.

Last reviewed 2026-09-14. This page is an estimate tool, not financial, tax or legal advice.Read the full disclaimer.