250 to 310 is +24%
- From
- 250
- To
- 310
Percentage change24%
arithmetic identity
Open this examplePercentage change between two values, in either direction, with the absolute change shown alongside. Handles a negative starting value, which most calculators get wrong.
Also called: percent change, percentage difference between two numbers.
From 250 to 310 is a an increase of 24%, an absolute change of 60.
The difference over the original value. The subtlety is the denominator: dividing by the absolute value of the start keeps the sign of the change meaningful when the starting figure is negative. A loss shrinking from −100 to −50 is a 50% improvement, not a −50% one.
change = (to - from) / abs(from) * 100Each of these is asserted on every build. If a change to the engine ever moved one of these answers, the build would fail before the page could print it.
Percentage change24%
arithmetic identity
Open this examplePercentage change50%
boundary: a shrinking loss is an improvement
Open this examplePercentage change0%
degenerate case: guarded division
Open this example