Percentage Calculator

What is P% of X?

Result: 12
Working:15% × 80 = 15 / 100 × 80= 0.15 × 80 = 12

This percentage calculator solves the four everyday percent problems in one place: P% of a number, what percent one number is of another, the whole when you know a part and its percent, and the percentage difference between two values. Every answer comes with the working, so you can check your homework or copy the method into your notebook.

How to use the percentage calculator

  1. Pick the question you need to answer: P% of X, X is ?% of Y, X is P% of ? or Difference.
  2. Type the two numbers. Decimals and negative numbers work, and a comma is accepted as the decimal separator.
  3. Choose how many decimal places to show (0 to 6, default 2).
  4. Read the result and the working underneath. It updates as you type, no button needed.

Percentage formulas

A percent is a number out of 100, so 15% means 15/100 = 0.15. All four modes follow from that:

Question Formula Example
What is P% of X? P ÷ 100 × X 15% of 80 = 0.15 × 80 = 12
X is what percent of Y? X ÷ Y × 100 30 of 120 = 0.25 × 100 = 25%
X is P% of what? X ÷ (P ÷ 100) 45 is 9% of 45 ÷ 0.09 = 500
Percentage difference of A and B |A − B| ÷ ((|A| + |B|) ÷ 2) × 100 10 and 6: 4 ÷ 8 × 100 = 50%

The percentage difference divides the gap by the average of the two values, so the order doesn’t matter. When both values are 0, the difference is defined as 0%.

What percent did I get on my test?

This is the “X is what percent of Y?” question. Points earned go in X, points possible in Y:

To turn the percent into a letter grade, or to combine several tests with different weights, use the grade calculator.

Percentage difference vs. percentage change

The two are easy to mix up. Percentage difference has no direction: 6 and 10 differ by 50% whichever comes first. Percentage change starts from an original value and divides by it, so going from 6 to 10 is +66.67% (4 ÷ 6), while going from 10 to 6 is −40% (4 ÷ 10). If your task says “increased”, “decreased” or “from … to …”, you need percentage change, not this Difference mode.

Common mistakes

Frequently asked questions

How do I calculate a percentage of a number?

Divide the percent by 100 and multiply by the number. 15% of 80 is 15 ÷ 100 × 80 = 0.15 × 80 = 12.

How do I work out what percent I got on a test?

Divide the points you earned by the points possible and multiply by 100. 42 out of 50 is 42 ÷ 50 × 100 = 84%. Use the “X is ?% of Y” mode with X = 42 and Y = 50.

What is the difference between percentage difference and percentage change?

Percentage difference compares two values without a direction and divides by their average, so 6 and 10 differ by 50% either way. Percentage change has a starting value: going from 6 to 10 is a 66.67% increase, from 10 to 6 a 40% decrease.

How do I find the whole if I know the part and the percent?

Divide the part by the percent over 100. If 45 is 9% of a number, the number is 45 ÷ 0.09 = 500.

Is my data sent anywhere?

No. Everything is calculated in your browser and nothing you type is uploaded.

Related tools