Skip to main content

Percentage Difference Calculator

Find the percentage difference between any two numbers instantly—complete with step-by-step math.

Enter Two Values

Find the percentage difference between any two numbers compared to their average.

Percentage Difference
—%
Absolute Difference—
Average Value—
Calculation:Enter two values above to calculate
Copied to clipboard

Complete Guide to Percentage Difference

Everything you need to know: the exact formula, easy 4-step math, spreadsheet shortcuts for Excel and Sheets, real-world examples, and when to use percentage difference.

1. Fundamentals

What Is Percentage Difference?

Imagine you visit two coffee shops on the same street. Cafe A sells a latte for $4.00, and Cafe B sells the same drink for $5.00. How much do their prices differ?

Neither cafe is the "official" starting price. They are just two regular shops side by side. This is exactly when you use percentage difference: when you're comparing two equal things and neither one is the "original" starting number.

Instead of picking one price as the baseline, percentage difference compares the gap between them ($1.00) against the average of the two numbers ($4.50). This gives you an honest, fair comparison of 22.22% no matter which cafe you look at first.

Rule 1

Order Doesn't Matter

Comparing 50 and 60 gives the exact same 18.18% result as comparing 60 and 50. You never have to worry about which number goes first.

Rule 2

Fair Halfway Point

The formula divides by the average of both numbers. This keeps the comparison completely neutral and fair.

Rule 3

Always Positive

Because it measures the physical gap between two values, percentage difference is never negative. It ranges from 0% (identical values) up to 200%.

2. The Formula

The Percentage Difference Formula

The percentage difference formula is simple: subtract the two numbers, divide by their average, and multiply by 100.

Core Mathematical Formula
Percentage Difference =(
|A − B| ÷ ((|A| + |B|) ÷ 2)
)× 100

Here, |A − B| is the difference between your two numbers, and (|A| + |B|) ÷ 2 is their average. For normal positive numbers, this is just your standard average (A + B) ÷ 2.

JavaScript / Code snippet:Math.abs(A - B) / ((Math.abs(A) + Math.abs(B)) / 2) * 100
A, B

Your Two Numbers

The two values you want to compare. They can be whole numbers, decimals, or even negative values.

|A−B|

The Gap (Difference)

Subtract one number from the other. The vertical bars | | mean absolute value: simply drop any minus sign so the gap is always positive.

Avg

The Average (Halfway Point)

Add both numbers together and divide by 2 to find their halfway point. Dividing by this average treats both numbers equally.

×100

Turn Into a Percent

Multiplying by 100 converts the decimal fraction into a standard percentage (%).

💡
Note on negative numbers:

If you are comparing negative numbers (such as −20 and −10), our calculator uses absolute values for the average (|A| + |B|) ÷ 2. This keeps the bottom of the fraction positive and avoids dividing by zero or flipping signs backward.

Mathematical definitions and accuracy standards follow the NIST/SEMATECH e-Handbook of Statistical Methods.
Learn about our methodology →
3. Step-by-Step Instructions

How to Calculate Percentage Difference

Follow these 4 simple steps to calculate the percentage difference between any two numbers by hand or on paper:

1Step One

Find the Difference

Subtract the two numbers. If you get a negative number, drop the minus sign. You only want the positive gap between them.

Difference = |A − B|
2Step Two

Find the Average

Add the two numbers together and divide by 2. This gives you the fair halfway point between them.

Average = (A + B) ÷ 2
3Step Three

Divide Difference by Average

Take the difference from Step 1 and divide it by the average from Step 2. This gives you a decimal number.

Ratio = Difference ÷ Average
4Step Four

Multiply by 100

Multiply the decimal number by 100 and add a percent sign (%). You're done!

Percentage = Ratio × 100%
Spreadsheet Guide

How to Calculate Percentage Difference in Excel & Google Sheets

Need to compare columns of numbers in Microsoft Excel or Google Sheets? Use these formulas to calculate percentage difference automatically.

Most Common (Positive Numbers)

Standard Spreadsheet Formula

Best for prices, test scores, heights, and any standard positive values in cells A2 and B2.

=ABS(A2-B2)/AVERAGE(A2,B2)

Tip: After pasting, click the % button on your toolbar to format the decimal as a percentage.

Universal (Includes Negative Numbers)

All-Number Formula

Handles positive numbers, negative temperatures, and financial losses without dividing by zero or reversing signs.

=ABS(A2-B2)/AVERAGE(ABS(A2),ABS(B2))

How it works: ABS() removes minus signs so the denominator is always positive.

3 Easy Steps to Use in Your Sheet:

  1. Enter your first number in cell A2 and your second number in cell B2.
  2. Paste the formula above into cell C2 and press Enter.
  3. Select cell C2 and click the Percent Style (%) button on your spreadsheet toolbar. Double-click the corner handle to drag down for all rows!
4. Worked Examples

Worked Examples & Reference Table

Here is how the formula works across whole numbers, decimals, and zero. Click Load on any row to test it in the calculator above.

Ex

Quick Walkthrough: Percentage Difference Between 50 and 60

Let's compare 50 and 60:

Step 1: Difference|50 − 60| = 10
Step 2: Average(50 + 60) ÷ 2 = 55
Step 3: Ratio10 ÷ 55 = 0.1818...
Step 4: Percentage0.1818... × 100 = 18.18%
Reference examples of percentage difference calculations
Value AValue BDifferenceAverageResultExample CaseTry It
506010.0055.0018.18%Comparing two standard numbers (halfway point is 55)
257550.0050.00100.00%3-to-1 ratio where the gap equals the average
1001000.00100.000.00%Identical numbers with zero difference
05050.0025.00200.00%Comparing zero to a number (maximum 200% gap)
-5050100.0050.00200.00%Opposite numbers with the same size
-20-1010.0015.0066.67%Negative numbers compared using their sizes
12.515.53.0014.0021.43%Everyday decimal numbers and measurements
406020.0050.0040.00%Comparing store prices side-by-side ($40 vs $60)
Order Doesn't Matter: Swapping any pair (like comparing 60 and 50 instead of 50 and 60) gives the exact same 18.18% result. When both numbers are identical, the result is always 0.00%.
5. Comparison & Key Differences

Percentage Difference vs. Percentage Change

Quick Rule of Thumb: Use Percentage Difference when comparing two side-by-side items (like Store A vs. Store B). Use Percentage Change when tracking a before-and-after change over time (like last month's sales vs. this month's sales).
Side-by-Side (No Starting Point)

Percentage Difference

Compares two equal things at the same point in time. Neither number is considered the "original" or "starting" value.

Formula|A − B| ÷ ((|A| + |B|) ÷ 2) × 100
  • ✓Order doesn't matter: Comparing 40 to 60 gives the exact same result as comparing 60 to 40.
  • ✓Denominator: Divided by the average of both numbers.
  • ✓Sign: Always positive (0% or greater).
Everyday Example: Comparing a $40 shirt at Store A to a $60 shirt at Store B gives a 40.00% difference.
Before & After (Over Time)

Percentage Change

Tracks how a single number goes up or down from an old starting value to a new finishing value.

Formula((New Value − Old Value) ÷ Old Value) × 100
  • →Direction matters: An increase is positive (+); a decrease is negative (−).
  • →Denominator: Divided strictly by the old starting number.
  • →Sign: Can be positive (growth) or negative (drop).
Everyday Example: If a shirt was $40 last week and is $60 today, that is a +50.00% price hike. If it drops from $60 to $40, it is a −33.33% discount.
Calculate Change →

Side-by-Side Example: Prices of $40 and $60

Notice how the math changes depending on whether you're comparing two stores or tracking one store's prices over time:

Percentage Difference40.00%Comparing Store A ($40) vs Store B ($60)
Change: $40 to $60+50.00%Starting from $40 and rising to $60
Change: $60 to $40−33.33%Starting from $60 and dropping to $40
6. Real-World Applications

When to Use Percentage Difference

Percentage difference is the right choice whenever you're comparing two equal things and neither one is the "original" starting number. Here are four common everyday situations:

Comparing Prices Between Stores

Compare quotes from two contractors or check the price of an item at two rival stores without calling either price the "standard" one.

Science Labs & School Experiments

Check how closely two lab measurements or thermometers agree when doing an experiment or testing equipment.

Comparing Team Outputs

Look at the difference in output between two shifts, branches, or classrooms without unfairly declaring one as the benchmark.

Comparing Two Predictions

Check the spread between two different budget estimates or weather forecasts before you know the actual final numbers.

ℹ️
Need a different formula?

If you are comparing an experiment result to an accepted scientific constant (like the speed of gravity), use Percentage Error. If you are tracking how much something grew or shrunk over time, use Percentage Change.

7. Frequently Asked Questions

Frequently Asked Questions

Quick, straight-to-the-point answers about percentage difference, how the formula works, and how to use it in daily life.

What is a percentage difference calculator?
A percentage difference calculator is a free tool that finds the relative gap between two numbers by dividing their difference by their average. It turns the result into a clean percentage so you can easily compare prices, test scores, or measurements.
How do you calculate percentage difference between two numbers?
To calculate percentage difference, subtract one number from the other, divide by their average, and multiply by 100. For example, between 50 and 60: subtract 50 from 60 to get 10, divide 10 by their average (55) to get 0.1818, and multiply by 100 to get 18.18%.
What is the formula for percentage difference?
The formula for percentage difference is: (|A − B| ÷ ((|A| + |B|) ÷ 2)) × 100. In plain words, you take the positive difference between the two numbers, divide it by their average, and multiply by 100 to get the percentage.
Why do you divide by the average instead of one of the numbers?
You divide by the average so that both numbers are treated fairly as equal peers. If you divided by just the first or second number, comparing 50 and 60 would give a different answer than comparing 60 and 50. Dividing by their halfway point ensures you get the exact same 18.18% either way.
Can percentage difference ever be negative?
No, percentage difference is never negative. Because the formula uses absolute values to look only at the gap between the numbers, the final answer is always zero or a positive percentage.
Does the order of the numbers matter?
No, the order of the numbers does not matter. Comparing 50 to 60 gives the exact same 18.18% result as comparing 60 to 50 because you always divide the positive difference by the average of the two values.
What is the percentage difference between two identical numbers?
The percentage difference between two identical numbers is always 0.00%. When both numbers are the same (like 50 and 50), the difference between them is zero, which means there is no difference at all.
What is the difference between percentage difference and percentage change?
Use percentage difference when comparing two side-by-side items with no starting point, and use percentage change when tracking an increase or decrease over time. For example, compare prices at Store A vs. Store B with percentage difference, but compare last year's sales to this year's sales with percentage change.
Can I calculate percentage difference using decimals?
Yes, you can calculate percentage difference with any decimal numbers. For example, comparing 12.5 and 15.5 gives a 21.43% difference using the exact same formula.
Can I use zero or negative numbers?
Yes, this calculator handles zero and negative numbers using the average magnitude formula (|A| + |B|) ÷ 2. For example, comparing 0 and 50 yields 200%, and comparing −50 and 50 also gives 200%. The only undefined case is when both numbers are zero (0 and 0), because you cannot divide by zero.
How accurate is this online calculator?
This calculator is 100% mathematically exact, performing full 64-bit floating-point math directly inside your browser. Calculations happen instantly on your device without server delays or intermediate rounding, and the final answer is displayed rounded to two decimal places for clarity.