
Percent Difference Calculator
Use this free percent difference calculator to calculate percent difference between two nonnegative numbers using |a - b| / ((a + b) / 2) × 100%.
Open toolEnter 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.
Enter the inputs, then select Calculate result.
Result will appear here
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).
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 Scenario | Observed (a) | Accepted Reference (b) | Absolute Error (|a - b|) | Relative Error | Percent Error Output |
|---|---|---|---|---|---|
| Preloaded calibration check | 95 | 100 | 5 | 0.05 | 5% |
| Overestimated calibration check | 105 | 100 | 5 | 0.05 | 5% |
| Aluminum density lab (g/cm³) | 2.64 | 2.70 | 0.06 | 0.0222222222222 | 2.22222222222% |
| Copper density lab (g/cm³) | 8.85 | 8.96 | 0.11 | 0.0122767857143 | 1.22767857143% |
| Pendulum gravity (g in m/s²) | 9.68 | 9.81 | 0.13 | 0.013251783894 | 1.3251783894% |
| Water boiling point at 1 atm (°C) | 99.4 | 100 | 0.6 | 0.006 | 0.6% |
| Acid-base titration molarity (M) | 0.1015 | 0.1000 | 0.0015 | 0.015 | 1.5% |
| Speed of sound at 20 °C (m/s) | 346.2 | 343.0 | 3.2 | 0.00932944606414 | 0.932944606414% |
| Aspirin synthesis yield mass (g) | 4.32 | 4.50 | 0.18 | 0.04 | 4% |
| Precision resistor check (Ω) | 998.5 | 1000 | 1.5 | 0.0015 | 0.15% |
Compute the percentage discrepancy between your experimental reading and the accepted true value in three steps.
Type your measured or experimental number (a) into the Observed value field (95 is preloaded by default).
Type the theoretical, accepted, or textbook true value (b) into the Nonzero reference value field (100 by default).
Press Calculate result to view the percentage error up to 12 significant digits, then use Copy or Download (result.txt) to record it.
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.
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.

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.

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.

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.

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).


Use this free percent difference calculator to calculate percent difference between two nonnegative numbers using |a - b| / ((a + b) / 2) × 100%.
Open toolUse this free percent change calculator to calculate percent change ((New - Starting) / Starting × 100%), absolute difference, and direction in one click.
Open tool
Use this free percentage calculator to calculate percentage of a number (Percentage × Base / 100) up to 12 significant digits, with examples and tables.
Open toolChoose another tool for your next calculation, conversion, or text task.

Use this free significant figures calculator (sig fig calculator) to count significant digits in any decimal, integer, or scientific E-notation string.
Open tool
Use this free rounding calculator to round any decimal to 0-10 decimal places (whole number, tenth, hundredth) with Nearest, Floor, Ceiling, or Truncate.
Open tool
Find mean absolute percentage prediction error.
Open tool
Calculate standard deviation and variance for a number list.
Open toolAnswers about using Percent Error Calculator and understanding its results.
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%.
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.
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.
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.
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.
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.
Choose another tool for your next calculation, conversion, or text task.