Skip to content

ROI Calculator

Return on investment as a percentage, plus the equivalent yearly return.

Sale proceeds or current value, plus any dividends or interest received.

Used for the annualized return. Enter 0 to skip it.

More options

Calculated on your device. Nothing you enter is sent anywhere.

Return on investment

Return on investment: 33.29%

You made $728.00 on $2,187.00, a return of 33.29%.

Gain or loss
$728.00
Annualized return
33.29%
Money multiple (returned ÷ invested)
1.3329

In short

Return on investment (ROI) measures profit relative to cost: subtract what you paid from what you got back, divide by what you paid, and multiply by 100. Buying for $2,187 and selling for $2,915 is a $728 gain and an ROI of 33.29%. ROI ignores time, so to compare investments held for different periods, convert it to an annualized return.

How it works

Return on investment

ROI = (amount returned − amount invested) ÷ amount invested × 100

OpenStax Contemporary Mathematics works the example of 100 shares bought at $21.87 and sold a year later at $29.15: the gain is $728 on $2,187 invested, an ROI of 33.29%. Count everything the investment paid you, including dividends and interest, in the amount returned, and include fees and commissions in the amount invested.

Why annualize? A 22% ROI earned over 4 years is not as good as 22% earned in one. The annualized return finds the single yearly rate that produces the same result:

Annualized return

annual = (returned ÷ invested)^(1 ÷ years) − 1

For a $3,000 bond that returned $3,660 over 4 years, that is 1.22^(1/4) − 1 = 5.10% a year.

Worked examples

Shares held for a year

100 shares bought for $2,187 and sold for $2,915 earn $728.00. Divided by the $2,187 invested, the ROI is 33.29%, OpenStax’s Example 6.67. Held for exactly one year, the annualized return is the same.

Open this example in the calculator

A bond held for four years

A $3,000 bond paying $165 a year returns $3,660 after 4 years: an ROI of 22% (Example 6.70). Spread over 4 years with compounding, that is 5.1% a year.

Open this example in the calculator

Twenty years of reinvested dividends

$13,000 that grows to $132,293.49 in 20 years has an ROI of 917.64%. That large number corresponds to a steady 12.3% a year, as Example 6.72 shows.

Open this example in the calculator

Using this calculator well

  • Include all costs. Purchase fees, commissions, taxes paid and money you added later all belong in the amount invested. Leaving them out overstates ROI.
  • Compare like with like. Use annualized returns to compare investments held for different lengths of time, and compare after fees and taxes.
  • ROI says nothing about risk. A higher return often comes with a higher chance of loss. Two investments with the same ROI can have very different risks.
  • For projects and marketing, the same formula applies: (benefit − cost) ÷ cost. Be explicit about which benefits and costs you counted.

Frequently asked questions

How do you calculate ROI?

Subtract the amount invested from the amount returned, divide by the amount invested, and multiply by 100. Investing $5,000 and getting back $6,200 gives a $1,200 gain and an ROI of 1,200 ÷ 5,000 = 24%.

What is a good ROI?

There is no single answer: it depends on the risk, the time involved and what else the money could have earned. Compare the annualized return with a safe alternative such as a savings account or government bonds over the same period, and with inflation.

What is the difference between ROI and annualized ROI?

Plain ROI is the total return over the whole holding period. Annualized ROI converts it into a yearly rate with compounding. A 50% ROI over 5 years is about 8.45% a year, while 50% in one year is 50% a year.

Can ROI be negative?

Yes. If you get back less than you put in, the gain is negative and so is the ROI. Investing $1,000 and recovering $850 is an ROI of −15%. The worst possible ROI is −100%, when the whole investment is lost.

Sources and methodology

  1. Contemporary Mathematics, 6.7 Investments, OpenStax, Rice University, ROI = (value − cost) ÷ cost; Example 6.67: $728 gain on $2,187 = 33.29%; Example 6.70: $660 on $3,000 = 22%; Example 6.72: $13,000 → $132,293.49 = 917.64%, annual return 12.3% (accessed November 24, 2026)
  2. Principles of Macroeconomics 3e, 7.2 Labor Productivity and Economic Growth, OpenStax, Rice University, compound growth: value × (1 + rate)^years, used here to annualize the return (accessed November 24, 2026)

Rounding: Money amounts keep full precision; percentages are rounded half-up to 4 decimal places and shown to 2.

Review status: formulas verified against the cited sources by automated tests; editorial review pending. Version 1.0.0, content updated November 24, 2026.

Changelog
  • 1.0.0 · November 24, 2026: First published.

How we build and test calculators

Embed this calculator on your site

Paste this code into your page. The calculator runs in a frame, with no tracking and no cookies, and links back here for the formula and sources.

<iframe src="https://northcalculator.com/embed/en/roi" title="ROI Calculator" width="100%" height="760" style="border:0" loading="lazy"></iframe>