PercentBox
PercentBox

X is What Percent of Y?

Discover the percentage relationship between two numbers with (X ÷ Y) × 100. Great for grades, stats, ratios, and “what portion is this?” questions.

Written and maintained by Ricardo Rodrigues · Last updated · What changed

Who this calculator is for

Use this when you already have both amounts and you want the percent that connects them. The first number is the part. The second is the whole. Nine is 75% of 12. Forty is 20% of 200. The page is for grades, budget shares, “what portion of the team,” and any sentence of the form “A is what percent of B.”

It is the wrong tool for undoing a discount or a tax. If you paid 70 after 30% off, you do not type 70 and 30 here. You divide 70 by 0.70. That undo lives in the reverse-percentages guide and, for a single known rate, in the discount and VAT tools. This page names a ratio. It does not invert a rate you already know.

X is what % of Y?

Find what percent one number is of another

Result

Enter values to calculate

Comparison table

Test scores as percentages
Points out of50% needs65% needs75% needs90% needs
2010131518
4020263036
502532.537.545
6030394554

How many points equal a given percentage on tests of different lengths. For several tests with different weights, use the weighted grade calculator.

About this x is what % of y?

This mode names a ratio. You already have the part and the whole; you want the percent that connects them. The whole is the second number, the one you are taking a percent of. Forty is 20% of 200. Two hundred is 500% of 40. Both are correct responses to different sentences.

It does not undo a discount. If you paid €70 after 30% off, you do not type 70 and 30 into this mode. You divide 70 by 0.70. The guide on reverse percentages is the undo button; this page is the “what share is this?” button.

How to use each field

Number (X)
The part, the numerator. In “9 is what percent of 12,” 9 goes here. If the part is larger than the whole, the result is above 100%, which can be true. It can also mean the whole was typed in this box by mistake.
Is what % of (Y)
The whole, the denominator. 12 goes here in the example above. Zero is undefined: there is no whole to be a share of. A blank box is not zero; it is an unfinished question.
The result
The result is a percent, not a piece of money. The formula line divides X by Y and multiplies by 100. Copy the percent with the denominator still in the sentence: “9 is 75% of 12,” not “75%” floating alone.
Why there is no quick-select row
Quick-select writes a rate. This mode solves for the rate. There is nothing honest for those buttons to fill, so they stay off this tab. If you find yourself wanting a 15 button, you probably wanted percent-of.

When to use this calculator

  • You have a score and a total, a slice of a budget, or a headcount and a population.
  • You want to compare two quantities as a percent without implying that one is a later version of the other.
  • You are about to say “that’s like __%” and you want the denominator to be explicit.

Worked examples

Example calculations for X is What % of Y?
QuestionAnswer
25 is what % of 100?25%
40 is what % of 200?20%
9 is what % of 12?75%

Walkthroughs

A department’s share of a budget

Travel spent €18,400. The department budget is €92,000. Number 18400, whole 92000. Travel is 20% of the budget. The check: 20% of 92,000 is 18,400, which you can confirm on the percent-of tab. If someone reports “we are 20% over,” that is a different sentence and needs last year’s travel figure, not the budget.

If the budget had been the smaller number, the result would clear 100% and would mean travel exceeded the budget. That is a real situation. It is not a broken calculator. Read the two boxes again before you soften the sentence.

A lab measurement and a percent error

You measured 9.6 and the accepted value is 10. “9.6 is what percent of 10” is 96%. The error is not 96%. The error is the gap, 0.4, divided by the accepted value: 4% low. This page will give you 96 if you ask what percent 9.6 is of 10. The percent-error guide is the one that divides the gap. Know which sentence the lab report asked for.

Formula

GoalFormula
X is what % of Y(X ÷ Y) × 100

Divide the part by the whole, then multiply by 100. (9 ÷ 12) × 100 = 75. The absolute values do not get a percent until you name which one is the whole. 12 is 133.33% of 9, which is the same pair of numbers with the sentence reversed.

Percent change is the formula people substitute by accident. Change needs a before and an after of the same measure, and it divides the gap by the start. This formula divides the part by the whole. 9 is 75% of 12. The change from 12 to 9 is a 25% decrease. Both numbers are correct. They describe different relationships, and only one of them is what you were asked.

Scores need the same honesty about the denominator. 42 out of 50 is 84%. 42 out of 60 is 70%. The numerator did not move. The percent did, because you changed what “all of it” means. Say the total in the same breath as the percent.

Mistakes this page will not catch for you

Putting the whole in the first box

The first number is the part (the numerator). Swapping them turns “what share of the budget” into “how many budgets fit in this line,” which is a different percent and sometimes a number over 100.

Calling the result a percent change

9 is 75% of 12. That does not mean 12 changed by 75%. Percent change needs a before and an after of the same measure. A ratio of two different piles is this tool.

Using a rate you already know as the second number

“70 is what percent of 30” is not how you undo a 30% discount. It says 70 is about 233% of 30, which is a true ratio and a useless receipt. Undoing 30% off means dividing the price you paid by 0.70.

FAQ

How do I find what percent one number is of another?
Divide the first number by the second, then multiply by 100. 25 ÷ 200 × 100 = 12.5%.
What if the second number is zero?
Division by zero is undefined. You cannot calculate a percentage of zero as the whole.
Why did I get more than 100%?
Because the first number is larger than the second. The part is bigger than the whole you named. Either that is the true ratio (a city larger than a town you used as the base) or the whole belongs in the other box.
What happens if the second number is zero?
The percent is undefined. There is no whole to be a share of. The calculator should not invent a number; change the question or report the absolute amounts.
What if both numbers are already percents?
The tool will still divide. 8 is 80% of 10, even if those 8 and 10 were percentage points on a chart. The output is a percent about a percent. Label it that way or you will sound as if a rate became 80% in the world.
How many decimals should I keep?
The page shows enough precision to check the arithmetic. A grade or a budget share is often clearer rounded to one decimal or to the nearest percent, as long as you say you rounded. 42 out of 50 is exactly 84%. 1 out of 3 is 33.333…%, and “about 33%” is a rounding choice, not a different formula.
Is this the same as a percentage difference?
No. Percentage difference usually divides the gap by an average or by one of the two values, and people do not agree which. This page always divides the first number by the second. If a textbook says “percentage difference,” read its definition before you paste this result under that heading.