GameParticles
Numbers & units

How to Calculate Percentage: 3 Formulas With Examples

Learn how to calculate percentage three ways: find a percentage of a number, work out what percent X is of Y, and recover the whole from a part and a percent.

Updated

To calculate a percentage, divide the part by the whole and multiply by 100: percentage = part ÷ whole × 100. To find a percentage of a number, turn the percent into a decimal and multiply: 20% of 150 is 0.20 × 150 = 30. Every everyday percentage problem is one of three versions of that same relationship.

What a percentage is

Percent means "per hundred". 45% is 45 out of every 100, which is the fraction 45/100 and the decimal 0.45. Converting between the three forms is the only skill the formulas need:

  • Percent to decimal: divide by 100, which moves the decimal point two places left. 7.5% becomes 0.075.
  • Decimal to percent: multiply by 100, which moves the point two places right. 0.62 becomes 62%.
  • Fraction to percent: divide the top by the bottom, then multiply by 100. 3/8 is 0.375, or 37.5%.

The Fraction to Decimal Converter shows the decimal and the percentage for any fraction if you would rather not divide by hand.

The three percentage questions

Every problem contains three numbers: a part, a whole and a percent. You are given two and asked for the third.

QuestionFormulaExample
What is P% of Y?P ÷ 100 × Y20% of 150 = 30
X is what percent of Y?X ÷ Y × 10030 is 20% of 150
X is P% of what number?X ÷ (P ÷ 100)30 is 20% of 150

The hard part is rarely the arithmetic. It is deciding which number is the whole. The whole is the value that stands for 100%: the full price, the total marks, the entire population. In a sentence it usually follows the word "of".

How to find a percentage of a number

Use this when you know the percent and the whole.

  1. Divide the percent by 100 to get a decimal.
  2. Multiply the decimal by the number.

Worked examples:

  • 15% of 80: 0.15 × 80 = 12.
  • An 18% tip on a 64 dollar bill: 0.18 × 64 = 11.52.
  • 6.5% sales tax on 240 dollars: 0.065 × 240 = 15.60.
  • 250% of 40: 2.5 × 40 = 100. Percentages above 100 are fine and give a result larger than the starting number.

X is what percent of Y

Use this when you know the part and the whole and need the rate.

  1. Divide the part by the whole.
  2. Multiply by 100 and add the percent sign.

Worked examples:

  • A score of 42 out of 50: 42 ÷ 50 = 0.84, so 84%.
  • 9 absent students in a class of 36: 9 ÷ 36 = 0.25, so 25%.
  • 150 calories from fat in a 400 calorie meal: 150 ÷ 400 = 0.375, so 37.5%.

If the part is larger than the whole the answer is above 100%. Selling 130 units against a target of 100 is 130% of target.

Finding the whole from a part and a percent

Use this when you know that some number is a given percent of an unknown total.

  1. Turn the percent into a decimal.
  2. Divide the part by that decimal.

If 30 is 20% of a number, the number is 30 ÷ 0.20 = 150. If a 45 dollar deposit is 15% of the price, the price is 45 ÷ 0.15 = 300 dollars. A common mistake is to multiply here. Check by working forward: 15% of 300 is 45, so the answer holds.

Mental math shortcuts

Most percentages can be built from a few easy ones.

  • 10%: move the decimal point one place left. 10% of 86 is 8.6.
  • 1%: move it two places. 1% of 86 is 0.86.
  • 5%: half of 10%. 5% of 86 is 4.3.
  • 15%: 10% plus 5%. 15% of 86 is 12.9.
  • 20%: double 10%. 20% of 86 is 17.2.
  • 25%: divide by 4. 50%: divide by 2. 75%: half plus a quarter.
Percentages are reversible: X% of Y equals Y% of X. So 8% of 50 is the same as 50% of 8, which is 4. Swap the numbers whenever the other order is easier.

Common percentages as fractions and decimals

Knowing these by heart turns many problems into a single division.

PercentFractionDecimal
1%1/1000.01
5%1/200.05
10%1/100.1
12.5%1/80.125
20%1/50.2
25%1/40.25
33.33%1/30.3333
50%1/20.5
66.67%2/30.6667
75%3/40.75
100%11

The values for 1/3 and 2/3 are rounded, because those decimals repeat forever.

Using the calculator

The Percentage Calculator has a panel for each of the first two questions. "What is X% of Y?" takes the percent and the number and returns the part. "X is what % of Y?" takes the part and the whole and returns the rate. Results update as you type and each has a copy button.

There is no dedicated panel for finding the whole, so do that one by division as shown above, then confirm it in the first panel: enter the percent and your answer, and the result should be the part you started with.

The third panel, "Percentage change from X to Y", answers a different kind of question, which is where the related guides come in.

Which percentage calculation do you need

A plain percentage compares a part with its whole at one moment. Other situations use different formulas:

More converters for numbers and units are in the numbers category.

Try it

Open the Percentage Calculator, enter 15 and 80 in the first panel to get 12, then enter 42 and 50 in the second panel to see 84%.

Tools in this guide

Frequently asked questions

How do I find the percentage of a number?

Convert the percent to a decimal by dividing it by 100, then multiply by the number. For 15% of 80, that is 0.15 × 80 = 12. Multiplying the number by the percent and then dividing by 100 gives the same result.

X is what percent of Y?

Divide X by Y and multiply by 100. For example, 18 is what percent of 60: 18 ÷ 60 = 0.3, and 0.3 × 100 = 30%. Y is the whole you are comparing against, so it always goes on the bottom of the division.

How do I calculate a percentage on a calculator without a percent key?

Type the percent as a decimal. For 35% of 240, enter 0.35 × 240 to get 84. To find what percent 84 is of 240, enter 84 ÷ 240 × 100 to get 35.

How do I turn a test score into a percentage?

Divide the marks you earned by the total marks available and multiply by 100. A score of 42 out of 50 is 42 ÷ 50 = 0.84, which is 84%. The same method works for any part of a total.

More numbers & units guides

JSON Formatter
Developer · Format, validate and minify JSON with syntax highlighting.
↵
Base64 Encode / Decode
Developer · Encode text to Base64 or decode Base64 back to plain text.
↵
URL Encoder / Decoder
Developer · Encode or decode URL components and query strings.
↵
Hash Generator
Developer · Generate MD5, SHA-1, SHA-256 and SHA-512 hashes.
↵
UUID Generator
Developer · Generate UUIDs v4 (random) in bulk with one click.
↵
Regex Tester
Developer · Test regular expressions against text with live match highlighting.
↵
Word Counter
Text · Count words, characters, sentences, paragraphs and reading time.
↵
Case Converter
Text · Convert text between UPPER, lower, Title, camelCase, snake_case and more.
↵
List Sorter
Text · Sort, reverse, deduplicate and shuffle lists of text.
↵
Markdown Preview
Text · Write Markdown and see a live rendered preview side by side.
↵
Percentage Calculator
Numbers · Calculate percentages, increases, decreases and what % one number is of another.
↵
Color Converter
Colors · Convert colors between HEX, RGB, HSL and HSV instantly.
↵
Snake
Arcade · Eat food, grow longer, don't hit the walls. A timeless classic.
↵
2048
Puzzle · Slide tiles and combine them to reach the legendary 2048 tile.
↵
Word Grid
Puzzle · Guess the hidden five letter word in six tries using color clues.
↵
Sudoku
Puzzle · Fill the 9x9 grid with logic. Four difficulties from easy to expert.
↵
Minesweeper
Strategy · Use number clues to clear the minefield. Classic logic, three levels.
↵
Breakout
Arcade · Smash every brick with paddle and ball. Power-ups, combos, endless levels.
↵
Typing Practice
Casual · Build your WPM and accuracy with timed drills from 30 seconds to 5 minutes. Find your weak keys.
↵
TypeRunner
Arcade · Multiplayer typing race. Race friends by link, beat computer runners, or chase your own ghost.
↵
Typing Blocks
Arcade · Type each word before its wooden block lands. Miss, and the pile climbs toward the line.
↵
Bubble Shooter
Arcade · Aim, bank shots off the walls, and pop groups of three or more bubbles.
↵
Road Rush
Arcade · Race seven rivals through traffic and punch your way to the front.
↵