Calculate ROI when both your total initial cost and the investment’s current or sale value are known, so you can measure the gain or loss relative to the capital invested.

An ROI Calculator is most useful when a decision depends on return relative to capital rather than dollars gained alone. For an existing holding, run the calculation at a clear valuation checkpoint before deciding what to do with it. After a sale, use the actual proceeds to review the completed result. If the ending value is not known, the required input is missing; any prospective ROI would depend on an assumed final value rather than a completed outcome.

when should i calculate roi when using roi calculator
When to Calculate ROI: Before a Decision or After a Sale

When to run the ROI calculation

The best time to calculate ROI depends on what you are evaluating and when the relevant ending value becomes available.

  • Before a decision based on current performance: Enter the total capital invested and the investment’s current value. This creates a consistent snapshot you can use when considering whether to keep, sell, or reallocate the money.
  • After a sale or other disposition: Use the amount you received as the final value. This turns the completed transaction into a gross ROI percentage and a dollar gain or loss.
  • When comparing completed investments of different sizes: ROI puts each result on a percentage scale, which can be more informative than comparing dollar profits alone. The calculator can apply this approach to a stock trade, rental property, marketing campaign, or side project when each has a clear cost and ending value.
  • Before comparing results with different holding periods: Add the number of years to obtain annualized ROI. Without that adjustment, a shorter and longer investment can show the same total return even though the time required was different.

If you are still deciding how to forecast a possible investment, do not confuse a projected ROI with a completed result. The calculator does not forecast the ending value. A forward-looking ROI figure would depend on your assumption about that value and should be treated as a scenario.

Decision point Ending figure to use Most useful output
Reviewing an existing holding Current value of the investment Plain ROI and net profit, with annualized ROI when time matters
Reviewing a completed sale Actual sale proceeds Plain ROI and net profit
Comparing unequal holding periods Final value plus holding period in years Annualized ROI, also called CAGR
Reviewing regular contributions A series of deposits and their growth A calculation designed for contribution schedules rather than one cost and ending value

Choose plain ROI or annualized ROI

Plain ROI describes the total change between the starting cost and ending value. It works well for a completed transaction or a current snapshot when the duration of the investment does not affect the decision. Net profit answers the separate question of how many dollars were gained or lost. Annualized ROI answers how quickly the investment grew on a steady compounded yearly basis.

Output Calculation Question it answers Required inputs
Plain ROI (final value − initial cost) ÷ initial cost × 100 How much did the investment gain or lose relative to the amount invested? Initial cost and final value
Net profit final value − initial cost How many dollars were gained or lost? Initial cost and final value
Annualized ROI (CAGR) ((final value ÷ initial cost) ^ (1 ÷ years) − 1) × 100 What steady annual compounded rate connects the initial cost to the final value? Initial cost, final value, and holding period

Adding a holding period does not replace plain ROI or net profit; it adds a time-adjusted result to the output. Use it when comparing investments held for unequal periods or when the pace of growth matters. Annualized ROI requires a final value above zero and a holding period greater than zero.

Enter the inputs and read the outputs

  1. Enter the initial cost. This is the total amount of money you invested, expressed in dollars. It must be greater than zero because the calculation divides by this amount.
  2. Enter the final value. Use what the investment is worth now or what you sold it for. For plain ROI, a final value equal to or below the cost is accepted and produces a zero or negative return.
  3. Read the ROI percentage and net profit. The result updates instantly, showing both the percentage return relative to your investment and the corresponding dollar gain or loss.
  4. Add the holding period when needed. Enter the number of years held to see annualized ROI, or CAGR, alongside the other outputs. The final value must be above zero and the number of years must be greater than zero for this calculation to be accepted.

Everything runs locally in your browser, so nothing you type is uploaded. For a closer explanation of each field and its relationship to the formulas, see ROI Calculator Explained: Inputs, Math, and Output.

Read the result in the right context

A positive ROI means the investment gained money relative to its initial cost. Zero means it broke even, while a negative ROI means it lost money. Read net profit alongside the percentage so you can see both the dollar outcome and its scale relative to the capital committed.

Worked example: Suppose an asset cost $10,000 and was sold for $20,000 after 10 years.

The plain ROI calculation is ($20,000 − $10,000) ÷ $10,000 × 100 = 100%. The net profit is $20,000 − $10,000 = $10,000. These figures show the total return over the full investment period.

The annualized ROI calculation is (($20,000 ÷ $10,000) ^ (1 ÷ 10) − 1) × 100 ≈ 7.18% per year. This is the steady compounded yearly rate that turns the initial cost into the final value over the stated period. Use the 100% figure to describe the complete deal and the annualized figure when comparing the investment’s pace with results held for different lengths of time.

Account for what the calculator does not include

The results are gross estimates based only on the cost and final value entered. The calculator does not subtract:

  • Trading or other fees
  • Taxes
  • The effect of inflation
  • The opportunity cost of capital

It also treats the entire gain as fully realized. That means a calculation based on a current value should not be mistaken for a complete statement of what you would receive after selling, paying fees, or applying taxes. The tool’s “net profit” means final value minus initial cost; it is not a fully adjusted after-fee or after-tax profit statement.

If those excluded items are central to your decision, use the ROI result as an initial gross comparison and account for them separately. The figures are intended for general information rather than financial advice, so verify important calculations with a licensed professional.

Regular deposits also require a different approach because they create multiple contributions over time. For that pattern, use a Compound Interest Calculator or Savings Calculator, which are designed to show how recurring contributions grow.

Use a final timing checklist

Before relying on an ROI result, confirm the following:

  • The initial cost represents the total capital invested and is greater than zero.
  • The final value is the investment’s current value or actual sale proceeds.
  • Plain ROI is enough when the decision concerns total return rather than yearly pace.
  • The holding period has been added when results with different durations are being compared.
  • Any fees, taxes, inflation effects, or opportunity costs are considered separately.

Once these checks are complete, the calculation is ready to support the decision at hand: use the current-value version before acting on an existing holding, use actual proceeds after completion, and include the holding period whenever time changes the meaning of the comparison.

If you're weighing options, Mortgage Payment Calculator: A Decision Framework covers this in detail.