Skip to content

ROI Calculator

Return on investment is the gain minus the cost, divided by the cost. A gain of 150 and a cost of 100 is 0.5, or 50 percent. The page does not read an account.

Result

Enter a gain and a cost

How to Use

  1. 1 Enter the gain and the cost.
  2. 2 Choose Calculate ROI.
  3. 3 Read the percent. 150 and 100 is 50.

Example Output

  • A gain of 150 and a cost of 100 is 50 percent.
  • A gain of 80 and a cost of 100 is -20 percent.

About This Tool

The gain is the amount returned. The cost is the amount spent. A gain below the cost is a negative percent.

Using the ROI Calculator

The ROI Calculator turns a gain and a cost into a net, a ratio, and a percent. Gain starts at 150 and cost starts at 100. Choose Calculate ROI. The headline is 50, and the label above it reads ROI percent. The sentence says a gain of 150 and a cost of 100 is an ROI of 50 percent. The lines show Net 50, Ratio 0.5, and ROI percent 50. The percent is the gain minus the cost, divided by the cost, then multiplied by 100. Here that is 50 divided by 100, times 100, which is 50. Read the net line before the headline when you want the amount, and read the ratio when you want the comparison before it is scaled into a percent. The three numbers are one calculation shown at three stages.

The page does not read an account, a portfolio, or a receipt. Both numbers are whatever you type, in the same unit you have in mind. A gain of 80 and a cost of 100 is a negative result, minus 20 percent, because the gain is below the cost. Cost must be greater than 0. Gain may be 0. Both fields stop at 100000000000. A word, a blank, a comma, or a minus sign fails the numeric check and is rejected as required. The page will not treat a comma as a thousands separator. Type 1150 if that is the gain, not 1,150. A minus sign is rejected. When the gain is below the cost, type both amounts as positive numbers and let gain minus cost carry the negative sign.

Copy result copies the sentence that names the gain, the cost, and the percent. The net and the ratio stay on their lines if you also want them in a note. Reset returns the fields to 150 and 100 and the headline to Enter a gain and a cost. The lines are cleared, so write down the three figures before you reset. The same two numbers always rebuild the same net, ratio, and percent, because the arithmetic does not change between runs. Calculate twice on 150 and 100 if you want to see the headline stay at 50. Change the gain, calculate, and the net line should move by the same amount the gain moved, because cost is still the number being subtracted.

Use the percent when you want the result in hundredths of the cost. Use the ratio when you want the same comparison before the times-100 step. Use the net when you want the gain minus the cost as an amount. All three come from one run. None of them is a forecast, a quote, or a balance the page looked up. If a fee belongs inside the cost, add the fee into the cost before you type. The page will not split one typed number into a price and a fee after the fact.

What the Percent, Net, and Ratio Are

ROI percent equals the gain minus the cost, divided by the cost, multiplied by 100. The net is the subtraction alone. The ratio is the net divided by the cost, before the multiplication by 100. For gain 150 and cost 100, the net is 50, the ratio is 0.5, and the percent is 50. The headline shows the percent. The lines show all three, so you can see the subtraction and the division that produced the headline.

A percent above 0 means the gain you typed is above the cost you typed. A percent of 0 means the gain equals the cost, so the net is 0 and the ratio is 0. A percent below 0 means the gain is below the cost. The sign lives in the net, the ratio, and the percent together. The page does not drop the sign to force a positive headline. Gain 80 and cost 100 is the sample of that negative case, at minus 20 percent. The net line on that run is minus 20 and the ratio line is minus 0.2. The sign is present on all three figures together.

How the Three Figures Are Built

The page reads gain and cost as plain decimals. Digits with an optional decimal part are accepted. The values are normalized, trailing zeros on a decimal fall away, and the arithmetic uses that normalized form. Net is gain minus cost. Ratio is net divided by cost. Percent is ratio times 100. Those three steps are also the steps listed under the result. Cost is checked to be greater than 0 before the division, so the page never divides by zero. Gain is checked to be at least 0. Both fields are also checked against the ceiling of 100000000000 before any subtraction is shown. A number past that ceiling uses the range message for its own field.

A profit on a share trade is a different pair of prices. The Stock Profit Calculator works from trade inputs of its own. Use that page when the question is a stock profit from those trade fields. Use this page when you already have a gain amount and a cost amount and you want net, ratio, and ROI percent from that pair.

What the Percent Does Not Fetch

The calculator does not read an account. It does not pull a purchase price, a sale price, a fee, or a cash balance from anywhere. If a fee belongs in the cost, add it into the cost before you type. If a payout is the gain, type that payout as the gain. The page will not split a typed number into principal and fee, and it will not tell you which part of a return came from price and which part came from income. One gain and one cost are the whole input.

The result is also not a rate of return over time. There is no date field and no holding period. A 50 percent result on cost 100 does not say how many months that gain took. If time matters, keep the dates in your own note next to the percent. The page will not annualize the figure, and it will not compare it with a hurdle you did not type. Write the dates in the same note as the copied sentence if the holding period matters to the person who reads the percent later.

Gain 150 Against Cost 100

Leave gain at 150 and cost at 100. Choose Calculate ROI. The headline is 50. Net is 50, because 150 minus 100 is 50. Ratio is 0.5, because 50 divided by 100 is 0.5. ROI percent is 50, because 0.5 times 100 is 50. The sentence names gain 150, cost 100, and 50 percent. Run it again. The three lines match.

Change the gain to 80 and leave the cost at 100. The net is minus 20, the ratio is minus 0.2, and the headline is minus 20. The sentence names gain 80, cost 100, and an ROI of minus 20 percent. Put the gain back to 150 and calculate again. The headline returns to 50. A property yield from income and price is a different ratio. The Cap Rate Calculator uses net operating income and property value. Use that page for a cap rate. Use this page for ROI percent from a gain and a cost.

Zero Gain, a Zero Cost, and the Ceiling

Gain may be 0 and may not exceed 100000000000. Cost must be greater than 0 and may not exceed 100000000000. Gain 0 and cost 100 is accepted. The net is minus 100, the ratio is minus 1, and the percent is minus 100. Cost 0 is rejected with Cost must be greater than 0 and at most 100000000000. A gain above the ceiling, or a cost above the ceiling, uses the matching range message. The page does not switch to scientific notation to squeeze a larger integer through.

A blank field, a word, a comma, a currency sign, and a minus sign fail the form check. Gain then says Gain is required. Cost says Cost is required. A negative gain is not entered with a minus sign. If the outcome is a loss, type the smaller gain as a zero or as a positive amount below the cost, and let the subtraction produce the negative percent. The range message appears only after the number is readable and falls outside the bound. Gain 0 is inside the bound. Cost 0 is not. Gain 0 and cost 100 is a successful run with a percent of minus 100, because the net is minus 100 and the ratio is minus 1.

Readings That Belong to Another Formula

A common miss is to divide the gain by the cost and call that ROI, skipping the subtraction. On this page the numerator is gain minus cost. Gain 150 and cost 100 is 50 percent, not 150 percent. Another miss is to treat a negative percent as an error. Minus 20 for gain 80 and cost 100 is a real result. Another miss is to swap the fields, putting the cost in the gain box. The labels are Gain and Cost, and the subtraction follows those labels. Another miss is to expect the page to open a brokerage account and fill the boxes. Both numbers have to be typed.

A symmetric gap between two numbers is a different percentage. The Percentage Difference Calculator compares two values without choosing one as the cost. Use that page when neither number is a baseline cost. Use this page when you have a gain and a cost and the cost is the divisor.

A Loss, a Match, and a Zero Gain

Enter gain 80 and cost 100. Calculate. Confirm net minus 20, ratio minus 0.2, and headline minus 20. Enter gain 100 and cost 100. Calculate. Net is 0, ratio is 0, and the headline is 0. That zero percent means the typed gain matched the typed cost. Enter gain 0 and cost 100. Calculate. Net is minus 100, ratio is minus 1, and the headline is minus 100. Enter cost 0 and calculate. The headline becomes the cost range message, and the lines clear.

Enter gain 150.5 and cost 100. Calculate. The net is 50.5, the ratio is 0.505, and the percent is 50.5. The page keeps the decimal that the arithmetic produces. Enter a comma in the gain, such as 1,150, and calculate. The gain is rejected as required, because the comma is not part of the accepted form. Type 1150 if that is the amount you meant. Then restore 150 and 100 and confirm the headline is 50 again.

Writing the Three Lines With the Inputs

Copy the sentence, and also note the net and the ratio from the lines if your record needs more than the percent. For the sample, the note is gain 150, cost 100, net 50, ratio 0.5, percent 50. For the loss sample, the note is gain 80, cost 100, net minus 20, ratio minus 0.2, percent minus 20. A later reader who sees only 50 can confuse the percent with the net. The sentence prevents that for the percent, and the two extra lines cover the rest.

The page does not store the run. Reset clears it. Ad return from spend is a different percent to file in another column. The ROAS Calculator divides revenue by ad spend. Use that page when the question is return on ad spend. Use this page when the question is ROI percent from a gain and a cost.

A Ratio of Two Amounts You Typed

The percent answers one question: how large is the gain minus the cost, compared with the cost, in hundredths. Gain 150 and cost 100 answers 50. Gain 80 and cost 100 answers minus 20. Gain 0 and cost 100 answers minus 100. Those are calculations on the numbers in the fields. They are not a reading of an account, and they are not a claim about what a future gain will be.

Checks Before You Keep the Percent

Read the sentence and confirm the gain and the cost are the ones you meant. Subtract them yourself and compare with the net line. Divide that net by the cost and compare with the ratio line. Multiply the ratio by 100 and compare with the headline. For 150 and 100, those checks are 50, 0.5, and 50. For 80 and 100, they are minus 20, minus 0.2, and minus 20. If any line disagrees with that arithmetic, run the calculation again before you copy.

Plain addition and subtraction of two numbers you want to see step by step can sit beside this percent. The 4 Function Calculator adds, subtracts, multiplies, and divides the numbers you enter. Use that page for a single operation. Use this page when the operation you want is the ROI percent from a gain and a cost.

Frequently Asked Questions

What do gain 150 and cost 100 return?

Net 50, ratio 0.5, and ROI percent 50. The headline is 50. The sentence names the gain, the cost, and 50 percent. Subtract 100 from 150 to see the net, divide 50 by 100 to see the ratio, and multiply 0.5 by 100 to see the headline.

What is the formula?

ROI percent equals (gain minus cost) divided by cost, times 100. The net is the subtraction alone. The ratio is the net divided by the cost, before the times-100 step. The headline is the percent, and the lines show the net and the ratio as well.

What do gain 80 and cost 100 return?

Minus 20 percent. The net is minus 20 and the ratio is minus 0.2. A negative percent is a real result when the gain is below the cost. It is not an error headline. The sentence names gain 80, cost 100, and the negative percent.

Can the cost be 0?

No. Cost must be greater than 0 and at most 100000000000. A zero cost is rejected with that range message, and the lines are cleared. The page does not divide by zero and it does not invent a substitute cost.

Can the gain be 0?

Yes. Gain may be 0. Gain 0 and cost 100 is net minus 100, ratio minus 1, and ROI percent minus 100. That percent means the typed gain was zero against the typed cost. It is a calculated result, not a rejection.

Does the page read an account?

No. You type the gain and the cost. The page does not open an account, look up a balance, or pull a fee. If a fee belongs in the cost, include it in the number you type before you calculate.

Are decimals allowed?

Yes. A plain decimal is accepted. Gain 150.5 and cost 100 is net 50.5, ratio 0.505, and ROI percent 50.5. A comma, a currency sign, and a minus sign are rejected with Gain is required or Cost is required.

What is the largest amount?

Both gain and cost stop at 100000000000. A larger number is rejected with the range message for that field. The page does not switch to scientific notation to accept a bigger integer. Stay inside that ceiling.