ROI Formula: How to Calculate Return on Investment
By Newtown Analytics · · 7 min read
For smb owners & operators
The ROI formula measures how much you gain from an investment relative to what you put in: ROI equals net gain divided by cost, expressed as a percentage. If you spend $80,000 and end up $24,000 better off after recovering that spend, your ROI is 30 percent. The formula is simple, and that simplicity is both its appeal and its danger, because the answer depends entirely on what you count as gain, what you count as cost and over what period. A figure of 30 percent over four years is a very different result from 30 percent in one year. This guide gives the basic formula, works through an equipment example with checked arithmetic, shows how to annualize and discount the result, compares ROI with payback and net present value, and lists the errors that most often distort the number. It is part of business analytics for finance and operations and leads to how to calculate ROI for a business project and ROI vs. ROAS. ROI figures usually feed into the capital plan in budgeting and forecasting.
The basic ROI formula
ROI = (total gain from the investment - total cost of the investment) / total cost of the investment
Written another way, ROI = net gain / cost. A positive result means you earned back more than you spent, and a negative result means you lost money. The "gain" can be extra profit, cost savings, avoided losses or sale proceeds. The "cost" should include everything you paid to get the gain: purchase price, installation, training, financing charges, ongoing running costs and the internal time spent. If you leave costs out, the ROI is overstated, and when you compare several projects you will tend to fund the ones with the most hidden costs.
The result can be shown as a percentage (multiply by 100) or as a ratio. An ROI of 0.30 and an ROI of 30 percent are the same thing. Many managers also quote the return multiple, such as 1.3 times, which is total gain divided by cost.
A worked example: buying equipment
A company considers a $80,000 packaging machine (hypothetical). It expects the machine to save $26,000 a year in labor and waste for four years, after which it has no resale value.
- Total gain over four years: 4 × $26,000 = $104,000
- Net gain: $104,000 - $80,000 = $24,000
- ROI: $24,000 / $80,000 = 30 percent
- Simple payback: $80,000 / $26,000 = 3.08 years
So the machine returns its cost and then 30 percent more over the four years. That looks attractive, but there are two caveats. The first is that 30 percent is earned over four years, so it is not comparable to a one-year ROI. The second is that the savings arrive over time, and money received in year four is worth less than money received today. The next sections deal with each.
Annualizing ROI
To compare projects of different lengths, convert the ROI to an annual rate. The simplest way is to divide by the number of years: 30 percent over four years is 7.5 percent a year on a simple average. A more accurate version compounds the return: the annualized ROI is (1 + ROI)^(1 / years) - 1. For the machine, that is 1.30^(0.25) - 1 = 1.0678 - 1 = 6.8 percent a year. Check: 1.0678 to the fourth power is 1.3001, which matches 1.30. The simple average (7.5 percent) is a little higher than the compound rate (6.8 percent), and the gap grows with longer periods and higher returns. Use the compound version when you compare with an interest rate or a cost of capital.
Adding the time value of money
A dollar saved in year four is worth less than a dollar today, because money today can be invested or used to repay debt. To reflect this, discount each year's gain at a rate that reflects your cost of capital or required return. At 8 percent, the present value of $26,000 a year for four years is $26,000 × 3.3121 = $86,115, where 3.3121 is the annuity factor, calculated as (1 - 1.08^-4) / 0.08 = (1 - 0.7350) / 0.08. The net present value (NPV) is $86,115 - $80,000 = $6,115, and the ROI measured on a present-value basis is $6,115 / $80,000 = 7.6 percent over the whole four years. This is far lower than the headline 30 percent, and it tells a more honest story: the machine earns its cost and a modest margin above an 8 percent required return. If the required return were 12 percent, the same cash flows would produce a negative NPV, since the annuity factor falls to 3.0373 and the present value to $78,970, below the $80,000 cost.
| Measure | Value | What it tells you |
|---|---|---|
| Simple ROI | 30.0% over 4 years | Total gain relative to cost, ignoring timing |
| Annualized ROI (compound) | 6.8% a year | A rate you can compare with other returns |
| Payback period | 3.08 years | How long cash is at risk |
| NPV at 8% | $6,115 | Value created above the required return |
| ROI on present values at 8% | 7.6% over 4 years | Return after allowing for timing |
ROI versus payback and NPV
ROI is quick and easy to explain. Its weaknesses are that it ignores timing (unless you discount) and says nothing about scale. Payback shows how quickly you recover the cash but ignores what happens afterwards: a project that pays back in two years and then stops earning can look better than one that pays back in three years and runs for ten. NPV puts a dollar value on the value created and handles timing properly, but needs a discount rate. In practice, a good investment case shows all three. See ROI vs. payback period for a closer comparison.
Comparing two projects
ROI can mislead when projects differ in size. Project A costs $50,000 and returns $65,000, an ROI of $15,000 / $50,000 = 30 percent. Project B costs $200,000 and returns $240,000, an ROI of $40,000 / $200,000 = 20 percent. Project A has the higher ROI, but project B adds $40,000 of profit against $15,000. If capital is limited, you might pick A and spend the remaining $150,000 elsewhere; if you have the capital and no better use, B creates more value. The right choice depends on the alternatives for the capital not used. ROI ranks efficiency; profit and NPV measure total value.
What counts as a gain
- Revenue is not gain. Revenue gained must be reduced by the variable costs of earning it. A $100,000 revenue increase at a 35 percent contribution margin is a gain of $35,000.
- Cost savings count only if realized. Saving 1,000 hours of staff time creates a cash gain only if the hours are removed from payroll, avoided from overtime or redeployed to income-producing work.
- Avoided losses can count, such as reduced write-offs or fewer stockouts, if you can estimate them with a reasonable baseline.
- Only incremental effects count. Compare with what would have happened without the investment.
Common mistakes in the ROI formula
- Leaving out costs such as training, internal time, maintenance and financing.
- Counting revenue as gain instead of profit.
- Ignoring the period, so that a three-year return is compared with a one-year one.
- Ignoring risk. A 30 percent projected return from a proven process is not the same as 30 percent from an untested one. Apply a haircut or run scenarios.
- Double counting the same benefit under two projects.
- Using ROI alone for decisions where scale, strategy or risk matter.
- Choosing the baseline to flatter the result.
A short checklist
Before presenting an ROI figure, state the period, list the costs and gains included, say how the gains were estimated, show a conservative case and give the payback. Anyone reading it should be able to reproduce the number and see what would change it.
FAQs
What is the ROI formula?
ROI equals net gain divided by cost, where net gain is total gain minus total cost. Multiply by 100 to express it as a percentage.
What is a good ROI?
It depends on the risk, the period and the alternatives. A common reference point is whether the return exceeds your cost of capital and what other uses of the money would earn.
Is ROI the same as profit margin?
No. Profit margin is profit divided by revenue. ROI is gain divided by the amount invested.
How do I annualize ROI?
Divide by the number of years for a simple average, or use (1 + ROI)^(1 / years) - 1 for a compound annual rate.
Can ROI be negative?
Yes. A negative ROI means the gain was lower than the cost, so the investment lost money.
Keep reading
This article is for general information. It is not accounting, tax, legal or investment advice, and examples use illustrative numbers rather than client data. Confirm decisions that carry financial or legal consequences with a qualified professional.