Percentage Calculator
Percentage Calculator shows three independent calculators at once, each with its own pair of inputs.
What is X% of Y?
% of =X is what % of Y?
is what % of =% change from X to Y
to =How to use it
- Pick the calculator you need — X% of Y, X is what % of Y, or % change from X to Y
- Type the two values into its fields
- Read the result next to that calculator; it updates as you type
"What is X% of Y" multiplies, so 20% of 50 is 10; its result is printed unrounded, so 33% of 10 reads as 3.3000000000000003. "X is what % of Y" divides X by Y and multiplies by 100, rounded to two decimals; if Y is 0 it returns 0 rather than an error. "% change from X to Y" is (Y minus X) divided by the absolute value of X, times 100, rounded to two decimals; if the starting value X is 0 and Y is not, the field shows "Infinity%". Negative values work, and an empty field counts as 0. Everything is computed in the page as you type.
FAQ
Top: X% of Y, a multiplication. Middle: what percentage X is of Y, that is X divided by Y times 100. Bottom: the change from a start value X to an end value Y, (Y minus X) divided by the absolute value of X, times 100.
The 'X% of Y' result is printed exactly as computed, with no rounding. The other two calculators round to two decimal places.
If X is 0 and Y is not, percentage change is undefined and the field shows 'Infinity%'. If both are 0 it shows 0%. Separately, 'X is what % of Y' returns 0 when Y is 0.