Text Tools
Fancy Text
Calculators
Everyday helpers

Quick calculators

Percentages, money, grades, math, age, sleep and time tools.

Browse all calculators
% Percentage Calculator Percent of, change and difference ½ Fraction Calculator Add, subtract and simplify fractions A+ Grade Calculator Weighted grade and final exam score 4.0 GPA Calculator Semester and cumulative GPA Av Average Calculator Mean, median, mode and range σ Standard Deviation Calculator Spread of a data set, step by step 1:2 Ratio Calculator Simplify and scale ratios ≈ Rounding Calculator Round to any place or figure 1.0 Significant Figures Calculator Count and round significant figures ft² Square Footage Calculator Area of rooms and shapes Tp Tip Calculator Work out the tip and split the bill Ex Expense Calculator Track and total your spending Ag Age Calculator Exact age in years, months and days Zz Sleep Calculator Find a good time to sleep or wake t± Online Time Calculator Add and subtract hours and minutes Di Discount Calculator Sale price, percent off, stacked deals St Sales Tax Calculator Add, remove or find tax, VAT mode Si Simple Interest Calculator Interest, principal, rate or time Ci Compound Interest Calculator Growth, deposits, schedule and APY Pm Payment Calculator Loan payment, total interest Ir Interest Rate Calculator Rate from amounts or payments Fv Future Value Calculator Deposits, growth, compounding Pv Present Value Calculator Discount a lump sum or payments Fn Finance Calculator Solve N, rate, PV, PMT or FV Ro ROI Calculator Net gain, ROI and break-even Cm Commission Calculator Flat, tiered or base plus commission Sa Salary Calculator Hourly, weekly, annual pay E+ Scientific Notation Calculator Convert and calculate in E notation
Health
Dev Tools
More
Blog Get the Chrome extension
Free · No sign-up · Nothing is uploaded

ROI Calculator: Gain, Annualized ROI and Break-even

Enter what you put in and what it ended at, add fees and a time, and see the net gain, ROI, annualized ROI and break-even value with the working shown. Switch to find the final value a target needs, or compare two investments.ROI, annualized ROI and break-even, with the working shown.

Time held

ROI–
Net gain–
Annualized ROI–
Total cost–
Final value–
Break-even value–

Before tax. ROI leaves out risk, inflation and when the money moved, so treat it as one number, not a verdict. This is a general estimate for educational use. It is not financial, tax, legal or investment advice. Real investments have fees, taxes and terms this calculator does not model. Talk to a licensed professional before you make a financial decision.

Private by design. Everything runs in your browser and is never uploaded. Results are estimates, not financial advice.

The basics

What is ROI?

ROI, or return on investment, is the net gain divided by the total cost: ROI = (final value − total cost) ÷ total cost. If 10,000 plus 200 in fees ends at 12,800, the gain is 2,600 and the ROI is 25.49%. Over 3 years that is 7.86% a year. ROI is before tax and ignores risk and timing.

This ROI calculator works out the net gain, the ROI, the annualized ROI and the break-even value, and shows every step with your numbers. The percent-return formula and the yearly conversion follow FINRA's guide to evaluating performance. Results change as you type, and a second mode finds the final value a target needs. For other percentage sums, use the percentage calculator, or browse the free online calculators.

Worked examples (amounts without a currency symbol)
Case and working Net gain ROI Per year
2,000 grows to 2,620 in 3 years (a 500 price gain plus 120 dividends)(2,620 − 2,000) ÷ 2,000 620.00 31.00% 9.42%
10,000 plus 200 fees ends at 12,800 in 3 years(12,800 − 10,200) ÷ 10,200 2,600.00 25.49% 7.86%
5,000 ends at 4,200 in 2 years(4,200 − 5,000) ÷ 5,000 -800.00 -16.00% -8.35%
1,000 ends at 1,500 in 6 months(1,500 − 1,000) ÷ 1,000 500.00 50.00% 125.00%
10,000 plus 250 fees ends at 10,250 in 3 years(10,250 − 10,250) ÷ 10,250 0.00 0.00% 0.00%
1,000 ends at 0 after 5 years(0 − 1,000) ÷ 1,000 -1,000.00 -100.00% -100.00%
How it works

How to use the ROI calculator

The first answer is already on screen. Change any number and it updates at once, with no Calculate button.

01

Enter the cost and the final value

Type the amount invested and the value it ended at. Add dividends, interest or rent you received to the final value so the gain includes them.

02

Add fees and a time

Fees and extra costs are added to the cost. Give the time as years and months, or as a start and end date, to see the annualized ROI.

03

Read the answer and the working

ROI comes first, then the net gain, the annualized ROI and the break-even value. The working puts your numbers into each formula.

04

Try a target or compare two

Choose Target ROI to find the final value a total or yearly target needs. Choose Compare to set two investments side by side.

The maths

What are the ROI and annualized ROI formulas?

ROI measures the gain against everything spent to get it. The total cost is the amount invested plus any fees or extra costs, the net gain is the final value minus that cost, and ROI is the gain as a share of the cost. The same idea is used by Wikipedia's definition of return on investment, where other expenses such as brokerage fees are part of the cost.

ROI says nothing about time, so the annualized form converts it to a yearly rate: (1 + ROI)1 ÷ years − 1. Growing the cost at that yearly rate for the same time gives back the final value, which you can check in the compound interest calculator with yearly compounding. Dividing the ROI by the years instead gives a flat yearly rate, the kind the simple interest calculator works with: 31% over 3 years is 10.33% a year that way, but 9.42% annualized.

ROI formulas
To find Formula
Total cost amount invested + fees
Net gain final value − total cost
ROI net gain ÷ total cost
Annualized ROI (1 + ROI) ^ (1 ÷ years) − 1
Years from dates days between the dates ÷ 365 (or 365.25)
Break-even final value total cost (the value where ROI is 0%)
Final value for a total target total cost × (1 + target ROI)
Final value for a yearly target total cost × (1 + yearly target) ^ years
Gain needed after a fall of L L ÷ (1 − L)
Reference

Annualized ROI for different holding times

The same total ROI means very different yearly rates depending on how long it took. Each cell is the yearly rate that would give that total over that time.

Annualized ROI by total ROI and years held
Total ROI 6 months 1 year 2 years 3 years 5 years 10 years 20 years
-50% -75.00% -50.00% -29.29% -20.63% -12.94% -6.70% -3.41%
-20% -36.00% -20.00% -10.56% -7.17% -4.36% -2.21% -1.11%
+10% 21.00% 10.00% 4.88% 3.23% 1.92% 0.96% 0.48%
+25% 56.25% 25.00% 11.80% 7.72% 4.56% 2.26% 1.12%
+50% 125.00% 50.00% 22.47% 14.47% 8.45% 4.14% 2.05%
+100% 300.00% 100.00% 41.42% 25.99% 14.87% 7.18% 3.53%
+200% 800.00% 200.00% 73.21% 44.22% 24.57% 11.61% 5.65%
Break-even after a fall: the gain needed to get back to 10,000
Fall in value Value of 10,000 after the fall Gain needed to break even
5% 9,500.00 5.26%
10% 9,000.00 11.11%
20% 8,000.00 25.00%
25% 7,500.00 33.33%
30% 7,000.00 42.86%
40% 6,000.00 66.67%
50% 5,000.00 100.00%
75% 2,500.00 300.00%
90% 1,000.00 900.00%

A gain and a loss of the same percentage do not cancel out, because the gain is measured on a smaller amount after a fall. That is why the gain needed grows faster than the fall, and why an average of yearly returns, such as the one the average calculator gives, is not the same as annualized ROI.

Compared

How this calculator differs from a basic one

Many ROI calculators take a cost, a final value and a number of years, and stop there. These are the details that change the answer or save you a step.

Features compared
Feature Basic ROI calculator This calculator
Fees and extra costs Often no field for them Added to the cost, with the ROI before fees shown beside it
Time Whole years, or one date method Years and months, or start and end dates, with a 365 or 365.25-day year
Annualized ROI A number, often with no formula The formula with your numbers, and a note when the period is short
Break-even Rarely shown The final value where ROI is 0%, shown with every result
Target ROI Work it out by hand The final value needed for a total or yearly target
Two investments Run it twice and compare Side by side, with a line on why total and yearly ROI can disagree
Losses and zero Often N/A or an error A loss shows as a negative ROI, and a final value of zero shows as -100% with a short note
Results and sharing A Calculate button Update as you type, with Copy and a share link that keeps your numbers
Use cases

When an ROI calculator helps

Checking a past result

Put in what you paid and what it ended at to see the gain, the ROI and the yearly rate side by side.

Seeing what fees did

Enter the same figures with and without fees. The ROI before fees line shows how many percentage points they took.

Working back from a target

Choose Target ROI to see the final value that a total or yearly ROI of your choosing would need on the same cost.

Setting two holdings side by side

Compare two cost, value and time sets. A higher total ROI over a longer time can be a lower yearly rate.

Projects and spending

ROI is also used for equipment, training or a campaign. Use total spend as the cost and the total return or benefit as the final value, and note the benefit may be a judgement.

Maths and finance homework

Follow the working line by line and check each step against your own. The ratio calculator helps with the gain-to-cost ratio form.

Good to know

What can change an ROI figure?

These points explain most of the gaps between this page and a figure quoted somewhere else. The calculator shows an estimate and does not give advice.

  • Fees go into the cost

    Fees and extra costs are added to the amount invested, and ROI is measured against that total. Some sources divide by the amount invested alone, so check which one a quoted figure uses.

  • Income belongs in the final value

    Dividends, interest or rent you received are part of the return. Add them to the final value so the net gain includes them.

  • Total ROI ignores time

    A 50% ROI after 2 years and after 20 years are very different yearly rates. Annualized ROI fixes the time, but not when money moved in between.

  • Short periods look extreme

    Annualizing less than a year repeats that pace for a full year. A 50% gain in 6 months shows as 125% a year, which is a pace and not a forecast.

  • Before tax, before inflation

    FINRA suggests looking at after-tax returns, and notes that inflation can matter a lot on long holdings. This calculator shows neither, so the result is before tax and in plain currency terms.

  • Private and works offline

    Nothing you type leaves your browser. After the page loads, the calculator keeps working without a connection.

Limits

What this ROI calculator does not do

One amount in, one amount out

It treats the investment as a single cost and a single final value. Regular deposits or withdrawals need a different measure such as IRR, which uses the date of each cash flow and is not calculated here. For regular deposits at a fixed rate, see the compound interest calculator.

No risk, tax or inflation

ROI is a gain measured against a cost, nothing more. It does not say how risky the investment was, it is shown before tax, and it does not adjust for inflation.

Estimates, not advice

Results are general estimates for learning and planning. Returns are not promises and past returns do not predict future ones. For how returns are measured, see FINRA on evaluating performance.

Sources

Where the facts come from

The formulas are standard arithmetic. The calculator was checked against the worked examples on this page, against 400 random cases computed separately in exact decimal arithmetic, and against the compound interest calculator on this site. The definitions and conventions come from these references.

  • Evaluating Performance (FINRA): percent return is the change in value plus income, divided by the amount invested; the yearly form is (1 + return)^(1 ÷ years) − 1, with a 2,000 example that becomes 31% and 9.42% a year over 3 years. It also covers buying and selling fees, after-tax returns and inflation.
  • Return on investment (Wikipedia): ROI as gain minus cost over cost, with other expenses such as brokerage fees counted in the cost, the point that ROI is not time-adjusted, and a worked example with 10,000 invested, 200 in fees and 300 in dividends.
FAQ

ROI calculator FAQ

Short answers to common questions about ROI and annualized ROI.

How do you calculate ROI?

Subtract the total cost from the final value to get the net gain, then divide the gain by the total cost: ROI = (final value − total cost) ÷ total cost. If 2,000 grows to 2,620, the gain is 620 and the ROI is 620 ÷ 2,000 = 31%. Multiply by 100 to show it as a percentage.

What is annualized ROI and how is it worked out?

Annualized ROI turns a total ROI into the steady yearly rate that would give the same result: (1 + ROI)^(1 ÷ years) − 1. A 31% ROI over 3 years is 1.31^(1 ÷ 3) − 1 = 9.42% a year. It lets you compare holdings of different lengths.

How do I include fees and extra costs?

Enter them in the fees box. They are added to the amount invested to make the total cost, and the ROI is measured against that total. On 10,000 with 200 of fees and a final value of 12,800, the gain is 2,600 on a cost of 10,200, an ROI of 25.49%, against 28.00% before fees.

What is the break-even value?

It is the final value at which the ROI is exactly 0%, which equals the total cost: the amount invested plus fees. Below that value the ROI is negative, and above it the ROI is positive.

How do I find the final value needed for a target ROI?

Choose Target ROI, enter the cost and the target, and say whether the target is a total or a yearly figure. A total ROI of 25% on a cost of 10,200 needs a final value of 12,750. A yearly target of 8% for 5 years on 10,000 needs 14,693.28.

What does a negative ROI mean?

It means the final value is below the total cost, so the net gain is negative. ROI cannot go below -100%, which is the case when the final value is zero and none of the cost comes back. It describes one result and says nothing about what happens next.

Why is the annualized ROI so high or low for a short time?

Annualizing repeats the pace of the period for a full year. A 50% gain in 6 months becomes 125% a year, because 1.5 × 1.5 = 2.25. Over days or weeks the figure can look extreme, so read it as a pace and not as a prediction.

What is the difference between ROI and IRR?

ROI compares one cost with one final value and ignores when money moved in between. IRR, the internal rate of return, is a different measure that works from the date of every deposit and withdrawal, so it suits investments with several cash flows. This calculator does not compute IRR.

Does ROI include risk, inflation or tax?

No. ROI measures the gain against the cost and nothing else. It is shown before tax, it does not adjust for inflation and it says nothing about how risky the investment was. Two investments with the same ROI can differ a lot in risk.

Why does another ROI calculator give a different answer?

Common reasons are whether fees are added to the cost or taken off the final value, whether dates are divided by 365 or 365.25 days, and whether the yearly figure compounds or just divides the total by the years. Choose the year length in the options and read the working to see each step.

How are dates turned into years?

The number of days between the two dates is divided by 365, or by 365.25 if you choose that option. From 15 March 2022 to 15 March 2025 is 1,096 days, which is 3.0027 years on a 365-day year.

What counts as a good ROI?

There is no single answer. It depends on how long the money was held, how much risk was taken, what else it could have earned and what fees and tax applied. A larger total ROI over a longer time can be a smaller yearly rate, so compare annualized figures and risk, not the total alone.