How to Calculate ROI: Step-by-Step Guide (Free Tool)
To calculate ROI, subtract what you invested from what you got back, divide by the amount invested, and multiply by 100 β the ByteTools ROI Calculator does this instantly and adds an annualized figure so you can compare investments held for different lengths of time. This guide walks through the formula and every field of the tool so you can go from raw numbers to a clean percentage in under a minute.
Return on investment is the single most common way to express how well money worked for you, whether that money went into stocks, a marketing campaign, or a piece of equipment. Because everything runs locally in your browser, your figures never leave your device.
The ROI formula in plain terms
The core equation is simple:
ROI = (Amount returned β Amount invested) Γ· Amount invested Γ 100
If you put in $10,000 and later received $13,000, your net profit is $3,000 and your ROI is 30%. The calculator accepts either the final amount returned or the net gain directly β enter whichever number you already have.
Step by step with the calculator
- Pick your currency and input mode. Choose whether you will enter the total amount returned or just the net gain.
- Enter the amount invested. This is your total cost β the money that left your pocket.
- Enter the return or net gain. Put in the final value the investment became, or the profit on top of your cost.
- Optionally add a holding period in years. This unlocks the annualized ROI.
- Read the results. Net profit, ROI percentage, and annualized ROI all appear instantly.
Why annualized ROI matters
Plain ROI ignores time, which can be misleading. A 30% return sounds identical whether it took one year or five, but the two are worlds apart. Annualized ROI fixes this by converting the total into an average yearly rate:
Annualized ROI = (Final Γ· Invested)^(1 Γ· Years) β 1
The table shows how the same 30% total return looks very different once time is factored in.
| Total return | Holding period | Annualized ROI |
|---|---|---|
| 30% | 1 year | ~30% |
| 30% | 3 years | ~9.1% |
| 30% | 5 years | ~5.4% |
Handling losses and edge cases
If your return is below your investment, both net profit and ROI turn negative β enter a returned amount lower than the cost, or a negative net gain, to see the loss quantified. This is exactly how you would evaluate a campaign that underperformed or an asset sold below purchase price.
Try the ROI Calculator β free and 100% in your browser.
FAQ
Do I enter the total return or just the profit?
Either works. The calculator has an input mode for each: use the total returned when you know the final value, or the net gain when you only tracked the profit. Both produce the same ROI.
What holding period should I use for a campaign that ran three months?
Enter it as a fraction of a year β three months is 0.25. The annualized ROI will then scale a short-term result up to a comparable yearly rate, which is useful but can look dramatic for very short periods.
Is ROI the same as profit margin?
No. ROI compares profit to the amount invested, while margin compares profit to revenue or price. They answer different questions, so use ROI for investment decisions and a margin calculator for pricing.
Are my numbers stored anywhere?
No. Every calculation happens in your browser with JavaScript, and nothing is uploaded or saved, so your investment amounts stay completely private.
Related free tools
- CAGR Calculator β compound annual growth rate for multi-year returns.
- Margin & Markup Calculator β pricing and profitability from a different angle.
- Compound Interest Calculator β project growth over time.
- Break-Even Calculator β find the point where an investment pays for itself.
Built by ByteVancer
ByteTools is a free product of ByteVancer, a software and web development studio building web apps, SaaS platforms and custom software. If you need custom financial dashboards or internal tooling for your business, explore what ByteVancer can build.
Recommended reading
ROI Calculator Use Cases: 6 Worked Examples
Six real ROI examples β marketing campaigns, stock trades, rental property, equipment and more β showing exactly how to measure return in each situation.
ROI Best Practices: 8 Mistakes That Skew Your Numbers
Avoid the ROI mistakes that inflate or hide your real returns β ignored fees, mixed timeframes and sunk costs β plus best practices for honest comparisons.
XOR Cipher Use Cases: CTFs, Learning, and Puzzles
Real use cases for the XOR cipher, from CTF challenges and teaching bitwise logic to lightweight obfuscation, with concrete worked examples.
XOR Cipher Tips: Keys, Security, and Common Mistakes
Pro tips and common mistakes for the repeating-key XOR cipher: key length, reuse pitfalls, format choices, and when to switch to real encryption.