Boneyard Tools

Percent Error Calculator

Enter your experimental (measured) value and the theoretical (accepted) value to get the percent error, the absolute difference divided by the accepted value, times 100. Switch to percent difference mode to compare two values when neither one is the reference. Results show up to six significant figures and are always positive, since the formula takes an absolute value.

How to calculate percent error

  1. Choose 'Percent error' (the default) or 'Percent difference' with the toggle at the top.
  2. Enter the experimental (measured) value in the left field, labeled Value A in difference mode.
  3. Enter the theoretical (accepted) value in the right field, labeled Value B in difference mode.
  4. Read the result as a percent in the box below the inputs.
  5. Use the Copy button to grab the labeled result.

Examples

Measuring gravity

Percent error, experimental 9.8, theoretical 9.81
0.101937%

A larger discrepancy

Percent error, experimental 102, theoretical 100
2%

Percent difference of two readings

Percent difference, Value A 100, Value B 120
18.1818%

Frequently asked questions

What is the percent error formula?

Percent error equals the absolute value of (experimental minus theoretical), divided by the absolute value of the theoretical, times 100. For 9.8 against 9.81 that is 0.01 / 9.81 x 100, about 0.101937%.

How is percent difference calculated?

Percent difference is the absolute difference of two values divided by their mean magnitude, times 100: |a - b| / ((|a| + |b|) / 2) x 100. It is symmetric, so swapping the two values gives the same answer.

When should I use percent error versus percent difference?

Use percent error when one value is a known, accepted, or expected reference and the other is your measurement. Use percent difference when you compare two measurements and neither is treated as correct.

Why must the theoretical value not be zero?

Percent error divides by the accepted value, and dividing by zero is undefined. The engine throws an error rather than returning infinity when the theoretical value is zero.

What happens if both values are zero in difference mode?

The mean magnitude becomes zero, so percent difference is undefined. The tool reports an error in that case instead of a nonsensical number.

Can percent error be over 100 percent?

Yes. If the measurement is far from the accepted value, the error easily exceeds 100 percent. For example 5 against an accepted 2 gives 150 percent.

Is the result ever negative?

No. Both formulas take an absolute value, so the result is always zero or positive. A perfect match with the accepted value gives exactly 0 percent.

How are the results rounded?

The display keeps up to six significant figures and trims trailing zeros, so a clean 2% shows as 2% while a long decimal like 0.1019367... shows as 0.101937%.

Is my data private?

Yes. Every calculation runs locally in your browser, so nothing you type is uploaded or stored.

Learn more

Related tools