Mathematics guide · 2 December 2026

Percent Error: Formula, Meaning & Worked Example

Percent error describes how far an observed or experimental value is from a chosen reference, relative to the size of that reference. It is useful for checking a measurement against a known value, but the percentage is meaningful only when the reference is appropriate and both values describe the same quantity.

Use the Percent Error Calculator to enter an observed value and a non-zero reference. This guide shows the formula, works through the arithmetic and explains what the result does—and does not—tell you.

Choose the two values first

The observed value is the number you measured, calculated or want to check. The reference value is the accepted, theoretical or target value against which you are comparing it. Name the source of that reference when you record a result; a percentage without its baseline can be difficult to interpret.

Keep the quantities and units consistent. Comparing 48.7 grams with 50 grams is valid because both are masses. If one value is in kilograms and the other is in grams, convert them to the same unit before subtracting. The units then cancel in the ratio.

Percent error formula

Absolute percent error = |observed value − reference value| ÷ |reference value| × 100%

The absolute-value signs make the reported percent error non-negative. The denominator scales the absolute difference by the reference value's magnitude. The reference must not be zero because division by zero is undefined.

You can also keep the direction separately: signed difference = observed value − reference value. A negative difference means the observation is below the reference; a positive difference means it is above. Taking the absolute value for percent error removes that direction but keeps the relative size of the discrepancy.

Worked example: a measured mass

Suppose a reference mass is 50.0 g and a measurement gives 48.7 g.

  1. Find the signed difference: 48.7 g − 50.0 g = −1.3 g. The measurement is 1.3 g below the reference.
  2. Take the absolute difference: |−1.3 g| = 1.3 g.
  3. Divide by the reference magnitude and convert to a percentage: (1.3 g ÷ 50.0 g) × 100% = 0.026 × 100% = 2.6%.

The reported absolute percent error is 2.6%. If the observation were 51.3 g instead, the signed difference would be +1.3 g and the absolute percent error would still be 2.6%; the sign is needed to communicate direction.

Percent error versus percent difference

Use percent error when one value is the stated benchmark and the other is being checked against it. If you have two experimental results and neither is designated as correct, percent difference is often the more suitable comparison. A common version divides the absolute difference by the average of the two values, then multiplies by 100%; follow the convention required by your course or measurement procedure because definitions can vary.

Percent change answers a different question about movement from an original value to a new value. It usually keeps the sign and divides by the original value. For a fuller explanation of that distinction, see the percentage change and percentage-points guide, or open the Percentage Difference Calculator.

When the percentage can mislead

Percent error is a relative comparison, not a full measurement-uncertainty analysis. It does not identify the cause of a difference or prove that an instrument, model or experiment is accurate. When uncertainty matters, report the measurement and its uncertainty using the method required for that field.

Rounding and reporting

Keep extra digits during the subtraction and division, then round the final percentage to a precision justified by the measurements and reference. Do not report many decimal places just because a calculator can display them. A clear record names both values, their units, the source of the reference, the signed difference if direction matters, and the rounding used.

How to use the Percent Error Calculator

  1. Open the Percent Error Calculator.
  2. Enter the observed value and the non-zero reference value using compatible units.
  3. Select Calculate and review both the absolute percent error and signed difference.
  4. Check that the reference is the correct benchmark for your question before interpreting the percentage.

Frequently asked questions

What is the formula for percent error?

Absolute percent error = |observed value − reference value| ÷ |reference value| × 100%, provided the reference is not zero.

Can percent error be negative?

Absolute percent error is never negative. Keep the signed difference, observed minus reference, separately if you need to show whether the observation is above or below the benchmark.

What if the reference value is zero?

Percent error is undefined because the formula divides by the reference value. Report the absolute difference or use another metric only when it fits the comparison.

Is percent error the same as percent difference?

No. Percent error compares a result with a designated reference. Percent difference is commonly used when comparing two results without treating either as the correct reference.

Sources and related tools

The formula and terminology follow the explanations in LibreTexts’ introductory chemistry chapter on percent error and the University of Iowa Physics and Astronomy percent-error formula. For the distinction from percent difference, see the WebAssign course manual on percent error and percent difference. Accessed 2 December 2026. The numerical example above is direct arithmetic using the stated values.

Related tools: Percent Error Calculator and Percentage Difference Calculator. Read the calculation methodology for the site's general approach.

AI-assisted article; not independently reviewed by a human editor. This is a mathematics learning resource, not a substitute for a course text, laboratory protocol, instrument specification or qualified technical review.