Relative Error Calculator

Relative Error Calculator

Compare a measured or approximate value with the accepted value to get the absolute error, relative error and percentage error, with the sign showing whether you were over or under.

Relative error = (measured − accepted) ÷ |accepted|

Enter your value and the accepted value

What Is Relative Error?

Relative error is the difference between a measured or approximate value and the accepted value, expressed as a fraction of the accepted value. Multiplied by 100 it becomes the percentage error.

It puts errors on a common scale. Being 1 cm out measuring a room is excellent; being 1 cm out measuring a coin is terrible. The absolute error is the same; the relative errors differ by a factor of hundreds.

Relative error is not the same as uncertainty. Error compares your result with a known true value; uncertainty estimates how far off you might be when the true value is unknown. A lab report often needs both.

Relative Error Formula

As given in Taylor, An Introduction to Error Analysis, chapter 2, and Burden & Faires, Numerical Analysis, section 1.2. See Sources.

1. Absolute error

E = measured − accepted

2. Relative error

r = E ÷ |accepted|

3. Percentage error and significant figures

% error = 100 × r · correct to about n significant figures when |r| ≤ 5 × 10⁻ⁿ

Many textbooks quote the size only, |r|. This page keeps the sign so you can see whether the value is too high (+) or too low (−).

Worked Example: Measuring g With a Pendulum

Given:
A class pendulum experiment gives g = 9.62 m/s². The accepted value is 9.81 m/s².
Step 1:
Absolute error:
9.62 − 9.81 = -0.19 m/s²
Step 2:
Relative error:
-0.19 ÷ 9.81 = -0.0194
Step 3:
As a percentage:
-0.0194 × 100 = -1.94%
Result:
-1.9%, about 2% too low

A consistently low g in pendulum experiments often comes from measuring the string but not to the centre of the bob, which makes the length too short.

Relative Error of Famous Approximations to π

Small fractions can beat long decimals: 355/113 is better than 3.14159.

Relative error of approximations to pi
ApproximationValueRelative errorCorrect sig. figs
33.00000000-4.51e-21
3.143.14000000-5.07e-42
22/73.142857144.02e-43
333/1063.14150943-2.65e-54
355/1133.141592928.49e-86

Common Relative Error Mistakes

  • Dividing by the measured value. The accepted value goes underneath. With 9.62 and 9.81, dividing by 9.62 gives 1.98% instead of 1.94%.
  • Using it near zero. Temperatures in °C or profits near £0 give huge or undefined relative errors. Use absolute error, or kelvin for temperatures.
  • Confusing percentage error with percentage difference. Comparing two measurements with no true value calls for percentage difference, which divides by their average.
  • Dropping the sign without saying so. "2% error" hides whether the result was high or low, which is often the clue to the cause.

Relative Error FAQs

What is a good percentage error?

It depends on the field. School physics labs often aim for under 5%; precision engineering works in parts per million.

Can relative error be negative?

Yes, if the measured value is below the accepted value. Many textbooks report only its size.

What is the difference between relative error and relative uncertainty?

Error compares with a known true value. Uncertainty estimates the likely size of error when the true value is unknown.

Can I enter fractions?

Yes, simple fractions like 22/7 or 355/113 work in either box.

What does “correct significant figures” mean?

A rough count of how many leading digits you can trust: a relative error up to 5 × 10⁻ⁿ means about n correct figures.

Why is 355/113 so good?

It’s a convergent of π’s continued fraction, the best approximation with a denominator under 16,604.

How is this used in computing?

Floating-point numbers have a fixed relative error of about 10⁻¹⁶ for doubles, whatever their size.

Is percentage error the same as accuracy?

Closely related: 98% accuracy usually means a 2% error. The two terms are used loosely, so state which you mean.

Sources

  • J. R. Taylor, An Introduction to Error Analysis, 2nd edition (University Science Books, 1997), chapter 2.
  • R. L. Burden and J. D. Faires, Numerical Analysis, 9th edition (Brooks/Cole, 2011), section 1.2: round-off errors and computer arithmetic.

Related Tools