Error Propagation Calculator: Combined and Expanded Uncertainty (GUM)
By FindMySum · Last reviewed
No measurement is exact, and any number calculated from measurements inherits their uncertainty. This error propagation calculator takes a formula in up to four variables, x, y, z and w, each with its value and standard uncertainty, and works out the combined standard uncertainty of the result, its relative uncertainty and an expanded uncertainty for a chosen coverage factor. An uncertainty budget shows how much each input contributes, so you can see which measurement to improve.
The law of propagation of uncertainty
For a result y = f(x₁, x₂, …) with independent inputs, the Guide to the Expression of Uncertainty in Measurement (GUM) gives the combined standard uncertainty as
u_c²(y) = Σ (∂f/∂xᵢ)² u²(xᵢ)
Each partial derivative ∂f/∂xᵢ is a sensitivity coefficient: how much y changes per unit change in that input. Multiplying it by the input's standard uncertainty gives that input's contribution, and the contributions add in quadrature. The calculator finds the derivatives numerically, by evaluating your formula with each input nudged up and down by a tiny amount, so it works for any formula you can type: powers, roots, logarithms, exponentials and trigonometric functions in radians.
Worked example: a density measurement
The calculator opens with a density, ρ = m ÷ V, from a mass of 25.0 ± 0.1 g (x) and a volume of 10.0 ± 0.2 mL (y).
- ρ = 25.0 ÷ 10.0 = 2.50 g/mL
- ∂ρ/∂m = 1/V = 0.1, contributing 0.1 × 0.1 = 0.010
- ∂ρ/∂V = −m/V² = −0.25, contributing 0.25 × 0.2 = 0.050
- u_c = √(0.010² + 0.050²) = 0.0510 g/mL, a relative uncertainty of 2.04%
- With k = 2, U = 0.102 g/mL, so ρ = 2.50 ± 0.10 g/mL at about 95% coverage
The budget shows the volume supplies 96% of the variance. Weighing more precisely would barely help; a better volumetric flask would.
Shortcut rules
The general formula reduces to familiar rules for simple cases, which the calculator reproduces:
- Sums and differences: u² = u₁² + u₂². 10 ± 0.3 plus 5 ± 0.4 is 15 ± 0.5.
- Products and quotients: relative uncertainties add in quadrature, (u/y)² = (u₁/x₁)² + (u₂/x₂)².
- Powers: for y = xⁿ, u/y = |n| × u/x. A side of 2.00 ± 0.01 cubed has 1.5% relative uncertainty.
- Functions: u = |f′(x)| × u(x). For sin x at 0.50 ± 0.01 rad, u = cos 0.5 × 0.01 = 0.0088.
Standard and expanded uncertainty
The inputs must be standard uncertainties, one standard deviation each. Convert other statements first: a tolerance of ±a with a rectangular distribution has u = a ÷ √3; an expanded uncertainty quoted with k = 2 is divided by 2. The result can be reported either as y ± u_c or as an expanded uncertainty U = k·u_c. A coverage factor of 2 gives an interval with about 95% coverage when the result is approximately normally distributed, which is what calibration laboratories normally report; k = 3 gives about 99.7%.
Reading the budget
The table lists each input with its value, uncertainty, sensitivity coefficient, contribution and share of the combined variance; the chart shows the shares. Shares are the right way to compare inputs, because variances, not uncertainties, add. In a pendulum measurement of g = 4π²L/T², for instance, the period's uncertainty counts twice as heavily as the length's because T is squared, and timing usually dominates.
Limits
The method is first order: it treats the formula as linear over the range of each uncertainty. That is accurate when uncertainties are small relative to the values, but can mislead near a maximum or minimum, or when dividing by a quantity whose uncertainty is a sizeable fraction of its value. Inputs are assumed independent, so correlated inputs need covariance terms the calculator does not add. For those cases, the GUM's Supplement 1 describes a Monte Carlo method that propagates whole distributions.
More questions
What is the difference between error and uncertainty?
Error is the difference between a measured value and the true value, which is usually unknown. Uncertainty is a quantified doubt about the result: a range within which the true value is believed to lie. Modern metrology, following the GUM, reports uncertainty; 'error propagation' is the older name for the same calculation.
What are Type A and Type B uncertainties?
Type A uncertainties are evaluated statistically, usually as the standard deviation of the mean of repeated readings. Type B uncertainties come from other information: calibration certificates, manufacturer specifications, resolution of an instrument or published data. Both are expressed as standard uncertainties and combined the same way.
How many significant figures should I report?
Usually one or two for the uncertainty, and the result rounded to the same decimal place. A density computed as 2.50 g/mL with u = 0.0510 is reported as 2.500 ± 0.051 or 2.50 ± 0.05 g/mL. Keep full precision in intermediate steps and round only at the end.
What if my inputs are correlated?
The GUM adds covariance terms, 2 (∂f/∂xᵢ)(∂f/∂xⱼ) u(xᵢ, xⱼ), for each correlated pair. Correlation arises when two inputs share a source, such as two masses weighed on the same uncalibrated balance. This calculator assumes independence; positive correlation in a difference reduces the uncertainty, while in a sum it increases it.
When is the first-order method not good enough?
When the formula is strongly non-linear over the range of the uncertainty, for example a function near a minimum, a division by a quantity whose uncertainty is a large fraction of its value, or trigonometric functions near their turning points. The GUM Supplement 1 (JCGM 101) then recommends a Monte Carlo simulation of the full distribution.
Why does the dominant input matter?
Because the variance contributions add, the largest one controls the result. Halving a small contribution changes almost nothing, while halving the dominant one can cut the total nearly in half. The budget table shows where effort to improve a measurement will pay off.
Sources
- JCGM 100:2008, Evaluation of measurement data: Guide to the expression of uncertainty in measurement (GUM)
- NIST Technical Note 1297 (1994), Guidelines for Evaluating and Expressing the Uncertainty of NIST Measurement Results
- NIST/SEMATECH e-Handbook of Statistical Methods, §2.5.5 Propagation of error considerations
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.