Percentage calculator
“Percent” answers three different questions. Type a number, then read the formula underneath.
Percentage of a number
Example: percent 15 and base 80 gives 12.
Percent change
Example: start 80 and new 100 gives 25. Start 0 has no percent change.
Percent difference
Example: 80 and 100 gives 22.22222222, shown to 8 decimal places.
Percentage of a number
percent of base = (percent ÷ 100) × base
15% of 80 is (15 ÷ 100) × 80 = 12. Zero percent of any finite number is 0. Any finite percent of 0 is 0. A negative percent reverses the sign: −10% of 80 is −8.
Percent change
percent change = ((new − start) ÷ start) × 100
From 80 to 100, the change is ((100 − 80) ÷ 80) × 100 = 25. The new value is 25% larger than the start. From 100 to 80, ((80 − 100) ÷ 100) × 100 = −20, a 20% decrease. The two directions are not equal in size, because each one uses a different starting value as the whole.
If the starting value is 0, the formula divides by zero. That includes a change from 0 to 0. The result is not defined, and the calculator says so instead of inventing a number.
Percent difference
Percent difference compares two values without treating either as the “before.” This page uses the average of their absolute values as the reference, so the result does not depend on order. It is not percent error, which would divide by a designated true value.
percent difference = (|a − b| ÷ ((|a| + |b|) ÷ 2)) × 100
For 80 and 100, the gap is 20 and the reference average is 90, so 20 ÷ 90 × 100 = 22.222…%. Swapping the inputs gives the same result. If the two values are equal and not both zero, the difference is 0%. If both are 0, the reference is 0 and the result is not defined.
Rounding and limits
The page uses ordinary binary floating-point arithmetic. Results are shown to 8 decimal places, or in scientific notation when the magnitude is extreme. That is enough for everyday figures and the wrong tool for tax, dosage, or any rule that names its own rounding. Commas in numbers are rejected so that 1,000 is not silently read as 1.
The word “percent” here means “per hundred,” the ordinary meaning used with the percent sign in the NIST Guide for the Use of the International System of Units (Special Publication 811). The three formulas are the definitions this calculator applies. They are not a claim that one of them is the only valid “percent.”