keepcalculator

06 Numbers and Powers

Error Calculation Equation: How to Calculate

Card No. 06·0942 · Updated · Standard formula, shown below

Absolute error 0.2000
Relative error
0.020000
Result
Percent error
2.00 %
Result
Measured value
9.8
You entered
You enter
Measured value, True value
You get
Absolute error, Relative error, Percent error
Rounding
4 dp · 6 dp · 2 dp

Error calculation equations quantify the difference between a measured value and a true or accepted value. You enter your measured value and the true value, and the calculator returns the absolute error, relative error, and percent error. This is essential for assessing accuracy in science, engineering, and statistics.

Formula

The core error calculation formulas are:

  • Absolute error (Ea) = |measured value – true value|
  • Relative error (Er) = |measured value – true value| / |true value|
  • Percent error = relative error × 100%

Where:

  • Measured value (mv) is the value you obtained from measurement or observation (unit depends on context).
  • True value (tv) is the accepted, theoretical, or reference value (same unit as measured).
  • Vertical bars denote absolute value, so errors are always non-negative.

Worked Example

Using the calculator defaults: measured value = 9.8, true value = 10.

  1. Absolute error = |9.8 – 10| = 0.2
  2. Relative error = 0.2 / |10| = 0.02
  3. Percent error = 0.02 × 100 = 2.00%

So with a measurement of 9.8 and a true value of 10, the absolute error is 0.2, the relative error is 0.02, and the percent error is 2.00%. This matches the calculator output.

Why Error Calculation Matters

Error calculation is the standard way to express measurement accuracy. In physics labs, you might compare your experimental value of gravity (9.8 m/s²) to the accepted 9.81 m/s². In manufacturing, you check if a part’s dimension is within tolerance. In statistics, error is used to evaluate prediction models (e.g., mean absolute error). Without a quantitative error, you cannot judge whether a result is good or bad.

Percent error is especially common because it normalizes the error to the true value, making it easy to compare across different scales. A 2% error in measuring a 10-meter length is 0.2 m, but a 2% error in a 1,000-meter distance is 20 m—the relative error tells you both are proportionally the same.

How to Choose the Right Error Type

  • Use absolute error when you need the raw difference in the same units as the measurement (e.g., a machine tolerance of ±0.5 mm).
  • Use relative error when comparing errors across different magnitudes (e.g., which measurement is more accurate relative to its size).
  • Use percent error for reporting to a general audience or when the true value is known and you want a percentage.

Note: If the true value is zero, relative and percent error are undefined (division by zero). In that case, only absolute error makes sense.

Common Mistakes and Misconceptions

  • Forgetting absolute value: Some people report a negative error when the measured value is below the true value. That is actually the signed error, not the error magnitude. The standard error equations use absolute value.
  • Dividing by the measured value: Some mistakenly divide by the measured value instead of the true value. The correct denominator is the true value (or accepted value).
  • Unit mix-ups: Ensure both values are in the same unit. If the true value is in meters and the measured in centimeters, convert first.
  • Rounding too early: In multi-step calculations, round only at the final step to avoid rounding errors amplifying.

Limitations of Error Calculation

These equations only measure accuracy (how close to the true value), not precision (how consistent repeated measurements are). A set of measurements can be precise (low spread) but inaccurate (all far from the true value) due to systematic error. Also, the true value must be known; in many real-world situations, you only have an estimate. The equations treat the true value as exact, but if it is itself uncertain, the error calculation inherits that uncertainty.

For repeated measurements, you would typically use standard deviation or standard error instead of a single error calculation. Those quantify random variation, not comparison to a known reference.

Frequently Asked Questions

What is the difference between absolute and relative error?

Absolute error is the raw difference between measured and true values (e.g., 0.2 kg). Relative error divides that difference by the true value, giving a dimensionless ratio (e.g., 0.02). Percent error is just relative error expressed as a percentage (2%).

Can percent error be negative?

In the standard definition, no—because of the absolute value. However, some fields (like chemistry) use a signed percent error where a negative value indicates the measured value is below the true value. Always check which convention is expected in your context.

What if the true value is zero?

Relative and percent error are undefined because you cannot divide by zero. Only absolute error is meaningful in that case. For example, if you measure a voltage as 0.1 V when the true value is 0 V, the absolute error is 0.1 V, but percent error is not calculable.

How do I calculate error when I have multiple measurements?

For multiple measurements, you typically compute the mean of the measurements, then treat that mean as the measured value in the error equation. To describe the spread, use standard deviation or standard error of the mean.

Does error calculation work for negative true values?

Yes, the absolute value in the denominator ensures the relative error is positive. For example, if the true value is -10 and measured is -9.8, the absolute error is 0.2 and relative error is 0.02 (since |-10| = 10).

Related

Formula used
in mv | Measured value | - | 9.8 | -1000000 | 1000000
in tv | True value | - | 10 | -1000000 | 1000000
out ae | Absolute error | - | abs(mv - tv) | 4
out re | Relative error | - | abs(mv - tv) / abs(tv) | 6
out pe | Percent error | % | (abs(mv - tv) / abs(tv)) * 100 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →