The percent error formula is short, but it has a few variations that matter depending on what you are measuring and which discipline you are in. The calculator above uses the standard absolute-value form. The variants below cover the cases the standard form leaves out.
1. Standard Percent Error Formula (absolute value)
%Error = |Experimental − Theoretical| ÷ |Theoretical| × 100
Where:
Experimental = the value you measured or computed
Theoretical = the accepted, true, or reference value
This is what most textbooks mean when they say "how to calculate percent error." The absolute value bars guarantee a positive result, so you can compare trials without caring about direction.
2. Signed Percent Error (used in some sciences and engineering)
%Error = (Experimental − Theoretical) ÷ Theoretical × 100
Positive result → you overestimated (measurement too high)
Negative result → you underestimated (measurement too low)
Signed percent error is common in analytical chemistry spike recoveries, in gauge R&R studies, and anywhere a bias direction matters. If a scale reads 102 g for a 100 g standard, the signed error is +2%. A reading of 98 g gives −2%. Both have an unsigned error of 2%, which is why the unsigned form hides systematic bias.
3. Percent Difference vs Percent Error
Percent error compares a measurement to a known truth. Percent difference compares two measurements when neither is considered "correct." The denominators are different:
%Error = |Experimental − Theoretical| ÷ |Theoretical| × 100
%Difference = |Value1 − Value2| ÷ ((Value1 + Value2) ÷ 2) × 100
Use percent difference when you run a measurement twice on two instruments and want to know how close the two readings are to each other. Use percent error when one of the two numbers is an accepted standard. Mixing them up is one of the most common grading mistakes on chemistry lab reports.
4. Absolute Error and Relative Error
Absolute Error = |Experimental − Theoretical|
Relative Error = Absolute Error ÷ |Theoretical|
Percent Error = Relative Error × 100
Absolute error carries units (grams, seconds, meters). Relative error is unitless. Percent error is just relative error written as a percentage. This relative error calculator chain is why the widget above displays all three at once.
Worked Example 1: Gravitational Acceleration
Experimental g = 9.81 m/s²
Accepted g = 9.80665 m/s²
Absolute Error = |9.81 − 9.80665| = 0.00335 m/s²
Relative Error = 0.00335 ÷ 9.80665 = 0.0003416
Percent Error = 0.0003416 × 100 ≈ 0.034%
A timed-pendulum experiment that lands within 0.034% of the accepted value is an excellent result for an introductory physics lab.
Worked Example 2: Density of Aluminum
Experimental density = 2.65 g/cm³
Accepted density = 2.70 g/cm³
Absolute Error = |2.65 − 2.70| = 0.05 g/cm³
Relative Error = 0.05 ÷ 2.70 = 0.01852
Percent Error = 0.01852 × 100 ≈ 1.85%
A 1.85% percent error is well within the 5% tolerance most introductory chemistry courses accept for a density determination using a graduated cylinder and a balance.
Quick Reference: Common Lab Scenarios
Use this table to sanity-check a percent error before you commit it to a lab report. All numbers are computed with the standard formula in section 1.
| Scenario | Experimental | Accepted | Absolute Error | %Error |
|---|
| Boiling point of water | 99.2 °C | 100.0 °C | 0.8 °C | 0.80% |
| Density of aluminum | 2.65 g/cm³ | 2.70 g/cm³ | 0.05 g/cm³ | 1.85% |
| Speed of sound in air (20 °C) | 340 m/s | 343 m/s | 3 m/s | 0.87% |
| Molar mass of NaCl titration | 58.9 g/mol | 58.44 g/mol | 0.46 g/mol | 0.79% |
| Avogadro's number estimate | 6.05 × 10²³ | 6.022 × 10²³ | 0.028 × 10²³ | 0.46% |
| Acceleration due to gravity | 9.78 m/s² | 9.80665 m/s² | 0.02665 m/s² | 0.27% |
| Resistance of a 100 Ω resistor | 103 Ω | 100 Ω | 3 Ω | 3.00% |
| Melting point of ice | 0.4 °C | 0.0 °C | 0.4 °C | undefined* |
*When the accepted value is zero, percent error is undefined because the denominator is zero. Use absolute error instead, or compare against a non-zero reference point (for example, use Kelvin instead of Celsius for the ice row).