Relative Error Calculator

Calculate relative error as a ratio and percentage, alongside absolute and signed error for a clear comparison.

Relative Error Calculator workspace

MEASUREMENT ACCURACY

Calculate relative error

Measure the absolute error relative to the magnitude of the true value, with the percentage error shown clearly.

Relative errorRelative error compares the absolute difference with the magnitude of the true value. It is dimensionless; multiply by 100 to express it as a percentage.Eᵣ = |A − T| / |T| Percentage error = Eᵣ × 100%

Enter finite decimal or scientific-notation values. The sign convention is estimate minus true value; a negative signed error means the estimate is low. Relative error is undefined when T = 0.

Result and substitution steps appear below.
Try an example
MATHEMATICS GUIDEFormula, examples, and related learning
Overview

What is a relative error calculator?

Relative error compares the size of an approximation’s error with the magnitude of the true or accepted value. It is calculated by dividing absolute error by |T|, so the result is dimensionless; multiplying by 100 expresses the same comparison as a percentage error. This makes relative error useful when the same absolute discrepancy would matter differently at different scales. It is undefined when T=0 because the defining denominator is zero. This calculator uses signed error A−T to describe direction, while relative error itself is nonnegative.

Important terms

Relative error
The ratio |A−T|/|T|, comparing absolute error with the magnitude of the true or accepted value.
Percentage error
Relative error multiplied by 100 and followed by a percent sign.
Dimensionless
A quantity with no physical unit; units cancel in a ratio of same-kind measurements.
Reference value
The true, accepted, or standard value T used as the denominator and comparison point.

When this method is useful

  • Compare accuracy for measurements of different magnitudes.
  • Express a measurement discrepancy as a percentage of the reference.
  • Evaluate rounding or approximation quality in numerical work.
  • Communicate proportional error without attaching the original measurement unit.
Formula

Formula and variables

e_s=A-T,\qquad E_a=|A-T|,\qquad E_r=\frac{|A-T|}{|T|},\qquad E_{%}=100E_r
T
true, accepted, or reference value; it must be nonzero
A
approximate, measured, or estimated value
Eₐ
absolute error |A−T|
Eᵣ
dimensionless relative error
E%
percentage error, 100Eᵣ percent

Subtract T from A to establish the signed error, then take its magnitude. Divide by |T| to compare that error with the size of the reference. Multiply by 100 for a percentage. For T=50 and A=48.5, Eₐ=1.5, Eᵣ=1.5/50=0.03, and E%=3%.

Domain note: T must be nonzero. Finite decimal and scientific-notation values are accepted. The relative error is nonnegative; the signed error separately indicates overestimation or underestimation. The formula assumes the two inputs represent the same kind of quantity and unit.

How it works

How to use this calculator

  1. 1

    Enter the true or accepted value T and approximate value A.

  2. 2

    Find signed error eₛ=A−T and absolute error Eₐ=|eₛ|.

  3. 3

    Divide by the magnitude of the reference: Eᵣ=Eₐ/|T|.

  4. 4

    Multiply the ratio by 100 to obtain percentage error E%=100Eᵣ.

  5. 5

    Interpret the ratio as a proportion of the reference, not as a value with units.

Worked examples

Step-by-step examples

Example 1

Problem: A reading is 48.5 when the accepted value is 50. Find relative and percentage error.

Substitution: Eₐ=|48.5−50|=1.5; Eᵣ=1.5/|50|=0.03; E%=0.03×100

Result: Relative error = 0.03; percentage error = 3%

The reading differs from the accepted value by 3% of its magnitude. Signed error is −1.5, so the reading is low.

Example 2

Problem: An estimate of 22 is compared with a reference value of 20.

Substitution: Eₐ=2; Eᵣ=2/20=0.1; E%=10%

Result: 10% error

The estimate is 10% high, although relative error itself is nonnegative.

Example 3

Problem: Compare 99 with the reference value 100.

Substitution: Eₐ=1; Eᵣ=1/100=0.01; E%=1%

Result: Relative error 0.01; percentage error 1%

The absolute discrepancy is one unit, equal to one hundredth of the reference magnitude.

Method knowledge

Rules, edge cases, and related ideas

Scale is accounted for

Dividing by |T| makes the error proportional to the reference magnitude rather than its unit.

The ratio is unit-free

When A and T use the same unit, the units cancel in |A−T|/|T|.

The reference cannot be zero

Division by |T| is undefined at T=0, so a relative error cannot be computed there.

Edge cases and limitations

  • T=0 is rejected with an explanation because the formula is undefined.
  • Negative reference values are valid when nonzero; the denominator uses |T|.
  • A=T produces zero absolute, relative, and percentage error.
  • Very small nonzero T can produce a very large relative error; this is mathematically valid.
  • Both inputs must use compatible units and refer to the same quantity.

How this differs from a related concept

Absolute error is a difference in the original units; relative error normalizes it by the reference magnitude. Percentage error is simply relative error expressed per hundred. Relative error is often easier to compare across scales, while absolute error is often more directly useful for tolerances with units.

Interpretation

Understand the result

The primary result is displayed as a percentage for quick reading, with the underlying relative ratio and absolute discrepancy shown alongside it. Percentage error is not the same as percentage change: percentage error measures distance from a chosen reference, and its sign is not carried by the absolute-error ratio. Use the separate signed-error value to determine whether the approximation is high or low. If the true value is negative, the denominator is |T| so the relative error remains nonnegative and scale-based.

Common mistakes

  • Dividing by the estimate instead of the reference value.
  • Omitting absolute values and obtaining a negative relative error.
  • Multiplying by 100 twice when converting the ratio to a percentage.
  • Trying to calculate relative error when T=0.
  • Confusing relative error with percentage change, which can use a different denominator and sign convention.

Frequently asked questions

What is the relative error formula?

Eᵣ=|A−T|/|T|, where A is the estimate and T is a nonzero true or accepted value.

How do I convert relative error to percent error?

Multiply the relative-error ratio by 100 and append %. For example, 0.03 becomes 3%.

Why is relative error undefined when the true value is zero?

The formula divides by |T|, which is zero when T=0; division by zero is undefined.

Can relative error exceed 100%?

Yes. If the absolute discrepancy is larger than the magnitude of the reference value, the ratio exceeds 1 and the percentage exceeds 100%.

Is relative error negative when an estimate is too low?

No. Relative error uses an absolute value and is nonnegative. Use signed error A−T to see whether the estimate is high or low.

References & technical sources

Keep calculating

Related calculators