Percent Error Calculator

Compare a measured value with a nonzero reference. Absolute error is the absolute difference; percent error divides that difference by the absolute reference value.

Results

Enter your values and select Calculate.

e=∣x−r∣∣r∣×100%e=\frac{|x-r|}{|r|}\times100\%

About this tool

This percent error calculator compares a measured or experimental value with a known reference value. It is used in science labs, engineering checks and any situation where you need to judge how far a result is from an accepted value. Percent error is the absolute difference between the measured and reference values, divided by the absolute reference value and expressed as a percentage. The tool also reports the absolute error in the original units.

How it works

Enter the value you measured or calculated, then the accepted reference value, also called the true, theoretical or expected value. Both can be decimals or negative numbers, but the reference cannot be zero. The tool subtracts one from the other, drops the sign and divides by the size of the reference.

You get two results. Absolute error is the gap in the original units, such as 0.21 m/s² or 3 grams. Percent error expresses that gap as a share of the reference, so a 3-gram error on a 300-gram sample is 1%, while the same 3 grams on a 30-gram sample is 10%.

e=∣x−r∣∣r∣×100%e=\frac{|x-r|}{|r|}\times100\%

Example

With the defaults, the measured value is 9 and the reference value is 10. The absolute error is ∣9−10∣=1|9 - 10| = 1. Dividing by the absolute reference gives 1/10=0.11 / 10 = 0.1, and multiplying by 100 gives a percent error of 10%. The tool would report the same 10% for a measured value of 11, because it uses the absolute difference.

Assumptions and limits

The reference value cannot be zero, because percent error divides by it. Results are always nonnegative, so the tool does not show whether the measurement was too high or too low. It compares one pair of values and does not compute percent difference between two measurements, standard error or measurement uncertainty.

Frequently asked questions

Can percent error be negative?

The common definition uses the absolute value, so percent error is zero or positive. Some courses use a signed version, measured minus reference, to show whether the result was high or low; this tool reports the absolute form. If your instructor expects a sign, compare the two values yourself: a measurement above the reference gives a positive signed error, and one below gives a negative error.

What is the difference between percent error and percent difference?

Percent error compares a measurement against an accepted reference value. Percent difference compares two measurements when neither is treated as correct, typically dividing by their average. For example, readings of 9 and 11 have a percent difference of 20% relative to their average of 10.

What is a good percent error?

There is no universal threshold. An acceptable value depends on the field, the instruments and the precision required, so compare it with the tolerance stated for your experiment or specification. A large percent error is a hint to look for systematic mistakes, such as an uncalibrated instrument, a wrong unit or a misread scale.

What is the difference between absolute error and percent error?

Absolute error is the size of the difference in the original units. Percent error scales that difference by the reference value, which makes errors on different scales comparable. An absolute error of 1 is huge when the reference is 2 and tiny when the reference is 1,000.

How do I calculate percent error by hand?

Subtract the reference from the measured value, take the absolute value, divide by the absolute reference and multiply by 100. If you measured gravity as 9.6 m/s² and the accepted value is 9.81 m/s², the absolute error is 0.21 and the percent error is 0.21/9.81×100≈2.14%0.21 / 9.81 \times 100 \approx 2.14\%. Divide by the reference, not by your measurement, or the result will be off.

Link with your values

Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.

ParameterValueIf omitted
measured_valueMeasured valuenumberrequired
reference_valueReference valuenumberrequired

Examples

  • ?measured_value=9.75&reference_value=9.81

Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.

Result elements: [data-result-block="percent_error_calculator"]