Two quick investment yardsticks: ROI (return on investment) is the percentage gain relative to cost, and the payback period is how long until the investment pays for itself. Both are simple ratios that need no special functions.
The example
Invest $5,000, earn $7,000 back (and $2,000/yr).
| A | B | |
|---|---|---|
| 1 | Metric | Value |
| 2 | Cost | $5,000 |
| 3 | Total return | $7,000 |
| 4 | ROI | 40% |
| 5 | Payback (at $2k/yr) | 2.5 yrs |
The formula
ROI and payback period:
How it works
Two complementary measures:
- ROI =
(gain − cost) / cost. A $2,000 net gain on a $5,000 cost is40%. Format the cell as a percentage. - Payback period =
cost / annual cash flow. At $2,000/year, a $5,000 investment pays back in2.5years. - ROI measures how much you earn; payback measures how fast you recover the outlay — use both.
- Neither accounts for the time value of money; for that, pair with NPV or IRR.
Annualize ROI for fair comparison: a 40% return over 3 years isn’t the same as 40% in one. Convert to an annual rate with CAGR — =(end/start)^(1/years)-1 — before comparing investments of different lengths.
Try it: interactive demo
Set cost, return, and annual cash flow.
Variations
Annualized ROI (CAGR)
Fair across different horizons:
Guard divide-by-zero
If cost could be 0:
Payback with uneven cash flow
Use a running total of cash flows and find when it turns positive.
Pitfalls & errors
ROI ignores time. 40% over 5 years is far worse than 40% in 1. Annualize (CAGR) before comparing investments of different durations.
Define “return” consistently. Is it total proceeds or net gain? (gain−cost)/cost vs gain/cost differ by 100% — pick one convention.
Payback ignores what happens after. A fast payback can still be a worse investment overall; check total ROI or NPV too.
Practice workbook
Frequently asked questions
How do I calculate ROI in Excel?
How do I calculate payback period?
Should I annualize ROI?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class