DOC

How calculators work

How Error Propagates Through a Formula

Learn how standard uncertainty moves through a formula using sensitivity coefficients, covariance, relative rules, two worked examples, and the limits of first-order propagation.

A formula can turn careful measurements into a result that looks far more certain than its inputs deserve. Measure a rectangle, multiply its sides, and the area acquires uncertainty from both measurements. Subtract two temperatures taken with the same instrument and some shared drift may cancel. Divide by a quantity near zero and a modest input uncertainty can produce a wild output distribution.

The familiar phrase error propagation hides an important distinction. A measurement error is the generally unknown difference between a measured value and the quantity’s reference value. What we can evaluate and propagate is measurement uncertainty: a model of the dispersion of values reasonably attributable to each input. NIST explicitly warns against confusing the two, while the international GUM calls the calculation the law of propagation of uncertainty.

Three narrow measurement bands pass through a tangled model and emerge as one wider output band while a technician adjusts an input
A formula does not manufacture certainty. It transforms the size, units, and dependence of the uncertainties already attached to its inputs.
The central ruleoutput uncertainty = input uncertainty × local sensitivity, combined with covariance

Do not propagate a bare ± value until you know what it means and how the inputs depend on one another.

Start with a measurement model, not a shortcut

Write the output as a function of its inputs:

y = f(x1, x2, …, xN)
sensitivity to input ici = ∂f/∂xi
input standard uncertaintyu(xi)
input covarianceu(xi, xj)

The derivative ci asks a local question: if input xi moves slightly while the others stay fixed, how quickly does the output move? A first-order Taylor expansion makes the mechanism visible:

small output changeδy ≈ Σ ciδxi
take the varianceVar(δy) ≈ Var(Σ ciδxi)
expand variances and covariancesuc²(y) = Σ ci²u²(xi) + 2Σi<j cicju(xi,xj)

This is the general first-order covariance formula in NIST Technical Note 1297, Appendix A and JCGM 100. In matrix notation it is uc²(y) = cTUxc, where Ux is the input covariance matrix.

Units expose whether the calculation makes sense

u(xi)standard uncertainty of input isame unit as xi
cilocal sensitivity coefficientoutput unit ÷ input unit
ciu(xi)uncertainty contributionoutput unit
u(xi,xj)covarianceinput-i unit × input-j unit
rijcorrelation coefficientdimensionless, −1 to +1

Every term inside the variance formula has the square of the output unit; taking the square root returns uc(y) in the same unit as y. If the terms cannot be reduced to one common squared unit, the model or a conversion is wrong.

An uncertainty budget should therefore show more than one final ± number. It should list the input estimates, the meaning of their uncertainties, units, signed sensitivities, dependence assumptions, and contributions in the output unit.

The familiar rules are special cases

If inputs are independent, all covariance terms vanish and the combined standard uncertainty becomes a root-sum-of-squares calculation:

general independent caseuc(y) = √Σ[ciu(xi)]²

Combine contributions expressed in the output unit.

addition or subtractionuc(y) = √(u1² + u2²)

Use absolute uncertainties; subtraction does not subtract uncertainty.

product of powers[uc(y)/|y|]² = Σ[piu(xi)/xi

For y = CΠxipi, combine relative contributions.

The product rule covers multiplication, division, and powers: an exponent p multiplies the first-order relative uncertainty by |p|. It requires nonzero input and output estimates. Near zero, percentages explode or lose meaning; return to the absolute sensitivity formula or propagate distributions directly.

Independence is an assumption, not the default state of the universe. Repeated readings may share calibration, reference data, environmental correction, sample preparation, or a fitted parameter. Independence implies zero covariance, but observing zero covariance does not generally prove independence.

Worked example 1: area from two independent lengths

Suppose the stated ± values are standard uncertainties, not tolerances:

lengthL = 2.000 mu(L) = 0.005 m
widthW = 1.200 mu(W) = 0.003 m
dependenceu(L,W) = 0treated as independent

The model is A = LW, so the best area estimate is A = (2.000)(1.200) = 2.400 m². Now calculate the sensitivities and contributions rather than multiplying the ± values blindly:

1. Sensitivity to lengthcL = ∂A/∂L = W = 1.200 m
2. Length contributioncLu(L) = (1.200 m)(0.005 m) = 0.00600 m²
3. Sensitivity to widthcW = ∂A/∂W = L = 2.000 m
4. Width contributioncWu(W) = (2.000 m)(0.003 m) = 0.00600 m²
5. Root-sum-of-squaresuc(A) = √[(0.00600)² + (0.00600)²] = 0.008485 m²
6. Report with meaningA = 2.400 m²; uc(A) = 0.0085 m²

The relative check gives the same result: √[(0.005/2.000)² + (0.003/1.200)²] = 0.0035355, or 0.3536%; multiplying by 2.400 m² returns 0.008485 m². The two equal contributions also provide a useful audit: neither measurement dominates this budget.

A craftsperson measures perpendicular sides of a rectangle whose colored edge bands show length and width uncertainty
The area responds in two perpendicular directions. Sensitivity converts each length uncertainty into square metres before the contributions are combined.

Correlation can enlarge a sum and shrink a difference

Write covariance as u(x1,x2) = r12u1u2. For two readings:

sumu²(x1 + x2) = u1² + u2² + 2r12u1u2
differenceu²(x1 − x2) = u1² + u2² − 2r12u1u2

Correlation has no universal “good” or “bad” direction. Its effect depends on both the sign of the correlation and the signs of the sensitivity coefficients.

Positive correlation increases uncertainty in a sum but can cancel shared motion in a difference. JCGM 100 specifically identifies shared instruments, standards, and reference data as possible sources of correlation. Omitting a material covariance term is not conservative in any reliable sense: depending on the model, it may understate or overstate the result.

Worked example 2: a correlated temperature difference

Two readings from a shared measurement system are T1 = 80.0 °C and T2 = 72.0 °C. Each has standard uncertainty 0.20 °C, and their estimated correlation coefficient is r = 0.75. For a temperature difference, an interval of 1 °C has the same magnitude as 1 K.

1. Difference and sensitivitiesΔT = T1 − T2 = 8.0 °C; c1 = +1, c2 = −1
2. Covarianceu(T1,T2) = (0.75)(0.20)(0.20) = 0.030 °C²
3. Combined varianceuc²(ΔT) = 0.20² + 0.20² − 2(0.75)(0.20)(0.20) = 0.020 °C²
4. Combined uncertaintyuc(ΔT) = √0.020 = 0.1414 °C ≈ 0.14 °C
5. Independence countercheckr = 0 would give √(0.20² + 0.20²) = 0.2828 °C
6. ReportΔT = 8.0 °C; uc(ΔT) = 0.14 °C

The correlated result is half the independence result because a shared component cancels in subtraction. This does not make either individual temperature twice as accurate. At the limiting checks, equal uncertainties with r = +1 cancel completely in the difference, while r = −1 produce 0.40 °C.

Two linked measurement stands lean together in the same wind while a person holds a nearly unchanged gap between them
Common-mode motion can disappear from a difference. The dependence model belongs in the calculation just as much as the individual uncertainties do.

A ± sign does not tell you what kind of uncertainty you have

Standard uncertainty, u

Expressed as a standard deviation. These are the quantities combined by the covariance formula.

Expanded uncertainty, U

U = kuc. Report the coverage factor k and the basis for any coverage claim.

Tolerance or specification

A permitted interval, not automatically a probability distribution or standard deviation.

Distribution half-width

Needs a distribution model. For a rectangular distribution with half-width a, u = a/√3.

NIST commonly reports expanded uncertainty using k = 2, but TN 1297 says the resulting interval is only approximately 95% under suitable distribution and degrees-of-freedom conditions. It is not an exact universal promise.

If the area example’s ± values were hard tolerances instead of standard uncertainties, a first-order worst-case calculation would add absolute contributions: 0.006 + 0.006 = 0.012 m². Exact corner evaluation gives Amin = (1.995)(1.197) = 2.388015 m² and Amax = (2.005)(1.203) = 2.412015 m². That asymmetric bounded interval answers a different question from the 0.0085 m² combined standard uncertainty. JCGM 106 likewise treats tolerance and measurement uncertainty as separate inputs to conformity assessment.

When first-order propagation stops being trustworthy

The derivative formula is a local linear approximation. It earns trust when the model is smooth and nearly linear over the region containing meaningful input probability. It can mislead when:

Curvature matters

Input uncertainty spans a strongly nonlinear part of the model, or the gradient is near zero while second-order effects remain.

A denominator approaches zero

A ratio may become highly skewed or unbounded; a relative percentage is not an adequate description.

The model has edges

Thresholds, clipping, absolute values, piecewise rules, discontinuities, and physical bounds break the smooth local picture.

The output is not symmetric

Non-Gaussian, bounded, skewed, or multimodal results may not fit a useful y ± U summary.

Covariance is incomplete

A matrix of second moments may not describe a complicated joint distribution or nonlinear dependence.

The JCGM 101 Monte Carlo supplement provides an alternative: assign defensible input probability distributions and their dependence, sample them, run every draw through the full measurement model, and summarize the output distribution. It avoids derivatives and can produce asymmetric coverage intervals. It does not repair an omitted input, an unjustified distribution, a wrong correlation model, insufficient sampling, or a physically incomplete equation.

A disciplined propagation workflow

  1. Define the measurand.Write the complete model, including corrections and influence quantities.
  2. Classify every ± input.Standard uncertainty, expanded uncertainty, distribution width, resolution, or tolerance are not interchangeable.
  3. Put units on everything.Convert before differentiation and express contributions in the output unit.
  4. Model dependence.Include significant covariance; justify independence instead of assuming it.
  5. Test the approximation.Inspect curvature, zero crossings, bounds, and the plausibility of a symmetric interval.
  6. Report the meaning.State the model, result, uncertainty type, coverage factor if used, and important assumptions.

The calculation is not finished when a square root appears. It is finished when the reader can see which uncertainty was propagated, how each input affected the output, which dependencies were retained, and where the approximation might fail.