What Percent Of Calculator

Find what percent X is of Y instantly.

How it is calculated

The tool divides the first number (the part, X) by the second (the whole, Y) and scales it to 100: percent = X ÷ Y × 100. The whole goes second and is the number you compare against, the base. Both numbers can be any real values, with decimals and negatives allowed. The only value that does not work is a whole of 0, since division by zero has no answer; the tool then returns no result. If X is larger than Y, the answer is above 100%, and a negative X gives a negative percentage. The percentage is rounded to two decimals, so 1 out of 3 shows as 33.33%. The two numbers are also echoed back with two decimals so you can confirm what was read.

Worked example

You scored 17 on a quiz out of 40. Divide the part by the whole: 17 ÷ 40 = 0.425. Multiply by 100 to get a percentage: 0.425 × 100 = 42.50%. So 17 is 42.50% of 40. Checking in reverse, 42.5% of 40 is 0.425 × 40 = 17, which confirms the result.

Try this example →

Common mistakes

  • Swapping the two numbers. 17 out of 40 is 42.50%, but 40 out of 17 is 235.29%; the whole (the base you compare against) goes in the second field.
  • Using this to find a percentage change between two values. Change is (new − old) ÷ old, so the base is the old value, not the larger one.
  • Expecting a result of 100% or less. When the part is larger than the whole the result is simply above 100%, which is correct, not an error.
  • Reading 0.425 as the final answer. The tool already multiplies by 100, so do not enter the whole as a percentage as well.

About this calculator

The 'what percent of' question — what percent is X of Y — is one of the most common everyday math problems, solved with the simple formula (X / Y) × 100. It shows up constantly: figuring out a test score (42 correct out of 50 questions), checking what share of a budget a category takes up, comparing part-to-whole relationships in statistics, or verifying a discount actually matches what a store advertised.

Students use it for grades and homework, shoppers use it to sanity-check sale prices, and professionals use it in reporting to express one figure as a share of a total — market share, project completion, or survey results. Because it's just a ratio scaled to 100, the same formula applies whether the numbers are tiny fractions or large totals.

Was this helpful?

You can pick up to 3 reactions.

Comments (1)

  • Editorial team

    Be careful not to confuse this with percentage change. If a price goes from 100 to 150, 150 is 150 percent of 100, but the increase is 50 percent. The first number is the part and the second is the base you compare against, so swapping them gives a different answer. Which everyday percentage question do you find yourself working out by hand?

Popular calculators

All Calculators