AI Tools Free

Percent Difference Calculator

Enter two nonnegative numbers up to 1,000,000,000 into this percent difference calculator to divide their absolute gap |a - b| by their arithmetic average (a + b) / 2 and express the result up to 12 significant digits.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate result.

Your result
Enter your details

Result will appear here

Percent difference calculation formula and how this calculator works

The Percent Difference Calculator is a browser-based comparison utility that evaluates |a - b| / ((a + b) / 2) × 100% for any two nonnegative numbers up to 1 billion (a + b > 0). Because it uses the midpoint of both inputs as the baseline, this percent difference calculation produces the exact same percentage whether you enter a first or b first.

|a - b| / ((a + b) / 2) × 100%, where a >= 0, b >= 0, and a + b > 0.

Divides the absolute gap |a - b| by the midpoint (a + b) / 2 so neither number is privileged as the starting baseline (see our Percent Change Calculator, Percent Error Calculator, Rounding Calculator, and Significant Figures Calculator).

Diagram showing |80 - 100| / ((80 + 100) / 2) × 100% = 22.2222222222%
With First nonnegative value = 80 and Second nonnegative value = 100, the gap 20 divided by the midpoint 90 equals 22.2222222222%.

Symmetric Percent Difference vs Percent Change Reference Table

Compare 10 benchmark nonnegative value pairs showing how this calculator's symmetric midpoint formula (|a - b| / ((a + b) / 2) × 100%) compares against directional percent change ((b - a) / a × 100%).

Comparison ScenarioFirst Value (a)Second Value (b)Absolute Gap (|a - b|)Midpoint ((a + b) / 2)Percent DifferenceDirectional Change (a -> b)
Preloaded quote pair80100209022.2222222222%+25% (-20% if 100 -> 80)
Reversed quote pair10080209022.2222222222%-20%
Identical measurements50500500%0%
Tight lab replicates9810241004%+4.08163265306%
Pendulum period trials2.012.050.042.031.97044334975%+1.99004975124%
3 : 4 ratio pair751002587.528.5714285714%+33.3333333333%
1 : 2 doubling ratio50100507566.6666666667%+100%
1 : 3 ratio (100% mark)25755050100%+200%
1 : 9 wide ratio (b > 3a)10908050160%+800%
Zero vs positive ceiling010010050200%Undefined (÷ 0)

How to calculate percent difference in 3 steps

Follow these three steps to calculate percent difference between two numbers in your browser.

Enter the first nonnegative value

Type your first number a from 0 to 1,000,000,000 into the First nonnegative value field (80 is preloaded by default).

Input and settings
Percent Difference Calculator input fields populated with First nonnegative value 80 and Second nonnegative value 100
Step 1: Enter two nonnegative numbers up to 1,000,000,000.

Specify the second nonnegative value

Provide the comparison number b (100 by default, up to 1 billion) in the Second nonnegative value box, making sure at least one input is positive.

Tool result
Percent Difference Calculator result panel showing 22.2222222222% for 80 and 100
Step 2: Click Calculate result to evaluate |a - b| / ((a + b) / 2) × 100%.

Click Calculate result and export the output

Press Calculate result to evaluate |a - b| / ((a + b) / 2) × 100%, then use Copy or Download (result.txt) to save the percentage.

Review the details
Percent Difference Calculator output panel with Copy and Download result.txt buttons
Step 3: Copy the formatted percentage or download result.txt.

Percent difference calculation examples: quotes, physics, and Excel

See how to calculate percent difference between two numbers across procurement price quotes, replicate physics lab trials, and spreadsheet ratio thresholds.

Vendor quote comparison (80 vs 100 = 22.2222222222%)

When two freight carriers quote $80 and $100 for the same shipping lane, neither vendor is an 'old' chronological baseline. Subtracting gives |80 - 100| = 20 and averaging gives (80 + 100) / 2 = 90, so (20 / 90) × 100% = 22.2222222222%. If you want to view 80 and 100 as a simplified 4 : 5 integer ratio alongside the percentage, open our Ratio Calculator.

Worked example showing |80 - 100| = 20 divided by midpoint 90 to yield 22.2222222222%
Comparing $80 and $100 against their midpoint $90 yields 22.2222222222%.

Physics replicate trials (2.01 s vs 2.05 s)

In introductory physics and chemistry labs, comparing two independent experimental measurements of the same unknown quantity (such as two stopwatch runs of a pendulum period, a = 2.01 s and b = 2.05 s) requires percent difference rather than percent error. The absolute gap is |2.01 - 2.05| = 0.04 s and the average period is (2.01 + 2.05) / 2 = 2.03 s, giving (0.04 / 2.03) × 100% = 1.97044334975% (which rounds to 2.0% at two significant figures).

Worked example showing two pendulum trials 2.01 s and 2.05 s differing by 1.97044334975%
Two replicate pendulum trials (2.01 s and 2.05 s) differ by 0.04 s over a 2.03 s mean (1.97044334975%).

Excel auditing and the 1 : 3 (100%) threshold

Spreadsheet users can replicate the exact calculation in Excel or Google Sheets with =ABS(A2-B2)/AVERAGE(A2,B2) formatted as 0.00%. Whenever one nonnegative value is three times the other (for example, a = 25 and b = 75), the gap |25 - 75| = 50 equals the midpoint (25 + 75) / 2 = 50, producing 100%. For basic part-to-whole percentages or sales tax markups, use our Percentage Calculator or Mean Absolute Percentage Error Calculator.

Worked example illustrating =ABS(A2-B2)/AVERAGE(A2,B2) and why 25 vs 75 equals 100%
At a 1 : 3 ratio (25 vs 75), the absolute gap 50 equals the midpoint 50, returning 100%.

Interpreting percent difference vs percent change and percent error

Choosing the right relative comparison formula depends entirely on which denominator represents your baseline:

First, percent difference (|a - b| / ((a + b) / 2) × 100%, used here) compares two peer nonnegative numbers (a and b) taken at the same level of authority when neither came first and neither is an accepted standard. Order does not matter (80 vs 100 equals 100 vs 80).

Second, percent change (((b - a) / |a|) × 100%) compares a chronological 'before' value (a) to an 'after' value (b), where rising from 80 to 100 is +25% and falling from 100 to 80 is -20% (use our Percent Change Calculator). Third, percent error ((|observed - reference| / |reference|) × 100%) compares a measurement against a certified reference constant (use our Percent Error Calculator).

Comparison of midpoint denominator (a + b) / 2, chronological |old|, and theoretical |reference|
Percent difference divides by the midpoint (a + b) / 2 rather than an initial or theoretical baseline.

Percent difference calculator input rules (0 to 1B) and 200% cap

Keep these three boundary rules in mind before running a calculation:

First, entering 0 in both First nonnegative value (#a) and Second nonnegative value (#b) makes both the gap and the average equal 0 (0 / 0) and triggers 'At least one value must be positive.' Both fields accept integers or decimals (step=any) from 0 to 1,000,000,000; negative numbers are excluded so opposite values cannot cancel the midpoint to 0.

Second, when one value is 0 and the other is any positive number b > 0, the gap is b and the average is b / 2, so (b / (b / 2)) × 100% = 200%, which is the theoretical ceiling for nonnegative inputs.

Summary of the 0 to 1 billion input bounds, a + b > 0 rule, and 200% upper bound
Requires nonnegative inputs up to 1,000,000,000 with at least one positive value (maximum output 200%).

Frequently asked questions about the percent difference calculator

Answers about using Percent Difference Calculator and understanding its results.

How do you calculate percent difference between two numbers by hand?

Subtract one number from the other and take the absolute value |a - b|, divide that gap by the arithmetic mean (a + b) / 2, and multiply by 100. Equivalently, calculate (2 × |a - b| / (a + b)) × 100%.

How do you calculate percent difference in Excel or Google Sheets?

Neither Excel nor Google Sheets has a built-in PERCENTDIFF function. Enter =ABS(A2-B2)/AVERAGE(A2,B2) (or =2*ABS(A2-B2)/(A2+B2)) into a cell and format the cell as a Percentage (0.00%), or multiply the formula by 100 for an unformatted percentage number.

Does the order of the two numbers matter in a percent difference calculation?

No. Because both |a - b| and (a + b) / 2 are symmetric expressions, entering 80 as the first value and 100 as the second value yields the exact same 22.2222222222% as entering 100 first and 80 second.

Can percent difference be greater than 100%?

Yes. Whenever the larger nonnegative number exceeds three times the smaller number (b > 3a), the absolute difference |a - b| is larger than the midpoint (a + b) / 2, so the percent difference exceeds 100% and reaches 200% when one of the two inputs is 0.

Why must both inputs be nonnegative with at least one positive value?

Percent difference compares magnitudes on a nonnegative ratio scale (a >= 0, b >= 0). If both values are 0, the formula attempts 0 / 0 ('At least one value must be positive.'), and if negative numbers were allowed, opposite values like -50 and 50 would average to 0 in the denominator.

Calculate the percent difference between your two numbers now

Choose another tool for your next calculation, conversion, or text task.

Calculate result