Calculate Return on Investment (ROI)
You spent money on a campaign, a tool, or a project, and it brought money back. You need one percentage that says whether it was worth it — and by how much.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
B2−A2 is the net gain: what came back minus what you put in. Dividing by A2 — the cost — expresses that gain relative to the investment, so a $5,000 spend returning $6,500 gives (6500−5000)/5000 = 0.3, or 30% ROI. A negative result means the investment lost money. Note the denominator: ROI divides by the cost, while profit margin divides by revenue — a 30% ROI and a 30% margin are different claims, so don't mix the two in one report. Format the result as a percentage.
When to use it
Use it to compare marketing campaigns, justify a software purchase, evaluate equipment upgrades, or rank projects competing for the same budget.
Common mistakes
Did this formula help?
Engine-verified against the sample data aboveDownload the proof sheet (.xlsx)Last reviewed 2026-07-09