How to Calculate ROI

By Prince Yadav, Founder & Lead Developer.

The basic idea

ROI compares the gain or loss from an investment with the amount originally invested.

The formula

ROI = (Final Value − Initial Investment) / Initial Investment × 100.

Interpreting ROI

A positive ROI indicates a gain and a negative ROI indicates a loss. ROI alone does not show how long the investment took or account for every cost.

ROI and time

Two projects can have the same ROI but very different durations. Basic ROI does not annualize the result, so time should be considered separately.

ROI and costs

A meaningful ROI calculation should use a consistent definition of the initial investment and final value. Fees, taxes, operating costs, and other expenses can affect real-world return.

Worked example

If an investment starts at $10,000 and ends at $12,000, the gain is $2,000 and basic ROI is 20%. That 20% does not tell you whether the investment took one year or ten years.

When another metric helps

CAGR or other annualized measures can help compare returns across different holding periods. Cash-flow-heavy projects may also require NPV or IRR.

Using the calculator

Enter consistent initial and final values, then interpret the percentage alongside the time period and costs that matter.

Worked example: calculate the base before interpreting ROI

If a project costs $1,000 and produces $1,250 in net gain after the defined costs, ROI is $1,250 ÷ $1,000 × 100 = 125%. Some conventions instead define “return” as proceeds minus the original cost, so always confirm whether the numerator is net profit or total proceeds. The label alone may not reveal the convention.

Compare like with like

ROI does not automatically account for how long the investment took, uncertainty, cash-flow timing, or opportunity cost. A 20% return over one month differs from 20% over five years. Define the included costs and time horizon, and consider annualized return or NPV when comparing projects with different durations.

Document the costs included in ROI

List the initial investment and the costs or gains included in the numerator. If labour, maintenance, taxes, or ongoing fees are omitted, say so. A percentage can look attractive while ignoring time, risk, or opportunity cost; use a matching time horizon and another metric where it helps.

Sources and further reading

Use the Calculator

Try the worked-example inputs in ROI Calculator, then change one assumption at a time to see what drives the result.

Open ROI Calculator