A pendulum experiment gives 9.6 m/s² for gravity when the accepted value is 9.81 m/s². Two shops sell the same blender for $40 and $50. Both situations ask how far apart two numbers are in percent, but they call for different formulas. This guide shows how to calculate percent error, how it differs from percentage difference and percentage change, with two worked examples, two tables and the mistakes that cost points in lab reports.
Calculate a percent error now
Enter your measured value and the true (accepted) value: the calculator gives the percent error and the absolute error, with the steps.
Open the percent error calculator →The percent error formula and its two cousins
Percent error compares a measured or estimated value with a true, accepted or theoretical value:
Percent error = |measured − true| ÷ |true| × 100
The top of the fraction, |measured − true|, is the absolute error, expressed in the unit of the measurement. Divided by the true value, it becomes the relative error, a plain decimal (0.02141, for example). Multiplied by 100, it becomes the percent error (2.141%). The vertical bars mean “absolute value”, so the result is positive. Some teachers ask you to keep the sign to show whether the measurement was too high (+) or too low (−).
Percentage difference compares two values when neither is the reference:
Percentage difference = |A − B| ÷ ((A + B) ÷ 2) × 100
Dividing by the average of the two values makes it symmetric: swap A and B and you get the same result.
Percentage change has a starting point and an end point: (new − old) ÷ old × 100. It is covered in detail in our guide on how to calculate a percentage increase.
Which one should you use?
- One value is the reference (a theoretical value, a label, a standard, a known mass): percent error.
- Two values of equal status (two shops, two labs, two measuring methods): percentage difference.
- A value before and after (a price, a salary, a population): percentage change.
Examples
Example 1: percent error of a gravity measurement
A pendulum experiment gives g = 9.6 m/s². The accepted value used in class is 9.81 m/s².
- Absolute error: |9.6 − 9.81| = 0.21 m/s².
- Relative error: 0.21 ÷ 9.81 = 0.02141.
- Percent error: 0.02141 × 100 = 2.141%.
With the sign kept, the error is −2.141%: the measurement is below the accepted value. In the calculator, enter 9.6 as the measured value and 9.81 as the true value: it shows 2.141% and an absolute error of 0.21.
Example 2: percentage difference between two prices
The same blender costs $40 in one shop and $50 in another. The gap is $10, the average price is $45, so the percentage difference is 10 ÷ 45 × 100 = 22.22%.
Compare with the percentage change: going from $40 to $50 is +25.00%, while going from $50 to $40 is −20.00%. The percentage difference (22.22%) sits between the two and does not depend on the order. If the question is “how much more expensive is shop B than shop A?”, answer +25.00%. If you only want a neutral measure of the gap, use 22.22%.
Table 1: percent error in classic experiments
Accepted values are rounded as they are usually given in school labs.
| Quantity | Accepted value | Measured | Absolute error | Percent error |
|---|---|---|---|---|
| Gravity g (m/s²) | 9.81 | 9.6 | 0.21 | 2.141% |
| Boiling point of water at sea level (°C) | 100 | 98.5 | 1.5 | 1.500% |
| Density of water (g/cm³) | 1.00 | 0.97 | 0.03 | 3.000% |
| Speed of sound in air at 20 °C (m/s) | 343 | 331 | 12 | 3.499% |
| π (measured with a string and a plate) | 3.14159 | 3.2 | 0.05841 | 1.859% |
| Density of aluminium (g/cm³) | 2.70 | 2.65 | 0.05 | 1.852% |
| 500 g test weight on a kitchen scale (g) | 500 | 512 | 12 | 2.400% |
Table 2: percentage difference vs percentage change
For the same two numbers, the three percentages are close when the values are close, and drift apart quickly when they are not.
| A | B | Change A → B | Change B → A | Percentage difference |
|---|---|---|---|---|
| 40 | 50 | +25.00% | −20.00% | 22.22% |
| 90 | 100 | +11.11% | −10.00% | 10.53% |
| 95 | 105 | +10.53% | −9.52% | 10.00% |
| 99 | 101 | +2.02% | −1.98% | 2.00% |
| 100 | 110 | +10.00% | −9.09% | 9.52% |
| 100 | 150 | +50.00% | −33.33% | 40.00% |
| 50 | 100 | +100.00% | −50.00% | 66.67% |
| 10 | 30 | +200.00% | −66.67% | 100.00% |
For 10 and 30, the change is +200.00% one way and −66.67% the other, while the percentage difference is 100.00%. For two positive numbers, the percentage difference can never exceed 200%.
Common mistakes when calculating percent error
- Dividing by the measured value. 0.21 ÷ 9.6 × 100 = 2.188% instead of 2.141%. Always divide by the true value.
- Using percent error without a reference. Two measurements from two students have no “true” value between them: use the percentage difference.
- Confusing percent and percentage points. A rate going from 20% to 25% rises by 5 percentage points, which is a change of +25.00% and a percentage difference of 22.22%.
- A true value of zero, or a temperature in °C. The formula divides by the true value, so it fails at zero (the calculator refuses it). With Celsius temperatures, the result depends on where zero sits: an error of 0.5 °C on 2 °C gives 25.000%, but on the absolute scale (2 °C = 275.15 K) it is only 0.182%. Give the absolute error, or work in kelvin.
- Mixing units. Convert both values to the same unit (cm and mm, g and kg) before dividing.
- Rounding too early. Keep all digits during the calculation and round only the final percentage.
FAQ
Can a percent error be negative?
With the absolute value in the formula, no. If your teacher uses the signed version, (measured − true) ÷ true × 100, a negative result means the measurement was too low and a positive one that it was too high.
What is the difference between relative error and percent error?
It is the same ratio. Relative error is written as a decimal (0.02141), percent error as a percentage (2.141%).
What is a good percent error?
There is no universal threshold. It depends on the instrument, the method and the field: compare your result with the precision your teacher or the instrument maker gives, and explain the likely sources of error.
How do I calculate percent error in Excel or Google Sheets?
With the true value in A2 and the measured value in B2: =ABS(B2-A2)/ABS(A2), then format the cell as a percentage. For a percentage difference: =ABS(A2-B2)/((A2+B2)/2).
Useful calculators
- Percent error calculator: percent error and absolute error
- Percentage difference calculator: gap between two values relative to their average
- Percentage change calculator: increase or decrease from an old value to a new one
- Absolute difference calculator and standard deviation calculator for a series of measurements
- Read also: how to calculate a percentage increase
