Skip to main content

Percentage Calculator – 3 Ways to Calculate %

Blake Boege
Written by Blake Boege · Founder, Calculator Answers

A percentage calculator is a tool that computes percentage values using the basic relationship between a part, a whole, and a rate. The three common operations are finding what percent one number is of another, calculating a percentage of a number, and determining the whole when a percentage and part are known. It is widely used in finance, statistics, retail discounts, academic grading, and everyday math.

Pick the question type, enter two numbers, and this percent calculator returns the answer with the formula and step-by-step work.

Quick Answer

Calculate any percentage in three ways: find what percent X is of Y, find X% of Y, or find the whole when you know a part and its percentage. Free, no signup required.

Question type

%

The percentage to take.

The number you take a percent of.

Step by step

  1. Convert percent to decimal: 20 / 100 = 0.2
  2. Multiply: 150 × 0.2 = 30

Formula: answer = Y × X / 100

What is X% of Y?

Answer

30

20% of 150 = 30

Formulaanswer = Y × X / 100
X20
Y150
Answer30
Was this helpful?

Examples

What is 20% of 150?

= 30

30 is what percent of 150?

= 20%

30 is 20% of what?

= 150

15% of $40 (tip)

= $6

How it works

Three common percentage questions cover almost every everyday percent problem. The calculator runs the right rearrangement of the percentage relationship for the question you pick.

What is X% of Y?

answer = Y × X / 100

X is what % of Y?

percent = X / Y × 100

X is Y% of what?

whole = X / (Y / 100)

What is a percentage calculator?

Use this free percent calculator to compute percentage values using standard formulas. Our percentage calculator answers the three main percent questions: what is a given percent of a number, what percent one number is of another, and what whole gives a specific percent.

How the percentage calculator works

Pick a question type, enter the two numbers, and the calculator:

  • Converts the percent to a decimal when applicable.
  • Applies the formula for the chosen question.
  • Shows the answer with the formula written out.
  • Prints a short step by step trace of the calculation.
  • Writes a one-line interpretation of the result.

What is X percent of Y?

Multiply Y by X and divide by 100. Equivalently, convert the percent to a decimal (X ÷ 100) and multiply by Y. For example, 20 percent of 150: 150 × 20 ÷ 100 = 30, or 150 × 0.20 = 30. This is the question that shows up in tips, discounts, sales tax, and most everyday percent-of-a-number problems.

X is what percent of Y?

Divide X by Y and multiply by 100. For example, 30 is what percent of 150: 30 ÷ 150 = 0.2, then 0.2 × 100 = 20 percent. This is the question for things like a test score, a completion rate, or any part-to-whole ratio framed as a percent.

X is Y percent of what?

Divide X by the decimal form of Y. For example, 30 is 20 percent of what: 30 ÷ (20 ÷ 100) = 30 ÷ 0.20 = 150. This question comes up when you know the part and the percent and need to find the whole, such as working backward from a discount to the original price.

Percentage formulas

  • answer = Y × X / 100 for X percent of Y
  • percent = X / Y × 100 for X is what percent of Y
  • whole = X / (Y / 100) for X is Y percent of what

All three are rearrangements of the same basic relationship between a part, a whole, and a percent. The trick is picking the right rearrangement for what you know.

How percentages are used

Percentages show up everywhere: tips on restaurant bills, tax on a purchase, a discount at the store, a markup at a business, a test score, a probability, a battery level, an interest rate, a price change in a stock chart. The math is the same in every case; only the framing changes.

For some of these specific uses, we have dedicated calculators: the tip calculator splits bills with custom rates, the discount calculator applies a percentage off, the markup calculator works from cost to selling price, and the sales tax calculator adds or removes tax from a total.

Worked examples

  • 20% of 150 = 150 × 20 / 100 = 30
  • 30 is what percent of 150 = 30 / 150 × 100 = 20%
  • 30 is 20% of what = 30 / 0.20 = 150
  • 15% of 40 (a 15% tip on a $40 bill) = 40 × 0.15 = $6

Common mistakes

  • Forgetting to divide by 100 when converting a percent to a decimal. 20 percent is 0.20, not 20.
  • Swapping the part and the whole when finding X is what percent of Y. The part goes on top.
  • Confusing X percent of Y with X is Y percent of what. The first multiplies; the second divides.
  • Treating a percentage change as a plain percentage. Percentage change involves two values; a plain percentage involves one part and one whole. The percentage increase calculator handles the change case.
  • Forgetting that a percent over 100 just means the part is larger than the whole, which is perfectly valid in growth and markup contexts.

Working it out by hand

One fixed pair per mode, each matching what the calculator returns for the same inputs:

  1. What is 35% of 80? Convert the percent to a decimal and multiply: 35 ÷ 100 = 0.35, then 80 × 0.35 = 28.
  2. 45 is what percent of 60? Divide the part by the whole and scale: 45 ÷ 60 = 0.75, then 0.75 × 100 = 75%.
  3. 18 is 30% of what? Divide the part by the percent as a decimal: 30 ÷ 100 = 0.30, then 18 ÷ 0.30 = 60.

All three are the same relationship, part = whole × rate, solved for a different unknown. Picking the mode is just picking which of the three quantities you do not know yet.

Edge cases

  • Percent vs percentage points. A rate moving from 10% to 12% rose by 2 percentage points but by 20 percent in relative terms. The two are different numbers answering different questions, and mixing them up is the single most common percentage mistake in news and reports.
  • Results over 100%. Nothing special happens: 150% of 80 is 120, and 90 is 150% of 60. A percent above 100 just means the part exceeds the reference value.
  • Negative numbers. The calculator accepts them and returns signed results, which is occasionally useful, but signed change questions belong to the percentage increase and percent decrease calculators, which handle the direction explicitly.
  • Reverse percentage. To recover an original price, convert the discount to what remains before using the third mode: $45 after 25% off is 75% of the original, and 45 ÷ 0.75 = 60. Entering the discount percent itself is the classic wrong turn.
  • Display rounding. Steps and results show up to six decimal places, so 1 ÷ 3 appears as 33.333333%. The arithmetic underneath is full floating-point precision; only the display rounds.

Your numbers stay in the page

Every value you type is processed by this page in your browser. Your numbers are not sent to a server, not stored after you close the tab, and not visible to anyone else. There is no account and nothing to sign up for.

Related tools

Note. This calculator uses standard percentage formulas. Some real-world percentage problems may need extra context, such as taxes, tips, discounts, markups, or percentage change.

Frequently asked questions

It depends on what you know. To find X percent of Y, multiply Y by X and divide by 100. To find what percent X is of Y, divide X by Y and multiply by 100. To find the whole from a part and a percent, divide the part by the percent expressed as a decimal (percent ÷ 100).

20 percent of 150 is 30. Multiply 150 by 20 and divide by 100: 150 × 20 ÷ 100 = 30. You can also convert 20 percent to the decimal 0.20 and multiply: 150 × 0.20 = 30.

Divide the part by the whole and multiply by 100. For example, to find what percent 30 is of 150, compute 30 ÷ 150 = 0.2, then multiply by 100 to get 20 percent.

Divide the known part by the percent expressed as a decimal. For example, if 30 is 20 percent of some number, compute 30 ÷ (20 ÷ 100) = 30 ÷ 0.20 = 150. So the whole is 150.

The three common forms are: answer = Y × X ÷ 100 (X percent of Y), percent = X ÷ Y × 100 (what percent X is of Y), and whole = X ÷ (Y ÷ 100) (the whole from a part X and a percent Y). All three are rearrangements of the same percentage relationship.

Yes. A percentage greater than 100 means the part is larger than the whole. For example, 150 percent of 80 is 120. Percentages over 100 show up in growth, markup, returns, and any case where one quantity exceeds a reference.

Yes, in the sense that a percent change can be negative when a value drops. The calculator will not block a negative input, but everyday percentage problems usually use positive numbers. For percent decrease specifically, the percentage increase calculator handles the sign explicitly.

A percentage finds a part of a number or a part-to-whole ratio. Percentage increase compares two values and reports the change as a percent of the original. For example, going from 100 to 120 is a percentage increase of 20 percent. The percentage increase calculator handles that specific case.

Percent error compares an experimental value to an accepted or expected value and reports the gap as a percent of the accepted value. It is a special case of the percent calculation, common in chemistry and physics labs. The percent error calculator runs that formula directly.

Yes, in the sense that all three are percentage problems. For everyday math you can use the percentage calculator directly: 15 percent of 40 is 6, which is a 15 percent tip on a $40 bill. For more specific workflows, see the dedicated tip, discount, markup, and sales tax calculators.

Percentage points measure the raw gap between two percentages; percent measures relative change. If a rate moves from 10% to 12%, it rose by 2 percentage points, but the relative increase is 2 ÷ 10 = 20 percent. News reports mix the two constantly, and the difference is large: a 2-point rise in a small rate is a big relative jump.

Convert the discount to the percent that remains, then use the third mode. A jacket costs $45 after 25 percent off, so the sale price is 75 percent of the original: enter 45 is 75% of what, and the answer is 60. Dividing 45 by 0.75 by hand gives the same $60.

Two equivalent routes. Find the discount and subtract: 20 percent of 80 is 16, so the price is 80 - 16 = 64. Or multiply by what remains: paying 80 percent of the price means 80 × 0.80 = 64. The second route is one step and less error-prone at a register or in a spreadsheet.

Multiply by 100. The decimal 0.35 is 35 percent, and the fraction 3/4 is 0.75, which is 75 percent. For repeating results like 1/3 = 33.333... percent, the fraction to decimal calculator and decimal to fraction calculator show the conversion in both directions with exact forms.

Yes. It is free to use with no account, no sign-up, and no limit on calculations. Everything runs inside this page in your browser.