MoneyGuide

How to Calculate a Percentage: Formulas, Examples and a Calculator

Four percentage questions, each with its formula, a worked example, a shortcut for doing it in your head, and a calculator that shows the working for your own numbers.

Percent of a number
Percent ÷ 100 × number. 20% of 150 is 30
What percent
Part ÷ whole × 100
Percent change
(New − start) ÷ start × 100
Percent difference
Gap ÷ average of the two numbers × 100
An illustration of a round pie on a wooden board with one quarter cut out and set on a small plate beside it. A measuring jug stands to the right, filled partway with teal liquid.
A percentage is a part measured against a whole: a slice against the pie, or the liquid against the full jug. Original editorial illustration. The numbers in this guide are made-up examples. · Original AI-generated editorial illustration by The Brensley.
On this page & data scope
  1. Use the calculator
  2. The percentage formula
  3. How to find a percentage of a number
  4. How to find what percent one number is of another
  5. How to calculate percent change (increase and decrease)
  6. How to find the whole from a part and a percent
  7. Percentages, fractions and decimals
  8. Percent of a number: quick reference
  9. Mental shortcuts
  10. Percentage points vs. percent
  11. Percent change vs. percent difference
  12. Adding or taking off a percentage
  13. Percentages in a spreadsheet
  14. Mistakes to avoid
  15. What this guide leaves out
  16. Frequently asked questions
  17. Sources and references

To calculate a percentage of a number, divide the percentage by 100 and multiply by the number: 0.2 × 150 = 30, so 20% of 150 is 30. To find what percent one number is of another, divide the part by the whole and multiply by 100: 45 ÷ 180 × 100 = 25, so 45 is 25% of 180. For a percent change, divide the change by the starting number and multiply by 100: from 80 to 100 the change is 20, and 20 ÷ 80 × 100 = 25, a 25% increase. Every example on this page uses made-up numbers.

Calculator

Percentage calculator

Pick the question you have and type your two numbers. The answer comes with its working, line by line. Answers are exact, then rounded to at most 4 decimal places, half up on the size of the number. An answer smaller than 0.0001 is shown to 2 significant digits. The calculation stays in your browser.

What is your question?

Up to 12 digits before the decimal point and 6 after. A minus sign, commas, a $ and a % are allowed. Nothing you type is sent or stored.

20% of 15030

  1. 20 ÷ 100 = 0.2
  2. 0.2 × 150 = 30
  3. 20% of 150 is 30

20% of 150 is 30.

The part, shaded, inside the whole.
  • Part 30 (20%)
  • Whole 150

Answers are worked out exactly, then rounded to at most 4 decimal places, half up on the size of the number, so −0.12345 becomes −0.1235. An answer smaller than 0.0001 is shown to 2 significant digits. The sign ≈ marks a rounded number.

The percentage formula

Percent means “out of 100”. So 20% is 20 out of 100, which is the decimal 0.2.

A percentage problem has three numbers: a part, a percent and a whole. One formula links them, and it can be written three ways, depending on which number is missing.

Part = percent ÷ 100 × whole

Percent = part ÷ whole × 100

Whole = part ÷ (percent ÷ 100)

One relationship, three questions

  • Part: 30
  • Whole: 150, the number after “of”

How to read the triangle: cover the number you want. Part sits over percent times whole, so the part is percent × whole, the percent is part ÷ whole, and the whole is part ÷ percent. Use the percent as a decimal: 20% is 0.2.

  1. Missing: the part

    What is 20% of 150?

    Part = percent ÷ 100 × whole

    20 ÷ 100 = 0.2

    0.2 × 150 = 30

    Answer30

  2. Missing: the percent

    30 is what percent of 150?

    Percent = part ÷ whole × 100

    30 ÷ 150 = 0.2

    0.2 × 100 = 20

    Answer20%

  3. Missing: the whole

    30 is 20% of what?

    Whole = part ÷ (percent ÷ 100)

    20 ÷ 100 = 0.2

    30 ÷ 0.2 = 150

    Answer150

A percentage problem has three numbers: a part, a percent and a whole. Know two and you can find the third. The whole is the number the percentage is taken of, here 150. The numbers are made up.

The Brensley calculation. Part = percent ÷ 100 × whole.

The whole is the number the percentage is taken of. In “20% of 150” it is 150. In “42 out of 50” it is 50. Picking the right whole is the step that decides the answer.

Section 7.10.2 of the National Institute of Standards and Technology’s Guide to the SI treats the symbol % as the number 0.01, so 25% is 25 × 0.01 = 0.25. That guide leaves a space before the symbol, as in 25 %. This page writes it closed up, as 25%, as everyday writing does.

How to find a percentage of a number

Take 20% of 150.

  1. Turn the percentage into a decimal. 20 ÷ 100 = 0.2.
  2. Multiply by the number. 0.2 × 150 = 30.

So 20% of 150 is 30.

The same two steps work for any pair of numbers.

  • A tip. 18% of a $45 bill: 18 ÷ 100 = 0.18, and 0.18 × 45 = 8.1. The tip is $8.10.
  • A percentage with a decimal. 12.5% of 64: 12.5 ÷ 100 = 0.125, and 0.125 × 64 = 8.
  • A percentage above 100. 150% of 80: 150 ÷ 100 = 1.5, and 1.5 × 80 = 120. A percentage above 100 gives more than the number you started with.

On a calculator, type the number, multiply by the percentage, then divide by 100: 150 × 20 ÷ 100 = 30. This guide does not rely on the % key. Dividing by 100 gives the same answer on any calculator.

How to find what percent one number is of another

Take 45 and 180. The question is what percent 45 is of 180.

  1. Divide the part by the whole. 45 ÷ 180 = 0.25.
  2. Multiply by 100. 0.25 × 100 = 25.

So 45 is 25% of 180.

The whole goes on the bottom of the division. It is the number that follows “of” or “out of”.

  • A test score. 42 marks out of 50: 42 ÷ 50 = 0.84, and 0.84 × 100 = 84. The score is 84%.
  • A part larger than the whole. 90 as a percent of 60: 90 ÷ 60 = 1.5, and 1.5 × 100 = 150. The answer is 150%, because 90 is one and a half times 60.
  • A division that does not end. 1 as a percent of 3: 1 ÷ 3 = 0.3333 and so on. The calculator shows about 33.3333%.

If the whole is 0, there is no answer. The sum divides by the whole, and dividing by 0 is not defined.

How to calculate percent change (increase and decrease)

Percent change measures how far a number has moved from where it started. Take a number that goes from 80 to 100.

  1. Subtract the starting number from the new number. 100 − 80 = 20.
  2. Divide by the starting number. 20 ÷ 80 = 0.25.
  3. Multiply by 100. 0.25 × 100 = 25.

That is a 25% increase.

Percent change = (new − start) ÷ start × 100

A decrease uses the same formula, and the answer comes out negative. From 100 to 80: 80 − 100 = −20, then −20 ÷ 100 = −0.2, then −0.2 × 100 = −20. That is a 20% decrease.

Up 25%, then down 20%, and back where it started

From 80 to 100+25%

20 is 1 of the 4 equal blocks in 80. 20 ÷ 80 = 0.25, and 0.25 × 100 = 25%.

From 100 to 80−20%

20 is 1 of the 5 equal blocks in 100. −20 ÷ 100 = −0.2, and −0.2 × 100 = −20%.

The same 20 is added and then removed. Going up it is measured against 80, so it is 25%. Going down it is measured against 100, so it is 20%. The starting number sets the percentage. The numbers are made up.

The Brensley calculation. Percent change = (new − start) ÷ start × 100.

The two answers differ because the starting number differs. The same 20 is a quarter of 80 and a fifth of 100. A larger pair shows it again: from 50 to 75 is a 50% increase, and from 75 back to 50 is a decrease of about 33.3333%.

A raise is a percent change in pay. Our pay raise calculator turns one into a new salary and an amount per paycheck. Return on investment is a percent change too: the gain or loss divided by what the investment cost. Our ROI calculator puts the fees into that cost.

Percent change from 0 has no answer, because the formula divides by the starting number. The calculator says so and shows the change in plain numbers instead.

How to find the whole from a part and a percent

Take the question “30 is 20% of what number?”

  1. Turn the percentage into a decimal. 20 ÷ 100 = 0.2.
  2. Divide the part by it. 30 ÷ 0.2 = 150.

So 30 is 20% of 150. Check it forwards: 0.2 × 150 = 30.

Whole = part ÷ (percent ÷ 100)

A second example: a $12 deposit is 15% of a price. 15 ÷ 100 = 0.15, and 12 ÷ 0.15 = 80. The price is $80.

If the percentage is 0, there is no answer. 0% of any number is 0, so a part other than 0 cannot be 0% of anything. A part of 0 is 0% of every number, so there is no single answer in that case either. The calculator says which case it is.

Percentages, fractions and decimals

A percentage, a fraction and a decimal are three ways to write the same share.

25% means 25 out of every 100

As a percent
25%
25 out of 100
As a fraction
1/4
25 ÷ 100, in lowest terms
As a decimal
0.25
25 ÷ 100

The square has 100 small squares, and 25 are shaded. That share can be written three ways: 25%, 1/4 or 0.25. All three name the same amount.

The Brensley illustration.

To move between them:

  • Fraction to percent. Divide the top by the bottom, then multiply by 100. For 3/8, 3 ÷ 8 = 0.375, and 0.375 × 100 = 37.5, so 3/8 is 37.5%.
  • Decimal to percent. Multiply by 100. 0.6 is 60%.
  • Percent to decimal. Divide by 100. 4.5% is 0.045.

The table lists eleven shares in all three forms. The last column is the quickest way to take that percentage of a number.

PercentFractionDecimalTo find it
1%1/1000.01Divide by 100
5%1/200.05Divide by 20
10%1/100.1Divide by 10
12.5%1/80.125Divide by 8
20%1/50.2Divide by 5
25%1/40.25Divide by 4
33.33…%1/30.3333…Divide by 3
50%1/20.5Divide by 2
66.66…%2/30.6666…Divide by 3, then multiply by 2
75%3/40.75Divide by 4, then multiply by 3
100%11Take the number itself

One third and two thirds do not end as decimals: the 3s and the 6s repeat without stopping. The table cuts them off and marks the cut with three dots. It does not round them. For an exact answer with thirds, use the fraction: 240 ÷ 3 = 80, so one third of 240 is 80.

Percent of a number: quick reference

Find the number on the left and the percentage along the top.

Number5%10%15%20%25%50%
201234510
502.557.51012.525
10051015202550
25012.52537.55062.5125
1,00050100150200250500

So 15% of 250 is 37.5, and 25% of 50 is 12.5. The 100 row is the percentage itself, which is what “out of 100” means.

Mental shortcuts

A few percentages take no written working. The rest can be built from them.

Five percentages and one trick to do in your head

  • 10%

    Move the decimal point one place to the left.

    10% of 240 is 24.

  • 5%

    Find 10%, then halve it.

    10% of 240 is 24, so 5% is 12.

  • 1%

    Move the decimal point two places to the left.

    1% of 240 is 2.4.

  • 25%

    Divide by 4, or halve it twice.

    240 ÷ 4 = 60.

  • 50%

    Halve it.

    50% of 240 is 120.

  • Swap

    X% of Y equals Y% of X. Work out the easier one.

    8% of 50 is 50% of 8, which is 4.

Each shortcut is shown on a made-up number. The sixth card is the swap, which works for any pair of numbers. Combine them for others: 15% is 10% plus 5%, and 20% is 10% doubled.

The Brensley calculation.

Start from 10%, because it only moves the decimal point. On 240, 10% is 24. Halve it for 5%, which is 12. Add the two for 15%, which is 36. Double 10% for 20%, which is 48.

The swap works because the order of a multiplication does not change the answer. 8% of 50 and 50% of 8 are both 8 × 50 ÷ 100, which is 4. Half of 8 is the easier sum.

Percentage points vs. percent

When the thing that changes is itself a percentage, there are two ways to describe the change.

From 4% to 5%: 1 percentage point, or 25 percent

In percentage points

+1 point

5 − 4 = 1

Subtract one rate from the other.

In percent

+25%

1 ÷ 4 = 0.25, and 0.25 × 100 = 25%

Divide the change by the rate you started with.

Both descriptions are true and they are not the same number. Percentage points subtract one rate from the other. Percent measures the change against the rate you started with. The rates are made up.

The Brensley calculation.

Take a rate that goes from 4% to 5%. Subtracting gives 5 − 4 = 1, so the rate rose by 1 percentage point. As a percent change it is 1 ÷ 4 × 100 = 25, so the rate rose by 25 percent. Both statements are true. They are different measures, and a sentence that says only “the rate rose 1%” does not say which one it means.

A battery that drops from 80% to 60% has lost 20 percentage points. As a percent change that is −20 ÷ 80 × 100 = −25, a 25% decrease.

Percent change vs. percent difference

Percent change has a direction. One number is the start, the other is the end, and the change is measured against the start.

Percent change = (new − start) ÷ start × 100

Percent difference, as this guide uses the term, has no start. It compares two numbers on equal terms by measuring the gap between them against their average.

Percent difference = gap ÷ average of the two numbers × 100

Take 80 and 100. The gap is 20 and the average is 90, so the percent difference is 20 ÷ 90 × 100, about 22.2222%. It is the same whichever number you name first. The percent change is 25% one way and −20% the other.

The calculator works out both. Pick “Percent change from A to B” when one number is the start, and “Percent difference between A and B” when neither is. Its own example for the second is 40 and 50: the gap is 10 and the average is 45, so the percent difference is 10 ÷ 45 × 100, about 22.2222%.

The calculator gives no percent difference when both numbers are 0, because their average is 0. It also gives none when one number is negative and the other is positive.

Adding or taking off a percentage

Adding a percentage. Multiply by 1 plus the percentage as a decimal. To add 15% to 40, work out 40 × 1.15 = 46. To undo it, divide by the same number: 46 ÷ 1.15 = 40. Subtracting 15% of 46 does not get back to 40, because 15% of 46 is 6.9. Sales tax works this way. Our sales tax calculator adds a rate to a price and takes it back out of a total.

Taking off a percentage. Multiply by 1 minus the percentage as a decimal. To take 15% off 40, work out 40 × 0.85 = 34. Our discount calculator does this in dollars, and also finds the percent off between two prices and the regular price before a discount.

Percentages in a spreadsheet

These formulas are written in generic spreadsheet syntax, with one number in cell A2 and the other in cell B2. Each is the arithmetic from the sections above, and each can be copied as it stands.

  • What percent A2 is of B2. =A2/B2, with the cell formatted as a percentage. With 45 in A2 and 180 in B2 the result is 0.25, shown as 25%.
  • A percentage of a number. =A2*B2, where B2 holds a percentage. With 150 in A2 and 20% in B2 the result is 30. If B2 holds the plain number 20, use =A2*B2/100.
  • Percent change from A2 to B2. =(B2-A2)/A2, with the cell formatted as a percentage. With 80 in A2 and 100 in B2 the result is 0.25, shown as 25%.

The first and third formulas leave out the × 100. They give the decimal, and the percentage format displays it as a percent. This guide does not cover the menus or number formats of any one program.

Mistakes to avoid

This list is this guide’s own. Each mistake comes with the arithmetic that shows it.

  • Using the wrong number as the whole. For a score of 42 out of 50, 42 ÷ 50 × 100 = 84, so the score is 84%. Dividing the other way, 50 ÷ 42 × 100, gives about 119.0476%, which answers a different question. The whole goes on the bottom.
  • Adding percentages of different wholes. 10% of 200 is 20, and 20% of 50 is 10. Together that is 30 out of 250, which is 12%. It is not 30%. Percentages can be added only when they are shares of the same whole.
  • Assuming a rise and a fall of the same percent cancel. 200 raised by 50% is 300. 300 cut by 50% is 150, not 200. The fall is taken from a larger number than the rise was.
  • Mixing up percent and percentage points. A rate that goes from 4% to 5% is up 1 percentage point and up 25 percent.
  • Mixing up two percentages of the same profit. Markup divides a profit by the cost, and gross margin divides it by the selling price, so the two are different numbers. Our markup calculator and profit margin calculator keep them apart.

What this guide leaves out

  • Repeated changes. Two rises of 10% in a row turn 100 into 110 and then 121. That is 21% in all, not 20%. This guide stops at one change.
  • Percent error, percentiles and weighted averages. They use percentages, and each has rules of its own.
  • Any real rate. The page does not know a tax rate, an interest rate, a tip custom or a discount. It works on the numbers you type.
  • Negative starting numbers. The calculator does not work out percent change from a number below 0, or what percent a number is of a negative whole.
  • More than four decimal places. Answers are exact, then rounded to at most four decimal places, half up on the size of the number, so −0.12345 becomes −0.1235. An answer smaller than 0.0001 is shown to two significant digits.

Frequently asked questions

How do I calculate a percentage of a number?

Divide the percentage by 100, then multiply by the number. For 20% of 150, 20 ÷ 100 = 0.2 and 0.2 × 150 = 30. In one line, that is 150 × 20 ÷ 100 = 30.

How do I find what percent one number is of another?

Divide the part by the whole, then multiply by 100. To find what percent 45 is of 180, 45 ÷ 180 = 0.25 and 0.25 × 100 = 25. So 45 is 25% of 180.

How do I calculate percentage increase?

Subtract the starting number from the new number, divide by the starting number, and multiply by 100. From 80 to 100, the change is 20, and 20 ÷ 80 × 100 = 25. That is a 25% increase.

How do I calculate percentage decrease?

Use the same formula as for an increase. From 100 to 80, the change is −20, and −20 ÷ 100 × 100 = −20. That is a 20% decrease. The divisor is the starting number, 100, not the new one.

How do you calculate a percentage on a calculator?

For a percentage of a number, type the number, multiply by the percentage and divide by 100: 150 × 20 ÷ 100 = 30. For what percent one number is of another, divide the part by the whole and multiply by 100: 45 ÷ 180 × 100 = 25. Neither sum needs the % key.

What is the formula for percentage?

Percent = part ÷ whole × 100. The same relationship gives the part as percent ÷ 100 × whole, and the whole as part ÷ (percent ÷ 100). With a part of 30 and a whole of 150, the percent is 30 ÷ 150 × 100 = 20.

How do I turn a fraction into a percent?

Divide the top number by the bottom number, then multiply by 100. For 3/8, 3 ÷ 8 = 0.375 and 0.375 × 100 = 37.5, so 3/8 is 37.5%. A fraction such as 1/3 does not end as a decimal, and is about 33.3333%.

How do I work out 20% of a number?

Divide the number by 5, because 20% is one fifth. 150 ÷ 5 = 30, so 20% of 150 is 30. Another way is to find 10% by moving the decimal point one place to the left, then double it: 10% of 150 is 15, and twice 15 is 30.

What is the difference between percent and percentage points?

Percentage points measure the gap between two percentages by subtraction. Percent measures a change against where it started. A rate that goes from 4% to 5% rises by 1 percentage point, and by 25 percent, because 1 ÷ 4 × 100 = 25.

How do I calculate a percentage of a total?

Divide the part by the total and multiply by 100. If 30 of 250 items are in one group, 30 ÷ 250 × 100 = 12, so that group is 12% of the total. If every item is in exactly one group, the shares of all the groups add up to 100%.

How do you reverse a percentage?

Divide, do not subtract. If 15% was added to a number and the result is 46, the original is 46 ÷ 1.15 = 40. If 15% was taken off and the result is 34, the original is 34 ÷ 0.85 = 40. The divisor is 1 plus or minus the percentage as a decimal.

Evidence record

Sources and references

  1. NIST Guide to the SI, Chapter 7: Rules and Style Conventions for Expressing Values of Quantities — National Institute of Standards and Technology

Topics

  • how to calculate percentage
  • percentage calculator
  • percentage formula
  • percent change
  • calculator

About the author

The Brensley Editorial

The institutional editorial byline of The Brensley, operated by Brensley Media LLC.

About The BrensleyEditorial PolicyCorrections