How to Calculate ROI: Formula, Examples & Free Calculator
The ROI formula explained with 3 worked examples — stocks, marketing, and rental property. Learn when to use ROI vs IRR or NPV.
How to Calculate ROI: Formula, Examples & Free Calculator
Target keyword: how to calculate roi
TL;DR
To calculate ROI, subtract the investment cost from the gain, divide that net profit by the cost, and multiply by 100: ROI = (Net Profit ÷ Cost of Investment) × 100%. This simple percentage tells you how much return you earned for every dollar you put in.
## What Is ROI (Return on Investment)?
Return on Investment (ROI) is the most widely used profitability metric because it distills a complex financial outcome into a single, easy‑to‑understand percentage. Whether you’re buying stocks, launching a marketing campaign, or purchasing a rental property, ROI answers the fundamental question: “Did this investment make money, and if so, how much relative to what I spent?”
- Universality: ROI works across asset classes and industries because it only needs two numbers—gain and cost.
- Decision‑making: Investors compare ROI figures to rank opportunities; marketers use it to justify ad spend; business owners track it to gauge the effectiveness of capital projects.
- Simplicity: Unlike internal rate of return (IRR) or net present value (NPV), ROI does not require discount rates or cash‑flow timing, making it ideal for quick assessments.
Source: Investopedia – Return on Investment (https://www.investopedia.com/terms/r/returnoninvestment.asp)
## The ROI Formula
The core ROI equation is:
[ \text{ROI} = \frac{\text{Net Profit}}{\text{Cost of Investment}} \times 100% ]
| Variable | Meaning | How to Determine |
|---|---|---|
| Net Profit | Total gain minus all costs associated with the investment. | Gain (e.g., sale price, rental income, revenue) – (initial cost + ongoing expenses). |
| Cost of Investment | The total amount of money you put into the investment upfront. | Purchase price, down payment, advertising spend, fees, etc. |
| × 100% | Converts the ratio into a percentage for intuitive interpretation. | Multiply the decimal result by 100. |
Example: If you buy a stock for $5,000 and later sell it for $6,200, your net profit is $1,200. ROI = ($1,200 ÷ $5,000) × 100% = 24%.
## ROI Calculation: 3 Worked Examples
Example 1: Stock Investment
- Purchase price (cost): $10,000
- Sale price after 1 year: $13,000
- Dividends received: $0 (ignore for simplicity)
- Net Profit: $13,000 – $10,000 = $3,000
- ROI: ($3,000 ÷ $10,000) × 100% = 30%
Interpretation: For every dollar invested, you earned 30 cents in profit over the holding period.
Example 2: Marketing Campaign
- Ad spend (cost): $5,000
- Revenue generated from campaign: $18,000
- Cost of goods sold (COGS) attributable to campaign: $6,000 (assume 33% margin)
- Net Profit: Revenue – COGS – Ad Spend = $18,000 – $6,000 – $5,000 = $7,000
- ROI: ($7,000 ÷ $5,000) × 100% = 140%
Interpretation: The campaign returned $1.40 in profit for every dollar spent, a strong indicator of effectiveness.
Example 3: Rental Property
- Purchase price (cost): $200,000
- Monthly rent: $1,500 → Annual rent = $1,500 × 12 = $18,000
- Annual operating expenses (property tax, insurance, maintenance, management): $4,200
- Annual net operating income (NOI): $18,000 – $4,200 = $13,800
- Assume property sold after 5 years for $250,000 (ignore selling costs for simplicity).
- Total cash flow over 5 years: NOI × 5 = $13,800 × 5 = $69,000
- Profit from sale: Sale price – Purchase price = $250,000 – $200,000 = $50,000
- Total Net Profit: Cash flow + Sale profit = $69,000 + $50,000 = $119,000
- ROI: ($119,000 ÷ $200,000) × 100% = 59.5% (over the 5‑year horizon)
Interpretation: The property delivered roughly a 60% return on the initial investment over five years, not accounting for financing or tax effects.
## Annualized ROI vs Simple ROI
Simple ROI (as shown above) tells you the total return over the entire investment period but ignores when the returns occurred. When comparing investments of different lengths, annualizing ROI provides a more apples‑to‑apples comparison.
Annualized ROI Formula
[ \text{Annualized ROI} = \left(1 + \frac{\text{Net Profit}}{\text{Cost of Investment}}\right)^{\frac{1}{n}} - 1 ]
where n = number of years the investment was held. Multiply the result by 100 to express as a percentage.
Applying the Formula
| Example | Simple ROI | Holding Period (years) | Annualized ROI |
|---|---|---|---|
| Stock (Example 1) | 30% | 1 | (1+0.30)^{1/1} – 1 = 30% |
| Marketing (Example 2) | 140% | 0.25 (3‑month campaign) | (1+1.40)^{1/0.25} – 1 ≈ 1,000% (high because the gain was compressed into a short window) |
| Rental Property (Example 3) | 59.5% | 5 | (1+0.595)^{1/5} – 1 ≈ 9.8% per year |
Takeaway:
- The stock’s simple and annualized ROI match because it was held exactly one year.
- The marketing campaign’s simple ROI looks impressive, but annualizing reveals an astronomical yearly rate due to the short duration—useful for comparing with longer‑term investments.
- The rental property’s annualized ROI (~9.8%) is far lower than its simple 59.5% because the return is spread over five years.
When time matters—especially for capital budgeting or comparing disparate projects—always look at annualized ROI (or better yet, IRR/NVP) rather than the raw percentage.
## ROI Limitations and When Not to Use It
While ROI is handy, it has notable shortcomings:
| Limitation | Why It Matters | Better Alternative |
|---|---|---|
| Ignores Time Value of Money | A dollar today is worth more than a dollar tomorrow; ROI treats all cash flows as if they occur at the same point. | Net Present Value (NPV) or Internal Rate of Return (IRR) discount future cash flows. |
| No Risk Adjustment | Two investments with identical ROI may have vastly different volatility or default risk. | Risk‑adjusted return metrics (e.g., Sharpe ratio, Sortino ratio). |
| Overlooks Opportunity Cost | ROI does not consider what you could have earned elsewhere with the same capital. | Economic Value Added (EVA) or comparing against a hurdle rate. |
| Can Be Manipulated | By excluding certain costs (e.g., financing, taxes) you can inflate ROI. | Standardized accounting (GAAP/IFRS) and full‑cost inclusion. |
| Does Not Capture Scale | A 200% ROI on a $1,000 investment ($2,000 profit) looks the same as a 200% ROI on a $1,000,000 investment ($2,000,000 profit), yet the latter adds far more absolute value. | Look at absolute profit or dollar return alongside ROI. |
When to Prefer IRR or NPV:
- Projects with uneven cash flows over multiple years (e.g., construction, product development).
- Situations where the cost of capital is known and you need to assess whether the investment exceeds that hurdle.
- When comparing mutually exclusive alternatives with different lifespans.
Source: SEC Investor Education – “Understanding Investment Returns” (https://www.sec.gov/investor/pubs/roi.htm)
## FAQ
Q: How do you calculate ROI manually?
A: Follow these steps: (1) Determine the total gain from the investment (sale price, rental income, revenue, etc.). (2) Subtract all costs associated with acquiring and maintaining the investment to get net profit. (3) Divide net profit by the initial cost of investment. (4) Multiply by 100 to express as a percentage.
Q: What is a good ROI percentage?
A: “Good” is context‑dependent. For low‑risk assets like government bonds, 2‑5% annually may be satisfactory. For equities, long‑term averages hover around 7‑10% after inflation. Marketing campaigns often aim for 5:1 revenue‑to‑spend (≈400% ROI). Real‑estate investors frequently target 8‑12% cash‑on‑cash ROI. Always compare against your required rate of return or industry benchmark.
Q: How do you calculate ROI on rental property?
A: Use the formula ROI = (Annual Net Operating Income + Appreciation – Selling Costs) ÷ (Down Payment + Closing Costs + Renovation Costs) × 100%. If you hold the property for multiple years, you can also compute annualized ROI as shown above. Remember to include mortgage interest, property taxes, insurance, maintenance, and management fees in expenses.
Q: Is ROI the same as profit margin?
A: No. Profit margin measures profitability relative to revenue (Profit ÷ Revenue × 100%). ROI measures profitability relative to investment cost (Net Profit ÷ Cost of Investment × 100%). A business can have a high profit margin but a low ROI if it requires little capital, or vice‑versa.
## Callout
Calculate your ROI with our free ROI Calculator
Plug in your numbers, get instant simple and annualized ROI, and see how your investment stacks up against benchmarks.
## Additional Resources
- Compound Interest Calculator – See how reinvested returns grow over time.
- Investment Property Calculator – Detailed cash‑flow, cap rate, and ROI analysis for real estate.
References:
- Investopedia. “Return on Investment (ROI).” https://www.investopedia.com/terms/r/returnoninvestment.asp
- U.S. Securities and Exchange Commission. “Investor Education: Understanding Investment Returns.” https://www.sec.gov/investor/pubs/roi.htm
Feel free to leave a comment below with your own ROI questions or share how you’ve used this metric in your business or portfolio.
Try the Free Tool
Put what you learned into practice — runs in your browser, no signup needed.
Open Calculator