Introduction
Every measurement has some doubt in it. A ruler, a scale, or a timer can only get so close to the true value. That small doubt is called uncertainty. When you use those measured numbers in a math formula, the doubt carries through to your answer. This uncertainty calculator works out how much.
The tool has three modes:
- Expression Mode. Type a formula like
(12±0.1) * (x + y). The calculator finds the partial derivatives, combines them in quadrature, and shows each step. - Step Calculator. Work with two numbers at a time. Add, multiply, take a square root, and more. Pick standard error or worst-case error, and store results in memory.
- Monte Carlo. Run up to 2 million random trials. Choose normal, uniform, triangular, or t-distributions for your inputs. You can add correlations and copulas too.
Each mode returns a result with a ± value, a step-by-step solution, and a chart showing which input adds the most doubt. Results are rounded to the right number of significant figures, so you can copy them straight into a lab report.
This is useful for physics and chemistry labs, engineering work, and calibration jobs that follow the GUM method. Start with a preset example, or type in your own numbers.
How to use our Uncertainty Calculator
Type your formula and the value and uncertainty of each quantity. The calculator gives you the result, its uncertainty, the partial derivatives, step-by-step math, and a chart. Pick one of the three tabs: Expression Mode, Step Calculator, or Monte Carlo.
Expression Mode
Expression: Type your formula, like (12±0.1) * (x + y). Type +- and it turns into ±, or click the ± button. Use a period for decimals.
Insert function / constant: Click this button to add sqrt, log, sin, pi, and more without typing them.
Value of each variable: Enter the measured number for every named variable, such as x or y. A box appears for each one you type.
± uncertainty of each variable: Enter how much that value can be off by. It must be zero or higher.
Calculate: Press this to see the formula, the partial derivatives, the final answer, and the variance chart. Press Clear to start over.
Step Calculator
Propagation method: Pick Standard Error to add the errors in quadrature, or Maximum Error for the worst case.
X and ± dX: Enter the first value and its uncertainty. Blank boxes count as zero.
Y and ± dY: Enter the second value and its uncertainty. Only needed for two-number operations.
Binary operations: Click a button like X + Y, X × Y, or X ^ Y to use both numbers.
Functions: Click a button like sqrt(X), ln(X), or sin(X) to use X alone.
Number format: Choose Standard or Scientific for how the answers are shown.
Memory buttons: Use Z → Mem, Z → X, Mem → Y, or Swap X↔Y to move results into new steps.
Monte Carlo
Preset example: Pick a ready-made example, like Voltage Divider, to fill everything in for you.
Number of input quantities: Choose how many quantities your model has, from 1 to 15.
Name: Give each quantity a short name, like R1 or Vin. Start with a letter.
Distribution: Pick the shape of each quantity: Normal, Uniform, Triangular, t, or Rectangular.
Nominal value: Enter the best estimate for that quantity.
Standard uncertainty u / half-width a: Enter the spread for that quantity. It must be zero or higher.
Additional parameter: Enter degrees of freedom for the t-distribution, or the upper half-width for a triangular shape.
Output expression: Write the formula for y using the exact names from the table, like Vin * R2 / (R1 + R2).
Include input correlations: Tick this if your quantities are linked, then fill the matrix with values between −1 and 1.
Copula type and θ: Under Advanced Dependency Modeling, pick Gaussian, Clayton, Gumbel, or Frank, and set θ for the last three.
Number of realizations: Enter how many random trials to run, from 1,000 to 2,000,000. More trials means a smoother result.
Random seed: Enter a whole number to get the same result each run, or leave it blank for random.
Coverage probability (%): Enter the confidence level for your interval, such as 95.
Symmetrical coverage interval: Leave it ticked for an even split on both sides, or untick it for the shortest interval.
Run Simulation: Press this to get the mean, standard uncertainty, coverage interval, histogram, and steps. Press Reset to start fresh.
What Is Uncertainty Propagation?
Every measurement has a little bit of doubt in it. A ruler, a scale, or a thermometer can only get so close to the true value. That doubt is called uncertainty, and we write it with a ± sign. For example, 12 ± 0.1 cm means the real length is most likely between 11.9 and 12.1 cm.
When you use those measured numbers in a math formula, the doubt travels with them into your answer. Working out how much doubt ends up in the final answer is called uncertainty propagation, or error propagation.
How the Math Works
The most common method is the quadrature rule from the GUM (Guide to the Expression of Uncertainty in Measurement). You find how much the answer changes when each input changes a little. That change rate is the partial derivative, also called the sensitivity coefficient. Then you multiply each one by its uncertainty, square the results, add them, and take the square root:
δf = √[ (∂f/∂x · δx)² + (∂f/∂y · δy)² + … ]
Squaring and adding works because random errors do not all push the answer the same way at the same time. Some cancel out. If you want the worst case instead, you just add the contributions without squaring. That gives a bigger, safer number.
Simple Rules of Thumb
- Adding or subtracting: add the absolute uncertainties in quadrature.
- Multiplying or dividing: add the percent (relative) uncertainties in quadrature.
- Powers: multiply the percent uncertainty by the exponent. Squaring a value doubles its percent uncertainty.
The Monte Carlo Method
Sometimes a formula is curvy, or the inputs are not shaped like a normal bell curve. Then the simple formula can be off. The Monte Carlo method fixes this. It picks thousands (or millions) of random values for each input, runs them all through the formula, and looks at the spread of answers. The average is your result, the standard deviation is your uncertainty, and the middle 95% of answers is your coverage interval.
Monte Carlo also handles inputs that are linked together. If two measurements come from the same instrument, their errors move together. That link is called correlation, and ignoring it can make your uncertainty too small or too big.
Common Distributions
- Normal: the bell curve. Use it for repeated readings and most lab data.
- Uniform (rectangular): any value in a range is equally likely. Good for digital readouts and tolerance limits.
- Triangular: values near the middle are more likely than values at the edges.
- t-distribution: like the bell curve, but with fatter tails. Use it when you only have a few readings.
Writing Your Answer Correctly
Round the uncertainty to one or two significant figures first. Then round the result to the same decimal place. Write 9.82 ± 0.05 m/s², not 9.8173 ± 0.0492. Also state your coverage factor. A factor of k = 2 covers about 95% of the possible values for a normal distribution.
Where It Is Used
Uncertainty propagation shows up in physics labs, chemistry, engineering design, calibration certificates, medical testing, and quality control. Any time you report a measured number, the uncertainty tells people how much they can trust it.