A percentage difference calculator tells you how far apart two numbers are, using their average as the base. It is the right choice when neither number is the “old” one, for example when you compare the price of two phones, the size of two cities or the scores of two students. You can test your own numbers with our free percentage calculator, and this guide will show you how the answer is worked out.
Try the tool first: Open the RandomsDex Percentage Calculator, enter your two values and read the result right away. It is free, needs no account and works on any device.

Table of Contents
- What Is Percentage Difference?
- How a Percentage Difference Calculator Works
- Worked Examples
- Percentage Difference vs Percentage Change
- A Quick Way to Check Your Answer
- When to Use It
- Common Mistakes
- Practical Tips
- Frequently Asked Questions
What Is Percentage Difference?
Percentage difference measures the gap between two values as a share of their average. The word “average” matters here. When you compare two things that stand side by side, there is no starting point and no finishing point. Phone A costs 800 and Phone B costs 900. Which one is the base? You could argue for either, and the answer would change depending on your choice. Percentage difference solves this problem by using the middle of the two numbers as the base, so the result is the same no matter which number you list first.
That is the big idea: the order does not matter. The difference between 800 and 900 is the same as the difference between 900 and 800. The answer is also always a positive number, because we only care about how far apart the values are, not which one is bigger.
If you do have a clear “before” and “after”, you want a different tool. Our guide on the percentage change calculator explains that case in full.
How a Percentage Difference Calculator Works
The formula looks a little longer than the one for percentage change, but it is easy once you split it into steps:
Percentage difference = (|A − B| ÷ ((A + B) ÷ 2)) × 100
The two vertical bars mean “absolute value”, which simply means you ignore any minus sign. Here are the four steps:
- Subtract the smaller number from the larger number. This gives you the gap.
- Add the two numbers together and divide by 2. This gives you the average.
- Divide the gap by the average.
- Multiply by 100 to turn the result into a percentage.
A percentage difference calculator runs these steps for you in a moment. You enter the two values, and it returns the answer. If you want to see how basic percentages work before moving on, read how to calculate a percentage first.
Worked Examples
Let us walk through five real situations.
Example 1: Two Test Scores
Sara scored 72 and Ali scored 90. The gap is 90 − 72 = 18. The average is (72 + 90) ÷ 2 = 81. Divide 18 by 81 and you get about 0.2222. Multiply by 100 and the percentage difference is 22.22%.
Example 2: Two Phone Prices
One phone costs 800 and another costs 900. The gap is 100. The average is 850. Divide 100 by 850 and you get about 0.1176, so the difference is 11.76%.
Example 3: Two Schools
School A has 250 students and School B has 350 students. The gap is 100. The average is 300. Divide 100 by 300 and you get 0.3333, so the difference is 33.33%.
Example 4: Two Small Numbers
Compare 10 and 20. The gap is 10. The average is 15. Divide 10 by 15 and you get 0.6667, so the difference is 66.67%.
Example 5: Two Equal Numbers
Compare 50 and 50. The gap is 0, so the percentage difference is 0%. Two identical numbers have no difference at all.
| Value A | Value B | Gap | Average | Percentage difference |
|---|---|---|---|---|
| 72 | 90 | 18 | 81 | 22.22% |
| 800 | 900 | 100 | 850 | 11.76% |
| 250 | 350 | 100 | 300 | 33.33% |
| 10 | 20 | 10 | 15 | 66.67% |
| 50 | 50 | 0 | 50 | 0% |
Percentage Difference vs Percentage Change
These two ideas sound alike, but they answer different questions. Take the numbers 40 and 60.
If 40 is last year’s figure and 60 is this year’s figure, you have a before and after. The percentage change is (60 − 40) ÷ 40 × 100 = 50%. The value grew by half.
If 40 and 60 are simply two separate things, such as the weights of two parcels, there is no before and after. The percentage difference is 20 ÷ 50 × 100 = 40%. Same numbers, two different answers, and both are correct for their own question.
A simple rule helps. Ask yourself, “Did one number turn into the other over time?” If yes, use percentage change. If no, use percentage difference. For a deeper look at growth and decline, our article on percentage increase vs decrease is a good next read.
A Quick Way to Check Your Answer
Before you trust any result, do a fast sanity check. The percentage difference is always smaller than the gap divided by the smaller number, and always bigger than the gap divided by the larger number. Take 72 and 90 again. The gap is 18. Divided by the smaller number, 72, that is 25%. Divided by the larger number, 90, it is 20%. Our answer of 22.22% sits right between the two, which is exactly where it should be.
This little test catches most slips. If your answer lands outside that range, one of the steps went wrong, and it is worth going back to check the subtraction and the average. A second trick is to round the numbers in your head. For 800 and 900, the gap is about 100 and the average is about 850, so the answer should be close to one-eighth, or roughly 12%. The exact result of 11.76% fits nicely.
When to Use It
A percentage difference calculator is handy whenever you compare two items that are equal in standing. Some everyday cases include:
- Shopping: compare the prices of two brands, two shops or two models.
- Science class: compare a measured result with another measured result.
- Sports: compare the times or scores of two athletes.
- Business: compare the sales of two branches or two products.
- Quality checks: see how far two readings from the same machine are apart.
- Personal choices: compare the salaries of two job offers.
In each case you want one fair number that says how far apart the two values are, without picking a side.
Common Mistakes to Avoid
Using one of the numbers as the base. Dividing by only one of the values is the most common error. The base must be the average of both.
Forgetting to divide the sum by 2. Some people add the two numbers and stop there. That gives you the total, not the average, and the answer will come out half as big as it should be.
Leaving out the absolute value. If you subtract the bigger number from the smaller one, you get a minus sign. Percentage difference is normally written as a positive number, so drop the sign.
Using it when a before and after exists. If the numbers describe the same thing at two points in time, a percentage difference calculator is not the best fit. Use the change formula instead.
Rounding too early. Keep the full decimals through every step, and round only the final answer.
Practical Tips
- Make sure both numbers use the same unit. Comparing kilograms with grams gives nonsense.
- Remember that very different numbers can still give a result above 100%. For example, 5 and 50 give a difference of about 163.6%.
- If one value is zero, the result is always 200%, because the gap equals twice the average. This is a quirk of the formula, so treat it with care.
- If you only need to know what share one number is of another, use a different method. Our guide on how to calculate a percentage of any number covers it.
- Always say which method you used when you share a result. “A 40% difference” and “a 50% change” can describe the very same pair of numbers.
Frequently Asked Questions
How do you find the percentage difference between two numbers?
Take the gap between the numbers, divide it by their average, and multiply by 100. For 30 and 50, the gap is 20, the average is 40, and 20 ÷ 40 × 100 = 50%.
Does the order of the numbers matter?
No. Because the base is the average of both values, swapping them gives exactly the same answer. This is what makes the method fair for two items that have no natural order.
Can the percentage difference be negative?
Normally it is shown as a positive number, since it only measures distance between two values. A negative sign would suggest a direction, and the average-based formula has none.
Is percentage difference the same as percent error?
No. Percent error compares a measured value with a known true value, and it divides by the true value. Percentage difference compares two values that are both just measurements.
Where can I use a percentage difference calculator for free?
You can use the RandomsDex Percentage Calculator. It is free, needs no sign up and works in any browser.
Final Thoughts
When two values stand side by side, the average is the fairest base to compare them. That is why percentage difference gives the same answer in either order and why it suits shopping, school and quality checks so well. Remember the four steps: find the gap, find the average, divide, and multiply by 100. If you ever feel unsure, a percentage difference calculator will confirm your work in seconds.
Want to check your own numbers right now? Go to the Percentage Calculator and try the examples above.