percentages.co.uk

X is P Percent of What Calculator

Written by the percentages.co.uk team. Reviewed for accuracy.

Find the whole number when you know a value and the percentage it represents. For example: 12 is 40% of what number? Enter the value and percentage below to get the answer instantly.

Takes about 30 secondsUpdated 30 April 2026

How it works

This is a reverse percentage calculation. You know the part and what percentage of the whole it represents, and you need to find the whole. To do this, divide the known value by the percentage expressed as a decimal.

The formula

Whole = X / (P / 100)

Or equivalently: Whole = (X x 100) / P

Why this works: If X is P% of the whole, then the whole is X divided by P/100. Dividing by a fraction is the same as multiplying by its reciprocal, so you can also multiply X by 100 and divide by P. Both routes give the same answer.

Worked examples

A student scored 18 marks, which is 60% of the total paper. How many marks was the paper worth?

  1. Whole = 18 / (60 / 100) = 18 / 0.6 = 30

Answer: 30 marks

A charity has raised £7,500, which is 25% of its annual fundraising target. What is the full target?

  1. Whole = 7,500 / (25 / 100) = 7,500 / 0.25 = £30,000

Answer: £30,000

A retailer sold 240 units in January, which was 80% of the monthly target. What was the target?

  1. Whole = 240 / (80 / 100) = 240 / 0.8 = 300

Answer: 300 units

A 5% pay rise adds £1,800 to a salary. What was the original salary?

  1. Whole = 1,800 / (5 / 100) = 1,800 / 0.05 = £36,000

Answer: £36,000

A tax bill of £3,500 represents 20% of taxable income. What is the taxable income?

  1. Whole = 3,500 / (20 / 100) = 3,500 / 0.2 = £17,500

Answer: £17,500

When to use this

This reverse percentage calculation comes up frequently when you know a part and a rate but need the total:

  • Commission and sales targets: A sales rep earned £3,600 in commission at a 12% rate. This calculator finds that total sales were £30,000. Useful when commission statements show the earnings but not the underlying revenue figure.
  • Fundraising and targets: A charity has raised £14,000, which represents 35% of its annual target. The full target is £40,000. Knowing this helps plan how many more events or campaigns are needed to close the gap.
  • Pay rises and salary negotiation: A 3.5% pay rise adds £1,750 per year to your salary. This means the original salary was £50,000. Useful when you know the increase amount but not the starting salary, for example when reviewing a colleague's pay or evaluating a job offer.
  • Discounted prices: A sale item costs £54, which is 60% of its original price. The original price was £90. This reverses a percentage-off calculation to recover the pre-discount value when the original price is not shown.

Understanding the result

The whole will always be larger than X when P is less than 100%. As the percentage gets smaller, the whole gets proportionally larger. If X represents only 5% of the total, the whole is 20 times larger than X. As a quick sanity check, multiply your answer by the percentage divided by 100 and confirm you get back to the original X value.

If the percentage is greater than 100, the whole will be smaller than X, which is mathematically valid (for example, "£150 is 120% of what?" gives £125). This situation arises when X represents a value after a percentage increase, and you want the pre-increase figure. In that case, the reverse percentage calculator handles increases and decreases more explicitly.

Related concepts

➡ For the forward calculation, the percentage of a number calculator finds what any percentage of a known total actually equals. ➡ If you know a final value after a percentage change and need the starting point, the reverse percentage calculator undoes a percentage increase or decrease to recover the original figure. ➡ To express a part-to-whole relationship directly as a percentage without finding the whole, the fraction to percentage calculator converts any fraction or ratio directly to a percentage.

How to do this in Excel

=A1/(B1/100)

Put the value (X) in A1 and the percentage (P) in B1. The formula divides X by the decimal form of P to find the whole. You can also write it as =A1*100/B1 for the same result. To verify, use =C1*B1/100 in a nearby cell to check that it returns the original X value.

How to do this without a calculator

Divide X by P to find 1% of the whole, then multiply by 100 to find the full 100%. For "18 is 60% of what": 18 / 60 = 0.3 (which is 1%), then 0.3 x 100 = 30. For round percentages like 25%, 50%, or 10%, use proportional shortcuts: if something is 25% of the whole, the whole is 4 times larger (divide by 0.25). If something is 10% of the whole, multiply by 10.

Common mistakes

Multiplying instead of dividing

To find the whole, you divide X by the decimal form of the percentage. Multiplying X by the percentage gives a much smaller number and is the wrong operation. For example, if 12 is 40% of something, the answer is 12 / 0.4 = 30, not 12 x 0.4 = 4.8.

Confusing the part and the whole

Enter the known value (the part) as X, not the total you are trying to find. If a class has 25 pupils and 15 passed, and you want to find the total from the pass count, X = 15 and P = the pass rate percentage, not 25.

Related calculators

Share this guide

X is P% of What Calculatorpercentages.co.ukWhole = Value ÷ (Percentage ÷ 100)WORKED EXAMPLE45 is 30% of what number?30 ÷ 100 = 0.345 ÷ 0.3 = 150Answer: 45 is 30% of 150Free percentage calculators for UK students, teachers and professionalspercentages.co.uk