Percent error: formulas, examples and interpretation
Use the same units for observed and reference values. Enter plain decimals without grouping or scientific notation: up to 40 digits in total, including at most 20 after the decimal separator.
Calculate percent error from two values
Enter an observed, measured or experimental value O and an accepted or theoretical reference R in the same units. The percent error is 100 × |O − R| / |R|. For O = 49 and R = 50, the signed difference is −1, the absolute error is 1, the relative magnitude is 1/50 = 0.02, and the percent error is 2%. Changing both values from grams to kilograms gives 0.049 and 0.050 and leaves the percentage unchanged. Enter a meaningful reference for your quantity; conversions that shift the zero point can change a relative percentage.
p = 100 × |O − R| / |R|; R ≠ 0
Magnitude, signed difference and signed relative error
The main percent-error result is nonnegative because both the difference and reference are taken as magnitudes. The report also shows O − R and the separately defined signed relative percentage 100 × (O − R) / R. With a positive reference, a negative signed percentage indicates an observation below the reference. A negative reference reverses that percentage-sign interpretation: O = −90 and R = −100 gives a difference of +10, a magnitude error of 10%, and a signed relative error of −10%. Use the displayed difference to determine numerical direction.
Δ = O − R; s = 100 × (O − R) / R
Find the possible observed values
If a nonzero reference R and a nonnegative error p% are known, let q = p/100. The possible observations are R − q|R| and R + q|R|. For reference 50 and error 2%, the possibilities are 49 and 51. At 0% the branches coincide and only one value is shown. Negative references and percentages over 100% are supported algebraically; a physical context may rule out a candidate. A zero reference cannot be used to define a percentage, so this inverse mode rejects it.
q = p/100; O = R ± q|R|
Find references, including exceptional inverse cases
For observed O and known error p%, the nonzero reference candidates are O/(1 + p/100) and O/(1 − p/100), with any zero denominator excluded. For observation 90 and error 10%, they are 900/11 and 100. At 100% and a nonzero observation, only O/2 remains. If O = 0 and p = 100%, every nonzero reference is a solution; if O = 0 and p differs from 100%, there is no valid reference. The tool reports these cases explicitly, removes duplicate candidates and never substitutes a zero reference.
R ∈ {O/(1 + p/100), O/(1 − p/100)}; R ≠ 0
Zero references, precision and numerical limits
A reference of zero makes relative and percent error undefined, even when the observed value is also zero. Absolute error remains meaningful and is shown. Inputs support plain decimal notation with up to 40 digits in total and 20 fractional digits. Calculations use exact rational arithmetic; choosing 0 to 12 displayed decimal places does not change the stored value. Display rounding uses halves away from zero, and ≈ identifies rounding. A tiny positive error can display as approximately 0%, while its nonzero exact fraction remains visible. This display setting is not a significant-figure or uncertainty analysis.
Interpret the result and retain your working
Percent error describes agreement with the reference you supplied. It is not a probability, a confidence interval or proof that an instrument is calibrated. Repeated measurements and their spread concern precision; closeness to an appropriate reference concerns accuracy. There is no universal acceptable percent error for every experiment. Percent difference compares two peer values using a different denominator, and percent change compares a starting and ending value. Use the related Percentage Calculator for those tasks. Copy, CSV and Print / Save as PDF preserve the current inputs, selected method, exact results and working; calculation data stays in the current tab.
For percentage changes and comparisons, use Percentage Calculator. For exact fraction arithmetic, use Fraction Calculator. For expressions with powers and functions, use Scientific Calculator.
The BIPM/JCGM VIM 2.16 defines measurement error using a measured value and a reference. ISO 5725-1:2023 addresses trueness and precision; the JCGM GUM addresses measurement uncertainty. This calculator does not perform a full ISO 5725 study or GUM uncertainty evaluation.
Common questions
Can percent error be negative?
The primary error magnitude is always nonnegative. This tool separately labels 100 × (O − R) / R as signed relative error. Its sign depends on the sign of the reference; the displayed difference O − R gives numerical direction.
Why is 0 observed against 0 reference undefined rather than 0%?
The percentage formula divides by the reference magnitude. At zero reference this is division by zero, including 0/0 when the observation is also zero. The absolute difference is still zero in that case.
Can the error be greater than 100%?
Yes. Observation 25 against reference 10 has absolute error 15 and percent error 150%. A percentage above 100 is mathematically valid; interpret it using the actual measurement context.
Why do inverse calculations sometimes show two values?
An unsigned error magnitude does not tell which side of a reference the observation lies on. Both branches may satisfy the equation. The calculator returns all distinct valid candidates, or explicitly reports an infinite or empty solution set.
Is percent error the same as measurement uncertainty?
No. It is a comparison with a chosen reference. Uncertainty describes the range or limitations associated with a measurement and usually needs more information about the method, instrument and repeated observations.
Explore related tools
- Percentage Calculator
- Fraction Calculator
- Scientific Calculator
- Random Number Generator
- Math calculators