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
- Choose 'Percent error' (the default) or 'Percent difference' with the toggle at the top.
- Enter the experimental (measured) value in the left field, labeled Value A in difference mode.
- Enter the theoretical (accepted) value in the right field, labeled Value B in difference mode.
- Read the result as a percent in the box below the inputs.
- 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
- Percent Error vs Percent Difference Explained
Learn when to use percent error against a known value and when percent difference between two measurements is the honest choice, with worked math.
Related tools
Percentage Change Calculator
Calculate the percent increase or decrease between two numbers. Also find what percent X is of Y and work out P percent of any number. Free and instant.
Significant Figures Calculator
Count the significant figures in any number and round to a set number of sig figs. See which digits count and why, with scientific notation. Free and private.
Standard Deviation Calculator
Calculate standard deviation and variance online. Paste a list of numbers to get the mean, count, and both sample and population results instantly.
Annulus Area Calculator
Calculate the area of an annulus, the ring between two concentric circles, from its outer and inner radius. Returns both circumferences and width too. Free.
Area Calculator
Find the area of a circle, square, rectangle, triangle, trapezoid, parallelogram, ellipse, sector or rhombus. Free and runs in your browser.
Arithmetic Sequence Calculator
Find the nth term, the sum of n terms and the full term list for any arithmetic or geometric sequence. Enter the first term, step or ratio, and n.