ROI (return on investment) shows how much you gain or lose relative to what you invested. It is expressed as a percentage and answers a practical question: was this money worth spending? The basic formula is simple: ROI = (net gain - investment) / investment x 100.
In this guide you will learn what ROI is, how to calculate it step by step with examples, how to interpret it, how it differs from other metrics such as ROAS or profit margin, and which mistakes make the result look better or worse than it really is.
The examples use hypothetical figures. This information does not replace advice from a certified public accountant or a financial advisor for important decisions.
What Is ROI and Why It Matters
ROI turns an investment into a number you can compare. With it, you can tell whether an advertising campaign, a course, a machine or a project brought in more than it cost, and you can compare different options against each other. Without measuring it, it is easy to keep spending on what seems to work but doesn't, or to abandon what actually delivers results.
The ROI Formula
ROI (%) = (Net gain / Investment) x 100
Where net gain = revenue attributable to the investment - total costs of the investment.
It can also be written as: ROI = ((Revenue - Cost) / Cost) x 100.
You invest $500 in a campaign, and the sales it generates total $1,400 in revenue, with $600 in product costs and other direct expenses. The gain before subtracting the investment is $800; subtracting the $500 investment leaves $300. ROI = $300 / $500 x 100 = 60 percent.
A positive ROI means you earned more than you invested; zero means you just recovered what you spent; negative means you lost money.
How to Calculate ROI Step by Step
- Define the investment: what it includes and the time period (for example, one month of a campaign).
- Add up all costs: not just the visible spending. Include tools, fees, design, your own time if you place a value on it, and product costs.
- Measure the attributable revenue: only the sales that truly come from that investment.
- Calculate the net gain.
- Apply the formula and express the result as a percentage.
- Interpret and decide: continue, adjust or stop.
Calculation Examples Across Different Cases
| Case | Investment | Attributable revenue | Product costs | Net gain | ROI |
|---|---|---|---|---|---|
| Ad campaign | $300 | $1,000 | $400 | $300 | 100 percent |
| New equipment | $2,000 | $2,600 | $0 | $600 | 30 percent |
| Course for the business | $400 | $700 | $0 | $300 | 75 percent |
| Special discount | $150 | $160 | $60 | -$50 | -33 percent |
The last row shows something important: selling more is not the same as earning more. A promotion can bring in sales and still lose money.
ROI in Digital Marketing: ROI and ROAS
Advertising uses two similar metrics that you should not confuse:
| Metric | Formula | What it measures |
|---|---|---|
| ROAS | Advertising revenue / advertising spend | How much revenue you generate for every dollar spent on ads |
| ROI | (Net gain - investment) / investment | How much you actually earn after all costs |
A ROAS of 4 sounds excellent, but if your margin is thin, the ROI can be small or negative. That is why it helps to know the margin on each product before judging a campaign.
What Is a Good ROI
There is no universal number. It depends on the industry, the risk, the time frame and the alternatives you have. A few useful ideas:
- A positive ROI is the minimum; it should beat what you would earn from a safe alternative.
- Riskier investments should require a higher expected return.
- Long-term projects may show a low ROI at first and a high one later.
- Always compare against your own track record and other options, not against figures from the internet without context.
Decide in advance what ROI you expect and over what time frame. That way you evaluate with judgment rather than in the heat of the moment.
Factors That Affect the Result
- Hidden costs: fees, refunds, shipping, taxes, your own time.
- Attribution: difficulty knowing which action brought in each sale.
- Time frame: an investment can take a while to pay back; measuring too early distorts the picture.
- Seasonality: strong and slow months change the result.
- Quality of execution: the same spending can perform differently depending on the message and the offer.
- Customer lifetime value: a customer who buys again improves your real ROI.
ROI and Customer Value
Often the first sale barely covers the cost of acquiring the customer, but the customer comes back. To see this, calculate the customer lifetime value (how much they spend in total) and compare it with the cost of acquiring them. If you ignore repeat purchases, you may cut campaigns that are actually profitable over the medium term.
How to Calculate ROI Without the Complexity
- A spreadsheet with four columns is enough: investment, attributable revenue, costs and ROI.
- If you cannot attribute sales precisely, use honest estimates and write down how you made them.
- Record it every month and compare trends, not just isolated values.
- For large decisions, consult a certified public accountant.
How to Calculate ROI for a Course, Tool or Piece of Equipment
Not every investment brings in direct sales. For a course, a software tool or a machine, the return comes from new revenue (you can offer a service you didn't offer before) or from avoided costs (you save hours or expenses). The method is the same, but you have to translate the benefit into dollars:
- Estimate the additional monthly revenue it generates or the monthly savings it produces.
- Multiply that by the number of months you will evaluate (for example, twelve).
- Subtract the total investment, including the time it took to learn or set up.
- Divide by the investment and multiply by one hundred.
You invest $240 in a program that saves you 4 hours a month. If your hour is worth $10, you save $40 a month, or $480 over a year. Net gain: $480 - $240 = $240. Annual ROI: 100 percent. If the time saved isn't used for work or rest that improves your results, the real benefit is smaller, so be honest when you estimate it.
ROI and Time Frame: Why Timing Matters
A 50 percent ROI in one month is not the same as 50 percent over three years. When you compare investments, always note the time frame. A simple way to compare is to divide the ROI by the number of months it took to achieve. It is also worth calculating the payback period: how many months it takes for the investment to return what you spent. If the payback period is too long for your situation, the investment may not be a good choice even if the final ROI looks attractive.
Common Mistakes When Calculating ROI
- Counting revenue instead of profit.
- Ignoring small costs that add up.
- Crediting a campaign with sales that would have happened anyway.
- Measuring with too little data or over too short a period.
- Leaving out the value of your own time.
- Comparing the ROI of investments with very different time frames and risks.
- Stopping measurement when "everything seems to be going well."
A Method for Making Decisions with ROI
- Calculate the ROI of your last three major investments.
- Rank them from highest to lowest.
- Ask yourself why they performed differently.
- Put more resources into what worked, and review or stop what didn't.
- Repeat every month.
Frequently Asked Questions
What does ROI stand for?
It stands for return on investment. It measures how much you gain or lose relative to what you invested, and it is expressed as a percentage.
What is the ROI formula?
ROI = (net gain / investment) x 100, where net gain is what you obtain minus all the costs of the investment.
What is the difference between ROI and ROAS?
ROAS measures how much revenue you generate for every dollar spent on advertising. ROI considers all costs and measures your actual profit. A high ROAS does not guarantee a good ROI.
What is a good ROI?
It depends on the industry, the risk and the time frame. At a minimum it should be positive and beat what you would earn from a safer alternative.
Can a negative ROI be acceptable?
Sometimes, if the investment is aimed at a long-term benefit that isn't visible right away, such as customer loyalty. Even so, it is wise to measure it and set a time frame for evaluating it.
Want to practice this step by step? Barter AI Academy turns it into short lessons, challenges and projects, with Barty, your 24/7 AI tutor. See the Digital Marketing school.


