Calculators

Percentage Calculator

Work out percentages of a number, percentage change, increases and discounts, and reverse percentages, with the formula shown.

What is X% of Y?

%
X ÷ 100 × Y12

X is what percent of Y?

X ÷ Y × 10025%

Percentage change from X to Y

(Y − X) ÷ |X| × 100+25%

Increase Y by X%

%
Y × (1 + X ÷ 100)60

Decrease Y by X%

%
Y × (1 − X ÷ 100)60

X is Y% of what number?

%
X ÷ (Y ÷ 100)150

About this tool

Percentages show up everywhere: a 15% tip, a 25% discount, a price that went from 80 to 100, a test score of 18 out of 72. Each of those is a different calculation, and mixing them up is the most common percentage mistake. This calculator has a separate box for each of the six everyday questions, so you only fill in the numbers you know.

Every result updates as you type and shows the formula it used, which makes it easy to check homework, verify an invoice or explain a number in a report. Negative numbers and decimals work too, and results are cleaned of floating-point noise, so 0.1 + 0.2 shows as 0.3.

How to use Percentage Calculator

  1. Find the box that matches your question, such as “What is X% of Y?” or “Percentage change from X to Y”.
  2. Type the two numbers you know into X and Y.
  3. Read the result on the right; the formula on the left shows how it was calculated.
  4. Use the other boxes for follow-up questions: each keeps its own numbers.

Examples

A tip or a share

Input
What is 15% of 80?
Result
12

A test score

Input
18 is what percent of 72?
Result
25%

Price change

Input
From 80 to 100, and from 100 back to 80
Result
+25% and −20%

The same 20-unit change is a different percentage because the starting value differs.

Discount and original price

Input
Decrease 80 by 25%; 30 is 20% of what?
Result
60; 150

Why +20% and then −20% does not get you back

A percentage is always relative to the value it starts from. Raise 100 by 20% and you get 120; lower 120 by 20% and you get 96, not 100, because the second 20% is taken from a larger number. That is also why a stock that falls 50% must rise 100% to recover. To undo an increase of p%, divide by (1 + p/100) instead of subtracting p%.

Percent versus percentage points

When a rate itself changes, say an interest rate going from 2% to 3%, the difference is 1 percentage point, but it is a 50% increase in the rate. News reports and contracts should say which they mean. Use “Percentage change from X to Y” with X = 2 and Y = 3 to get the relative change (50%); subtract the two rates for the change in points.

Frequently asked questions

Everything you need to know about this tool and data security.

How do I calculate a percentage of a number?

Multiply the number by the percentage and divide by 100. 15% of 80 is 15 × 80 ÷ 100 = 12.

How do I find the original price before a discount?

Divide the sale price by (1 − discount ÷ 100). A price of 60 after a 25% discount was 60 ÷ 0.75 = 80. In the calculator, use “X is Y% of what number?” with X = 60 and Y = 75.

How is percentage change calculated?

Subtract the old value from the new one, divide by the old value and multiply by 100. From 80 to 100 that is (100 − 80) ÷ 80 × 100 = 25%.

Why does the calculator say “not defined”?

Some questions divide by one of your numbers. If that number is 0, for example “what percent of 0 is 5?”, there is no meaningful answer.

Can I use negative numbers and decimals?

Yes. Percentage change uses the absolute value of the starting number, so going from −50 to −25 is reported as an increase of 50%.

Is my data safe when using this tool?

Yes, 100% safe. This tool operates entirely inside your web browser using client-side JavaScript and WebAssembly. Your data never touches any external server.