HomeBusiness & Money Math › ROI Calculator

ROI Calculator

Free ROI calculator. Find return on investment percentage, net profit and annualized return.

Measure investment performance: total ROI plus the annualized return so you can compare across time periods.

How the ROI Calculator works

The ROI Calculator measures how profitable an outlay was by comparing what you put in to what you got back, then expresses it two ways: total ROI and annualized return. The core formula is Total ROI (%) = (Final value − Initial investment) ÷ Initial investment × 100, and the annualized version is Annualized return = (Final ÷ Initial)(1 ÷ years) − 1.

Each variable means: Initial investment is every dollar you committed, including fees, taxes, and setup costs; Final value is everything the outlay returned, net of selling costs; years is the holding period (decimals allowed, e.g. 0.5 for six months).

Internally the tool runs five steps. First, it validates that initial is greater than zero and years is positive. Second, it computes net profit = final − initial, the raw dollar gain or loss. Third, it divides net profit by initial and multiplies by 100 to get total ROI, a time-blind percentage. Fourth, it raises the final-to-initial ratio to the power 1/years and subtracts 1 to annualize, so a 3-year and a 1-year return become directly comparable. Fifth, it rounds and labels each output.

Edge cases it handles: a loss returns a negative ROI and negative annualized rate (final below initial); a final value of zero returns −100% ROI; a sub-one-year period annualizes by compounding upward, which can produce an eye-catching but statistically noisy figure the tool still reports honestly. If initial is zero, ROI is undefined and the calculator rejects it. Unlike a CAGR calculator, which assumes a smooth growth curve between two endpoints, this tool also surfaces the raw total return so you can see the un-annualized result that ROI is famous for, and it lets you load all costs into the initial figure rather than starting from a clean opening balance.

Example calculation

Three worked examples show how total ROI and annualized return diverge, and why including all costs matters. Each uses Total ROI = (Final − Initial) ÷ Initial × 100 and Annualized = (Final/Initial)(1/years) − 1.

Example 1: A marketing campaign (one year). You spend $8,000 on ads and the campaign drives $26,000 in attributable revenue over 12 months. Net profit = $26,000 − $8,000 = $18,000. Total ROI = 18,000 ÷ 8,000 × 100 = 225%. Because the period is exactly one year, annualized return equals total ROI at 225%. The raw ROAS (revenue ÷ spend) is 3.25, but ROI is the better number here because it nets out the spend; if cost of goods also ate into that $26,000, real ROI would fall further.

Example 2: A property improvement (four years). Your all-in cost, including closing fees and taxes, is $45,000. You sell the improved property for $72,000 net of selling costs after 4 years. Net profit = $72,000 − $45,000 = $27,000. Total ROI = 27,000 ÷ 45,000 × 100 = 60%. Annualized = (72,000/45,000)(1/4) − 1 = 12.47% per year. The 60% headline shrinks to a modest annual rate once time is accounted for.

Example 3: A short equipment project (six months). You invest $12,000 and it generates $15,600 in 0.5 years. Net profit = $3,600. Total ROI = 3,600 ÷ 12,000 × 100 = 30%. Annualized = (15,600/12,000)(1/0.5) − 1 = 69%. Annualizing a six-month window squares the half-year ratio, so it inflates the figure dramatically; treat it as illustrative, not a forecast.

ScenarioInitialFinalYearsNet profitTotal ROIAnnualized
Marketing campaign$8,000$26,0001$18,000225%225%
Property improvement$45,000$72,0004$27,00060%12.47%
Equipment project$12,000$15,6000.5$3,60030%69%

The lesson: total ROI alone ranks the campaign far above the project, but on an annualized basis the six-month project compounds fastest. Always compare investments of different lengths using the annualized column, never the headline total.

Tips for using the ROI Calculator

  • Put every cost into the initial value, not just the purchase price. Brokerage fees, sales tax, shipping, installation, and closing costs all reduce real ROI. A trade that looks like 30% can drop to roughly 23% once a $60 fee and a 22% tax on a $3,000 gain are subtracted (net profit falls to $2,280).
  • Net selling costs out of the final value too. Agent commissions, transfer fees, and exit penalties belong in the final figure. ROI measured on gross proceeds overstates what actually landed in your account.
  • Use the annualized column to compare investments of different lengths. A 50% total return is 50% per year over 1 year but only about 8.45% per year over 5 years. Total ROI hides this; annualized exposes it.
  • Convert ROAS to ROI before judging an ad campaign. A 4:1 ROAS sounds great, but if cost of goods is 50% of revenue, your gross-profit-based marketing ROI is just 100%. ROAS ignores fulfillment cost; ROI does not.
  • Never annualize a sub-year result and present it as expected yearly performance. A 30% return in six months annualizes to 69% because the half-year ratio gets squared, which is real arithmetic but a misleading forecast for a one-off project.
  • Separate cash-flow timing from ROI. ROI treats a dollar returned in year one the same as a dollar returned in year five. For projects with uneven cash flows, cross-check with internal rate of return (IRR) using a spreadsheet's XIRR function.
  • Pick a defensible attribution window for marketing ROI. Crediting a sale to an ad that ran nine months earlier inflates the numerator. Match the revenue you count to the campaign period you measured.
  • Compare ROI against the right hurdle, not zero. If a low-risk broad index has historically returned roughly 10% annualized, a risky project at 12% annualized is barely compensating you for the extra risk it carries.
  • Run a downside scenario, not just the base case. ROI is a single point estimate. Recompute it with a pessimistic final value to see how fragile the return is before you commit capital.
  • Distinguish ROI from profit margin. Margin asks what share of one sale is profit; ROI asks what your whole outlay earned. A 60% ROI and a 60% margin describe completely different things, so do not mix them on the same dashboard.

ROI vs CAGR vs profit margin: which one answers your question

Use ROI to measure how profitable a single outlay was, CAGR to express a smoothed annual growth rate, and profit margin to measure how much of a sale you keep. They are often confused because all three produce a percentage, but they answer different questions.

ROI is time-blind by default: 100% ROI means you doubled your money, whether that took one year or ten. CAGR bakes time in and assumes a smooth curve, which is why it is the standard for reporting fund performance. Profit margin never looks at an investment at all; it compares profit to revenue on a per-sale or per-period basis. ROI looks backward at an outlay you already made; a break-even calculator looks forward at the sales needed before an outlay turns profitable.

MetricQuestion it answersFormulaTime-aware?
Total ROIWhat did my outlay earn?(Final − Initial) ÷ Initial × 100No
Annualized ROIWhat did it earn per year?(Final/Initial)(1/yrs) − 1Yes
CAGRWhat smoothed annual rate links two values?(End/Begin)(1/yrs) − 1Yes
Profit marginWhat share of revenue is profit?Profit ÷ Revenue × 100No

Annualized ROI and CAGR use identical arithmetic; the difference is what you feed in. ROI starts from a cost-and-return mindset, so you load fees and taxes into the initial figure and net selling costs out of the final figure, whereas CAGR starts from a clean beginning-to-ending value. For pure two-point growth, see the CAGR calculator; for pricing decisions, see the profit margin calculator.

Total ROI vs annualized return: the comparison that trips people up

Total ROI tells you the size of the win; annualized return tells you the speed of it. Two investments with the same total ROI can have wildly different annualized returns depending on how long the money was tied up.

Consider a fixed 50% total return delivered over different holding periods. The total is identical, but the yearly rate collapses as the timeline stretches, because returns compound.

Holding periodTotal ROIAnnualized return
1 year50%50.00%
2 years50%22.47%
3 years50%14.47%
5 years50%8.45%
10 years50%4.14%

This is why a 45% return over 3 years (about 13.19% annualized) beats a 30% return over 1 year only on total dollars, not on speed: the one-year 30% is 30% annualized, far faster. Whenever you compare opportunities with different durations, the annualized column is the only fair basis. Use the total column only when the timelines are identical or when you genuinely do not care how long capital was committed.

Common ROI mistakes that quietly distort the number

The most common ROI errors all share one symptom: the percentage looks better than reality.

  • Ignoring fees and taxes. A $10,000 to $13,000 trade over 2 years looks like 30% total (14.02% annualized). Subtract a $60 fee and 22% tax on the $3,000 gain and net profit falls to $2,280, making real ROI 22.8% total and just 10.82% annualized.
  • Comparing total ROI across different time periods. A 60% three-year return and a 60% one-year return are not equal; one is 16.96% annualized, the other 60%. Always annualize first.
  • Confusing ROAS with ROI. A 4:1 ROAS ignores cost of goods. After 50% COGS, the actual marketing ROI is 100%, not 300%.
  • Annualizing tiny windows. A strong six-month result projected to a full year overstates a one-off project's true earning power because the short-period ratio gets compounded upward.
  • Double-counting or padding the initial value. Leaving out part of the outlay (or excluding sunk costs you actually spent) bends ROI in your favor.

ROI also has two structural blind spots no amount of careful input fixes: it ignores risk (a 12% project and a 12% Treasury look identical on ROI) and it ignores cash-flow timing (a dollar back today counts the same as a dollar back in year five). Pair ROI with a risk view and, for uneven cash flows, an IRR check.

How to calculate ROI by hand and in Excel or Google Sheets

By hand: subtract initial from final, divide by initial, multiply by 100 for total ROI; for annualized, take the holding-period root of the final/initial ratio and subtract 1.

Worked example: initial $6,000, final $9,500, 4 years. Net profit = 9,500 − 6,000 = $3,500. Total ROI = 3,500 ÷ 6,000 × 100 = 58.33%. Annualized = (9,500/6,000)(1/4) − 1 = 12.17% per year.

In Excel or Google Sheets, with years in A2, initial in B2, and final in C2:

  • Net profit: =C2-B2
  • Total ROI: =(C2-B2)/B2 (format the cell as a percentage)
  • Annualized return: =(C2/B2)^(1/A2)-1
  • Equivalent native function: =RRI(A2,B2,C2) returns the same annualized rate with cleaner syntax

For a project with uneven cash flows over time, ROI alone understates the picture; use =XIRR(values, dates) instead, which finds the annualized rate that accounts for when each dollar moved. The future value calculator handles the reverse direction when you want to project a final value from a target rate.

Is this a good ROI? Benchmarks to judge your result against

There is no universal good ROI; it only means something against a hurdle rate, a time frame, and the risk you took. Use these reference points as a sanity check, not as guarantees.

ContextCommon reference pointAs ROI
Broad US stock market (long run, historical)About 10% per year nominal~10% annualized
Marketing campaign (rule of thumb)5:1 revenue-to-spend target400% gross ROI on spend
Marketing breakeven (after 50% COGS)Roughly 2:1 ROASNear 0% real ROI
Low-risk savings or short-term instrumentsVaries with current ratesSingle-digit annualized

The key move is to compare your annualized ROI against what you could have earned elsewhere at similar risk. A 12% annualized project barely beats a roughly 10% historical equity return while usually carrying far more risk, so it may not be worth it. A gross marketing ROI of 400% is healthy, but only if the attribution is honest, the cost of goods is netted out, and the result repeats at scale. For investment-style comparisons against contributions over time, the investment calculator models the full path rather than two endpoints. Always benchmark against an alternative you could realistically have chosen, not against zero.

Advanced uses: marketing ROI (ROAS), capital projects, and tax-adjusted returns

ROI scales from a single ad to a multi-year capital project, but the inputs change with the use case.

Marketing and ROAS. ROAS = revenue ÷ ad spend; marketing ROI = (gross profit − ad spend) ÷ ad spend × 100. Example: $5,000 spend drives $20,000 revenue at 50% COGS. Gross profit is $10,000, so marketing ROI = (10,000 − 5,000) ÷ 5,000 × 100 = 100%, even though the ROAS is 4:1. Reporting the 4:1 as if it were the profit return is the single most common marketing-ROI mistake.

Capital projects. For equipment or expansion, the initial value should include purchase, installation, training, and financing costs; the final value should include salvage value plus the cumulative net cash the asset produced. Because those cash flows arrive over time, supplement ROI with IRR for projects longer than a year.

Tax-adjusted ROI. Returns are not all taxed alike. A long-term capital gain, a short-term gain taxed as ordinary income, and tax-free interest produce very different after-tax ROI even when the pre-tax dollars match. Always compute ROI on the after-tax final value if you are comparing taxable and tax-advantaged outlays. For sales-tax-inclusive purchase costs, the sales tax calculator helps you land the true initial figure.

Total vs annualized ROI quick reference ($10,000 invested)

Total ROI ignores time, so a 50% return looks identical whether it took 3 years or 5. Annualizing fixes that by expressing the gain as a yearly rate you can compare against any other deal. The table below recomputes both figures for a $10,000 outlay reaching different final values over different periods, using total ROI = (final − initial) ÷ initial × 100 and annualized = (final / initial)(1/years) − 1. Notice how the same 100% total ROI is a strong 14.87% per year over 5 years but a mediocre 7.18% over 10.

InitialFinal valueYearsTotal ROIAnnualized ROI
$10,000$12,000120.0%20.00%
$10,000$12,000320.0%6.27%
$10,000$15,000350.0%14.47%
$10,000$15,000550.0%8.45%
$10,000$20,0005100.0%14.87%
$10,000$20,00010100.0%7.18%

Related on this site

CAGR Calculator · Profit Margin Calculator · Break-Even Calculator · Investment Calculator · Future Value Calculator · Sales Tax Calculator

For a related deep dive, see SEC Investor.gov on measuring returns.

ROI Calculator — frequently asked questions

Total vs annualized ROI?
Total ignores time; annualized shows the yearly equivalent rate, better for comparisons.
Does it include costs?
Include fees and taxes in the initial/final values for a true picture.
Total vs annualized ROI?
Total ignores time; annualized expresses it as a yearly rate for fair comparison.
Does ROI show risk?
No — pair it with a measure of volatility or downside.
What is the ROI on $5,000 that grows to $8,000 over 4 years?
That is a 60% total ROI and roughly 12.47% annualized. Total ROI = ($8,000 - $5,000) / $5,000 x 100 = 60%. But 60% spread over 4 years is not 60% per year. The annualized figure, ($8,000 / $5,000)<sup>1/4</sup> - 1, equals about 12.47% a year, which is the number you should use to compare it against a one-year deal. See the <a href="/roi-calculator/">ROI calculator</a>.
How do I turn a $25,000 investment that became $40,000 in 5 years into an annual rate?
$25,000 growing to $40,000 in 5 years is a 60% total ROI but only about 9.86% annualized. Divide the final by the initial, raise to the power 1/years, and subtract 1: ($40,000 / $25,000)<sup>1/5</sup> - 1 = 9.86%. Never divide 60% by 5 (that gives 12%, which overstates it because it ignores compounding). Use the <a href="/cagr-calculator/">CAGR calculator</a> for the same math on growth.
What is a good annualized ROI for an investment?
A good annualized ROI generally beats what a broad stock index has returned over the long run, often cited near 10% before inflation. An 8% annualized return is solid; 4% barely beats typical inflation; anything under your inflation rate loses real purchasing power. For example, $50,000 reaching $75,000 in 10 years is a 50% total ROI but only 4.14% annualized, which is weak for a decade of risk.
How do I calculate ROI on ad spend (ROAS)?
Marketing ROI = (revenue from ads - ad spend) / ad spend x 100, while ROAS = revenue / ad spend as a ratio. If you spend $2,000 and ads generate $10,000 in revenue, ROAS is 5x and gross marketing ROI is ($10,000 - $2,000) / $2,000 = 400%. But that revenue figure ignores product cost, so subtract your cost of goods before celebrating. Use the <a href="/roi-calculator/">ROI calculator</a> with net profit, not raw revenue.
What ROAS do I need just to break even?
Your break-even ROAS equals 1 divided by your profit margin. At a 50% margin you need a ROAS of 2.0 (revenue twice your ad spend) just to cover product cost plus the ad cost; at a 25% margin you need a ROAS of 4.0. A ROAS of 3x sounds great, but at a 25% margin it still loses money. Always plug margin, not revenue, into the math.
How do I calculate ROI in Excel?
In Excel, type =(B1-A1)/A1 where A1 is the amount invested and B1 is the final value, then format the cell as a percentage. For $10,000 to $13,000 that returns 30%. To annualize across years in C1, use =(B1/A1)^(1/C1)-1; for the same numbers over 3 years that gives about 9.14% a year. Wrap with ROUND for clean output.
How do I calculate ROI by hand?
Subtract what you put in from what you got out, divide by what you put in, then multiply by 100. For a $500 investment that returns $650: ($650 - $500) / $500 x 100 = 30% total ROI. To annualize, take the ratio 650/500 = 1.30, raise it to the power 1/years, and subtract 1. No calculator setting changes this core formula.
What is the difference between ROI and CAGR?
ROI measures total profit on an outlay (it can be a single number with no time built in), while CAGR is always a smoothed annual growth rate. For a single buy-and-sell, annualized ROI and CAGR are the same number: $10,000 to $20,000 in 5 years is a 100% total ROI and a 14.87% CAGR. Use total ROI to judge profitability and <a href="/cagr-calculator/">CAGR</a> to compare speed across different holding periods.
How is ROI different from a break-even calculation?
ROI tells you how profitable an outlay was; break-even tells you the point where you have only recovered your cost (an ROI of exactly 0%). A project at break-even has returned your money with no gain. Once you pass it, ROI turns positive. Use the <a href="/break-even-calculator/">break-even calculator</a> to find that crossover, then the <a href="/roi-calculator/">ROI calculator</a> to measure the profit beyond it.
Does ROI account for taxes, and how much does that change a $10,000 gain?
No, raw ROI ignores taxes, so you should compute it on after-tax numbers for a true picture. If $10,000 grows to $13,000, the pre-tax ROI is 30%. Tax the $3,000 long-term gain at 15% ($450), and the net final value is $12,550, an after-tax ROI of 25.5%. Higher short-term rates cut it further. Always net out taxes before comparing investments.
How do trading fees affect ROI on a $10,000 trade?
Fees quietly shave your ROI, so include them in both the cost and the proceeds. Buy for $10,000 plus a $100 fee and sell for $13,000 minus a $100 fee: your real cost is $10,100 and net proceeds are $12,900, giving ($12,900 - $10,100) / $10,100 = 27.72% ROI instead of the headline 30%. On thin margins or frequent trades, fees can erase the entire return.
Can ROI be negative, and what does -20% mean?
Yes, ROI is negative whenever the final value is below what you invested. If $15,000 falls to $12,000, the ROI is ($12,000 - $15,000) / $15,000 x 100 = -20%, meaning you lost a fifth of your money. A new car bought at $30,000 and worth $18,000 in 3 years is a -40% total ROI (about -15.66% a year), which is why most purchases are costs, not investments.
Why can a short-term ROI look amazing but be misleading?
A small total ROI over a short period can annualize into a huge, unsustainable rate, so always check the time frame. Turning $3,000 into $3,300 in 6 months is only a 10% total ROI, but annualized it is about 21% a year because the half-year ratio gets squared. That looks spectacular, yet it may just be luck over a short window. ROI also ignores risk and how repeatable the result is.
What is the ROI on a house flip with $50,000 in costs?
Include every cost in the outlay, not just the purchase price. Buy a property for $200,000, spend $50,000 on repairs, carrying, and closing, and sell for $300,000: total cost is $250,000, so ROI = ($300,000 - $250,000) / $250,000 x 100 = 20%. Leaving out the $50,000 would falsely show a 50% return. Fees, interest, and selling commissions all belong on the cost side.
Is solar a good ROI if it costs $25,000?
It depends entirely on lifetime savings versus the upfront cost. If a $25,000 system saves $18,000 over its life, the ROI is ($18,000 - $25,000) / $25,000 = -28% (a loss). Stretch the same system to $30,000 of savings and it turns positive at +20% total. Estimate realistic energy savings and system life before assuming any payback, and remember ROI ignores the timing of those yearly savings.
Why does ROI ignore cash-flow timing and risk?
ROI is a single backward-looking ratio, so it treats money received next year the same as money received in year ten and says nothing about how risky the path was. Two projects can both show a 50% ROI while one pays out steadily and the other gambles everything on the final year. Pair ROI with the annualized rate, a risk measure, and present-value thinking before deciding.

Guides & articles

Related calculators

Markup Calculator · Profit Margin Calculator · Break-Even Calculator · CAGR Calculator · Sales Tax Calculator · VAT Calculator

📋 Embed this calculator on your site

Free for any blog or website — just copy the code below and paste it into your page. The credit link helps support free tools.

Tip: adjust the iframe height if needed (try 600–800).