What Percentage Is X of Y Calculator
Find out what percentage one number is of another.
About the X is % of Y Calculator
Sometimes the question is not "find a percentage" but "express this as a percentage" — how much of the whole does a part represent? This calculator answers that directly: given X and Y, it tells you what percentage X is of Y.
How It Works
The calculator divides X by Y to get a decimal fraction, then multiplies by 100 to express that fraction as a percentage.
Percentage = (X / Y) × 100.
Worked example
Scenario: What percentage is 30 of 120 — for example, 30 correct answers out of 120.
- Divide the part by the whole: 30 ÷ 120 = 0.25.
- Multiply by 100: 0.25 × 100 = 25%.
Result: 30 is 25% of 120.
How to interpret the result
The result tells you how large X is relative to Y, with Y treated as the whole or reference amount. A result below 100% means X is smaller than Y; 100% means they are equal; above 100% means X is larger.
Tips and common mistakes
- Put the part first and the whole second; swapping them gives 400% instead of 25%.
- For test scores, divide points earned by points possible.
- The decimal result is handy for spreadsheets, where 25% is stored as 0.25.
Assumptions & Limitations
- Assumes Y is nonzero, since dividing by zero has no defined percentage result.
- If X is larger than Y, the result will correctly exceed 100%, which is expected when the 'part' is actually bigger than the 'whole' you compared it to.
Frequently Asked Questions
What is a common real-world use for this?
It is frequently used for test scores (points earned out of points possible), budget tracking (spent out of budgeted), and completion tracking (tasks done out of total tasks).
Can the result be over 100%?
Yes — if X is greater than Y, the percentage will be over 100%, which correctly reflects that the first number exceeds the second.
How is this different from percentage of a number?
Percentage of a number starts with a known percentage and finds a value; this calculator starts with two values and finds the percentage relationship between them — they are inverse operations.
What does it mean if the answer is over 100%?
It means X is larger than Y. For example, 150 is 150% of 100.
What if Y is zero?
The calculation is undefined because division by zero is not possible. Use a non-zero reference value for Y.