Percentage Calculator

Result:

Enter values for X and Y.

Calculate a percentage of a number, find what percent one number is of another, and measure percentage change from a starting value to a new one. The result updates as you type. There is no Calculate button. X and Y change meaning with the calculation type. The sections below say which number goes in which field. Each result shows two digits after the decimal point.

How to use this percentage calculator

  1. Choose the calculation type. The three options are What is X% of Y?, X is what percent of Y?, and Percentage change from X to Y.
  2. Enter both numbers. Decimals are allowed, such as 7.5 or 19.99. If either field is blank, the result stays on “Enter values for X and Y.”
  3. Read the result. It recalculates when either value or the calculation type changes. There is no Calculate button.
  4. Choose Clear to empty both fields and restore the starting message. Clear does not change the calculation type.

A value that is not a finite number shows “Enter valid numbers for X and Y.” The same two fields serve every mode, so check the list below before you type.

Percentage of a number

Choose What is X% of Y? when you already know the percent and the number it applies to. The percent goes in X. The number goes in Y.

Result = (X ÷ 100) × Y

Dividing by 100 turns the percent into a decimal rate. Multiplying by Y scales that rate to the number you entered. The result line prints the percent, the number, and the product rounded to two decimal places.

Example: 20% of 50. (20 ÷ 100) × 50 = 10. The calculator shows 20% of 50 = 10.00.

Example: 15% of 80 = 12.00. A 15% discount on an 80 price is 12. The sale price is 80 − 12 = 68. This mode returns the discount amount, not the price after the discount. Subtract it yourself when you need the amount due.

Example: 18% of 45 = 8.10. That is an 18% tip on a 45 bill. The bill plus the tip is 45 + 8.10 = 53.10. The result line stops at 8.10.

Example: 7.5% of 200 = 15.00. A rate with a decimal works the same way. (7.5 ÷ 100) × 200 = 15. Use this for a tax or fee that is not a whole number, then add the 15.00 to 200 if the total is what you need.

A negative percent is allowed. −10% of 80 = −8.00. The sign stays on the result. To apply a 10% reduction, enter a positive 10 and subtract the result from Y, or use percentage change from the original value to the new one.

What percent one number is of another

Choose X is what percent of Y? when you have a part and a whole and want the percent. The part goes in X. The whole goes in Y.

Percent = (X ÷ Y) × 100

This is the reverse of the first mode. There you started with a percent. Here you start with two amounts and finish with a percent. The result is rounded to two decimal places.

Example: 30 is what percent of 120? (30 ÷ 120) × 100 = 25. The calculator shows 30 is 25.00% of 120.

Example: 42 out of 50. (42 ÷ 50) × 100 = 84. The line reads 42 is 84.00% of 50. A score of 42 points out of 50 is 84 percent.

Example: 1 out of 3. One divided by three is a repeating 0.333…, times 100 is 33.333…. The calculator shows 1 is 33.33% of 3. The last digit is rounded. The exact percent is not 33.33.

Example: 150 out of 120. (150 ÷ 120) × 100 = 125. The line reads 150 is 125.00% of 120. A result above 100% is expected when the part is larger than the whole you chose, such as output above a target of 120.

Y cannot be 0, because a percent of a zero whole is undefined. The result then reads Y cannot be 0 for this calculation.

Percentage change

Choose Percentage change from X to Y when you want the change relative to a starting value. The starting value goes in X. The new value goes in Y.

Change = ((Y − X) ÷ X) × 100

The difference is Y minus X. Dividing by X measures that difference against the start, not against the later number. A result of zero or above is labeled an increase. A negative result is labeled a decrease, and the line shows the size without the minus sign.

Example: from 80 to 100. ((100 − 80) ÷ 80) × 100 = 25. The calculator shows Change from 80 to 100 = 25.00% increase.

Example: from 100 to 80. ((80 − 100) ÷ 100) × 100 = −20. The line reads Change from 100 to 80 = 20.00% decrease. Those two moves are not the same percent. Falling from 100 to 80 is 20 percent of 100. Climbing from 80 back to 100 is 25 percent of 80. Each step uses its own starting value.

Example: from 50 to 75. ((75 − 50) ÷ 50) × 100 = 50. The line reads Change from 50 to 75 = 50.00% increase.

X cannot be 0. Percentage change divides by the starting value, and division by zero is undefined. The result then reads X cannot be 0 for percentage change. A start of zero has no ratio to compare. A move from 0 to 40 is not a percentage change this calculator can report.

A negative percentage change means the new value is below the starting value. The word on the result line is decrease. The number beside it is the size of that drop.

Percentage of 80 reference table

Each row is the first mode with Y set to 80. Type the percent into X, leave Y at 80, and the result column should match.

Percent (X)Result
1010% of 80 = 8.00
1515% of 80 = 12.00
2020% of 80 = 16.00
2525% of 80 = 20.00
5050% of 80 = 40.00

Percentage change from 80 reference table

Each row is the change mode with X set to 80. Type the new value into Y. An increase and a decrease of the same size are different rows, because the base stays 80.

New value (Y)Result
40Change from 80 to 40 = 50.00% decrease
60Change from 80 to 60 = 25.00% decrease
100Change from 80 to 100 = 25.00% increase
120Change from 80 to 120 = 50.00% increase

Discounts, markups, and margins

A percentage of a number and a percentage change answer different questions. 20% of 50 is 20% of 50 = 10.00, a part of 50. A change from 50 to 60 is Change from 50 to 60 = 20.00% increase, the growth relative to the start. The first result is 10. The second result is 20 percent. They are not interchangeable.

Markup and margin use different bases. Suppose an item costs 40 and sells for 50. Markup on the cost is percentage change from 40 to 50: Change from 40 to 50 = 25.00% increase. Margin on the selling price is the profit divided by the price: (50 − 40) ÷ 50 = 0.20, or 20%. Put the selling price in X and the cost in Y and the change mode shows Change from 50 to 40 = 20.00% decrease. That 20% is the profit as a share of the price. The label says decrease because Y is lower than X. State the margin as 20% of the selling price. Do not call the 25% markup a 25% margin.

A discount can be checked both ways. An item was 80 and is now 60. Percentage change shows Change from 80 to 60 = 25.00% decrease. The first mode agrees: 25% of 80 = 20.00, and 80 − 20 = 60.

To recover an original price from a sale price, divide by the share that remains. After 25% off, 75% of the original price is left. If the sale price is 60, the original is 60 ÷ 0.75 = 80. Confirm with the calculator: 25% of 80 is 20.00, and 80 − 20 is 60. This page does not have a separate “original price” mode. That division is the extra step.

A quoted annual interest rate is not one percent of the balance taken a single time. A fixed-rate loan payment also depends on the term. The loan calculator estimates the monthly payment, total interest, and total cost from the amount, annual rate, and years. It covers principal and interest only. It does not add fees or taxes.

Rounding and percentage points

Results on this page are rounded to two digits after the decimal point, using the same rounding as the calculator. The line for 1 out of 3 is 33.33%, while the exact value keeps repeating. When a later total must balance to the cent, keep more precision in your own sheet, or say that the figure was rounded to two decimal places. Two decimal places are the display. They are not a second definition of the percent.

Percentage points are a different unit. If a rate moves from 10% to 15%, the gap is 5 percentage points. The percentage change in those two numbers is ((15 − 10) ÷ 10) × 100 = 50. Enter 10 and 15 in the change mode and the calculator shows Change from 10 to 15 = 50.00% increase. It does not print “5 percentage points.” Write the unit you mean when you record the result. A 50% increase and a 5 percentage-point increase are both real descriptions of that move, and they are not the same claim.

Percentage calculator FAQ

How do I calculate a percentage of a number?
Divide the percent by 100, then multiply by the number. In this calculator, X is the percent and Y is the number. Example: with X set to 20 and Y set to 50, the result is 20% of 50 = 10.00.

How do I find what percent one number is of another?
Divide the part by the whole, then multiply by 100. X is the part and Y is the whole. Y cannot be 0. Example: with X set to 30 and Y set to 120, the result is 30 is 25.00% of 120.

How do I calculate percentage change?
Subtract the starting value from the new value, divide by the starting value, and multiply by 100. X is the start and Y is the new value. X cannot be 0. Example: from 80 to 100 the result is Change from 80 to 100 = 25.00% increase. From 100 to 80 the result is Change from 100 to 80 = 20.00% decrease.

What does a negative percentage change mean?
It means the new value is lower than the starting value. The calculator labels that result a decrease and shows the size as a positive percent. Example: from 100 to 80 the result is Change from 100 to 80 = 20.00% decrease. Climbing from 80 back to 100 is a 25.00% increase, because the starting value is different.

Can I use this calculator for discounts?
Yes. For the discount amount, use What is X% of Y? with the percent in X and the original price in Y. Example: 25% of 80 = 20.00, so the sale price is 80 minus 20, or 60. For the percent off between two prices, use percentage change from the original price to the sale price. From 80 to 60 the result is Change from 80 to 60 = 25.00% decrease.

Why is a 25% markup not the same as a 25% margin?
Markup divides the profit by the cost. Margin divides the profit by the selling price. An item that costs 40 and sells for 50 shows Change from 40 to 50 = 25.00% increase, which is the markup on cost. The margin is 20%, because a profit of 10 is 20% of the 50 selling price. Change from 50 to 40 = 20.00% decrease shows that same 20% against the selling price. Do not call the 25% markup a 25% margin.

What is the difference between percentage change and percentage points?
Percentage change compares the difference with the starting value. Percentage points are the simple gap between two percents. A move from 10% to 15% is 5 percentage points. Enter 10 and 15 in the change mode and the result is Change from 10 to 15 = 50.00% increase. This calculator reports that percent change. It does not report percentage points.

By GSFTEK Updated