How to Calculate ROI (Return on Investment): Complete Guide with Examples
ROI (Return on Investment) is the most universal financial metric for evaluating the efficiency of any investment. In three letters, it answers the fundamental question: was it worth investing?
From the entrepreneur who wants to know if a marketing campaign brought profit, to the investor who compares stocks with real estate funds, to the manager who needs to justify the purchase of new equipment — ROI is present in all rational financial decisions.
In this guide, you learn how to calculate ROI correctly, interpret the result and apply it in different contexts. Use our ROI Calculator to simulate any scenario.
What is ROI?
ROI is a percentage measure that expresses how much financial return was generated in relation to the capital invested. A positive ROI means profit; a negative ROI means loss; a 0% ROI means you just got back what you invested, with no real gain.
The ROI Formula
The basic ROI formula is:
ROI = [(Return Obtained − Investment Cost) ÷ Investment Cost] × 100
Or in simplified form:
ROI (%) = [(Net Profit) ÷ (Investment)] × 100
Where:
- Return Obtained = revenue or gain generated by the investment
- Investment Cost = all capital employed (including operating costs, not just the initial value)
- Result in % = when positive, indicates proportional profit; when negative, it indicates loss
Practical Examples of ROI Calculation
Example 1: ROI of a Digital Marketing Campaign
Situation: A company invested $ 5.000,00 em anúncios no Google Ads e gerou $ 18,000.00 in sales attributed to the campaign.
Calculation:
- Profit = $ 18.000 − $ 5,000 = $ 13.000
- ROI = ($ 13,000 ÷ $ 5,000) × 100 = 260%
Interpretation: For each $ 1,00 investido em publicidade, a empresa gerou $ 2.60 of net profit. A 260% ROI is excellent for performance campaigns.
Example 2: ROI of a Rental Property
Situation: Property purchased for $ 400.000,00 (incluindo custos de escritura, ITBI e reforma). Aluguel mensal de $ 2,200.00. Monthly costs (condominium, IPTU, insurance): $400.00.
Calculation:
- Annual net income = ($ 2.200 − $ 400) × 12 = $ 21.600,00
- ROI Anual = ($ 21,600 ÷ $ 400,000) × 100 = 5.4% per year
Interpretation: An ROI of 5.4% per year is reasonable for residential properties, especially if there is appreciation in equity. Compare with Treasury IPCA+ or CDI to assess whether it is the best option.
Example 3: ROI from Stock Stocks
Situation: You purchased 100 shares for $ 32,50 cada (total: $ 3,250.00). After 1 year, the shares are worth $ 41,00 cada. Você recebeu dividendos de $ 2.80 per share.
Calculation:
- Capital gain: ($ 41,00 − $ 32.50) × 100 = $ 850,00
- Dividendos: $ 2.80 × 100 = $ 280,00
- Total de retorno: $ 850 + $ 280 = $ 1,130.00
- ROI = ($ 1.130 ÷ $ 3,250) × 100 = 34.77%
Interpretation: An ROI of 34.77% in 12 months far exceeds the CDI and inflation. However, stocks have risk — this result could have been negative in another scenario.
Example 4: Business Equipment ROI
Situation: A bakery invested $ 28.000,00 em um forno industrial. O equipamento permitiu produzir 40% mais pão por dia, gerando $ 2,500.00 in additional revenue per month. Extra costs (energy, maintenance): $600.00/month.
Calculation:
- Additional monthly profit = $ 2.500 − $ 600 = $ 1.900,00
- Lucro anual = $ 1,900 × 12 = $ 22.800,00
- ROI Anual = ($ 22,800 ÷ $ 28.000) × 100 = 81,4%
- Payback = $ 28,000 ÷ $ 1,900 = 14.7 months
Interpretation: ROI of 81.4% per year with payback in less than 15 months — a very attractive investment for the business.
ROI with Deadline: ROAI (Annualized Return)
Basic ROI does not consider time. To compare investments of different terms, use ROAI (Annualized Return on Investment):
ROAI = [(1 + ROI/100)^(1/n) − 1] × 100
Where n is the number of years of the investment.
Example: 80% ROI in 3 years:
- ROAI = [(1 + 0.80)^(1/3) − 1] × 100
- ROAI = [(1.80)^0.333 − 1] × 100
- ROAI = [1.2164 − 1] × 100 = 21.64% per year
This is very different from simply dividing 80% by 3 (26.67% per year), which would be incorrect.
Differences Between ROI, Profit Margin and Rate of Return
| Metric | What It Measures | Formula | Typical Use |
|---|---|---|---|
| ROI | Return on invested capital | (Profit ÷ Investment) × 100 | Investment efficiency |
| Profit Margin | Profit in relation to total revenue | (Profit ÷ Revenue) × 100 | Operational profitability |
| IRR (Internal Rate of Return) | Annualized profitability considering cash flow | Requires iterative calculation | Projects with variable flow |
| CAGR | Annual Compound Growth Rate | (Vf/Vi)^(1/n) − 1 | Historical growth |
For projects with variable cash flows over time (e.g. a startup with accelerated growth), the IRR is more accurate than the simple ROI.
What is a Good ROI?
The answer depends on the sector, risk and comparison benchmark:
| Context | ROI Considered Good |
|---|---|
| Digital Marketing (Google/Meta Ads) | Above 200-400% |
| E-commerce | Above 100-200% |
| Properties for rent (capital) | 4% to 7% per year |
| Fixed income (CDB CDI+) | Above the CDI (>12% p.a. in 2026) |
| Stocks (long term) | Above 10-15% per year |
| Business equipment | Payback in less than 24 months |
| Startup | Expected ROI > 10x in 5-7 years |
General rule: Any investment must exceed the opportunity rate — that is, what you would earn with the safest alternative available (e.g. Treasury Selic or CDI). If the ROI is lower than fixed income, the investment is not worth the risk.
Limitations of ROI
ROI is a powerful metric, but it has limitations that must be considered:
Does not consider time: An ROI of 50% in 5 years is very different from 50% in 1 year. Use ROAI for correct temporal comparisons.
Does not consider risk: Two investments with a 30% ROI can have completely different risk profiles (Treasury vs. speculative stocks).
Does not automatically include opportunity cost: ROI shows the absolute return, not whether it surpasses the most profitable alternative available.
Can be manipulated: If denominator costs are underestimated (e.g. excluding own labor costs or depreciation), the ROI will appear higher than it actually is.
Does not consider cash flow: For projects with payments distributed over time, the IRR (Internal Rate of Return) is more appropriate.
ROI in Digital Marketing: A Core Metric
In digital marketing, ROI is specifically calculated as ROAS (Return on Ad Spend) for paid ad campaigns, or as content/SEO ROI for long-term strategies:
ROAS = Ad Revenue ÷ Ad Spend
Example: $ 3.000 gastos em Facebook Ads geraram $ 12,000 in sales → ROAS = 4x (or 400%)
SEO ROI is more complex, as it involves content production costs, technical optimizations and time — but it tends to be the digital channel with the best ROI in the long term.
Common Mistakes When Calculating ROI
Forget indirect costs: The real investment includes own working hours, opportunity costs, administrative expenses — not just the direct amount paid.
Use gross income in the numerator: Return should be net profit (revenue minus all related costs), not gross income.
Compare ROIs for different periods without annualizing: An ROI of 30% in 6 months and 30% in 3 years are completely different results.
Do not consider the ROI of equity vs. leveraged: If the investment was made with debt (loan), the financing interest must be included as a cost in the calculation of the real ROI.
Frequently Asked Questions (FAQ)
1. What does a 100% ROI mean? A 100% ROI means you doubled your invested capital — you recovered your original investment and made a profit equal to the amount invested. For example, investing $ 10.000 e ter um retorno total de $ 20,000 (profit of $10,000) represents 100% ROI.
2. Is negative ROI always bad? Not always, depending on the context. A startup may have negative ROI in the first few years while it builds its customer base. What matters is the trend: is the ROI improving over time? Is there a realistic plan to achieve breakeven? A structural negative ROI (with no prospect of improvement) is a clear warning sign.
3. What is the difference between ROI and payback? ROI measures the percentage return on investment. Payback measures the time to recover the initial investment. Both are complementary: an investment can have excellent ROI but long payback (real estate), or quick payback but modest ROI. Use the two together to evaluate a project.
4. How to calculate ROI for a marketing action that did not generate direct sales? For branding, awareness or SEO actions (without immediate direct conversion), use proxy metrics: leads generated × historical conversion rate × average ticket = estimated revenue. Content ROI, for example, can be calculated as (organic traffic × conversion rate × average ticket × margin) ÷ production cost.
5. Is it possible to calculate the ROI of investments in people (training)? Yes. Training ROI is calculated by comparing the measurable results before and after training (increased productivity, reduced errors, increased sales) versus the total cost of training. It is a common metric in strategic HR.
6. Why must ROI exceed CDI to be worthwhile? The CDI (close to the Selic rate) represents the return of the safest and most liquid alternative available in Brazil. If your investment generates a lower ROI than the CDI, you are taking on risk without adequate compensation. The excess return above the CDI is called the "risk premium" — and must be fair in relation to the risk assumed.
7. How is ROI calculated in the context of the real estate market? In the real estate market, the rental ROI is often called Cap Rate (Capitalization) = (Net annual income ÷ Property value) × 100. The total ROI also includes the appreciation of the asset over time (capital gain), making the real return greater than the Cap Rate alone.
8. Which tool to use to calculate the ROI of an entire business? For businesses with multiple cash flows, use our ROI Calculator for simple ROI, or combine it with the Break-Even Calculator to find out when the business starts to make a profit and with the Payback Calculator to estimate the recovery period for the initial investment.
Calculate the ROI of Your Investment Now
Whatever the investment — campaign, equipment, property or financial investment — our tool calculates the ROI in seconds.
Access the ROI Calculator and compare different scenarios to make the most profitable decision.
Related calculators:
- Break-even Calculator — when the investment starts to make a profit
- Payback Calculator — investment recovery period
- Valuation Calculator — evaluate the value of your business
- Profit Margin Calculator — understand operational profitability