BedrockCalculator
Figures cited to primary sourcesWritten by Aapt Dubey, MBA (Marketing & Banking), ISB 2 primary sourcesLast updated

Difference Calculator: Absolute and Percent Difference

The Difference Calculator: Absolute and Percent Difference finds the difference between two numbers or prices, the percent difference, the percent change each way and how many times larger one is than the other.

Quick Answer: The difference between 120 and 150 is 30. As a percent difference that is 22.22%; as a percent change it is +25% going up from 120 and -20% going down from 150.

Assumptions

Computed

Preset scenarios

Difference
30
Change from A to B
+30 (B minus A)
Percent difference
22.2222222222%
Percent change from A to B
+25%
Percent change from B to A
-20%
B as a multiple of A
1.25 times A
Which is smaller
A is smaller: 120 < 150

Percent difference versus percent change

Download CSV
Each row is this calculator run on the pair shown. Percent change depends on which number is the starting point; percent difference does not.
ABDifferencePercent differenceChange A to BChange B to A
100110109.52380952381%+10%-9.09090909091%
1001505040%+50%-33.3333333333%
10020010066.6666666667%+100%-50%
50752540%+50%-33.3333333333%
80602028.5714285714%-25%+33.3333333333%
1015540%+50%-33.3333333333%
132100%+200%-66.6666666667%
200190105.12820512821%-5%+5.26315789474%
9.810.20.44%+4.08163265306%-3.92156862745%
1,0001,00110.0999500249875%+0.1%-0.0999000999001%

This table and its CSV are free to reuse with a link to this page, CC BY 4.0.

Difference Calculator: Absolute and Percent Difference: Difference 30 (First number (A): 120; Second number (B): 150).

Save or share this result

A one-page summary of this calculator's default example, drawn from the same calculation as the result above.

The infographic is free to reuse with a link to this page, CC BY 4.0.

Illustration of a stack of river pebbles beside a single pebble on a wooden plank by a lake
Quick Answer: The difference between 120 and 150 is 30. As a percent difference that is 22.22%; as a percent change it is +25% going up from 120 and -20% going down from 150.

What does this calculator do?

This difference calculator compares two numbers every way people usually need: the absolute difference (how far apart they are), the signed change from the first to the second, the percent difference, the percent change in each direction, how many times the first number the second one is, and which is smaller.

The reason for showing so many is that "difference" is ambiguous, and the right figure depends on the question. If you want to know how far apart two prices are, the absolute difference answers it. If one number is a starting point and the other a later value, percent change is the right measure, and it depends on which is which: 120 to 150 is +25%, while 150 to 120 is -20%. If neither number is the reference, as when comparing two measurements of the same thing or two shops' prices, the percent difference treats them symmetrically by dividing the gap by their average.

The arithmetic is exact decimal arithmetic, so a difference between $24.99 and $19.49 comes out as exactly 5.5, with no stray digits.

Using the Difference Calculator

  1. Enter the first number, A, and the second number, B. Money works the same way; enter 24.99 for $24.99.
  2. Read the difference at the top. It is always zero or positive.
  3. Use the cards for the signed change, the percent difference, the two percent changes, the ratio and the order.

How is this calculated?

  1. Absolute difference. B minus A, with the sign dropped.

|B − A|

  1. Signed change. B minus A, keeping the sign: positive if B is larger.
  1. Percent difference. The absolute difference divided by the average of the sizes of the two numbers, times 100. Because it uses the average, swapping A and B gives the same answer. Using the sizes (absolute values) keeps it meaningful when one number is negative.

percent difference = (|A − B|)/((|A| + |B|)/2) × 100

  1. Percent change in each direction. The signed change divided by the size of the starting value, times 100. From A to B divides by |A|; from B to A divides by |B|. A change from zero has no percentage, and the card says so.

change from A to B = (B − A)/|A| × 100

  1. Ratio and order. B divided by A, and a plain statement of which number is smaller.
  1. Show the results. Values are rounded half up to 12 significant figures with trailing zeros dropped.

Worked Example

Using the defaults, A = 120 and B = 150:

  1. Difference: 150 - 120 = 30.
  2. Change from A to B: +30.
  3. Percent difference: 30 ÷ ((120 + 150) ÷ 2) = 30 ÷ 135 = 0.2222..., so 22.2222222222%.
  4. Percent change from 120 to 150: 30 ÷ 120 = +25%.
  5. Percent change from 150 to 120: -30 ÷ 150 = -20%.
  6. B is 1.25 times A.

How Do You Calculate the Difference Between Two Prices?

Subtract the smaller from the larger. The $24.99 versus $19.49 preset gives 5.5, which is $5.50. To say how much cheaper the second price is in percentage terms, read the change from A to B: -22.0088035214%. To say how much dearer the first is relative to the second, read the change from B to A: +28.2195997948%.

Both describe the same $5.50 gap, measured from different starting points.

What Is 6 Less Than a Number?

"6 less than x" means x minus 6. The 6 less than 20 preset puts 20 as A and 6 as B; the difference between them is 14, which is 20 minus 6. Watch the wording: "6 less than 20" is 20 - 6, not 6 - 20, which would be -14.

How Do You Compare Two Measurements of the Same Thing?

When two instruments, two labs or two trials measure the same quantity, neither result is the true value, so neither should be the base of a percentage. The percent difference divides by their average, which treats them equally.

The 9.8 versus 10.2 preset, two readings of the same quantity, gives a percent difference of 4%, while the percent changes are +4.08163265306% one way and -3.92156862745% the other, depending only on which reading you happened to list first.

Percent Difference Versus Percent Change

The reference table runs the calculator on several pairs. Look at 100 and 150: the percent change is +50% one way and -33.3333333333% the other, but the percent difference is 40% either way. For two numbers close together, like 1,000 and 1,001, all three measures agree to about a tenth of a percent; they drift apart as the gap widens.

What does this calculator not account for?

  • Percentage points. The difference between two percentages, such as 4% and 5%, is one percentage point. Entering 4 and 5 here gives that point difference as the plain difference, and the percent change between the rates as the change card.
  • Other definitions of percent difference. Some fields divide by the larger value, or by a known reference value, instead of the average. This calculator uses the average, the common convention when neither number is the reference.
  • Differences of more than two numbers. For the spread of a whole list, use the range on the average calculator.
  • Units. Both numbers must be in the same unit; the difference is in that unit.

What mistakes do people make with this?

  • Using percent difference when one value is the starting point. A price rising from 120 to 150 is a 25% increase, not 22%.
  • Swapping the base of a percent change. Divide by the starting value, not the ending one.
  • Expecting a rise and a fall of the same percent to cancel. +25% followed by -20% returns to the start; +25% followed by -25% does not.
  • Mixing signs. The absolute difference is always positive. Use the signed card when direction matters.
  • Percent difference across zero. For -5 and 8 the percent difference is 200%, since the gap is as big as the two sizes put together. Percentages lose meaning when values straddle zero; the plain difference, 13, is clearer.

Frequently Asked Questions

How do you find the difference between two numbers?

Subtract the smaller from the larger. The difference between 120 and 150 is 30.

What is the difference between percent difference and percent change?

Percent change measures from a starting value, so it has a direction. Percent difference compares two values with neither as the reference, dividing by their average, so it is the same whichever order you use.

How do I calculate the percent difference between two measurements?

Divide the gap by their average and multiply by 100. For 9.8 and 10.2 that is 0.4 ÷ 10 = 4%.

Can the difference be negative?

The absolute difference cannot. The signed change can: from 20 down to 6 it is -14.

How do I compare two prices as a percentage?

Pick the price you are measuring from and use the percent change from that price. Shops quoting a saving usually measure from the higher original price.

Sources

Did this calculator answer your question?

How this calculator is tested

This calculator is checked by 6 automated test cases: specific inputs whose correct result is known in advance, and rules the output must always obey. They run on every change to the site. See the testing and corrections policy.

Show the test cases
  • Default: 120 and 150 differ by 30
  • prices: $24.99 and $19.49 differ by exactly 5.5
  • measurements: 9.8 and 10.2 are 4% apart
  • across zero, and 6 less than 20
  • zero cases
  • builds the reference table: percent difference is symmetric

Add This Website as Preferred Source on Google

See Bedrock Calculator first in your Search results & AI Overviews