Return on investment is the percentage gain or loss you earn relative to what you originally put in, and it is calculated by dividing the profit (final value minus initial cost) by the initial cost and multiplying by 100. For any investment — a stock, an ETF, a piece of equipment, a fund, or a stake in a side business — the formula ROI% = (final value − initial cost) ÷ initial cost × 100 expresses the result as a single number you can compare across very different opportunities. A $500 profit on a $1,000 stake is a 50% return, while the same $500 profit on a $10,000 stake is only 5%, and that normalization is exactly why ROI has become the most widely used yardstick in finance. Once you also enter a holding period in years, the same inputs produce an annualized ROI (CAGR) that lets you compare a 2-year trade against a 20-year investment on equal footing. The ROI Calculator runs that arithmetic the moment you type, so the whole exercise takes only the two numbers you already know about your investment.

calculate roi for investment
calculate roi for investment

The ROI Formula for an Investment

At its core, ROI is a ratio between profit and the capital you risked to earn it. The full formula is:

ROI% = (final value − initial cost) ÷ initial cost × 100

Two pieces of that expression are worth highlighting. First, "initial cost" is the total amount of money you put into the investment — your purchase price, your capital contribution, or the sum you paid to enter the position, and it sits in the denominator. Second, "final value" is what the investment is worth right now or what you actually sold or liquidated it for, and it sits in the numerator alongside the cost. The difference between the two numbers is the net profit in dollars, and the formula simply rescales that dollar profit against what you paid so the result is comparable across investments of different sizes.

Consider this single worked example: you buy an investment for $10,000 and later sell it for $20,000 after 10 years. The plain ROI is (20,000 − 10,000) ÷ 10,000 × 100 = 100%, and the net profit is $10,000. That headline 100% looks impressive on its own, but as the next section shows, the annualized version tells a more nuanced story about whether the investment actually beat simpler alternatives. To reproduce this exactly, open the ROI Calculator and enter 10000 for the cost and 20000 for the final value, then add 10 for the holding period.

Calculate ROI Step by Step for Any Investment

You do not need to memorize the formula to get an accurate number. The tool does the division and percentage conversion for you. Here is the full sequence for working out the ROI of any investment.

  1. Enter the initial cost. Type the total amount of money you invested, in dollars. This is your purchase price or capital contribution, and it serves as the denominator in the formula.
  2. Enter the final value. Type what the investment is worth right now or what you sold it for. This becomes the numerator input. The cost and final value fields drive the gross ROI and the dollar net profit.
  3. Read the ROI percentage and net profit. Both appear instantly. If you also want a per-year figure, add a holding period in years to reveal the annualized ROI (CAGR) on the same screen.

Everything runs locally in your browser, so the figures you type never leave your device. That makes it practical to compare a private investment, a public stock, and a business project on equal terms without sharing any of the numbers with a server.

Why Annualized ROI Matters When Comparing Investments

Plain ROI has one well-known blind spot: it ignores time. Turning $1,000 into $1,500 is a 50% return whether it took one year or ten, but those are clearly very different investments. Annualized ROI — also called the compound annual growth rate, or CAGR — fixes that by asking what steady yearly rate would have grown your cost into the final value over the holding period. The formula is:

Annualized ROI% = ((final value ÷ cost)^(1 ÷ years) − 1) × 100

Using the earlier $10,000 → $20,000 example over 10 years, the annualized return works out to roughly 7.18% per year. That number is far more comparable to a savings rate, a bond yield, or a benchmark index than the headline 100% is. Another quick sanity check: a 50% total gain over 3 years is about 14.47% per year — well above what most cash-equivalent investments pay, which is the kind of signal an annualized figure is designed to surface.

For a deeper look at the CAGR mechanics, the practical walkthrough in how to calculate ROI: a practical guide with examples lays out the same math alongside a few more scenarios.

What ROI Looks Like Across Common Investment Types

The strength of ROI is that the percentage is dimensionless, so it lines up opportunities that look nothing alike in dollars. The table below sketches the typical direction and rough magnitude of ROI across common investment categories. Use it as orientation, then plug your own numbers into the calculator for an exact figure.

Investment type How ROI is usually measured Typical time horizon Caveat the headline ROI hides
Public stocks or ETFs Sell price vs. buy price, plus any distributions received Multi-year to multi-decade Taxes and brokerage fees are not in the percentage
Rental real estate Sale price or current value minus down payment and improvements 5 to 30 years Ongoing cash flow, vacancies, and maintenance are excluded
Bonds and fixed income Face value plus coupons vs. purchase price 1 to 30 years Reinvestment of coupons is not modeled
Side business or project Sale proceeds or current valuation minus capital and time put in 1 to 10 years Owner labor and opportunity cost are excluded
High-yield savings or CDs Ending balance vs. starting balance Months to a few years Returns are already low, so fees have an outsized effect

For the exact numbers behind any row in this table, put the real cost and final value into the ROI Calculator and read the percentage off the result.

Where Plain ROI Falls Short as a Yardstick

ROI as defined here is deliberately simple, and that simplicity comes with limits worth knowing before you act on a number. The tool reports gross ROI and net profit based only on the cost and final value you enter. It does not subtract trading fees, taxes, inflation, or the opportunity cost of capital, and it treats the gain as fully realized the moment you type it. A 20% ROI on paper can easily shrink to 12% after fees and ordinary-income tax, or even less once you adjust for inflation. None of those adjustments are part of the calculator's output, so treat the percentage as a fast first pass and verify the net figure with a tax-aware spreadsheet or a licensed professional before making a real decision.

Annualized ROI has a second constraint: it requires a final value above $0 and a holding period greater than zero. You cannot take a fractional root of a negative base, so the tool will not return an annualized figure for an investment that ended below zero. Plain ROI itself has no such restriction — a $2,000 cost that ends at $1,600 still produces a valid −20% ROI and a $400 loss, which is the correct sign of the underlying loss.

Putting It Together for Your Next Investment Decision

The most common use of this number is comparison. When you have two or three investments on the table, calculate ROI for each on the same footing — same definitions of cost, same definition of final value, and where possible the same holding period. If one candidate is short-term and another is long-term, also add the holding period to each so the annualized figures line up. Once the percentages sit next to each other, ranking the candidates becomes a much smaller problem than picking one cold. The Wikipedia entry on return on investment is a useful general reference for the broader context behind the formula, and the ROI Calculator itself can stay open in a tab so you can revisit it as new opportunities appear.

These figures are estimates for general information only and are not financial advice.