Percentage Calculator (What Is X% of Y)

Every percentage question is one of three questions, and this calculator answers all three at once. Enter a percent and a whole and you get the part. Enter a part and a whole and you get the percent. Enter a part and a percent and you get the whole it must have come from. The three answers are linked by a single identity, part = percent ÷ 100 × whole, rearranged three ways, so you never have to remember which number goes on top. Every step is written out underneath, in the order you would do it on paper.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
PercentThe rate you want to apply, written as you say it: enter 15 for fifteen percent, not 0.15.15 %
Whole (the base amount)The full amount the percent is taken from — the list price, the total headcount, the marks available.200
Part (a known piece of the whole)The amount you already know, used to work out what percent it is and what whole it implies.30

It returns

  • The percent applied to the whole (the part) — The answer to "what is P% of the whole".
  • The part as a percent of the whole — The answer to "the part is what percent of the whole".
  • Whole implied by the part and the percent — The answer to "the part is P% of what number".
  • Whole minus the percent taken — What is left of the base amount after removing P% of it.

The formula

part=p100whole
p=100partwhole
whole=100partp

In plain text: part = (p / 100) × whole

  • pThe percent, written as you say it (15 means fifteen percent) (%)
  • wholeThe base amount the percent is taken from (any)
  • partThe piece of the whole the percent describes (same as whole)

One identity, three unknowns. Solve for whichever of part, p or whole you do not have.

Updated Category Percentages & Percent Change Verified against published test cases Reading time 11 min

What a percent actually is

A percent is a fraction whose denominator has been fixed at 100. The word comes from the Latin per centum, "by the hundred", and that is the whole of the idea: instead of quoting a ratio as 3/8, you rescale it so the bottom number is always 100, and quote only the top. Three eighths becomes 37.5 per hundred, written 37.5%.

Fixing the denominator is what makes percents useful. Two fractions with different denominators cannot be compared at a glance — is 7/12 bigger than 9/16? — but two percents always can, because they are already on a common scale. 58.3% against 56.25% takes no thought at all. That single property is why percents run price tags, interest rates, exam marks, opinion polls and tax codes.

The cost of that convenience is that a percent on its own means nothing. It is a ratio, so it always refers to something, and the something is called the base or the whole. "A 20% discount" is meaningless until you know 20% of what. Most percentage mistakes, including the expensive ones, are not arithmetic errors at all — they are the wrong base.

The formula, and the three questions it answers

Start from the definition. The base-100 identity says that if p percent of a whole equals a part, then the part is p hundredths of the whole:

part = (p ÷ 100) × whole

That is one equation in three quantities, so knowing any two gives you the third. Every percentage question you will ever be asked is one of these three rearrangements.

Question 1 — find the part. You know the percent and the whole. Divide the percent by 100 to turn it into a plain multiplier, then multiply. 15% becomes 0.15, and 0.15 × 200 = 30. This is the discount, the tip, the commission, the tax.

Question 2 — find the percent. You know the part and the whole, and you want the rate. Divide the part by the whole to get a plain fraction, then multiply by 100 to rescale it to hundredths: p = 100 × part ÷ whole. Scoring 45 out of 180 gives 45 ÷ 180 = 0.25, so 25%.

Question 3 — find the whole. You know the part and the rate, and you want the base it came from. Divide instead of multiplying: whole = 100 × part ÷ p. If a $30 deposit is 20% of the price, the price is 30 ÷ 0.20 = $150. This is the one people get wrong most often, because the instinct is to add 20% back rather than to divide.

Notice that division by zero blocks two of the three. If the whole is zero there is no base to measure against, so Question 2 has no answer. If the percent is zero, Question 3 has no answer, because any base at all gives a part of zero. The calculator leaves those blank rather than printing a fake number.

Worked example: a $200 jacket at 15% off

A jacket is listed at $200 and the sign says 15% off. You want the discount, the price you pay, and a check on the rate.

  1. Convert the percent. 15 ÷ 100 = 0.15. This is the multiplier; it has no units.
  2. Find the part. 0.15 × 200 = $30. That is the discount.
  3. Find what is left. 200 − 30 = $170. Equivalently, 85% of 200: 0.85 × 200 = 170. Both routes must agree, and they do, because 15% + 85% = 100%.
  4. Check the rate the other way. The part is 30 and the whole is 200, so 30 ÷ 200 = 0.15, and 0.15 × 100 = 15%. The rate you were given is confirmed.
  5. Recover the list price from the discount alone. If all you knew was that the saving was $30 and the rate was 15%, then 30 ÷ 0.15 = $200. Multiplying 30 by 1.15 would have given $34.50, which is not the list price and never was — a reminder that going backwards is a division.

Now change one thing. Suppose the $170 is the price you actually paid and you want to know what percent you saved off what you paid rather than off the list price: 30 ÷ 170 = 0.1765, so 17.65%. Same $30, different base, different percent. Neither answer is wrong; they answer different questions. This is exactly why you name the base every time.

Reading the result without fooling yourself

Check the size of the answer against the size of the percent before you trust it. Anything under 100% must give a part smaller in magnitude than the whole; 100% returns the whole exactly; above 100% gives something larger in magnitude. If 30% of a number comes out bigger than the number, you have divided where you should have multiplied.

Watch the sign separately. Percentage arithmetic carries signs straight through, so a negative percent of a positive whole is negative, and any percent of a negative whole is negative. The magnitude rules above are about magnitude, not about which number sits higher on the number line: 150% of −40 is −60, which is larger in size but lower in value than −40.

Then ask whether a percent is even the right tool. Percents compress information, and the compression hides the base. A 300% increase in weekly sales is spectacular if the base was 1,000 units and meaningless if it was 3. Reporting conventions in medicine and finance exist precisely because of this: relative change without absolute change is not a finding, it is a headline. Quote both, or quote the base.

Finally, be careful about adding percents together. Percents of the same base add normally: 20% of $500 plus 5% of $500 is 25% of $500. Percents of different bases do not, and applying two in sequence is a different operation again — a 10% rise followed by a 10% fall lands at 99% of where you started, not 100%. When rates are applied one after another, use the percentage increase and decrease calculator, which multiplies the factors instead of adding the rates.

Common percents of common amounts

Each cell is the percent in the left column applied to the amount in the header row. Values are exact to the cent except the 33⅓% row, which is rounded.
Percentof 20of 50of 80of 200of 500
1%0.200.500.802.005.00
5%1.002.504.0010.0025.00
10%2.005.008.0020.0050.00
12.5%2.506.2510.0025.0062.50
15%3.007.5012.0030.0075.00
20%4.0010.0016.0040.00100.00
25%5.0012.5020.0050.00125.00
33⅓%6.6716.6726.6766.67166.67
50%10.0025.0040.00100.00250.00
75%15.0037.5060.00150.00375.00

Two shortcuts fall straight out of this table: 10% is the amount with the decimal point moved one place left, and 5% is half of that. Almost every mental percentage is built from those two plus doubling.

Mistakes that produce a confidently wrong percentage

  • Entering 0.15 when you mean 15%. The field expects the number you say out loud. Typing 0.15 asks for fifteen hundredths of one percent, which is 0.0015 as a multiplier — a hundredfold error that still looks like a plausible small number.
  • Adding the percent back to reverse it. To undo a 20% cut you divide by 0.80, not multiply by 1.20. The two agree only when the percent is zero.
  • Changing the base halfway through. A discount is a percent of the list price; a markup is a percent of cost; a margin is a percent of the selling price. Three different bases, three different answers from the same dollar figure.
  • Confusing percent with percentage point. A rate moving from 4% to 6% has risen two percentage points, which is a 50% increase in the rate. Both statements are true and they are not interchangeable.
  • Averaging percents that have different bases. A 90% pass rate in a class of 10 and a 50% rate in a class of 100 do not average to 70%; the combined rate is 59 passes out of 110, which is 53.6%. Weight by the base or do not average at all.
  • Rounding at every step. Round once, at the end. Rounding 33.333% to 33% before multiplying by 6,000 costs you 20 units.

Where this sits among the other percentage tools

This calculator answers static questions: a fixed rate applied to a fixed base. Three neighbouring questions need different tools, and choosing the wrong one is the most common source of a wrong answer.

If you have two values measured at different times and want the movement between them, that is percent change, and the base is the earlier value: use the percentage change calculator. If you have a starting value and want to apply a rise or a cut to it, that is a multiplicative adjustment: use the percentage increase and decrease calculator, which returns the new value rather than the size of the slice.

If your problem is really a ratio scaled to something other than 100 — a map scale, a recipe multiplied up, a dosage per kilogram — solve it as a proportion instead with the proportion solver. Percent is just the special case of a proportion whose second denominator happens to be 100, so the same cross-multiplication does the work.

Underneath all of these sits ordinary fraction arithmetic. Converting between the three representations is often the fastest route to a mental answer: 12.5% is 1/8, so 12.5% of 320 is 320 ÷ 8 = 40, no multiplication needed. The fraction to decimal calculator and the decimal to fraction calculator move between the forms, and the simplifying fractions calculator reduces the result so the shortcut is visible.

Key terms

Base (or whole)
The amount a percent is measured against. Every percent has one, whether or not it is stated, and naming it removes most ambiguity from a percentage claim.
Percentage point
The unit of difference between two percentages. Moving from 30% to 35% is a rise of five percentage points and a 16.7% increase in the rate itself.
Basis point
One hundredth of a percentage point, used in finance where rate moves are small. 25 basis points is 0.25%.
Multiplier
The percent divided by 100, used directly in multiplication. 15% has a multiplier of 0.15; a 15% increase has a multiplier of 1.15.

Frequently asked questions

How do I calculate a percentage of a number by hand?

Divide the percent by 100, then multiply by the number. For 15% of 200: 15 ÷ 100 = 0.15, and 0.15 × 200 = 30. Mentally it is usually quicker to build from 10%, which is the number with the decimal point moved one place left. 10% of 200 is 20, half of that is 10, so 15% is 30.

What is the difference between 15% of 200 and 200 increased by 15%?

The first is 30 and the second is 230. "Percent of" returns the slice; "increase by" returns the whole plus the slice. Both use the same multiplication, but the second adds the original back, which is the same as multiplying by 1.15. A price tag reading "15% off" means the first calculation is the saving and 170 is what you pay.

How do I find the original number when I only know the percent and the part?

Divide the part by the percent expressed as a decimal. If $30 is 20% of a price, the price is 30 ÷ 0.20 = $150. Check it forwards: 20% of 150 is indeed 30. The common error is multiplying by 1.20 instead, which gives $36 and answers a different question entirely.

Why does the calculator leave a field blank when I enter zero?

Because that answer requires a division by zero. With a whole of zero there is nothing to measure the part against, so "the part as a percent of the whole" has no value. With a percent of zero, every possible base produces a part of zero, so the base cannot be recovered. Printing a number in either case would be inventing one.

Can a percentage be more than 100?

Yes, whenever the part is bigger than the base. A crop that yields 250 tonnes against a 200-tonne forecast has hit 125% of forecast. Percentages above 100 are normal for comparisons, targets and growth; they are impossible only when the quantity is a genuine share of a fixed total, such as votes cast or marks awarded, in which case a figure above 100% means the base is wrong.

What percent is one number of another?

Divide the first by the second and multiply by 100. Scoring 45 marks out of 180 is 45 ÷ 180 = 0.25, so 25%. Keep the order straight: the number after "of" is the base and goes on the bottom. Reversing them turns 45 out of 180 into 400%, which is the answer to a different question.

Is a percentage the same as a percentile?

No. A percentage is a share of a total; a percentile is a rank position within a distribution. Scoring 80% on a test means you got four fifths of the marks. Being in the 80th percentile means you scored at or above 80% of the other candidates, which could correspond to almost any raw mark depending on how hard the paper was.

How do I calculate a tip or sales tax quickly?

Take 10% by moving the decimal point one place left, then scale it. For a 20% tip on a $47.50 bill: 10% is $4.75, double it to get $9.50. For 15%, take 10% plus half of it: $4.75 + $2.38 = $7.13. Sales tax works the same way, but remember the tax base is usually the pre-tax subtotal, not the total after other charges.

References