Math
Percentage Calculator
What is 20% of a number? What percentage is one number of another? Choose the calculation that matches your question, including simple score percentages.
Your details
Enter your details below
Your result
Based on the values you enter
Useful next checks
- Use the result to check your working or homework.
- Change one input at a time to see how the answer moves.
- Read the method below if you want the steps.
Intro
What is 20% of a number? What percentage is one number of another? This percentage calculator answers both questions and compares percentage changes. You can also calculate a simple score percentage from marks earned and marks available.
What this percentage calculator does
Choose the mode that matches your question, then enter the values. The calculator can help with shopping, schoolwork, finance checks, statistics, and everyday comparisons.
Common uses include:
- Find 20% of 150.
- Find what percentage 20 is of 150.
- Find the percentage increase or decrease from one value to another.
- Check discount, tax, tip, or growth calculations.
How it works
The formula depends on the mode:
- What is X% of Y? Result = X / 100 x Y.
- X is what % of Y? Result = X / Y x 100. Y must be non-zero.
- Percentage change from X to Y: Result = (Y - X) / abs(X) x 100. X is the original value; Y is the new value.
Here, abs(X) means the absolute value, or magnitude, of X. For example, abs(-100) = 100. Only the denominator uses absolute value: the difference Y - X keeps its sign. For a positive starting value, this is the familiar formula that divides the change by the original value.
Example calculation
20% of 150 is 30 because 20% is 0.20 and 150 x 0.20 = 30.
If 20 is compared with 150, then 20 / 150 x 100 = 13.33%, so 20 is about 13.33% of 150.
For a test score of 18 marks out of 24, choose the part/whole mode: 18 / 24 x 100 = 75%. This answers “What percentage of the marks did I get?” It does not apply grading boundaries, assign a letter grade or calculate a weighted course grade.
For the percentage-change mode:
| Original X | New Y | Calculation | Result |
|---|---|---|---|
| 80 | 100 | (100 - 80) / 80 x 100 | 25% |
| 100 | 80 | (80 - 100) / 100 x 100 | -20% |
| -100 | -50 | (-50 - (-100)) / 100 x 100 | 50% |
| -100 | -150 | (-150 - (-100)) / 100 x 100 | -50% |
From -100 to -50, the numerical change is +50 and the starting magnitude is 100, so this calculator returns +50%. Dividing by the signed original value of -100 instead would give -50%; that is a different convention.
How to use the result
Check that the mode matches the wording of your question. "20% of 150" and "20 as a percentage of 150" are different questions, so they produce different results.
In change mode, a positive result means the new number is higher, a negative result means it is lower, and zero means no change. With a negative starting value or a comparison that crosses zero, read this as signed change relative to the starting magnitude. It is not a universal growth-rate or financial-return definition; check the convention required for your data.
For sale prices, use the Discount Calculator. For before-and-after changes, use the Percentage Increase Calculator.
Assumptions and limitations
- A zero original value makes the change formula undefined because abs(0) is zero.
- This calculator's current change mode also rejects a zero new value. For a non-zero original value ending at zero, use the Percentage Increase Calculator, which accepts that comparison.
- Zero can be used in percentage-of mode; part/whole mode requires a non-zero whole. These modes do not use the absolute-value change formula.
- Negative starting values use the convention explained above. A near-zero starting magnitude can produce a very large percentage.
- Rounding may cause small differences from manual calculations.
- Choose the mode carefully; the calculator does not decide which percentage question you mean.
Sources and method
OpenStax explanation of absolute value explains magnitude as distance from zero. The BLS percentage-change example subtracts the earlier positive index from the later index and divides by the earlier index. Neither reference establishes a universal negative-baseline growth convention; the negative-value examples here describe this calculator's existing method.
Frequently asked questions
What is the easiest percentage formula?
For part of a whole, use part divided by whole, then multiply by 100.
Why is percentage change from zero undefined?
The change formula divides by abs(original value). When the original value is zero, the denominator is zero, so the calculation is undefined.
How does percentage change work with a negative starting value?
This calculator uses (new - original) / abs(original) x 100. From -100 to -50 it returns +50%, using the starting magnitude of 100. This convention is not a universal growth-rate definition.
Can the new value be zero in change mode?
This calculator currently rejects a zero new value in change mode. The linked Percentage Increase Calculator accepts zero as the new value when the original value is non-zero.
Can percentages be over 100%?
Yes. A value can be more than 100% of another value, and an increase can exceed 100%.
Is a percentage point the same as a percent?
No. Moving from 5% to 6% is a 1 percentage point increase, but a 20% relative increase.
Can I calculate percentage change?
Yes. Choose the percentage change mode and enter the old and new values.
Why do some results need a non-zero value?
Division by zero is undefined, so some percentage calculations cannot use zero as the denominator.