how do you calculate return on investment

ROI Calculator

Use this simple calculator to find your Return on Investment (ROI), net profit, and annualized return.

Formula used: ROI = (Net Profit / Total Investment Cost) × 100

What is return on investment (ROI)?

Return on investment (ROI) is one of the simplest ways to measure how well an investment performs. It tells you how much profit (or loss) you made compared to what you spent.

Whether you're evaluating stocks, real estate, a small business project, marketing spend, or even personal development courses, ROI helps answer one key question: “Was it worth it?”

The basic ROI formula

At its core, ROI is straightforward:

ROI (%) = ((Final Value - Total Investment Cost) / Total Investment Cost) × 100

Where:

  • Final Value = what the investment is worth at the end (or what you sold it for)
  • Total Investment Cost = initial investment + any added costs (fees, maintenance, taxes, etc.)

The result is a percentage. A positive ROI means gain. A negative ROI means loss.

Step-by-step: how to calculate ROI

1) Add up your total cost

Include all relevant costs, not just the sticker price. This is where many people make mistakes.

  • Purchase price
  • Transaction fees
  • Maintenance or operating costs
  • Taxes tied directly to the investment

2) Determine final value

This could be sale value, current market value, or total revenue generated, depending on what you are measuring.

3) Compute net profit

Net Profit = Final Value - Total Investment Cost

4) Divide net profit by total cost and multiply by 100

This final step converts your return into a percentage that's easy to compare across different opportunities.

Quick example

Suppose you invested $10,000 in a project.

  • Initial investment: $10,000
  • Additional costs: $1,000
  • Total investment cost: $11,000
  • Final value: $14,000

Now calculate:

Net Profit = 14,000 - 11,000 = 3,000
ROI = (3,000 / 11,000) × 100 = 27.27%

So your ROI is 27.27%. That means you earned roughly 27 cents for each dollar invested.

Annualized ROI (important for fair comparisons)

Basic ROI does not account for time. A 20% ROI in one year is very different from 20% over five years. To compare investments fairly, use annualized ROI (also called CAGR in many contexts):

Annualized ROI = ((Final Value / Total Investment Cost)^(1 / Years)) - 1

Then multiply by 100 to express it as a percentage.

This gives you a cleaner apples-to-apples comparison between opportunities with different holding periods.

Common ROI mistakes to avoid

  • Ignoring hidden costs: fees, subscriptions, travel, and taxes can dramatically reduce real returns.
  • Forgetting time: a high ROI over a very long period may still underperform alternatives.
  • Mixing gross and net values: always be consistent with pre-tax vs post-tax figures.
  • Using ROI alone: risk, cash flow timing, and volatility also matter.

ROI in different real-world situations

Stock investment

Include purchase price, trading fees, and dividends. Final value may be current value or sale proceeds.

Real estate

Include closing costs, repairs, property taxes, insurance, and maintenance. Include rental income if you're measuring total return.

Marketing campaigns

ROI is often calculated as (Revenue Attributed - Campaign Cost) / Campaign Cost. Attribution quality is critical here; bad tracking leads to misleading ROI.

Education and training

For courses or certifications, ROI can include salary growth, promotions, and career opportunities relative to tuition and time cost.

ROI vs. other financial metrics

ROI is useful, but not complete. Pair it with other tools when decisions are large:

  • NPV (Net Present Value): adjusts for the time value of money.
  • IRR (Internal Rate of Return): estimates annualized return from cash flows over time.
  • Payback Period: shows how fast you recover your initial investment.

For quick screening, ROI is excellent. For major investments, combine metrics.

How to improve ROI

  • Lower costs before you start.
  • Negotiate fees and reduce waste.
  • Improve execution quality (operations, conversion rates, pricing, maintenance).
  • Reinvest gains into higher-performing opportunities.
  • Track performance regularly and cut underperforming projects early.

Final takeaway

If you're asking, “How do you calculate return on investment?”, remember this: ROI is simply your net profit divided by your total investment cost, expressed as a percentage.

Start with accurate numbers, include all costs, and use annualized ROI when timing differs. Use the calculator above whenever you need a fast, reliable answer.

🔗 Related Calculators