What Is ROI and How Do You Calculate It?
Return on Investment gets thrown around constantly — on earnings calls, in real estate pitches, in marketing spend reports — but the number behind the phrase gets calculated inconsistently more often than not. Some people forget to fold in fees or closing costs. Others put a 10-year total return next to a 1-year return and call it a fair comparison. This calculator fixes both problems: it forces every cost into the total, and it converts your result into an annualized rate so investments held for different lengths of time can actually be compared side by side.
The Two Numbers That Matter
Total ROI answers one question: for every dollar you put in, how many did you get back?
ROI = (Final Value - Total Investment) / Total Investment
Total Investment here means your initial investment plus any additional costs — fees, commissions, closing costs, renovations, whatever it took to get and hold the asset. Leaving those out is the single most common way ROI calculations end up too rosy.
Annualized ROI answers a different question: what yearly rate of return would have produced this same result? It's the same math behind a compound annual growth rate (CAGR):
Annualized ROI = (1 + Total ROI)^(1 / Years) - 1
With this calculator's default numbers — a $100,000 investment, $5,000 in additional costs, growing to $150,000 over 5 years — total ROI comes out to 42.86%, and annualized ROI comes out to 7.39%. That second number is the one to use whenever you're comparing this investment to anything held over a different time frame.
Why the Annualized Number Changes the Story
Here's where it actually matters. Say a second investment returns 50% total over 20 years — on paper, a bigger number than the 42.86% example above. Run it through the annualized formula and that 50% total collapses to just 2.05% per year, a far weaker result than the 7.39% from the 5-year example, despite having the "bigger" headline percentage. Total ROI alone would rank the 20-year investment as the winner. Annualized ROI, which accounts for how long your money was actually tied up, tells the more honest story.
This is exactly why the calculator surfaces both numbers instead of just one, and why the annualized figure is what belongs in any comparison across investments with different holding periods.
Benchmarking Against the Market
The Comparison tab shows what your investment's own annualized rate would compound to over 5 and 10 years, alongside the same math applied to typical long-run rates instead: roughly 10% annually for the S&P 500 and roughly 4.3% annually for U.S. residential real estate, based on long-term historical averages.[1][2] These are illustrative benchmarks built from historical data, not predictions — markets are volatile year to year even when the multi-decade average holds up, and past performance never guarantees what happens next. Use the comparison to get a feel for whether your result is roughly in line with, ahead of, or behind a typical passive alternative, not as a precise forecast.
What Counts as an "Additional Cost"
Underestimating total investment is the easiest way to overstate ROI, and it happens most often with costs that don't feel like part of the "investment" itself:
- Brokerage or transaction fees
- Closing costs, title fees, and inspection costs on property
- Renovation or improvement spending
- Ongoing maintenance or holding costs directly tied to the asset
- Taxes triggered specifically by the transaction
Leave enough of these out and almost any deal looks better than it actually was.
A Quick Non-Financial Example
ROI isn't only for stocks and property. A marketing team that spends $20,000 on a campaign and attributes $34,000 in incremental revenue to it has a total ROI of 70% — no annualizing needed if the campaign ran and resolved within a single period. The same formula works for equipment purchases, software subscriptions, or a renovation project: total gain relative to total cost, full stop. What changes is what you count as "investment" (ad spend and production costs, not just media buy) and what counts as "return" (revenue directly attributable to the campaign, not total company revenue for the quarter).
Where ROI Falls Short
ROI is deliberately simple, which is also its main limitation. A few things it doesn't capture:
- Risk. A 15% ROI from a volatile crypto position and a 15% ROI from a treasury bond are not equivalent investments, even though the calculator would show identical percentages.
- Liquidity. Money tied up in real estate for 7 years isn't available if you need it in year 3 — something a single ROI percentage doesn't reflect.
- Multiple cash flows. This calculator assumes one investment in and one payout out. For anything with cash flowing in and out at different points — rental income, staged funding rounds, dividend reinvestment — IRR (internal rate of return) or NPV (net present value) will give a far more accurate picture than ROI alone.
None of that makes ROI useless. It's still the fastest way to sanity-check whether an investment made money and roughly how much, which is usually the first question worth answering before reaching for a more complex model.
Frequently Asked Questions
What's a "good" ROI?
It depends entirely on the asset class, risk level, and time period involved. A useful baseline is comparing the annualized ROI against a passive benchmark, like the ~10% long-run S&P 500 average shown in the Comparison tab, and against your own required return given the risk taken.
Why is my annualized ROI so much lower than my total ROI?
Annualized ROI spreads your total return evenly across every year of the holding period, using compounding. The longer the holding period, the bigger the gap between the two numbers — a 50% total return over 20 years is only about 2% per year, even though 50% sounds large on its own.
Should I include taxes in the ROI calculation?
If a tax cost is directly triggered by the transaction — like a capital gains tax on the sale — include it as an additional cost for an after-tax ROI. Ongoing income taxes unrelated to the specific investment are usually left out, since they'd apply regardless of where the money was invested.
Is ROI the same as IRR?
No. ROI assumes a single lump sum in and a single lump sum out. IRR (internal rate of return) accounts for multiple cash flows at different times, such as rental income received throughout a holding period. For investments with cash flow along the way rather than just at the start and end, IRR gives a more accurate picture.
How reliable are the S&P 500 and real estate comparison numbers?
They're long-run historical averages from reputable sources, not forecasts. Actual year-to-year returns for both stocks and real estate vary widely around those averages, so use the comparison as a general reference point rather than an expected outcome.