ROI Calculator Formula: Return on Investment Explained with Examples
Understand the ROI calculator formula with net profit, investment cost, final value, annualized ROI, and practical examples.
Written by Calzivo Editorial Team
Open ROI Calculator
The ROI calculator formula compares net profit with investment cost. It is simple, but the result is only useful when the cost and return inputs are realistic.
Use the Calzivo ROI Calculator to estimate ROI quickly, then use the formula below to understand the math.
What Is the ROI Calculator Formula?
Simple Definition
The ROI formula shows how much return an investment produced compared with what it cost.
What Return on Investment Measures
Return on investment measures profit or loss relative to investment cost. It can apply to business projects, marketing campaigns, equipment, real estate, or financial investments.
Why ROI Is Expressed as a Percentage
ROI is expressed as a percentage so the result can be compared across different investment sizes.
Basic ROI Formula
ROI = Net Profit / Cost of Investment x 100
ROI = (Net Profit / Cost of Investment) x 100
This is the main formula behind a basic ROI calculator. The numerator is the amount gained after cost. The denominator is the amount invested. Multiplying by 100 turns the decimal into a percentage that is easier to read.
Net Profit = Final Value − Initial Investment
Net Profit = Final Value - Initial Investment
If the final value is $12,000 and the initial investment was $10,000, net profit is $2,000.
Alternative ROI Formula Using Gain and Cost
ROI = ((Gain from Investment - Cost of Investment) / Cost of Investment) x 100
This version says the same thing in a different way.
Why Investment Cost Is the Base of the Formula
ROI uses cost as the base because the question is: how much return did each invested dollar produce? This is different from profit margin, which uses revenue as the base. Use the Profit Margin Calculator for revenue-based profit percentages.
This base matters because using the wrong denominator changes the story. If a product has $40 profit on $100 revenue, the profit margin is 40%. If the cost was $60, the markup-style comparison against cost is 66.7%. ROI, margin, and markup can all be useful, but they answer different questions.
How to Calculate ROI Step by Step
Step 1: Find the Initial Investment Cost
Identify the total amount spent. Include required setup costs, labor, software, fees, or financing costs if they belong to the decision.
Step 2: Find the Final Value or Total Return
Find the final value, sale proceeds, extra profit, savings, or measurable return produced by the investment.
Step 3: Subtract Cost to Find Net Profit
Subtract the investment cost from the return.
Step 4: Divide Net Profit by Cost
Divide the net profit by the original investment cost.
Step 5: Convert the Result to a Percentage
Multiply by 100. The Percentage Calculator can help check this step.
ROI Formula Examples
Example: Simple Investment ROI
You invest $5,000 and later receive $6,500.
Net Profit = 6,500 - 5,000 = 1,500 ROI = (1,500 / 5,000) x 100 = 30%
Example: Business Project ROI
A business spends $18,000 on equipment and estimates $24,000 in extra profit. Net profit is $6,000, so ROI is 33.3%.
Example: Marketing Campaign ROI
A campaign costs $2,500 and generates $4,000 in net profit. ROI is 60%. If the $4,000 is only sales revenue, subtract cost of goods sold and fulfillment costs first.
Marketing ROI also depends on attribution. If some sales would have happened without the campaign, counting every sale as campaign return can overstate the result.
Example: Real Estate ROI
A renovation costs $20,000 and increases net resale value by $26,000. Net profit is $6,000, so ROI is 30% before taxes, loan costs, and closing costs.
Example: Negative ROI
If an investment costs $4,000 and returns $3,200, net profit is -$800.
ROI = (-800 / 4,000) x 100 = -20%
Negative ROI means the investment returned less than it cost.
How an ROI Calculator Uses the Formula
Enter Investment Cost
The calculator needs the cost first because cost is the denominator in the formula. If the cost is understated, the ROI percentage will be overstated.
Enter Return or Final Value
The return or final value is used to calculate gain. Use a realistic value, and avoid mixing forecasted return with actual cost unless you label it as an estimate.
Calculate Net Profit Automatically
A calculator subtracts cost from return so you do not have to do that manually.
Show ROI Percentage and Possible Annualized ROI
Some calculators may also show annualized ROI. Basic ROI shows total return. Annualized ROI adds time context.
Annualized ROI Formula
Why Time Period Matters
Time changes interpretation. A 20% ROI over two months is very different from 20% over ten years.
When Annualized ROI Is More Useful
Annualized ROI is more useful when comparing investments that lasted different lengths of time.
Basic Difference Between ROI and Annualized ROI
Basic ROI measures total gain relative to cost. Annualized ROI estimates the average yearly rate, usually using time and compounding assumptions.
Example of Comparing Different Investment Periods
If Option A earns 20% in one year and Option B earns 20% in five years, the basic ROI is equal, but the yearly performance is not. For longer periods, the Investment Calculator or Compound Interest Calculator can provide more context.
What ROI Results Mean
Positive ROI
Positive ROI means the return was higher than the cost.
Negative ROI
Negative ROI means the return was lower than the cost.
Break-Even ROI
Break-even ROI is 0%. The return equals the cost.
Why a Higher ROI Is Not Always Better
A higher ROI may carry more risk, longer waiting time, weaker assumptions, or less reliable cash flow.
Common ROI Formula Mistakes
Using Revenue Instead of Net Profit
Revenue can overstate ROI. Use net profit when possible.
Forgetting Fees, Taxes, or Extra Costs
Fees, taxes, commissions, labor, maintenance, software, financing, and platform costs can reduce ROI.
Comparing Investments With Different Time Periods
Basic ROI should not be compared across different time frames without annualized context.
Ignoring Risk and Cash Flow Timing
Two investments can have the same ROI but different risk or different timing of returns.
Treating ROI as the Only Performance Metric
ROI is useful, but major decisions may also need payback period, cash flow, risk review, NPV, IRR, or profit margin. A project that produces a high ROI after five years may be less attractive than a lower-ROI project that pays back in six months.
For planning, write down the formula, the assumptions, and the time period next to the ROI result. This makes the estimate easier to review later.
FAQs
What is the formula for ROI?
ROI = Net Profit / Cost of Investment x 100.
How do I calculate return on investment?
Subtract the investment cost from the return to find net profit, divide by cost, then multiply by 100.
What is a good ROI percentage?
It depends on the investment type, time period, risk, fees, taxes, and alternative options.
What is the difference between ROI and annualized ROI?
ROI shows total return relative to cost. Annualized ROI adjusts the result to a yearly rate.
Can ROI be negative?
Yes. ROI is negative when the investment returns less than it cost.
ROI formulas compare net return with investment cost, but the result depends on which costs, fees, taxes, and time period you include.
Use the tool instead
Use the matching calculator when you want to plug in your own numbers and get a result faster.
Open Calculator