How to find what percent one number is of another

Divide the part by the whole, then multiply by 100. The whole is the number that follows the word "of", and it cannot be zero.

(X / Y) × 100

  1. Divide X by Y: 25 ÷ 200 = 0.125.
  2. Multiply by 100 to write the decimal as a percent: 0.125 × 100 = 12.5%.
  3. If X is larger than Y, the result is above 100%. 40 is 125% of 32.

This tool always treats Y as the whole. If you have two independent measurements and neither is the whole, use percentage difference.

Part and whole: which number goes where

Y is the whole, the total that you measure against. X is the part. In the question "30 out of 150", X is 30 and Y is 150.

In a sentence, the whole usually comes right after "of". In "12 is what percent of 48?", the whole is 48. Swapping the numbers changes the answer: 12 is 25% of 48, but 48 is 400% of 12.

What percent is X of Y: worked examples

Each row divides X by Y and multiplies by 100.

X (part)Y (whole)Percent
2520012.5%
3015020%
4032125%
456075%
3837.5%
75014%

Answers above 100% and below 1%

When X is larger than Y, the answer passes 100%. 40 is 125% of 32 because 40 is 1.25 times 32.

When X is very small next to Y, the answer drops below 1%. 1 is 0.25% of 400, because 1 ÷ 400 = 0.0025.

Where you use the part-over-whole formula

Most "how much is that as a percent" questions fit this calculator.

  • Test score: 42 out of 50 is 84%.
  • Attendance: 18 present out of 20 days is 90%.
  • Budget share: $350 of a $1,400 budget is 25%.
  • Free throws: 7 made out of 10 is 70%.

Not the same as

Part over whole has a direction. These tools answer different questions.

What-percent questions

12.5%. Divide 25 by 200 and multiply by 100.

Treat X as the part and Y as the whole. 18 out of 20 is 18 ÷ 20 × 100 = 90%.

Yes. 40 is 125% of 32 because the part is larger than the whole.

Here Y is the whole. Percentage difference has no whole. It divides by the average of the two numbers.

Open percentage difference

Enter marks obtained as X and total marks as Y. The marks calculator uses the same formula with exam labels.

Open the marks percentage calculator

The calculation has no answer. You cannot divide by a whole of zero.

Yes. 30 ÷ 150 × 100 = 20%.