How to Calculate ROI: Step-by-Step Guide
Calculating Return on Investment (ROI) is one of the most practical skills in personal finance and business. Whether you are evaluating a stock purchase, a marketing campaign, or a business expansion, the ROI formula helps you measure whether your money is working hard enough.
Step 1: Identify the Cost of Investment
Start by adding up everything you spent to make the investment happen. This includes the purchase price, transaction fees, setup costs, and any ongoing expenses directly tied to the investment.
For example, if you bought a rental property for $200,000 and spent $15,000 on closing costs and $10,000 on initial repairs, your total cost of investment is $225,000.
Step 2: Determine the Gain from Investment
Next, calculate the total return you received from the investment. This could be the sale price, total revenue generated, or cumulative income earned over the holding period.
Continuing the rental property example: after five years, you sell the property for $260,000 and earned $60,000 in net rental income over that period. Your total gain is $320,000.
Step 3: Calculate Net Profit
Subtract the cost of investment from the total gain:
Net Profit = Total Gain − Cost of Investment
In our example: $320,000 − $225,000 = $95,000 net profit.
Step 4: Apply the ROI Formula
Divide the net profit by the cost of investment and multiply by 100 to get the percentage:
ROI = (Net Profit / Cost of Investment) × 100
So: ($95,000 / $225,000) × 100 = 42.2% ROI over five years. To annualize this, you would calculate approximately 7.3% per year — a solid return for a real estate investment.
Worked Examples
Stock Investment
You buy 100 shares at $50 each ($5,000 total) and pay $10 in trading fees. A year later, you sell all shares at $62 each ($6,200) with another $10 in fees. Your cost is $5,010 and your gain is $6,190.
Net profit: $6,190 − $5,010 = $1,180
ROI: ($1,180 / $5,010) × 100 = 23.6%
Marketing Campaign
A business spends $4,000 on Facebook ads that generate $18,000 in revenue. The cost of goods sold for those orders is $8,000 and shipping costs are $1,500.
Total cost: $4,000 (ads) + $8,000 (COGS) + $1,500 (shipping) = $13,500
Net profit: $18,000 − $13,500 = $4,500
ROI on ad spend only: ($4,500 / $4,000) × 100 = 112.5%
Business Equipment
A bakery purchases a $2,500 bread-slicing machine that saves 2 hours of labor per day. At $18/hour, that saves $36/day or about $9,360 per year (260 working days).
First-year net savings: $9,360 − $2,500 = $6,860
First-year ROI: ($6,860 / $2,500) × 100 = 274.4%
Common Mistakes to Avoid
- Forgetting hidden costs: Transaction fees, taxes, maintenance, and opportunity costs are easy to overlook but significantly impact your true ROI.
- Ignoring time: A 50% ROI over 10 years is very different from 50% in 6 months. Always consider annualizing your returns for fair comparisons.
- Confusing revenue with profit: Revenue is total money received. Profit is what remains after all expenses. Always use profit in the ROI formula.
- Cherry-picking the period: Calculating ROI only during a favorable window can be misleading. Use the full investment period for an honest assessment.
Calculate Your ROI Now
Ready to run your own numbers? Our free ROI Calculator lets you enter your investment cost and return to get instant results, including annualized ROI. You can also explore what ROI means or learn about what makes a good ROI.
Related: What Is ROI? | ROI vs ROAS | What Is a Good ROI?