Percentage Calculator
Calculate percentages three ways: a percentage of a number, one number as a percentage of another, and the percentage change between two values. The formula used is shown with every result.
How to use
- Choose the calculation type: percent of a number, what percent, or percentage change.
- Enter your numbers in the labelled fields.
- Read the result — the exact formula used is displayed underneath.
- Adjust the values to explore related cases; the result updates as you type.
Example
Input: 20% of 150, and percentage change from 80 to 100
Output: 30, and +25% increase
How it works
A percentage is found with part ÷ whole × 100. The calculator also works backwards: given a percentage and a whole it finds the part, and given a part and a percentage it finds the whole.
What is X% of Y: X ÷ 100 × Y. Percentage change: (new − old) ÷ |old| × 100.
20% of 150 is 30. Going from 80 to 100 is a +25% change.
Edge cases to know
- Results display up to 6 decimal places; trailing zeros are trimmed.
- Percentage change uses the absolute value of the starting number as the base, so a move from −50 to −100 is a −100% change.
- Inputs are accepted up to JavaScript's safe integer range (±9,007,199,254,740,991).
Limits & compatibility
- Accepts numbers up to JavaScript's safe integer range (±9,007,199,254,740,991).
- Results display up to 6 decimal places; trailing zeros are trimmed.
- Percentage change uses the absolute value of the starting number as the base.
Privacy
All calculations run locally in your browser. Nothing is transmitted to a server, and no values are stored.
Related tools
Questions about Percentage Calculator
What percentage calculations can this tool do?
Three: what a percentage of a number is, what percentage one number is of another, and the percentage change between two numbers. It also works backwards — given a percentage and a whole it finds the part, and given a part and a percentage it finds the whole.
Why does my result show so many decimal places?
Results display up to 6 decimal places, with trailing zeros trimmed — so 20% of 150 shows as 30, while a repeating decimal keeps its precision instead of being rounded away silently.
How is percentage change calculated when the starting number is negative?
The change is divided by the absolute value of the starting number, so a move from −50 to −100 is a −100% change. The rule is stated on the page rather than hidden.
Is there a limit on the numbers I can enter?
Numbers are accepted up to JavaScript's safe integer range (±9,007,199,254,740,991). Beyond that, precision is no longer guaranteed.