keepcalculator

06 Numbers and Powers

Absolute Error Calculator: Formula and Examples

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

Absolute error 0.50
Relative error
0.0500
Result
Percentage error
5.00 %
Result
Measured value
10.5
You entered
You enter
Measured value, True value
You get
Absolute error, Relative error, Percentage error
Rounding
2 dp · 4 dp

An absolute error calculator works out the difference between a measured value and the true or accepted value, giving you the error in the same units as the measurement. You enter the measured value and the true value, and the calculator returns the absolute error, which is always a positive number or zero. This is the simplest way to quantify how far off a measurement is, without worrying about whether the error is above or below the true value.

Formula

The absolute error is the absolute value of the difference between the measured value and the true value:

Absolute Error = |Measured Value − True Value|

  • Measured value – the value you obtained from a measurement or experiment (any unit, e.g., meters, grams, seconds).
  • True value – the accepted or reference value (same unit as the measured value).
  • | | – absolute value, meaning you drop any negative sign. The result is always non-negative.

The calculator also gives you the relative error (absolute error divided by the true value) and the percentage error (relative error multiplied by 100). These are useful when comparing errors across different scales.

Worked Example

Using the default values: measured value = 10.5, true value = 10.0.

  1. Subtract the true value from the measured value: 10.5 − 10.0 = 0.5
  2. Take the absolute value: |0.5| = 0.5
  3. So the absolute error is 0.5 (in whatever unit you are using).
  4. Relative error = 0.5 / 10.0 = 0.05
  5. Percentage error = 0.05 × 100 = 5%

If your measurement was in meters, the absolute error is 0.5 meters. If it was in grams, it is 0.5 grams. The unit stays the same as the input.

Why Absolute Error Matters

Absolute error tells you the magnitude of uncertainty in a single measurement. It is the most direct way to answer “how wrong is this measurement?� For example, if you weigh a sample and get 52.3 g, but the known mass is 52.0 g, the absolute error is 0.3 g. That is meaningful because it tells you the measurement is within a third of a gram of the true value.

In science and engineering, absolute error is used to report the precision of instruments. A ruler marked in millimeters has an absolute error of about ±0.5 mm (half the smallest division). A digital scale might have an absolute error of ±0.1 g. Knowing this helps you decide if a measurement is good enough for your purpose.

Absolute error is also the foundation for other error metrics. Once you have the absolute error, you can compute relative error (which normalizes by the true value) and percentage error (which is just relative error times 100). These are especially useful when comparing errors from measurements of different sizes. An error of 0.5 m is huge if you are measuring a pencil, but tiny if you are measuring a football field.

How to Use the Calculator

Using the calculator is straightforward:

  1. Enter the measured value in the first field. This can be any real number – positive, negative, or zero. For example, a temperature reading of −5.2°C.
  2. Enter the true value in the second field. This is the accepted reference value, such as the boiling point of water (100°C) or a standard mass.
  3. Click Calculate. The calculator returns the absolute error, relative error, and percentage error.

Note that the calculator does not care about units – you must use the same unit for both values. If you measure in inches and the true value is in centimeters, convert one to the other first. The absolute error will be in the same unit as the values you entered.

Common Mistakes and Misconceptions

  • Using the absolute value incorrectly – Some people think absolute error is always measured value minus true value, but if the measured value is less than the true value, that gives a negative number. The absolute value fixes this, so the error is always positive or zero.
  • Confusing absolute error with relative error – Absolute error is a raw difference (e.g., 0.5 m). Relative error is that difference divided by the true value (e.g., 0.05). They answer different questions: absolute error tells you the magnitude in units; relative error tells you the proportion of the true value.
  • Forgetting to convert units – If you measure in feet but the true value is in meters, you must convert one to the other. Mixing units gives a meaningless absolute error.
  • Assuming absolute error is always symmetric – In practice, measurement errors can be biased (e.g., a scale that always reads high). Absolute error just tells you the magnitude; it does not tell you the direction of the bias.
  • Using the mean of repeated measurements – If you have multiple measurements, you might want the mean absolute error (average of the absolute errors) or the standard deviation. This calculator handles a single pair of values. For repeated measurements, compute the absolute error for each trial and then average them.

Limitations and When to Use Other Error Metrics

Absolute error is simple, but it has limitations. Because it does not account for the size of the true value, it can be misleading when comparing measurements of very different magnitudes. For example, an absolute error of 1 cm is enormous when measuring the length of a paperclip (about 3 cm) but negligible when measuring the height of a building (30 m). In such cases, relative error or percentage error gives a better sense of the error’s significance.

Also, absolute error does not tell you about the precision of a measuring instrument across multiple readings. For that, you would use standard deviation or variance. If you are dealing with a set of measurements, the mean absolute error (MAE) is a common metric in statistics and machine learning. But for a single measurement, absolute error is the right tool.

Another limitation: the true value must be known. In many real-world situations, you do not have a true value – you only have measurements. In that case, you cannot calculate absolute error; you might instead report the range, standard deviation, or uncertainty of the measurements.

Frequently Asked Questions

What is the difference between absolute error and relative error?

Absolute error is the raw difference between measured and true values, expressed in the same units (e.g., 0.5 m). Relative error is that difference divided by the true value (e.g., 0.05), which gives a unitless ratio. Relative error is useful for comparing errors across different scales.

Can absolute error be negative?

No. By definition, absolute error is the absolute value of the difference, so it is always zero or positive. If you get a negative number, you forgot to take the absolute value.

What if the true value is zero?

If the true value is zero, the relative error and percentage error are undefined (division by zero). The calculator will show “Cannot compute� for those outputs, but the absolute error is still valid – it is simply the absolute value of the measured value.

How do I calculate absolute error for multiple measurements?

For each measurement, subtract the true value and take the absolute value. Then you can average those absolute errors to get the mean absolute error (MAE). This calculator handles one pair at a time; for multiple measurements, you would repeat the process.

Does the calculator work for any unit?

Yes, the calculator works with any unit as long as both inputs use the same unit. The absolute error will be in that same unit. For example, if you enter both values in kilograms, the error is in kilograms.

Why is my percentage error over 100%?

That happens when the absolute error is larger than the true value. For instance, if the true value is 2 and the measured value is 5, the absolute error is 3, and the percentage error is 150%. This is valid and indicates a very large error relative to the true value.

Related

Formula used
in m | Measured value | - | 10.5 | - | -
in t | True value | - | 10 | - | -
out ae | Absolute error | - | abs(m - t) | 2
out re | Relative error | - | abs(m - t) / abs(t) | 4
out pe | Percentage error | % | abs(m - t) / abs(t) * 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 →