GameParticles
Numbers & units

Percentage Difference Formula vs Percent Change and Error

The percentage difference formula divides the gap between two values by their average. See worked examples and when to use percent change or percent error.

Updated

The percentage difference between two values is the size of the gap between them divided by their average, times 100: |a − b| ÷ ((a + b) ÷ 2) × 100. For 40 and 50 that is 10 ÷ 45 × 100 = 22.22%. Use it when neither number is the starting point. If one value is an earlier figure, use percent change. If one is the accepted true value, use percent error.

The percentage difference formula

  1. Subtract one value from the other and drop the sign. This is the absolute difference.
  2. Add the two values and divide by 2 to get their average.
  3. Divide the difference by the average.
  4. Multiply by 100.

Worked example: two shops sell the same headphones for 40 and 50 dollars.

  • Difference: 50 − 40 = 10.
  • Average: (40 + 50) ÷ 2 = 45.
  • Percentage difference: 10 ÷ 45 × 100 = 22.22%.

Swapping the two prices changes nothing, because the difference is taken as an absolute value and the average is the same either way. That symmetry is the whole point of the formula.

Why divide by the average

With percent change there is an obvious baseline: the old value. With two shop prices, two people's heights or two cities' populations, there is no old value. If you pick one as the base you get two competing answers:

  • 50 is 25% more than 40, since 10 ÷ 40 = 0.25.
  • 40 is 20% less than 50, since 10 ÷ 50 = 0.20.

Both are correct, and each depends on an arbitrary choice. Dividing by the average, 45, gives a single figure that sits between the two and treats both values equally.

Percent difference vs percent change vs percent error

MeasureFormulaDivides byHas a signUse when
Percent differenceabs(a − b) ÷ ((a + b) ÷ 2) × 100Average of bothNoTwo values of equal standing
Percent change(new − old) ÷ old × 100Old valueYesA value moved over time
Percent errorabs(measured − accepted) ÷ abs(accepted) × 100Accepted valueUsually noA measurement against a known value

Here abs means the absolute value, the number without its sign.

The same pair of numbers gives three different results depending on the question:

ValuesQuestionAnswer
40 and 50Percentage difference between them22.22%
40 then 50Percent change from 40 to 50+25%
50 then 40Percent change from 50 to 40−20%
Measured 40, accepted 50Percent error20%
Measured 50, accepted 40Percent error25%

A quick way to choose:

  • Is there a before and an after? Percent change. The guide on how to calculate percentage change covers signs, negative values and percentage points.
  • Is one value the correct or reference figure? Percent error.
  • Are the two values peers? Percent difference.

More percentage difference examples

Two salaries. One offer is 58,000 and another is 64,000. Difference 6,000, average 61,000. 6,000 ÷ 61,000 × 100 = 9.84%.

Two test runs. A page loads in 1.8 seconds on one server and 2.4 on another. Difference 0.6, average 2.1. 0.6 ÷ 2.1 × 100 = 28.57%.

Two populations. Towns of 12,000 and 30,000 people. Difference 18,000, average 21,000. 18,000 ÷ 21,000 × 100 = 85.71%.

Far apart values. 10 and 50. Difference 40, average 30. 40 ÷ 30 × 100 = 133.33%.

For two positive numbers the result can never go past 200%. As one value shrinks toward zero the difference and the average both approach simple multiples of the other value, and at exactly zero the formula gives a ÷ (a ÷ 2) × 100 = 200%.

Percent error

Percent error measures how far a measured or estimated value is from an accepted one. The accepted value is the baseline, so it goes on the bottom:

percent error = |measured − accepted| ÷ |accepted| × 100

A student measures gravitational acceleration as 9.6 m/s² in a lab. The accepted value is 9.81 m/s².

  • Difference: 9.81 − 9.6 = 0.21.
  • Divide by the accepted value: 0.21 ÷ 9.81 = 0.0214.
  • Percent error: 2.14%.

Most textbooks take the absolute value so the error is always positive. Some fields keep the sign to show whether the measurement was too high or too low. In that convention the example above would be −2.14%, since the measured value is below the accepted one. Check which version your course or lab manual expects.

An estimate works the same way. If you budget 1,200 for a trip and it costs 1,350, the error of your estimate is 150 ÷ 1,350 × 100 = 11.11%, because the actual cost is the reference.

Common mistakes

  • Using percent difference for growth. If revenue went from 40 to 50, report a 25% increase, not 22.22%. Time gives you a baseline, so use it.
  • Dividing percent error by the measured value instead of the accepted one.
  • Forgetting to average. Dividing the difference by the sum of the two values gives exactly half the correct percentage difference.
  • Using the formula with a negative value. If the two numbers have opposite signs the average can be near zero and the result explodes. Percentage difference is meant for quantities that are both positive.
  • Comparing two percentages with it. For the gap between a 4% rate and a 5% rate, state percentage points.

Using the calculator

The Percentage Calculator has three panels: "What is X% of Y?", "X is what % of Y?" and "Percentage change from X to Y". It does not have a separate percentage difference panel, but the second panel does the final step.

  1. Work out the absolute difference and the average by hand. For 40 and 50 these are 10 and 45.
  2. In "X is what % of Y?", enter the difference as X and the average as Y.
  3. The result, 22.2222%, is the percentage difference.

For percent error, use the change panel: enter the accepted value in From and the measured value in To, then ignore the minus sign if your convention uses absolute error. From 9.81 to 9.6 returns −2.1407%.

For percent change the same panel gives the answer directly, with increases in green and decreases in red.

Related percentage guides

Try it

Open the Percentage Calculator, enter 10 and 45 in the "X is what % of Y?" panel, and confirm that 40 and 50 differ by 22.2222%.

Tools in this guide

Frequently asked questions

What is the percentage difference formula?

Percentage difference = |a − b| ÷ ((a + b) ÷ 2) × 100. Take the absolute difference between the two values, divide by their average, and multiply by 100. For 40 and 50 that is 10 ÷ 45 × 100 = 22.22%.

What is the difference between percent difference and percent change?

Percent change compares a new value with an old one and divides by the old value, so it has a direction. Percent difference compares two values with no before or after and divides by their average, so the order does not matter.

How do you calculate percent error?

Percent error = |measured − accepted| ÷ |accepted| × 100. Subtract the accepted value from your measurement, drop the sign, divide by the accepted value and multiply by 100. Measuring 9.6 against an accepted 9.81 gives 2.14%.

Can percentage difference be more than 100%?

Yes. For two positive values it ranges from 0% when they are equal up to a limit of 200%, which is reached only when one of them is zero. The values 10 and 50 have a percentage difference of 133.33%.

More numbers & units guides

JSON Formatter
Developer · Format, validate and minify JSON with syntax highlighting.
↵
Base64 Encode / Decode
Developer · Encode text to Base64 or decode Base64 back to plain text.
↵
URL Encoder / Decoder
Developer · Encode or decode URL components and query strings.
↵
Hash Generator
Developer · Generate MD5, SHA-1, SHA-256 and SHA-512 hashes.
↵
UUID Generator
Developer · Generate UUIDs v4 (random) in bulk with one click.
↵
Regex Tester
Developer · Test regular expressions against text with live match highlighting.
↵
Word Counter
Text · Count words, characters, sentences, paragraphs and reading time.
↵
Case Converter
Text · Convert text between UPPER, lower, Title, camelCase, snake_case and more.
↵
List Sorter
Text · Sort, reverse, deduplicate and shuffle lists of text.
↵
Markdown Preview
Text · Write Markdown and see a live rendered preview side by side.
↵
Percentage Calculator
Numbers · Calculate percentages, increases, decreases and what % one number is of another.
↵
Color Converter
Colors · Convert colors between HEX, RGB, HSL and HSV instantly.
↵
Snake
Arcade · Eat food, grow longer, don't hit the walls. A timeless classic.
↵
2048
Puzzle · Slide tiles and combine them to reach the legendary 2048 tile.
↵
Word Grid
Puzzle · Guess the hidden five letter word in six tries using color clues.
↵
Sudoku
Puzzle · Fill the 9x9 grid with logic. Four difficulties from easy to expert.
↵
Minesweeper
Strategy · Use number clues to clear the minefield. Classic logic, three levels.
↵
Breakout
Arcade · Smash every brick with paddle and ball. Power-ups, combos, endless levels.
↵
Typing Practice
Casual · Build your WPM and accuracy with timed drills from 30 seconds to 5 minutes. Find your weak keys.
↵
TypeRunner
Arcade · Multiplayer typing race. Race friends by link, beat computer runners, or chase your own ghost.
↵
Typing Blocks
Arcade · Type each word before its wooden block lands. Miss, and the pile climbs toward the line.
↵
Bubble Shooter
Arcade · Aim, bank shots off the walls, and pop groups of three or more bubbles.
↵
Road Rush
Arcade · Race seven rivals through traffic and punch your way to the front.
↵