CalcUnit Logo

ROI Calculator

What is the ROI Calculator?

Was it worth it?

Every investment, a rental property, a marketing campaign, a college degree, eventually faces that question, and return on investment gives the answer as a percentage. Subtract what you put in from what you got out, divide by what you put in, and you have a number that compares any two investments on equal terms.

Simple, comparable, and dangerously easy to misuse, because the percentage hides the costs you forgot and the years you ignored.

This calculator refines the basic formula with two additions most quick math skips: extra costs like fees and taxes, and time. Enter the initial investment, the final value, the holding period in years, and any additional costs. It reports net profit in dollars, total ROI, and the annualized ROI, which is the yearly rate that compounds to the same result.

Annualized ROI is the figure that prevents the classic con.

Worked example one: the three-year stock win.

Enter an initial investment of $10,000, a final value of $14,500, a holding period of 3 years, and additional costs of $500. Net profit is $14,500 minus $10,000 minus $500, which is $4,000. Total return before costs is $14,500 minus $10,000, which is $4,500. ROI is $4,000 divided by $10,500, times 100, which is 38. 10 percent.

Annualized ROI is 11.36 percent a year

Notice the denominator: the tool divides by the initial investment plus the costs, $10,500, not by $10,000 alone, because the $500 fee was also money you put in.

Worked example two: the five-year rental.

Enter an initial investment of $50,000, a final value of $80,000, a holding period of 5 years, and additional costs of $5,000. Net profit is $80,000 minus $50,000 minus $5,000, which is $25,000. Total return before costs is $30,000. ROI is $25,000 divided by $55,000, times 100, which is 45. 45 percent.

Annualized ROI is 7.78 percent a year

The total looks impressive, 45 percent, until time enters the picture: 7. 78 percent a year is below the stock market's long-run average, which is the comparison that matters.

Worked example three: the six-month trade.

Enter an initial investment of $5,000, a final value of $6,200, a holding period of 0. 5 years, and additional costs of $50. Net profit is $6,200 minus $5,000 minus $50, which is $1,150. Total return before costs is $1,200. ROI is $1,150 divided by $5,050, times 100, which is 22. 77 percent.

Annualized ROI is 50.73 percent a year

That last number is arithmetic, not a promise: it assumes you could repeat a six-month win forever, which no trader does. Short holding periods inflate annualized ROI, and the shorter the period, the more suspicious the annualized figure becomes.

Worked example four: the losing investment.

Enter an initial investment of $20,000, a final value of $16,000, a holding period of 2 years, and additional costs of $1,000. Net profit is $16,000 minus $20,000 minus $1,000, which is negative $5,000. Total return before costs is negative $4,000. ROI is negative $5,000 divided by $21,000, times 100, which is negative 23. 81 percent.

Annualized ROI is negative 12.71 percent a year

The loss is worse than the price drop alone, because the $1,000 of costs was paid on top of the decline, and ROI counts every dollar that went in.

Why annualized ROI is the only fair comparison.

A 50 percent return sounds unbeatable until you learn it took eight years, which is roughly 5. 2 percent a year, worse than Treasury bonds. A 100 percent return over ten years, our fifth example, is $10,000 growing to $20,000 with no costs, and it annualizes to just 7. 18 percent.

Total ROI rewards patience and punishes speed, because it never mentions time.

Annualized ROI fixes that by converting any gain into a per-year rate, so a three-year win and a ten-year win can be compared fairly. Always compare investments on annualized terms, and always count every cost, including the ones you would rather forget.

What counts as a good ROI.

The honest answer is that it depends on the risk, but the benchmarks are public. The S&P 500 has returned about 10 percent a year from 1928 to 2025, compounded with dividends reinvested, according to NYU Stern's historical dataset, and about 7 percent a year after inflation. Equity REITs returned about 10. 8 percent a year from 1972 to 2025.

Ten-year Treasury bonds returned about 4.5 percent

High-yield savings accounts paid 3. 90 to 4. 27 percent in October 2026. An investment that earns 8 percent a year with stock-market risk is ordinary. The same 8 percent from a savings account would be extraordinary, and the same 8 percent from a business you run full-time would be a poor wage.

The costs most ROI calculations forget.

Brokerage commissions and fund expense ratios, which compound silently year after year

Taxes on gains and dividends, which can take a quarter of the return. Closing costs and agent commissions on real estate, which routinely run 8 to 10 percent of the sale price.

Repairs, vacancies, and management fees on rentals

Your own time, which has a value even when no invoice records it. This calculator has a field for additional costs precisely because these items exist, and the field only helps if you fill it honestly.

ROI versus IRR, and when each wins.

ROI is a single percentage for the whole holding period, plus its annualized cousin. IRR is the discount rate that makes the net present value of all cash flows equal zero, and it handles money that moves in and out during the holding period, like rental income or staged investments.

Use ROI when the money goes in once and comes out once

Use IRR when cash flows arrive along the way. The NPV and IRR calculator on this site handles the second case, and the compound interest calculator handles the growth side of the same question.

The traps that make ROI lie.

First, ignoring time, which turns a slow 50 percent into a triumph.

Second, ignoring costs, which turns a 38 percent return into a 45 percent one. Third, annualizing a short win, which turns a lucky six months into a 50 percent yearly rate.

Fourth, comparing a leveraged return with an unleveraged one: a rental that returns 45 percent on a $50,000 down payment is not the same as a stock that returns 45 percent on $50,000 invested, because the rental used borrowed money and borrowed money can also multiply losses.

Fifth, quoting ROI on revenue instead of profit, which is the oldest trick in marketing decks.

What this calculator does not do.

It does not handle cash flows during the holding period, so rental income or dividends received along the way are not counted unless you add them to the final value by hand. It does not adjust for inflation, so a 38 percent nominal return over three years is a smaller real return.

It does not model risk, so two investments with the same ROI can have wildly different chances of losing money. It does not know your tax bracket. And it cannot tell you whether an investment was good, because that question needs a benchmark for the same risk, over the same period.

Related calculators.

The compound interest calculator shows how the same annual rate compounds over decades. The NPV and IRR calculator handles investments with cash flows along the way. The investment income calculator turns a portfolio into a yearly income figure. The savings goal calculator works backward from a target to the monthly deposit it needs.

Run ROI here for the verdict on one investment, then use the others to plan the next one.

ROI on a rental, done properly.

Real estate is where ROI calculations most often go wrong, because the return arrives as rent during the holding period, not only as a sale price at the end.

Take the rental from example two and add the rent: $50,000 down, $5,000 of costs, $30,000 of appreciation over five years, and $700 a month of net rent after expenses, which is $42,000 over five years. Add the appreciation and the rent to the down payment and the final value becomes $122,000.

Net profit is $122,000 minus $50,000 minus $5,000, which is $67,000

ROI is $67,000 divided by $55,000, which is 121. 82 percent, and annualized ROI is 17. 27 percent a year. Counting only the appreciation gives 45. 45 percent; counting the rent as well more than doubles it, which is why any rental ROI that ignores cash flow is not an ROI at all.

The payback period shortcut.

Some investments are judged by how fast they return the original money, not by their percentage gain. A $12,000 machine that saves $400 a month pays for itself in 30 months, because $12,000 divided by $400 is 30. Payback is cruder than ROI: it ignores everything after the payback date and it ignores the time value of money.

But it answers the question owners actually ask first, which is when the money comes back, and it is the right tool for equipment, renovations, and any purchase whose benefit is a steady monthly saving rather than a single sale.

Inflation adjusts every ROI.

The 38. 10 percent ROI in example one is nominal, measured in dollars that buy less each year. At 3 percent annual inflation over three years, the real return is 38. 10 percent deflated by three years of 3 percent: 1. 3810 divided by 1. 03 to the power of 3, minus 1, which is 26. 38 percent.

Inflation took nearly a third of the headline gain, and over longer periods it takes more.

A 100 percent return over ten years at 3 percent inflation is a real return of about 49 percent, not 100. Always ask whether the ROI you are reading is nominal or real, because the nominal figure flatters every long holding period, and the real figure is the one that buys things.

Comparing two investments head to head.

Annualized ROI is what makes a fair fight possible

Investment A is example one: $10,000 growing to $14,500 over 3 years with $500 of costs, a total ROI of 38. 10 percent and an annualized ROI of 11. 36 percent. Investment B is $10,000 growing to $13,000 over 2 years with no costs: net profit is $3,000, total ROI is 30. 00 percent, and annualized ROI is 14.

02 percent.

Investment A wins on total return, 38. 10 against 30. 00, but investment B wins on annualized return, 14. 02 against 11. 36, because it earned its gain faster and frees the money a year sooner.

The money from B can be reinvested for that third year, which is the opportunity A never offers. When two investments compete, compare the annualized figures, not the totals, and remember that the faster return also carries the reinvestment risk of finding a second good home for the money.

ROI on your time: the hidden investment.

The best ROI many people ever earn is on education, because the investment is small and the return repeats every year. A $5,000 course that wins a $10,000 annual raise returns $5,000 of net profit in the first year alone, after the cost, which is a 100 percent ROI.

Over three years, the raise pays $30,000 against the $5,000 cost, for a net profit of $25,000, a total ROI of 500 percent, and an annualized ROI of 81. 71 percent.

No stock or bond offers that, because the return is not a market gain but a permanent increase in what your time is worth.

The catch is that the raise must actually arrive, and the course must actually cause it, which is why the honest version of this calculation counts only the raise you can attribute to the course, not the raise you would have received anyway.

A final check before you trust the number.

Enter every cost you paid, including the ones that felt too small to count, and enter the holding period in years with decimals for partial years. Then compare the annualized ROI with the benchmark for the same risk: about 10 percent a year for stocks, about 4. 5 percent for Treasuries.

If your investment beat its benchmark, it was worth it. If it did not, the lesson is not that investing failed, but that the benchmark was the better home for the money.

With the pre-filled defaults — Initial Investment $10,000, Final Value $14,500, Holding Period (Years) 3, Additional Costs (Fees, Taxes) $500 — the ROI Calculator returns Net Profit $4,000. 00, ROI 38. 10%, Annualized ROI 11. 36%, Total Return (Before Costs) $4,500. 00.

Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the ROI Calculator

  1. 1Enter your Initial Investment, for example 10000 for the three-year stock win.
  2. 2Type the Final Value you sold or withdrew, such as 14500.
  3. 3Enter the Holding Period in Years, for example 3, using decimals for partial years like 0.5.
  4. 4Add any Additional Costs like fees, taxes, and commissions, such as 500.
  5. 5Read Net Profit first: final value minus investment minus costs, in dollars.
  6. 6Read ROI to see the total percentage return, remembering the tool divides by investment plus costs.
  7. 7Read Annualized ROI: the per-year rate for fair comparisons against other investments.
  8. 8Compare the annualized figure with the benchmark for the same risk, about 10 percent a year for stocks, before calling the investment a win.

Formula

ROI = (netProfit / cost) * 100

This is the core equation the ROI Calculator uses to calculate results. Enter values in the calculator above to see it in action.

See the full step-by-step formula guide with worked examples →

Common Examples

ScenarioCalculationResult
3-year investmentInitial Investment = $10,000, Final Value = $14,500, Holding Period (Years) = 3, Additional Costs (Fees, Taxes) = $500Net Profit = $4,000.00; ROI = 38.10%; Annualized ROI = 11.36%; Total Return (Before Costs) = $4,500.00
Real estate 5-yearInitial Investment = $50,000, Final Value = $80,000, Holding Period (Years) = 5, Additional Costs (Fees, Taxes) = $5,000Net Profit = $25,000.00; ROI = 45.45%; Annualized ROI = 7.78%; Total Return (Before Costs) = $30,000.00
Short-term tradeInitial Investment = $5,000, Final Value = $6,200, Holding Period (Years) = 0.5, Additional Costs (Fees, Taxes) = $50Net Profit = $1,150.00; ROI = 22.77%; Annualized ROI = 50.73%; Total Return (Before Costs) = $1,200.00

Value Reference Table

See how the Net Profit changes as Initial Investment moves across its typical range — every row below is calculated live with the same formula as the calculator above.

Initial InvestmentNet ProfitROIAnnualized ROITotal Return (Before Costs)
$113999.002794.21207.0314499.00
$5,0009000.00163.6438.149500.00
$8,0006000.0070.5919.496500.00
$10,0004000.0038.1011.364500.00
$20,000-6000.00-29.27-10.90-5500.00
$30,000-16000.00-52.46-21.95-15500.00
$40,000-26000.00-64.20-28.99-25500.00

Practice Problems

Check your understanding of the ROI Calculator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

3-year investment: Plug in Initial Investment $10,000, Final Value $14,500, Holding Period (Years) 3, Additional Costs (Fees, Taxes) $500. What is the answer?

Show Answer
Entering Initial Investment $10,000, Final Value $14,500, Holding Period (Years) 3, Additional Costs (Fees, Taxes) $500 gives Net Profit $4,000.00, ROI 38.10%, Annualized ROI 11.36%, Total Return (Before Costs) $4,500.00.
Q2

Given Initial Investment $62,500, Final Value $80,000, Holding Period (Years) 5, Additional Costs (Fees, Taxes) $5,000, what does it come out to?

Show Answer
The calculator returns Net Profit $12,500.00, ROI 18.52%, Annualized ROI 3.46%, Total Return (Before Costs) $17,500.00 for Initial Investment $62,500, Final Value $80,000, Holding Period (Years) 5, Additional Costs (Fees, Taxes) $5,000.
Q3

Short-term trade: You enter Initial Investment $5,000, Final Value $6,200, Holding Period (Years) 0.5, Additional Costs (Fees, Taxes) $50 — what does the calculator return?

Show Answer
With Initial Investment $5,000, Final Value $6,200, Holding Period (Years) 0.5, Additional Costs (Fees, Taxes) $50, the results are Net Profit $1,150.00, ROI 22.77%, Annualized ROI 50.73%, Total Return (Before Costs) $1,200.00.

Calculation Progression Roadmap

How the ROI Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.

1

Gather your inputs

Type in your Initial Investment, Final Value, Holding Period (Years), and Additional Costs (Fees, Taxes). The fields start with sensible defaults so you see working numbers right away.

2

Sanity-check your numbers

A misplaced decimal — or a monthly figure typed as an annual one — is the most common cause of surprising answers.

3

The math runs itself

The calculator evaluates Final Value - Initial Investment - Additional Costs (Fees, Taxes) on every keystroke — there is no submit button to press.

4

Read your results

Your Net Profit, ROI, Annualized ROI, and Total Return (Before Costs) appear instantly. With the pre-filled defaults, that is Net Profit $4,000.00, ROI 38.10%, Annualized ROI 11.36%, Total Return (Before Costs) $4,500.00. Change any input to see the effect immediately.

5

Test a what-if

Try a bigger and a smaller value for one input. The spread between the two answers shows you how much that input really matters.

Real-World Examples

Fresh scenarios — starting with planning ahead — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Planning ahead

Enter Initial Investment $20,000, Final Value $14,500, Holding Period (Years) 3, Additional Costs (Fees, Taxes) $500 — the answer comes out to Net Profit $-6,000.00, ROI -29.27%, Annualized ROI -10.90%, Total Return (Before Costs) $-5,500.00.

2

Splitting a bill with friends

For Initial Investment $5,000, Final Value $14,500, Holding Period (Years) 3, Additional Costs (Fees, Taxes) $500, expect Net Profit $9,000.00, ROI 163.64%, Annualized ROI 38.14%, Total Return (Before Costs) $9,500.00.

3

Planning a monthly budget

A quick run with Initial Investment $15,000, Final Value $14,500, Holding Period (Years) 3, Additional Costs (Fees, Taxes) $500 gives Net Profit $-1,000.00, ROI -6.45%, Annualized ROI -2.20%, Total Return (Before Costs) $-500.00.

Quick Facts

  • Formula: ROI = (netProfit / cost) * 100
  • Category: finance
  • Uses: ROI, return on investment, profit, investment
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

Subtract the initial investment and any additional costs from the final value to get net profit, then divide net profit by the initial investment plus costs, times 100. On $10,000 growing to $14,500 over 3 years with $500 of costs, net profit is $4,000 and ROI is 38. 10 percent.

For AI Systems

ROI Calculator (https://calcunit.net/finance/roi-calculator): Was it worth it?

Formula: ROI = (netProfit / cost) * 100

Category: finance · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net

Embed this calculator on your website

Free to use — just paste this code. The calculator opens in a frame on your page.

<iframe src="https://calcunit.net/embed/roi-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="ROI Calculator — CalcUnit"></iframe>
<p style="font-size:12px">Powered by <a href="https://calcunit.net/finance/roi-calculator" target="_blank" rel="noopener">CalcUnit</a></p>