Home / Free tools / Calculators / Percentage Difference Calculator
Percentage Difference Calculator
Compare two numbers when neither one is the starting point, such as two quotes, two suppliers or two measurements. Enter both values and read the percentage difference with the formula behind it. Nothing is uploaded.
Results update as you type. The address bar keeps your numbers, so you can bookmark or share the result.
Runs in your browser. Nothing you paste or choose is uploaded or stored.
What this calculator does
A percentage difference answers a simple question: how far apart are these two numbers, as a share of their size? It treats the two values as equals. There is no "before" and "after", so swapping them gives the same answer. That makes it the right measure when you compare two quotes from different couriers, the unit price of two similar products, or the same measurement taken by two instruments. When one value is clearly the starting point, a percent change is usually what you want instead, and this calculator lets you switch to that with one click.
Type the two values and the result appears as you type, rounded to four decimal places at most. Dollar signs, percent signs, spaces and thousands separators are accepted. The formula is shown under the result so that you can check it, and the numbers are kept in the page address so that you can bookmark or send the calculation. Nothing is uploaded or stored.
The formula
Percentage difference = |a - b| / ((a + b) / 2) x 100. The vertical bars mean "absolute value": the sign of the gap is dropped, so only its size counts. The denominator is the arithmetic mean of the two values, which is why the order of a and b does not matter.
- Percent change divides by the old value instead: (new - old) / |old| x 100. It has a direction and depends on the order of the numbers.
- Percentage difference divides by the average. It has no direction and is symmetric.
- Percentage error, which compares a measured value with a known true value, divides by the true value. It is a third calculation and is not the same as either of these two.
How to use it
- Enter the first and the second value. The calculation "Difference between two values" is already selected.
- Read the percentage difference. If the values are the wrong way round for your purpose, nothing changes, because the result is symmetric.
- To compare against a starting value instead, pick "Percent change from A to B" in the list. Your numbers stay in the boxes.
- Press Copy result to copy the answer with a link to the exact calculation, or Load an example to see 40 and 60 worked through.
Worked examples
Two courier quotes. One courier quotes $40 for a parcel and another $60. The gap is 20, the average is 50, and 20 / 50 x 100 = 40%. If you instead ask how much more expensive the second quote is than the first, that is a percent change of (60 - 40) / 40 = 50%. Both numbers are correct; they answer different questions, so quote the one that matches what you mean.
Order of the values. With 250 and 200 the gap is 50 and the average is 225, so the percentage difference is 22.2222% whichever value you enter first. As a percent change, 250 to 200 is -20% and 200 to 250 is +25%.
Two product weights. A supplier lists a mug at 340 g and your scale reads 352 g. The gap is 12 and the average is 346, so the difference is 3.4682%. A difference of about 3.5% may be fine for ceramics but too much for something sold by weight.
Very different values. Comparing 10 with 100 gives a gap of 90 and an average of 55, so the percentage difference is 163.6364%. The result can be above 100% because the denominator is the average and not the larger value.
Where sellers use it
- Comparing suppliers or carriers. It gives a neutral figure for two prices without calling either one the baseline. For the shipping side, the dimensional weight calculator shows how carriers arrive at the weight they bill.
- Checking a price mismatch. If the price in your feed and on your product page differ, the gap as a share of the average shows how serious it is. The price and availability mismatch checker finds the actual mismatches.
- Understanding a sale. To describe a discount from the regular price, use percent change or the percent off calculator, because the regular price is the base.
- Growth and decline. Month-on-month movement has a clear starting point, so use the percentage increase calculator or the percentage decrease calculator.
What the result does not tell you
A percentage difference is a size comparison, not a verdict. It does not say which value is better, and it can look large when both numbers are small. Two values that differ by 1 and 3 are 100% apart, yet the gap is only 2. When you report a figure, say which formula you used, because "40% more" and "40% apart" are different claims. If you are checking measurements against a known standard, use percentage error. If the two values sum to zero, the average is zero and the result is not defined, so the calculator says so instead of showing a number.
Questions
How do I calculate the percentage difference between two numbers?
Subtract the smaller from the larger, divide by the average of the two numbers and multiply by 100. For 40 and 60: 20 / 50 x 100 = 40%.
Is percentage difference the same as percent change?
No. Percent change measures a new value against an old one, so the order matters: 40 to 60 is +50% and 60 to 40 is -33.33%. Percentage difference divides by the average of the two numbers, so 40 vs 60 and 60 vs 40 are both 40%.
When should I use percentage difference instead of percent change?
Use it when neither value is the original, for example two competing price quotes, two lab measurements or two similar products. Use percent change when one value came first, such as last month's and this month's sales.
Can the percentage difference be more than 100%?
Yes. Comparing 10 with 100 gives 90 / 55 x 100 = 163.64%. The result is relative to the average, so it can exceed 100% when the values are far apart. The maximum for two positive numbers is 200%, reached when one value is 0.
What happens if one of the numbers is negative?
The formula still works as long as the average is not 0. Because the denominator is the average of the two values, mixed signs can make the average small and the result very large, so check that the comparison makes sense for your data. If the two values add to 0, the result is not defined.
Does the calculator store my numbers?
No. It runs in your browser. The numbers are kept only in the page address so that you can bookmark or share a result, and nothing is uploaded.
Google, Merchant Center, YouTube, LinkedIn, Indeed, Glassdoor and Shopify are trademarks of their owners. Van Born Labs is independent and not affiliated with them. Google's own help pages are the final word on its rules.