Percent Error Calculator: Formula, Signed Error and Worked Examples
By FindMySum · Last reviewed
A percent error calculator tells you how far a measurement is from the value it should have been, as a share of that value. It is the standard way to report accuracy in school and university labs, and the same idea turns up in quality control and forecasting. This article explains the formula, the choice between the absolute and the signed form, and the mistakes that most often make a percent error wrong.
The formula
Percent error compares a measured (experimental) value with an accepted (true, theoretical or reference) value:
Percent error = |measured − accepted| ÷ |accepted| × 100
It is built in three steps, and the calculator shows each of them with your own numbers:
- Absolute error: measured − accepted. This is in the units of the measurement.
- Relative error: the absolute error divided by the size of the accepted value. It has no units.
- Percent error: the relative error times 100.
With the calculator's defaults, a pendulum experiment gives the acceleration due to gravity as 9.6 m/s², while the accepted value is 9.81 m/s². The absolute error is 9.6 − 9.81 = −0.21 m/s². Dividing by 9.81 gives a relative error of −0.0214, and multiplying by 100 gives a percent error of 2.14%. The measurement is about two percent too low.
Absolute or signed?
Most textbooks and lab manuals put absolute-value bars around the whole difference, so the percent error is always zero or positive. That is the right choice when you only want to know how accurate a result is.
The signed form drops the outer absolute value: (measured − accepted) ÷ |accepted| × 100. It is negative when the measurement is too low and positive when it is too high, so it carries one more piece of information, the direction of the error. Use it when the direction matters: when you are looking for a systematic bias, comparing several trials, or reporting whether a part is oversize or undersize. In the gravity example the signed percent error is −2.14%.
The calculator always divides by the absolute value of the accepted value. For an ordinary positive reference this changes nothing, but it keeps the sign meaningful when the accepted value is negative, such as a temperature below zero or an enthalpy of reaction. Measuring −10.5 when the accepted value is −10 is then a signed error of −5%: the measurement is five percent further below zero.
Why percent error is not symmetric
Because the accepted value is the denominator, the two numbers are not interchangeable. 9.6 against 9.81 is a 2.14% error; 9.81 against 9.6 is 2.19%. That asymmetry is deliberate: one value is the yardstick and the other is being judged.
When neither number is the yardstick (two students' results, two instruments, last year's figure and this year's from different methods), percent error is the wrong tool. Percentage difference divides the gap by the average of the two values instead, so the order doesn't matter. Percent change, another relative of the same formula, divides by the starting value and is meant for a quantity that moved over time.
When the accepted value is zero
Percent error is undefined when the accepted value is 0, because it would divide by zero. This happens more often than you might think: a blank sample that should read zero, a balance that should tare to zero, a null result. In those cases report the absolute error with its units ("the blank read 0.003 absorbance units") or compare the error with the instrument's stated tolerance. The calculator stops with a message rather than show a meaningless number.
Exact arithmetic
Many calculators work in binary floating point, where 9.6 − 9.81 comes out as −0.21000000000000085. That is harmless after rounding, but it can push a borderline result the wrong way. This calculator works out the error exactly on the digits you type, as fractions, and only rounds when it displays the answer to six significant figures. Round further yourself to match the precision of your measurement.
Accuracy, precision and uncertainty
Percent error measures accuracy: closeness to the true value. It says nothing about precision, which is how closely repeated measurements agree with each other. A set of trials can be precise but inaccurate (tightly clustered around the wrong value, a sign of systematic error) or accurate on average but imprecise (scattered widely around the right value).
It is also different from uncertainty. NIST Technical Note 1297 defines uncertainty as an estimate of the range in which the true value probably lies, worked out from the measurement process itself. Uncertainty can be estimated when no accepted value exists; percent error needs one. A good lab report usually gives both: the uncertainty of the result and, where a reference exists, the percent error against it.
Common mistakes
- Dividing by the measured value. The denominator is always the accepted value.
- Forgetting to multiply by 100. A relative error of 0.0214 is 2.14%, not 0.0214%.
- Rounding too early. Keep full precision through the subtraction and division, then round once at the end.
- Comparing two measurements. Use percentage difference when neither value is the reference.
More questions
Should I use the theoretical or the experimental value as the denominator?
Always the accepted (theoretical, literature or reference) value. Percent error answers the question “how far off is my result, as a share of the right answer?”, so the right answer goes on the bottom. Dividing by your own measurement would make the error depend on how wrong you were, which defeats the purpose.
How many significant figures should a percent error have?
Usually one or two. The percent error can be no more precise than the measurement behind it: if your measured value has three significant figures and differs from the accepted value in the third, the error itself is known to about one figure. Writing 2.140672% suggests a precision the experiment does not have; 2.1% is honest.
How do I find the percent error of an average of several trials?
Average the trials first, then compare the mean with the accepted value. Calculating the percent error of each trial and averaging those numbers is a different quantity, and with the absolute form it overstates the error because errors above and below the accepted value no longer cancel.
What does a negative percent error tell me about my experiment?
That the measured value came out below the accepted value. A consistent negative sign over several trials points to a systematic cause, such as heat lost to the surroundings in a calorimetry experiment or product lost while transferring a precipitate. A sign that flips from trial to trial suggests random error instead.
Is percent error used outside the science lab?
Yes. Forecasters judge a forecast with the same idea (the mean absolute percentage error averages the absolute percent errors of many forecasts), engineers check a prototype against its specification, and quality inspectors compare a measured part with its nominal dimension. The formula is the same; only the name of the reference value changes.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.