How the percentage calculator works
A percentage expresses a number relative to 100. For example, 20% means 20 out of every 100, or 0.2 times the reference amount. This calculator answers three different percentage questions. Choose the one you need under Question, then enter the two values shown.
- Choose "X% of Y" to find an amount. Enter the percent in Percentage and the reference number in Of.
- Choose "X is what % of Y" to compare a value with a total. Enter the value in Value and the reference total in Of total.
- Choose "% change" to compare a starting value with an ending value. Enter the starting value in From and the ending value in To.
The first option returns a number without a percent sign. The other two return percentages. A short explanation appears beneath the result; in percentage-change mode, it describes the rise or fall in the original units, not the percentage.
The percentage formulas
Find a percentage of a number
Divide the percentage by 100 to convert it to a decimal, then multiply by the reference number. Enter 20 for 20%, not 0.2: the calculator performs the division by 100.
Find what percentage one value is of another
The total can't be zero.
Divide the value by the total, then multiply by 100. The total is the reference: changing it changes the percentage even when the value stays the same.
Find percentage change
Initial is the From value and final is the To value; initial can't be zero. A negative result is a decrease.
Subtract the starting value from the ending value, divide by the magnitude of the starting value, and multiply by 100. A positive result means a rise, a negative result means a fall, and zero means no change. With a positive starting value, this is the usual percentage-change calculation.
Worked example with the default inputs
The calculator opens with "X% of Y" selected, Percentage set to 20%, and Of set to 150. First, 20 ÷ 100 = 0.2. Then 0.2 × 150 = 30. The result box shows 30 with the note "20% of 150 is 30".
The other modes also have default inputs. Switching to "X is what % of Y" compares 30 with 150: 30 ÷ 150 × 100 = 20%. Switching to "% change" compares 80 with 100: the increase is 20, and 20 ÷ 80 × 100 = 25%.
Compare percentage questions
| Question | Inputs | Result |
|---|---|---|
| X% of Y | 20% of 150 | 30 |
| X is what % of Y | 30 of a total of 150 | 20% |
| % change | From 80 to 100 | 25% |
| % change | From 100 to 80 | -20% |
| % change | From 80 to 80 | 0% |
Reversing the change from 80 to 100 does not simply reverse the percentage's sign. The difference is still 20, but the reference changes from 80 to 100. The explanation beneath a change result reports the size of the rise or fall; for unchanged values, its wording is "rise of 0" even though the result correctly indicates no change.
Tips for entering and using your numbers
- 1Identify the reference number. Ask which number means the whole or the starting point. Use that number in Of, Of total, or From, depending on the question. Reversing the inputs can answer a different question.
- 2Use matching units. For a part-to-total comparison or percentage change, express both inputs in the same unit. Convert them before entry if necessary; this calculator has no unit-conversion fields.
- 3Separate an amount from a final total. In X% of Y mode, the result is only the percentage amount. A 20% discount on 150 gives a discount of 30; subtract it yourself to get 120. For a 20% increase, add 30 to get 180.
- 4Keep intermediate values unrounded. If you use a result in another calculation, retain as much precision as possible until the final step. The calculator rounds displayed numbers to at most four decimal places and omits unnecessary trailing zeros.
Percentage calculator FAQ
What is the difference between percent change and percentage points?
Percentage points are the arithmetic difference between two percentages. A change from 20% to 25% is an increase of 5 percentage points, but a relative increase of 25%. Entering From = 20 and To = 25 in this calculator's % change mode returns the relative increase, 25%.
Do equal percentage increases and decreases cancel out?
No, because each change uses a different starting amount. Starting at 100, a 20% increase gives 120; a subsequent 20% decrease gives 96. Comparing the original 100 with the final 96 gives a net change of -4%.
Can I enter a percentage above 100% or a negative number?
Yes, the calculator does not restrict inputs to the range 0–100. For example, 150% of 80 is 120, and a negative percentage produces a negative amount when the reference number is positive. Whether those values make sense depends on what you are measuring.
Which zero inputs are allowed?
Of total cannot be zero, and From cannot be zero, because those fields are denominators. Zero is allowed elsewhere: 20% of zero is zero, and a Value of zero compared with a nonzero total gives 0%. A change from a positive number to zero is -100%, but a change from zero is undefined, including zero to zero.
Why does a percentage sometimes have four decimal places?
Some divisions produce repeating decimals. For example, a Value of 1 and an Of total of 3 gives 33.3333% after rounding to four decimal places. The displayed decimal is an approximation, so avoid treating every rounded result as an exact fraction.
Sources
- 16.2 Solve General Applications of Percent · OpenStax, Rice University · Accessed November 2026
- 2Calculating percent changes · U.S. Bureau of Labor Statistics · Accessed November 2026
- 3Percentages and percentage points · Office for National Statistics · Accessed November 2026
- 4How to understand and calculate percentages · House of Commons Library · Accessed November 2026