ROI Calculator

Free ROI calculator. Measure return on investment as a percentage from initial cost and final value, with optional annualized ROI over a holding period.

AI-ready Use this tool with AI

This tool has a free JSON API. Copy a prompt or skill below to use it with ChatGPT, Claude, or any AI agent — no API key needed.

API docs
Enter your values above.

How roi calculator works

Return on Investment (ROI) measures the profitability of an investment as a percentage. The basic formula is net profit divided by cost, times 100: ROI = (final value − cost) / cost × 100. A positive ROI means you made money; a negative ROI means you lost it.

Enter the initial investment (cost) and the current or final value. The calculator returns the net profit and the ROI percentage. If you also enter the holding period in years, it computes the annualized ROI using the geometric formula ((final / cost)^(1/years) − 1) × 100, which makes returns over different time spans directly comparable.

ROI is simple and widely used but ignores the timing of cash flows, risk, and the cost of capital. For investments with regular contributions or withdrawals, a time-weighted or internal-rate-of-return measure is more accurate. Use this tool for a quick, comparable profitability snapshot of a single buy-and-sell.

Frequently asked questions

How is ROI calculated?
ROI = (final value − initial cost) / initial cost × 100. For example, a $1,000 investment now worth $1,500 has a net profit of $500 and an ROI of 50%.
What is annualized ROI?
Annualized ROI converts a total return into a per-year rate using ((final / cost)^(1/years) − 1) × 100. This lets you compare an investment held for 2 years with one held for 10 years on equal terms.
Can ROI be negative?
Yes. If the final value is below the initial cost, net profit is negative and so is the ROI percentage. A 20% loss shows as an ROI of -20%.
What does ROI not account for?
ROI ignores the timing of cash flows, risk, fees, taxes, and the opportunity cost of capital. It is a quick profitability measure, not a complete investment analysis. For cash flows in and out over time, use an IRR or time-weighted return instead.