AI Tools Free

Percent Error Calculator

Enter your experimental observed value and accepted nonzero reference value into this percent error calculator to calculate percent error in one click. The tool evaluates (|observed - reference| ÷ |reference|) × 100% in your browser up to 12 significant digits.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate result.

Your result
Enter your details

Result will appear here

Percent error calculation formula and how this calculator works

In laboratory sciences and quality engineering, percent error measures how far an experimental measurement (observed) deviates from a known theoretical or accepted value (reference), expressed as a percentage of the true value (for two peer measurements where neither is the true benchmark, use our Percent Difference Calculator).

Percent Error = (|Observed - Reference| ÷ |Reference|) × 100%, where Reference ≠ 0.

Computes absolute error Math.abs(observed - reference), divides by Math.abs(reference), multiplies by 100, and formats to 12 significant digits (see our Rounding Calculator and Significant Figures Calculator).

Diagram showing |95 - 100| / |100| × 100% = 5% computed from Observed value 95 and Nonzero reference value 100
With Observed value = 95 and Nonzero reference value = 100, absolute error 5 divided by 100 equals 5%.

Percent Error Calculation Examples Across Chemistry and Physics Labs

Compare 10 standard laboratory and calibration benchmarks showing the observed reading (a), accepted reference (b), absolute error (|a - b|), relative error, and resulting percent error (%).

Lab / Calibration ScenarioObserved (a)Accepted Reference (b)Absolute Error (|a - b|)Relative ErrorPercent Error Output
Preloaded calibration check9510050.055%
Overestimated calibration check10510050.055%
Aluminum density lab (g/cm³)2.642.700.060.02222222222222.22222222222%
Copper density lab (g/cm³)8.858.960.110.01227678571431.22767857143%
Pendulum gravity (g in m/s²)9.689.810.130.0132517838941.3251783894%
Water boiling point at 1 atm (°C)99.41000.60.0060.6%
Acid-base titration molarity (M)0.10150.10000.00150.0151.5%
Speed of sound at 20 °C (m/s)346.2343.03.20.009329446064140.932944606414%
Aspirin synthesis yield mass (g)4.324.500.180.044%
Precision resistor check (Ω)998.510001.50.00150.15%

How to calculate percent error in 3 steps

Compute the percentage discrepancy between your experimental reading and the accepted true value in three steps.

Enter your experimental observed value

Type your measured or experimental number (a) into the Observed value field (95 is preloaded by default).

Input and settings
Percent Error Calculator input fields populated with Observed value 95 and Nonzero reference value 100
Step 1: Enter your measured reading in Observed value and the true benchmark in Nonzero reference value.

Enter the nonzero reference value

Type the theoretical, accepted, or textbook true value (b) into the Nonzero reference value field (100 by default).

Tool result
Percent Error Calculator output panel displaying 5% for Observed 95 and Reference 100
Step 2: Click Calculate result to evaluate (|a - b| ÷ |b|) × 100%.

Click Calculate result and save the percentage

Press Calculate result to view the percentage error up to 12 significant digits, then use Copy or Download (result.txt) to record it.

Review the details
Percent Error Calculator result panel with 5% and Copy and Download result.txt buttons
Step 3: Copy the percentage error or download result.txt for your lab report.

Worked examples: calculating percent error in chemistry and physics

See how students and engineers apply the percent error calculation formula (including how to calculate percent error chemistry lab problems) across density determinations, calibration checks, and gravity experiments.

Aluminum density lab (2.64 vs 2.70)

Suppose a chemistry student measures an aluminum cylinder by water displacement and records a density of 2.64 g/cm³, while the CRC Handbook lists the accepted density of aluminum as 2.70 g/cm³. Entering 2.64 in Observed value and 2.70 in Nonzero reference value computes |2.64 - 2.70| = 0.06, divides by 2.70 (0.0222222222222), and outputs 2.22222222222%. Since 0.06 has 1 significant figure (or 2 if using three-sig-fig inputs as a guide), you can check sig fig rules in our Significant Figures Calculator and round to 2.2% in our Rounding Calculator.

Worked example showing |2.64 - 2.70| / 2.70 × 100% = 2.22% for aluminum density
Measuring 2.64 g/cm³ against 2.70 g/cm³ yields an absolute error of 0.06 g/cm³ and 2.22% percent error.

Calibration check (95 or 105 vs 100)

With the preloaded Observed value = 95 and Nonzero reference value = 100, clicking Calculate result returns 5% (|95 - 100| ÷ 100 × 100%). Because the numerator uses absolute difference |a - b|, an overestimate of 105 against the same 100 reference also returns 5%. If you want to preserve the + or - sign to show chronological growth or shrinkage from a starting baseline, use our Percent Change Calculator or Percentage Calculator.

Worked example comparing 95 vs 100 and 105 vs 100, both yielding 5% absolute percent error
Both 95 and 105 sit 5 units from the reference 100, producing 5% absolute percent error.

Pendulum gravity lab (9.68 vs 9.81)

In a simple pendulum experiment, a student calculates gravitational acceleration as 9.68 m/s² against the standard sea-level value 9.81 m/s². Entering 9.68 and 9.81 yields |9.68 - 9.81| ÷ 9.81 × 100% = 1.3251783894% (1.33% to three significant figures). When evaluating an entire series of repeated lab trials rather than a single reading, compute trial spread in our Standard Deviation Calculator or batch forecast error in our Mean Absolute Percentage Error Calculator.

Worked example showing pendulum gravity reading 9.68 m/s² compared against 9.81 m/s² (1.33% error)
Comparing experimental 9.68 m/s² against standard gravity 9.81 m/s² gives 1.33% error.

Interpreting percent error output vs percent difference and percent change

Choosing the right denominator prevents a common mistake in lab reports and data analysis:

First, use Percent Error (|a - b| ÷ |b| × 100%) on this page when b is an authoritative, theoretical, or accepted true reference value and a is an experimental measurement being tested against b. When comparing two experimental measurements (a and b) of equal standing where neither is the true reference, divide by their average (a + b) / 2 in our Percent Difference Calculator.

Second, when tracking how a quantity changes over time from an earlier value (a) to a later value (b), keep the sign (+ for increase, - for decrease) and divide by the initial value in our Percent Change Calculator.

Comparison of the denominator in Percent Error (|reference|), Percent Difference (average), and Percent Change (|initial|)
Percent Error divides by |reference|, Percent Difference divides by the two-value average, and Percent Change divides by |initial|.

Percent error calculator input range (-1B to 1B) and nonzero reference rules

Before clicking Calculate result, verify that your numbers satisfy these three constraints:

First, because the formula divides by |b|, entering 0 in Nonzero reference value is mathematically undefined and triggers 'Reference cannot be zero.' (for a theoretical target of 0 °C, convert both readings to Kelvin 273.15 K first).

Second, both Observed value and Nonzero reference value must use the same measurement unit (g/cm³, m/s, mol/L, or K) and fall within -1,000,000,000 to 1,000,000,000. Outputs are formatted to 12 significant digits via toPrecision(12).

Summary of the nonzero reference requirement, unit consistency, and ±1 billion input range
Requires a nonzero reference value and matching measurement units across both fields.

Frequently asked questions about the percent error calculator

Answers about using Percent Error Calculator and understanding its results.

What is the formula for calculating percent error?

Subtract the accepted reference value from the observed experimental value, take the absolute value of that difference, divide by the absolute value of the reference value, and multiply by 100: Percent Error = (|Observed - Reference| ÷ |Reference|) × 100%.

Can percent error be negative?

In standard absolute percent error (which this calculator computes), the outer absolute-value bars always produce a non-negative percentage (>= 0%). If your instructor asks for signed (directional) relative error, omit the numerator absolute value ((Observed - Reference) ÷ |Reference| × 100%): a negative sign then means your measurement was below the accepted reference, and a positive sign means it was above.

When should I use percent error instead of percent difference?

Use percent error when one number is a known, theoretical, or handbook reference standard (like 9.81 m/s² for gravity) and the other is your experimental attempt to measure it. Use percent difference when comparing two measurements of the same status (such as Trial 1 vs Trial 2) where neither value is the official reference.

Why cannot the reference value be zero?

Dividing |Observed - 0| by 0 requires division by zero, which is undefined. When your reference point is 0 on a relative scale (such as 0 °C), convert both temperatures to an absolute scale (273.15 K) before calculating percent error.

How do I calculate percent error in Excel or Google Sheets?

If your observed value is in cell A2 and your accepted reference value is in cell B2, enter =ABS(A2-B2)/ABS(B2) and format the cell as a Percentage (%), or enter =ABS(A2-B2)/ABS(B2)*100 to display the raw percentage number.

How many significant figures should I keep when reporting percent error in chemistry?

First compute the subtraction Observed - Reference using the decimal-place rule (round to the least precise decimal place to see how many significant figures survive in the absolute error), then divide by Reference and keep the smaller significant-figure count between the absolute error and the reference value.

Calculate percent error for your measurement now

Choose another tool for your next calculation, conversion, or text task.

Calculate result