Blog · Digital Marketing

ROI Calculation: Formula, Examples and What Counts as Good

By Yurian Barter · Academia Barter Rubio · Updated November 2026

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.

Educational content

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.

Basic example (hypothetical)

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

  1. Define the investment: what it includes and the time period (for example, one month of a campaign).
  2. 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.
  3. Measure the attributable revenue: only the sales that truly come from that investment.
  4. Calculate the net gain.
  5. Apply the formula and express the result as a percentage.
  6. Interpret and decide: continue, adjust or stop.

Calculation Examples Across Different Cases

CaseInvestmentAttributable revenueProduct costsNet gainROI
Ad campaign$300$1,000$400$300100 percent
New equipment$2,000$2,600$0$60030 percent
Course for the business$400$700$0$30075 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:

MetricFormulaWhat it measures
ROASAdvertising revenue / advertising spendHow much revenue you generate for every dollar spent on ads
ROI(Net gain - investment) / investmentHow 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:

Set your minimum before you invest

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

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

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:

  1. Estimate the additional monthly revenue it generates or the monthly savings it produces.
  2. Multiply that by the number of months you will evaluate (for example, twelve).
  3. Subtract the total investment, including the time it took to learn or set up.
  4. Divide by the investment and multiply by one hundred.
Example (hypothetical)

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

A Method for Making Decisions with ROI

  1. Calculate the ROI of your last three major investments.
  2. Rank them from highest to lowest.
  3. Ask yourself why they performed differently.
  4. Put more resources into what worked, and review or stop what didn't.
  5. 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.

Keep learning

Learn this step by step in the super academy

Short lessons, challenges and Barty, your 24/7 AI tutor. One membership unlocks every school.

More guides

Marketing Degree: Subjects, Skills and Careers (2026)15 Common Social Media Mistakes and How to Fix Them (2026)Ad Recording Techniques: A Practical Guide (2026)Digital Marketing for Construction Companies: 2026 GuideHow to Read Candlestick Charts: Patterns ExplainedTV Presenter Fundamentals for Beginners in 2026