What This Calculator Does
This Percent of Total Calculator answers the everyday question: "x is what percent of y?" Enter the part (x) and the whole (y), and it returns x expressed as a percentage of y. It works for any pair of numbers — test scores, budgets, sales figures, survey results, or recipe quantities.
How to Use It
Type the part value into the Part (x) box and the total into the Whole (y) box, then read the result. For example, if you scored 45 marks out of 60, enter 45 and 60 to see the percentage. The calculator handles decimals and large numbers, and it safely returns 0% when the whole is zero.
The Formula Explained
The math is simple division scaled to 100:
$$\text{percent} = \left(\frac{x}{y}\right) \times 100$$
Dividing x by y gives the fraction of the whole that x represents (a value between 0 and 1 when x is smaller than y). Multiplying by 100 converts that fraction into a familiar percentage.
Worked Example
Suppose 25 students out of a class of 200 passed an exam. Plug in \(x = 25\) and \(y = 200\):
$$\left(\frac{25}{200}\right) \times 100 = 0.125 \times 100 = \mathbf{12.5\%}$$
So 25 is 12.5% of 200.
FAQ
What if x is larger than y? The result is simply greater than 100%. For example, 150 out of 100 is 150%.
Can I use decimals? Yes. Both x and y accept decimal values, and the result is rounded for display while keeping full precision internally.
What does it do when y is 0? Division by zero is undefined, so the calculator returns 0% to avoid an error.