Percentage calculator

Find a percentage of a number, work out what percent one value is of another, or measure percentage change — instantly.

What is % of ?
Result
Enter your numbers above

Three ways to work with percentages

A percentage is just a fraction expressed out of one hundred — the word literally comes from the Latin per centum, “by the hundred”. Almost every everyday percentage question reduces to one of three calculations: finding a slice of a number, turning a ratio into a percentage, or measuring how much something grew or shrank. This calculator handles all three live as you type.

How the math works

Each mode uses a single, short formula:

  • Percentage of a number: result = (P / 100) × X
  • X is what percent of Y: result = (X / Y) × 100
  • Percentage change: result = ((B − A) / A) × 100

The first divides the percentage by 100 to get a decimal multiplier. The second reverses that — it turns a part-to-whole ratio back into a value out of 100. The third compares an ending value B against a starting value A: a positive answer is an increase, a negative answer is a decrease. Because dividing by zero is undefined, the last two modes need a non-zero denominator, and the tool shows a friendly note instead of an error when one is missing.

A worked example

Suppose a jacket priced at $80 goes on sale for $60. To find the discount as a percentage change, plug the numbers into the third formula: ((60 − 80) / 80) × 100 = (−20 / 80) × 100 = −25%. The negative sign tells you it is a 25% decrease — exactly the discount on the tag. Want the dollar saving directly? Use the first mode: (25 / 100) × 80 = $20 off.

Quick reference

QuestionFormulaExample
What is 20% of 150?(P / 100) × X0.20 × 150 = 30
30 is what % of 120?(X / Y) × 1000.25 × 100 = 25%
Increase 50 → 65((B − A) / A) × 100(15 / 50) × 100 = +30%
Decrease 200 → 150((B − A) / A) × 100(−50 / 200) × 100 = −25%

Tips & discounts

Work out a 18% tip on a bill, or the real saving on a “40% off” deal, in one tap.

Grades & scores

Turn “42 out of 50” into a percentage to compare results on a common scale.

Growth & trends

Measure how much a price, audience or metric rose or fell between two points in time.

Privacy note: this calculator runs entirely in your browser with no server and no analytics on your input. The numbers you type never leave your device and are forgotten the moment you close the tab.

Frequently asked questions

How do I calculate a percentage of a number?

Divide the percentage by 100 to turn it into a decimal, then multiply by the number. For example, 15% of 240 is (15 ÷ 100) × 240 = 0.15 × 240 = 36. The "Percentage of a number" mode above does this for you instantly.

How do I work out what percent one number is of another?

Divide the part by the whole and multiply by 100. If you scored 42 out of 50 on a test, that is (42 ÷ 50) × 100 = 84%. Use the "X is what percent of Y" mode to get the answer without a calculator.

How is percentage change calculated?

Subtract the starting value from the ending value, divide by the starting value, then multiply by 100: ((new − old) ÷ old) × 100. A positive result is an increase and a negative result is a decrease. Going from 80 to 100 is a 25% increase.

What is the difference between percentage change and percentage points?

Percentage change is relative to the starting value. Percentage points are the simple arithmetic gap between two percentages. If a rate rises from 5% to 7%, that is a 2 percentage-point rise but a 40% increase relative to the original 5%.

Why does the calculator show a dash or an error?

A percentage that divides by zero is undefined. "X is what percent of Y" needs Y to be non-zero, and percentage change needs a non-zero starting value. Enter a starting value other than zero and the result appears straight away.

Does this calculator send my numbers anywhere?

No. Every calculation runs locally in your browser with JavaScript. Nothing you type is uploaded, logged or stored — close the tab and the numbers are gone.