How to Calculate ROI: Return on Investment Formula & Examples

A complete guide to understanding and calculating ROI for smarter financial decisions.

April 12, 2026 Investing Finance 8 min read

Return on Investment (ROI) is one of the most widely used financial metrics in the world. Whether you're evaluating a stock purchase, deciding on a real estate deal, or measuring the success of a marketing campaign, ROI gives you a simple, universal way to answer one question: Was this investment worth it?

In this guide, we'll break down the ROI formula, walk through real-world examples across different asset classes, and show you how to avoid the common pitfalls that lead to misleading results.

What Is ROI?

ROI measures the profitability of an investment as a percentage of its original cost. A positive ROI means you made money; a negative ROI means you lost money. It's expressed as a ratio or percentage, which makes it easy to compare different investments on an equal footing — even when their dollar amounts are completely different.

For example, a $1,000 profit on a $5,000 investment yields the same ROI (20%) as a $10,000 profit on a $50,000 investment. That comparability is what makes ROI so powerful.

The Basic ROI Formula

ROI = (Net Profit / Cost of Investment) × 100%

Where:

This is the simplest and most common form of the ROI calculation. Let's see it in action.

ROI Examples Across Different Scenarios

Example 1: Stock Investment

You buy 100 shares of a company at $50 each ($5,000 total). One year later, you sell them at $62 each ($6,200 total). You also received $200 in dividends.

Example 2: Real Estate

You purchase a rental property for $300,000 with $60,000 down. Over five years, you collect $120,000 in rental income and spend $30,000 on maintenance and taxes. You sell the property for $350,000.

Note: This is a simplified calculation. A more precise analysis would factor in the mortgage interest, opportunity cost of the down payment, and the time value of money over five years.

Example 3: Marketing Campaign

Your company spends $15,000 on a digital advertising campaign. The campaign generates $52,000 in new revenue directly attributed to the ads.

Annualized ROI

The basic ROI formula doesn't account for time. A 50% return over one year is far better than a 50% return over ten years. To compare investments fairly, use the annualized ROI:

Annualized ROI = [(1 + ROI)^(1/n) − 1] × 100%

Where n is the number of years the investment was held. If your basic ROI is 46.7% over 5 years, the annualized ROI is approximately 7.96% — a very different picture.

Advanced: Factoring in All Costs

The biggest mistake people make with ROI is underestimating costs. A thorough ROI calculation should include:

For a deeper look at how inflation affects your returns, check out our guide on how inflation erodes your savings.

ROI vs. Other Metrics

MetricWhat It MeasuresBest For
ROITotal return relative to costQuick comparisons
IRRAnnualized rate of returnMulti-year projects
NPVDollar value of future cash flowsCapital budgeting
Profit MarginRevenue efficiencyBusiness operations

Common Pitfalls

  1. Ignoring time: Always annualize when comparing investments of different durations.
  2. Forgetting hidden costs: Fees, taxes, and inflation quietly eat into returns.
  3. Sunk cost fallacy: Past losses shouldn't influence future ROI calculations.
  4. Using ROI in isolation: Combine ROI with risk assessment for better decisions.

Use Our Free ROI Calculator

Stop doing manual math. Use our free ROI Calculator to instantly compute your return on investment with detailed breakdowns of costs, returns, and annualized figures.

Key Takeaways