roi-calculator
A return-on-investment (ROI) calculator measures the profit of an investment as a percentage of the cost β the simple formula (net gain / cost) Γ 100% β and (more usefully for multi-year holdings) the annualised return / CAGR (compound annual growth rate) (end value / start value)^(1/years) β 1, which lets you compare investments held for different periods on equal footing. The ZTools ROI Calculator runs entirely in the browser, supports both simple and CAGR modes, accepts intermediate cash flows for IRR-style scenarios (approximation), and is the right starting point for evaluating real-estate flips, stock holdings, business ventures, and side projects.
Use casesβ
Comparing two stock holdingsβ
Stock A: bought $5K, sold $7K after 3 years. Stock B: bought $5K, sold $6K after 1 year. Simple ROI says A wins (40% vs 20%); CAGR says B wins (20% vs 11.9%). The right metric depends on the question.
Real estate flipβ
Bought house for $200K + $30K rehab; sold for $280K. ROI = ($280K β $230K) / $230K = 21.7%. Annualise by holding period for fair comparison to other investments.
Side-project or business investmentβ
Initial cost $10K, gross profit over 18 months $14K. ROI = 40% simple; CAGR β 25% annualised.
Marketing campaignβ
Spent $5K on ads, attributed $20K in net revenue. Marketing ROI = 300%. Useful for budget allocation.
How it worksβ
- Enter investment cost β Initial cash outlay. Include all costs (purchase price + fees + improvements).
- Enter end value β Sale price net of selling costs, OR current value if still holding.
- Enter holding period β For annualised return / CAGR. Skip for simple ROI.
- Compute β Simple ROI: (end β cost) / cost. CAGR: (end / cost)^(1/years) β 1. Both shown.
- Interpret β Compare to benchmarks: stock-market average ~10%, savings ~4%. Your ROI vs alternative use of capital is the real comparison.
Examplesβ
Input: Cost $10K, end value $15K, 3 years
Output: Simple ROI 50% Β· CAGR β 14.5% per year
Input: Cost $50K (including $5K fees), sold $80K, 5 years
Output: Simple ROI 60% Β· CAGR β 9.86%
Input: Marketing campaign: spent $5K, generated $20K profit
Output: ROI 300%
Frequently asked questionsβ
When should I use simple ROI vs CAGR?
Simple ROI for "did this make money overall?". CAGR for comparing to other investments β annualises the return so a 1-year and 10-year holding can be fairly compared.
Should I include opportunity cost?
For sophisticated analysis, yes. The proper comparison is "ROI vs ROI of next-best alternative use of capital". Simple ROI alone can flatter losing investments.
How do I handle dividends or rental income?
Add total cash distributions to the gain. So end value + dividends β cost = net gain. The calculator supports this via the cash-flow input.
Does it handle inflation?
Returns nominal ROI. To get real ROI, subtract expected inflation (e.g., 3%) from CAGR.
What is a "good" ROI?
Depends on risk. Low-risk savings ~4β5% beats inflation. Stock market average ~10% nominal. High-risk angel investments may target 30%+ β but lose 50% of the time.
Can it compute IRR?
Approximately for equal-period cash flows. True IRR (irregular cash flows over time) needs a more advanced tool.
Tipsβ
- Always include all costs (fees, taxes, improvements) β partial cost inputs flatter the ROI.
- For multi-year holdings, prefer CAGR over simple ROI for fair comparison.
- Compare to a benchmark (S&P 500 over the same period) β beating it consistently is harder than it looks.
- Account for risk β a 20% return on volatile crypto and a 20% return on a savings account are not comparable.
- For business investments, factor in your time as a cost β many "high ROI" side projects pay below minimum wage when time is included.
Try it nowβ
The full roi-calculator runs in your browser at https://ztools.zaions.com/roi-calculator β no signup, no upload, no data leaves your device.
Last updated: 2026-05-05 Β· Author: Ahsan Mahmood Β· Edit this page on GitHub