Percentage Difference Calculator
Compare two numbers when neither one is the starting point. Type them in any order to get the percentage difference, the gap between them and the size of their average, with every step written out.
From 80 to 100 is a +25% change; from 100 to 80 is a −20% change. For a move with a starting value, use the Percent Change Calculator.
- Find the gap: |80 − 100| = 20
- Find the average: (80 + 100) ÷ 2 = 90
- Divide the gap by it: 20 ÷ 90 ≈ 0.2222
- Multiply by 100: 0.2222 × 100 ≈ 22.22%
Formula: % difference = |A − B| ÷ |(A + B) ÷ 2| × 100
What is percentage difference?
Percentage difference tells you how far apart two numbers are, as a percent of their average. Neither number is treated as the starting value, so swapping them never changes the answer. It suits side-by-side comparisons: two shop prices, two lab readings, two survey results or two quotes for the same job.
When one number clearly came first, such as a price before and after a change, the move has a direction. For that, use the Percentage Increase Calculator or the Percentage Decrease Calculator. The line under each result here shows both directions, so you can see how they differ from the symmetric answer.
Percentage difference formula
% difference = |A − B| ÷ ((A + B) ÷ 2) × 100
The bars mean "size of". The gap |A − B| is never negative, and when both values are below zero the calculator divides by the size of the average, so −10 and −6 come out at 50%, not −50%.
Variable definitions
A, B: The two values you are comparing, in any order.|A − B|: The gap between them, always 0 or more.(A + B) ÷ 2: The average of the two values.|(A + B) ÷ 2|: The size of the average (without a minus sign), used as the base of the percent.
How to calculate percentage difference between two numbers
How do you calculate difference in percentage between two numbers by hand? Here are the four steps for 40 and 60:
- Find the gap: |40 − 60| = 20
- Find the average: (40 + 60) ÷ 2 = 50
- Divide the gap by it: 20 ÷ 50 = 0.4
- Multiply by 100: 0.4 × 100 = 40%
Starting with 60 instead of 40 gives the same 40%, because the gap and the average do not depend on the order.
Percentage difference examples
Each row shows how to calculate percentage difference between two figures, whatever order you type them in:
| Values | Gap | Average | Working | Percentage difference |
|---|---|---|---|---|
| 10 and 6 | 4 | 8 | 4 ÷ 8 × 100 | 50% |
| 80 and 100 | 20 | 90 | 20 ÷ 90 × 100 | ≈ 22.22% |
| 1 and 3 | 2 | 2 | 2 ÷ 2 × 100 | 100% |
Two shops price the same kettle at 80 and 100: the prices are 22.22% apart. Two test tubes hold 1 ml and 3 ml: they differ by 100%.
How to use this calculator
- Type the two numbers in Value A and Value B, in any order. A true minus sign, thousands commas and 1e6 style numbers are all read exactly.
- Choose 2 to 6 decimals for the display.
- Read the percentage difference, the gap and the size of the average.
- Check the written steps and the line comparing the change in each direction under the result.
Common mistakes
- Dividing by one of the two values. For 80 and 100, 20 ÷ 80 gives 25% and 20 ÷ 100 gives 20%. The percentage difference divides by the average, 90, and comes to 22.22%.
- Keeping a minus sign. The gap is a size, so 6 and 10 give 50% just like 10 and 6. A percentage difference is never negative.
- Using it for a before-and-after move. If one number is the starting value, you want the change from it, which this page only shows in the line under the result.
- Comparing values with opposite signs. The average can sit close to 0 and blow the percent up; see the next section.
Percentage difference in Excel and Google Sheets
Here is how to calculate percentage difference in Excel or Google Sheets: put the two values in A2 and B2, enter =ABS(A2-B2)/((A2+B2)/2) and format the cell as a percentage. With 45 in A2 and 55 in B2 the cell holds 0.2, shown as 20%.
If both values can be negative, wrap the average in ABS as well: =ABS(A2-B2)/ABS((A2+B2)/2). If the two cells can add up to 0, =IF(A2+B2=0,"",ABS(A2-B2)/ABS((A2+B2)/2)) leaves the cell blank instead of showing a divide-by-zero error.
When the percentage difference is undefined or misleading
- The values add up to 0. 5 and −5 have an average of 0, so there is nothing to divide by and the result is undefined. The calculator shows a message.
- The values have opposite signs. 10 and −2 are 12 apart but their average is only 4, so the formula would report 300%, a number that says little about the two values. The calculator shows a message instead.
- One value is 0. 0 and 10 give 200%, and so does 0 with any other number. That is the largest possible result, so it cannot tell a small gap from a large one.
- Tiny values. 0.1 and 0.3 give exactly 100%, the same as 100 and 300. The percent shows how far apart the values are compared with their size, so quote the absolute gap too when the amounts matter.
Browse the math calculators for related percentage, statistics and measurement tasks.
Frequently asked questions
›How do you calculate the difference in percentage between two numbers?
Take the gap between them, divide it by their average and multiply by 100. For 10 and 6: |10 − 6| ÷ ((10 + 6) ÷ 2) × 100 = 4 ÷ 8 × 100 = 50%.
›How do I find the percentage difference between two figures?
Use the same three steps on any pair. For 45 and 55 the gap is 10 and the average is 50, so 10 ÷ 50 × 100 = 20%.
›Does the order of the two numbers matter?
No. The gap and the average are the same whichever number comes first, so 80 and 100 give 22.22% and 100 and 80 also give 22.22%.
›Why is the percentage difference of 80 and 100 not 25%?
Because it divides the gap by the average of both numbers: 20 ÷ 90 × 100 ≈ 22.22%. A 25% figure divides by 80 alone, which measures a move with a starting value: going from 80 to 100 is a 25% increase (Percentage Increase Calculator), and going from 100 to 80 is a 20% decrease (Percentage Decrease Calculator).
›When is the percentage difference 100%?
When one value is three times the other. For 1 and 3: 2 ÷ 2 × 100 = 100%. 100 and 300 give 100% as well.
›What is the largest possible percentage difference?
200%, which happens when one of the values is 0. For 0 and 10: 10 ÷ 5 × 100 = 200%. For two positive numbers the answer always stays below that.
›What if the two values add up to zero?
Then their average is 0 and there is nothing to divide by, so the percentage difference is undefined. 5 and −5 are an example: the calculator shows a message instead of a number.
›Can both values be negative?
Yes. The calculator uses the size of the average, without its minus sign: for −10 and −6 the gap is 4 and the average is −8, so 4 ÷ 8 × 100 = 50%. Values with opposite signs, one above 0 and one below, are not meaningful to compare this way.
›What if both values are equal?
The gap is 0, so the percentage difference is 0%. For example, 7 and 7 give 0%.
Related calculators
If this helped, the following calculators are useful for everyday math problems:
- Percentage Increase CalculatorPercent growth from original to new value.
- Percentage Decrease CalculatorPercent drop from original to new value.
- Percentage CalculatorX% of Y, X is what % of Y, X is Y% of what.
- Percent Change CalculatorSigned % change between two values, the new-to-old ratio, and what the result means.
- Percent Off CalculatorSale price and savings after a discount.
- Discount CalculatorPercent or fixed discounts, stacked, with tax and quantity.