Percentage Difference Calculator
The percentage difference between 40 and 60 is 40%, because the 20-point gap is measured against their average of 50. This percentage difference calculator compares two values of equal standing, like two prices, two test scores, or two lab measurements, and returns the percent gap between them. Unlike percentage change, the order you enter the numbers makes no difference to the result, since the formula treats both entries as equal partners rather than a before-and-after pair. Enter a first value and a second value in any order. The calculator finds the absolute gap between them, divides that gap by their average, and multiplies by 100 to produce a single percentage. The result appears immediately alongside the raw gap and the average of the two numbers, so you can see how the percentage was built instead of trusting a black box. Percentage difference shows up any time two independent measurements need a fair, symmetric comparison: two vendor quotes for the same job, two thermometers reading the same room, two surveys run on the same day, or two lab results checked against each other. If one number is clearly the starting point and the other is what it became later, use a percentage change calculator instead, since that measure divides by the original value rather than the average and is not symmetric.
Quick answer
Percentage difference compares two values against their average, not against one of them.
Percentage difference
40%
Absolute difference
20
Average
50
What this tells you
- •Percentage difference compares two values against their average, not against one of them.
- •The formula is |a - b| / ((a + b) / 2) x 100.
- •It is symmetric, so comparing 40 to 60 gives the same answer as comparing 60 to 40.
- •Use it when neither value is the natural starting point. When one clearly comes first, use percentage change instead.
- •The result is always zero or positive, because the numerator uses the absolute value of the gap.
- •It works well for comparing two competing measurements taken at the same time, like two price quotes or two lab readings.
- •It is not the same as percentage error, which measures a value against a known or accepted true figure instead of an average.
How to Use
- 1Enter the first value.
- 2Enter the second value. The order does not affect the result.
- 3Read the percentage difference, with the raw gap and the average shown below it.
- 4Compare the percentage difference to any threshold you care about, such as an acceptable margin between two lab readings or two vendor bids.
- 5Both values must be positive numbers that measure the same kind of thing, like two prices in the same currency or two lengths in the same unit.
How It Works
Formula
percentage difference = |a - b| / ((a + b) / 2) x 100Take the absolute gap between the two values, divide by their average, and multiply by 100. For 40 and 60 the gap is 20 and the average is 50, so the difference is 40%. Dividing by the average rather than one of the values is what makes the measure symmetric and fair to both numbers, since neither value is treated as more correct than the other. Both inputs must be zero or greater, and the calculator returns no result when both values are zero, because the average in the denominator would also be zero and the division would be undefined.
Calculation note: values are processed in the order shown above, using the current input units.
Worked Examples
Two quotes for the same job
The $20 gap divided by the $50 average gives 0.40.
Two stores price an item at $95 and $105
The $10 gap against the $100 average is exactly 10%.
Lab measurements of 4.8 and 5.2
The 0.4 gap divided by the 5.0 average gives 8%, a common check in physics labs.
Annual salaries at two companies
The $6,000 gap between the two salary offers is measured against their $55,000 average, giving 6,000 / 55,000 x 100 = 10.91%. Because percentage difference is symmetric, it does not matter which offer is entered first.
Two class averages of 85 and 92
The 7-point gap divided by the 88.5 average of the two class scores gives 7.91%. A teacher comparing two sections on the same test would read this as a moderate spread rather than a dramatic one.
Monthly rent quotes of $1,200 and $1,350
The $150 gap between the two rent quotes divided by their $1,275 average comes out to 11.76%. Since neither listing is the original price with the other a markdown, percentage difference is the right measure here rather than percentage change.
Percentage Difference Examples
Pairs of values and their percentage difference, always measured against the average.
| Value A | Value B | Difference |
|---|---|---|
| 40 | 60 | 40% |
| 95 | 105 | 10% |
| 50 | 100 | 66.67% |
| 20 | 25 | 22.22% |
| 80 | 80 | 0% |
| 10 | 30 | 100% |
Common mistakes
- Using percentage difference when you mean percentage change. If one value is the before and the other the after, divide by the before value, not the average.
- Dividing by one of the two values. The denominator is the average of both, which is why 50 vs 100 is a 66.67% difference and not 50% or 100%.
- Comparing values in different units. Both numbers must measure the same thing on the same scale for the result to mean anything.
- Confusing percentage difference with percentage error. Percentage error compares a measured value against a known correct value and divides by that correct value, not by the average of two arbitrary numbers.
- Expecting a negative result. Because the formula uses an absolute value, percentage difference can never be negative, even when the second number entered is smaller than the first.
- Rounding the gap or the average before dividing. Round only the final percentage, since rounding early can shift a result like 22.22% to something noticeably different.
Embed this calculator on your site
Drop this single line where you want the calculator to appear. It is responsive, mobile-friendly, resizes automatically, and is free to use with attribution.
<script src="https://calctide.com/embed.js" data-tool="percentage-difference-calculator" async></script>Preview the embed at /embed/percentage-difference-calculator/.