Skip to content
CalcTide logo
Education & Math

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.

Education & MathBy

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

  1. 1Enter the first value.
  2. 2Enter the second value. The order does not affect the result.
  3. 3Read the percentage difference, with the raw gap and the average shown below it.
  4. 4Compare the percentage difference to any threshold you care about, such as an acceptable margin between two lab readings or two vendor bids.
  5. 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 100

Take 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

Value A40
Value B60
Result40% difference

The $20 gap divided by the $50 average gives 0.40.

Two stores price an item at $95 and $105

Value A95
Value B105
Result10% difference

The $10 gap against the $100 average is exactly 10%.

Lab measurements of 4.8 and 5.2

Value A4.8
Value B5.2
Result8% difference

The 0.4 gap divided by the 5.0 average gives 8%, a common check in physics labs.

Annual salaries at two companies

Value A52000
Value B58000
Result10.91% difference

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

Value A85
Value B92
Result7.91% difference

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

Value A1200
Value B1350
Result11.76% difference

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 AValue BDifference
406040%
9510510%
5010066.67%
202522.22%
80800%
1030100%

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/.

Frequently Asked Questions

Divide the absolute gap between the two numbers by their average, then multiply by 100. For 40 and 60 that is 20 / 50 x 100 = 40%.
40%. The gap is 20 and the average is 50, and 20 divided by 50 is 0.40.
No. Percentage difference uses the absolute gap and the average, so 40 vs 60 and 60 vs 40 both give 40%.
Percentage change measures movement from an old value to a new one, so it divides by the old value. Percentage difference compares two equal-standing values and divides by their average.
Yes. Comparing 10 and 30 gives 100%, and wider gaps push higher. The maximum for positive numbers approaches 200% as one value dwarfs the other.
Use it when neither number is the baseline, like two competing prices, two lab readings, or two survey results taken the same day.
No. Percentage error divides the gap between a measured value and a known correct value by that correct value, while percentage difference divides the gap between two equally valid values by their average. Use percentage error only when one number is an accepted true figure.
No. The formula uses the absolute value of the gap between the two numbers, so the result is always zero or a positive percentage, even when the second value entered is smaller than the first.
Subtract one value from the other, wrap that in an ABS() function, divide by the AVERAGE() of the two values, and multiply by 100. In Excel or Google Sheets, a formula like =ABS(A1-B1)/AVERAGE(A1,B1)*100 reproduces the same math this calculator uses.
It estimates percentage difference calculator outputs using the visible inputs and formula assumptions on this page.

Explore More in Education & Math