Percent Error Calculator

Percent error, absolute error, and relative error between a measured and an accepted value.

Math and PercentUpdated 2026-10-182 min read
Percent Error Calculator
The number you obtained.
The reference or true value.
Percent error
...
Absolute error...
Relative error...

What it does

Percent error answers the lab report question: how far off was the measurement, relative to the value it was aiming at? One subtraction, one division, one conversion to a percentage, and a result that reads well in a conclusion paragraph.

The tool above takes the measured value and the accepted value and returns all three common ways of stating the gap: the percent error, the plain absolute difference, and the decimal relative error for further calculations.

The defaults compare a 2.45 g measurement against a 2.70 g accepted value: an absolute error of 0.25, a relative error of 0.0926, and a percent error of 9.26 %. Slide the measured value up to 2.65 and the error falls to 1.85 %, which is often the difference between a good and a great result in a student lab.

The formula and its distinction from percent difference and uncertainty follow standard lab references: the measurement and error appendices from Maricopa and Bates, and NIST's Technical Note 1297 on expressing uncertainty, the international reference for doing this rigorously.

How to use

  1. Enter the value you measured, with its sign if it has one.
  2. Enter the accepted or true value as the reference.
  3. Read the percent error first for reporting.
  4. Use the absolute error when units matter more than ratios.
  5. Use the relative error when it feeds into further calculations.

Formula

Percent error = |measured - accepted| / |accepted| x 100. Absolute error = |measured - accepted|. Relative error = |measured - accepted| / |accepted|.
measured
The experimental value you are checking.
accepted
The reference value the measurement is compared against.
percent error
The relative gap expressed as a percentage.
relative error
The same gap as a decimal fraction.

Taking absolute values in numerator and denominator means a negative accepted value, like a heat of reaction or a freezing-point depression, produces a sensible positive error instead of a sign puzzle. Only one case genuinely breaks the formula: an accepted value of exactly zero, because the division has no answer, which is why the tool suggests absolute error there. Keep the vocabulary straight: percent error points at a reference value, percent difference compares two measurements with each other, and percent uncertainty describes the spread of repeated measurements of the same thing.

Worked example

Example: 2.45 g measured against 2.70 g accepted

Defaults: measured 2.45, accepted 2.70.

  1. Difference: |2.45 - 2.70| = 0.25, the absolute error.
  2. Ratio: 0.25 / 2.70 = 0.0926, the relative error.
  3. Percent error: 0.0926 x 100 = 9.26 %.
  4. Rounding follows the data: report 9.3 % if the inputs carry two significant figures.
  5. Tighten the measurement to 2.65 and the error falls to 1.85 %.

Reference table

A few measured values against the same 2.70 accepted value
MeasuredAcceptedPercent error
2.452.709.26 %
2.652.701.85 %
2.702.700.00 %
9.809.810.10 %
2.902.707.41 %

Limits

  • The accepted value must be nonzero for percent error to exist.
  • Assumes the accepted value is a legitimate reference.
  • Does not judge whether the error is statistically significant.
  • Reports magnitudes only; it will not tell you which way you missed.

Common mistakes

  • Dividing by the measured value instead of the accepted value.
  • Calling it percent difference when a reference value exists.
  • Averaging signed errors until they cancel to zero.
  • Reporting more decimal places than the measurement supports.
  • Forcing the formula when the accepted value is zero.

Try it yourself

Quick checks. Answers sit tucked under each question.

Measured 2.65 against an accepted 2.70?

Percent error 1.85 %: the gap is 0.05, or 0.0185 as a ratio.

Measured 9.8 against an accepted 9.81?

Percent error 0.10 %; absolute error 0.01.

Measured 105 against an accepted -100?

Percent error 205.00 %: absolute values make negative references behave sensibly.

Questions

What is the percent error formula?

|measured - accepted| / |accepted| x 100. Subtract, take absolute values, divide by the reference, and multiply by 100.

What is the difference between percent error and percent difference?

Percent error needs a known true or accepted value. Percent difference compares two measurements against their average when no reference exists.

Can percent error be negative?

By this convention, no: the absolute values strip the sign. A signed deviation, the raw measured minus accepted, is a different quantity.

What if the accepted value is zero?

Percent error is undefined because the formula divides by zero. Use the absolute error, or switch to an uncertainty budget.

How many significant figures should I report?

Match the precision of your inputs; one or two figures beyond the data's precision overstates what the measurement can support.

What is relative error?

The same comparison as percent error without the x 100, convenient when the number feeds into further formulas.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.