Master Code
On The Go

Learn. Practice. Build.

How-To Guide

How to Calculate Percentage Difference

Percentage difference measures how far apart two numbers are, using their average as the base. Here's the formula with three worked examples.

๐Ÿ“‹ What You'll Need

The Formula
% Difference = (|A โˆ’ B| รท ((A + B) รท 2)) ร— 100
1

Find the Absolute Difference

Subtract one value from the other, then take the absolute value:

|A โˆ’ B|

Example: for 80 and 100, |80 โˆ’ 100| = 20.

2

Find the Average

Add the two values together and divide by 2:

(A + B) รท 2

Example: (80 + 100) รท 2 = 90.

3

Divide and Multiply by 100

Divide the difference by the average, then multiply by 100:

(difference รท average) ร— 100

Example: (20 รท 90) ร— 100 = 22.22%.

๐Ÿ’ก Quick check: the result is always positive. If you got a negative number, you forgot the absolute value step.

๐Ÿงฎ Worked Examples

Example 1 โ€” Comparing Prices

A laptop costs $900 at one store and $1,100 at another.
Step 1: |900 โˆ’ 1100| = 200
Step 2: (900 + 1100) รท 2 = 1000
Step 3: (200 รท 1000) ร— 100 = 20%
โ†’ 20% difference

Example 2 โ€” Comparing Test Scores

Two students score 72 and 88 on the same exam.
Step 1: |72 โˆ’ 88| = 16
Step 2: (72 + 88) รท 2 = 80
Step 3: (16 รท 80) ร— 100 = 20%
โ†’ 20% difference

Example 3 โ€” Comparing Measurements

Two batches of dough weigh 350 g and 410 g.
Step 1: |350 โˆ’ 410| = 60
Step 2: (350 + 410) รท 2 = 380
Step 3: (60 รท 380) ร— 100 = 15.79%
โ†’ 15.79% difference

โš–๏ธ Percentage Difference vs. Percentage Change

Percentage Change
Compares a new value to an original value. Order matters. Can be positive or negative. Formula: ((new โˆ’ old) รท old) ร— 100.
Percentage Difference
Compares two values with no assumed order. Always positive. Uses the average as the base. Formula: (|A โˆ’ B| รท ((A + B) รท 2)) ร— 100.

๐Ÿ’ก Rule of thumb: use percentage change when there's a clear "before and after." Use percentage difference when comparing two things side by side.

๐Ÿšซ Common Mistakes to Avoid

๐Ÿ“Š Skip the Math

Use our free percentage calculator to compute percentage difference, change, and more instantly.

Open Percentage Calculator โ†’

โ“ Frequently Asked Questions

What is the formula for percentage difference?

|A โˆ’ B| รท ((A + B) รท 2) ร— 100. It uses the average of the two values as the base.

Can percentage difference be negative?

No. The absolute value makes it always positive. If direction matters, use percentage change.

Does order matter?

No. Percentage difference between 20 and 30 is identical to the difference between 30 and 20.

When should I use percentage difference?

When comparing two values with no clear "before and after" โ€” prices at two stores, scores between two students, measurements between two samples.

What if one value is zero?

Percentage difference isn't meaningful when one value is zero. It assumes both values are positive and non-zero.

๐ŸŽฏ Related Math Guides

โ† All How-To Guides