X out of Y Calculator
Enter a score X out of Y and get the percentage plus an estimated letter grade — instantly, and without your data leaving the browser.
Percentage
Estimated grade
Example Results
| Score (X / Y) | Percentage | Grade |
|---|---|---|
| 40 / 50 | 80% | B- |
| 45 / 50 | 90% | A- |
| 35 / 50 | 70% | C- |
| 30 / 50 | 60% | D- |
| 25 / 50 | 50% | F |
How to Use the X out of Y Calculator
Turning a raw score into a percentage and a letter grade is one of the most common calculations in school, work, and everyday life. The X out of Y Calculator does it instantly and privately in your browser.
Enter your score (X). Type the number of points, correct answers, or marks you earned into the first field. For example, if you answered 40 questions correctly, enter 40.
Enter the maximum total (Y). Type the total possible points into the second field. If the test had 50 questions, enter 50.
Click Calculate. The tool divides X by Y, multiplies by 100, and shows your percentage rounded to two decimal places. Example: 40 out of 50 gives 40 ÷ 50 = 0.8, so the result is 80%.
Read the letter grade. Alongside the percentage you get an estimated letter grade based on the standard US scale — 80% falls in the B- band. The summary line restates your score in plain language, and you can copy it with one click.
Pro tip: Use the reference table below the calculator to see how common scores map to a percentage and a grade. Because everything runs client-side, your grades never leave your device.
What Does "X out of Y" Mean?
An "X out of Y" score expresses how many parts of a whole you achieved. X is the part (points earned, correct answers, tasks completed) and Y is the whole (points available). The percentage is simply the ratio X ÷ Y scaled to a base of 100: (X ÷ Y) × 100. If you scored 40 out of 50, the ratio is 0.8, which equals 80%. A percentage is useful because it normalises tests of different lengths to the same scale. Scoring 18 out of 20 and 45 out of 50 look like different results, but both are exactly 90%. That is why percentages are the standard way to compare performance across assignments, exams, and assessments of different sizes. Letter grades add a second layer of interpretation by grouping ranges of percentages into bands such as A, B, C, D, and F. Schools, universities, and online courses use slightly different cut-offs, but the most widely used scheme in the United States starts an A at 90% and an F below 60%. This calculator uses that common scale with plus and minus divisions to give you a quick, reliable estimate.
Common Applications
1. Grading tests and quizzes: A teacher who marks 43 questions correct out of 50 can find the percentage (86%, a B) in one step instead of reaching for a spreadsheet.
2. Tracking study progress: A student practising with past papers can record "27 out of 30" and convert it to 90% to see whether they are hitting their target grade.
3. Game and sport statistics: Free-throw shooting (18 made out of 25 attempts = 72%), accuracy percentages, and win rates are all X-out-of-Y calculations.
4. Health and nutrition: If you sleep 7 hours out of an 8-hour goal, that is 87.5% of your target — a quick way to gauge how close you are.
5. Work and project metrics: Tasks completed out of tasks planned, tickets resolved out of tickets opened, or survey responses out of invitations are all naturally expressed as X out of Y.
How the Letter Grade Scale Works
The calculator uses the standard US grading scale: A+ (97–100%), A (93–96.99%), A- (90–92.99%), B+ (87–89.99%), B (83–86.99%), B- (80–82.99%), C+ (77–79.99%), C (73–76.99%), C- (70–72.99%), D+ (67–69.99%), D (63–66.99%), D- (60–62.99%), and F (below 60%). The percentage is rounded to two decimals before the band is applied, so 89.995% rounds to 90.00% and becomes an A-.
The Percentage Formula in One Line
The whole calculation is percentage = (X ÷ Y) × 100. Dividing first keeps the numbers small and avoids the common mistake of multiplying by 100 too early. The letter grade is then read from fixed percentage bands, never from the raw score, which is why the same score can be a different grade depending on how many points were available.
Related Utilities
Frequently Asked Questions - FAQ
Is my score data private?
Yes. Every calculation runs in your browser with JavaScript. Nothing is uploaded, stored, or tracked.
What letter grade does a B start at?
On the standard US scale used here, a B starts at 83%. B+ begins at 87% and B- begins at 80%.
Can X be larger than Y?
Yes. If you earn bonus points, the percentage can exceed 100% and the grade is reported as A+.
How is the percentage rounded?
The result is rounded to two decimal places. 43 out of 50 becomes 86%, and 2 out of 3 becomes 66.67%.
What happens if I enter zero as the total?
Dividing by zero is undefined, so the calculator shows an error and asks you to enter a total greater than zero.
Last updated: