Connect via MCP →

Enter Calculation

Constraint: 50 < confidence < 100. Mean and standard deviation are plain numbers in the same units; the interval is reported in those units.

Formula

Advertisement

Results

Estimated true value range (95% confidence)
The true value is estimated to be between -1.959963 and 1.959963.
Lower bound -1.959963
Upper bound 1.959963
Critical value z (two-sided) 1.95996
Distribution Normal (z), μ ± z·σ

What this calculator does

This tool estimates the range in which a "true value" is likely to lie, given a sample mean (\(\mu\)) and a standard deviation (\(\sigma\)). It assumes the quantity follows a normal distribution and reports the symmetric two-sided interval \(\mu \pm z\cdot\sigma\), where z is the standard-normal critical value for the confidence level you choose. Mean and standard deviation are plain numbers, and the interval is returned in whatever units you supplied.

How to use it

Enter your mean, your standard deviation (must be 0 or greater), and a confidence level as a percent where \(50 < \text{confidence} < 100\) (commonly 95). The calculator converts the percent to a probability p, finds the critical value \(z = \Phi^{-1}\!\left(\frac{1+p}{2}\right)\), and returns the lower and upper bounds. At 100% the interval would be infinite, so the confidence must stay below 100.

The formula explained

For probability \(p = \text{confidence}/100\), the two-sided z value is the standard normal quantile at \((1+p)/2\). For 95% this is \(\Phi^{-1}(0.975) \approx 1.95996\), so the interval is \(\mu \pm 1.96\sigma\). Useful landmarks: 68.26% coverage equals \(\mu \pm 1\sigma\), 95.45% equals \(\mu \pm 2\sigma\), and 99.73% equals \(\mu \pm 3\sigma\). The inverse normal CDF is computed with a rational (Acklam) approximation plus a Halley refinement step, so no lookup table is needed.

$$\text{CI} = \text{Mean }\mu \pm z \cdot \text{SD }\sigma \\[1.5em] \text{where}\quad z = \Phi^{-1}\!\left(\frac{1 + \frac{\text{Confidence }\%}{100}}{2}\right)$$
Advertisement
Bell curve with a shaded central region between mean minus z-sigma and mean plus z-sigma
The confidence interval spans the central shaded area of the normal curve, centered on the mean.

Worked example

With mean = 100, sd = 5 and confidence = 99%: \(p = 0.99\), \(z = \Phi^{-1}(0.995) \approx 2.57583\).

$$\text{Lower bound} = 100 - 2.57583\cdot 5 = 87.121$$$$\text{upper bound} = 100 + 12.879 = 112.879$$

The result reads "between 87.12 and 112.88".

Horizontal number line with a center point and symmetric error bars to a lower and upper bound
The interval is the sample mean with a symmetric margin extending to the lower and upper bounds.

FAQ

Why does it use 1.96 for 95%, not 1.645? A symmetric two-sided interval splits the remaining 5% into two tails of 2.5% each, giving \(\Phi^{-1}(0.975) \approx 1.96\). The value 1.645 is the one-sided 95% quantile and is not correct for a two-sided range.

Should I use the t-distribution instead? When \(\sigma\) is estimated from a small sample, a t-distribution with sample size n (interval \(\text{mean} \pm t\cdot s/\sqrt{n}\)) is more appropriate. This tool deliberately treats \(\sigma\) as a known population value and uses the normal z, so it does not require n.

What if sd = 0? The interval collapses to a single point \([\text{mean}, \text{mean}]\).

Last updated: