how do you calculate roi

ROI Calculator

Enter your investment amount and ending value to calculate return on investment (ROI), net profit, and optional annualized ROI.

What Is ROI?

ROI stands for Return on Investment. It is a simple way to measure how much profit (or loss) you made compared to the amount you invested. If you have ever asked, “Was this investment worth it?”, ROI is one of the fastest ways to answer that question.

People use ROI in personal finance, business, real estate, marketing, and even education decisions. The reason it is popular is that it gives you a clear percentage that is easy to compare across opportunities.

The Basic ROI Formula

The most common formula is:

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

You can also write it as:

ROI (%) = (Net Profit / Initial Investment) × 100

Where:

  • Initial Investment = what you put in
  • Final Value = what you got out
  • Net Profit = Final Value - Initial Investment

Step-by-Step: How to Calculate ROI

1) Identify your total cost

Start with everything you spent. For an investment account, this might be the purchase amount plus fees. For a business project, include software, labor, ad spend, and operating expenses tied directly to that project.

2) Identify your total return

This is the money or value you received. For a stock, it may include sale price plus dividends. For a marketing campaign, it may include total revenue generated from leads.

3) Subtract cost from return

This gives your net profit (or net loss).

4) Divide by your initial investment

Now divide net profit by cost to see how much you earned per dollar invested.

5) Multiply by 100

This converts the number into a percentage, which is easier to interpret and compare.

Quick Examples

Example 1: Simple investment

You invest $2,000 and later sell for $2,600.

ROI = ((2600 - 2000) / 2000) × 100 = 30%

Your ROI is 30%.

Example 2: Investment loss

You invest $5,000 and end with $4,500.

ROI = ((4500 - 5000) / 5000) × 100 = -10%

Your ROI is -10%, which means a loss.

Example 3: Marketing campaign

You spend $1,200 on ads and generate $3,000 in attributable revenue.

ROI = ((3000 - 1200) / 1200) × 100 = 150%

A 150% ROI means you earned $1.50 in profit for every $1 invested.

Annualized ROI (When Time Matters)

One limitation of basic ROI is that it does not account for time. A 30% ROI over one year is very different from 30% over five years. To compare investments across different time periods, use annualized ROI:

Annualized ROI = ((Final Value / Initial Investment)^(1 / Years) - 1) × 100

The calculator above includes this when you enter years held.

What Should You Include in ROI?

To make ROI meaningful, include all relevant costs and returns. Missing costs can make ROI look artificially high.

  • Transaction fees and commissions
  • Taxes (where relevant)
  • Maintenance or ongoing operating costs
  • Financing costs (interest, loan fees)
  • Cash distributions such as dividends or rental income

Common ROI Mistakes

  • Ignoring time: A higher ROI is not always better if it took much longer.
  • Leaving out hidden costs: This can turn a “great” ROI into an average one.
  • Confusing revenue with profit: ROI should be based on net gain, not gross sales alone.
  • Not adjusting for risk: Two investments can have the same ROI but very different risk levels.

ROI vs. Other Performance Metrics

ROI is useful, but it is not the only metric:

  • ROE (Return on Equity): focuses on shareholder equity in a company.
  • IRR (Internal Rate of Return): accounts for timing of cash flows.
  • NPV (Net Present Value): adjusts future cash flows for discount rate and time value of money.

If you are comparing long-term projects or uneven cash flows, IRR and NPV can be more accurate than simple ROI.

How to Improve ROI

In most cases, there are two ways to improve ROI: increase returns or reduce costs.

  • Negotiate better pricing and reduce unnecessary expenses
  • Focus on higher-margin opportunities
  • Improve conversion rates (for sales and marketing ROI)
  • Reinvest in the channels or assets producing the best outcomes
  • Track performance regularly instead of waiting until year-end

Final Takeaway

If you remember one thing, remember this: ROI tells you how hard your money worked. Use the formula consistently, include all meaningful costs, and compare opportunities on a similar time basis. With that approach, ROI becomes a practical decision tool rather than just a number.

🔗 Related Calculators