Guide · Part of a whole
What Percentage Is X of Y?
Updated: June 2026
"X out of Y" is how scores, shares and proportions are spoken — 18 out of 25, 30 out of 200, 7 out of 8. Turning that phrasing into a percentage is one of the most useful conversions in everyday maths, because a percentage is instantly comparable across different totals. This page covers the formula, the cases that trip people up, and how to read the answer with confidence.
Free · No upload · Instant in the browser
The formula
You have a part (X) and a whole (Y) and want the percentage:
Divide the part by the whole to get a decimal between 0 and 1 (assuming X is no bigger than Y), then multiply by 100 to scale it into a percentage. The whole always goes on the bottom — it is the "of" in "what percent of". Putting the larger number on the bottom is the single most common slip.
Worked examples
What percent is 30 of 200? 30 ÷ 200 = 0.15, so 15%. What percent is 18 of 25? 18 ÷ 25 = 0.72, so 72% — a typical test score. What percent is 3 of 8? 3 ÷ 8 = 0.375, so 37.5%. The decimal you get before multiplying is itself useful: it is the fraction in its most portable form.
| X out of Y | Decimal | Percentage |
|---|---|---|
| 1 of 4 | 0.25 | 25% |
| 3 of 5 | 0.60 | 60% |
| 18 of 25 | 0.72 | 72% |
| 30 of 200 | 0.15 | 15% |
| 7 of 8 | 0.875 | 87.5% |
When X is larger than Y
The formula still works, but the answer climbs above 100%. If a stall sold 250 units against a target of 200, that is 250 ÷ 200 × 100 = 125% — it hit one and a quarter times the goal. A result over 100% simply means the part exceeds the whole, which is perfectly valid for targets, capacities and comparisons even though it can never happen for, say, a share of votes.
Reading the remainder
Whenever X is a genuine slice of Y, the leftover is just 100% minus your answer. If 72% of the questions were correct, 28% were not. The calculator shows this remaining percentage automatically, which is handy for pass marks, completion bars and budget shares where what's left matters as much as what's used.
Where you'll use it
- Converting a test or quiz score into a grade percentage.
- Finding what share of a budget a single line item takes.
- Expressing a count as a proportion of a total — defects, responses, attendance.
- Comparing results that were measured out of different totals.
Frequently asked questions
How do I find what percentage X is of Y?
Divide X by Y and multiply by 100. For 30 out of 200: 30 ÷ 200 × 100 = 15%.
How do I convert a test score to a percentage?
Divide your marks by the total possible and multiply by 100. 18 out of 25 is 18 ÷ 25 × 100 = 72%.
What if X is bigger than Y?
The percentage goes over 100%. 250 out of 200 is 125%, meaning X is one and a quarter times Y.
Which number goes on the bottom?
The whole — the value after "of". Dividing by the wrong number is the most common mistake.