All calculators

Education

Percentage Calculator

Pick the question type, enter two numbers, and the calculator returns the answer with the formula and step by step work. Solve any of the three main percent questions in one place.

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?

A percentage calculator finds the answer to 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. It runs the right formula for the question you pick and shows the steps so the math is easy to check.

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.

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.