Skip to content

Confidence Interval Calculator

Enter your sample's mean, the standard deviation and the sample size, then choose a confidence level, to get the range that is likely to contain the true population mean.

Calculator Details

95% confidence interval:95.842289 to 104.15771See results ↓

Z-score and percentile, a confidence interval, a sample size, a margin of error or a p-value

Population mean (z-score) or sample mean (confidence interval)

Population standard deviation; must be above 0

Number of observations in the sample

95% is the usual choice; higher confidence needs a wider interval or a larger sample

Your Results

95% confidence interval: 95.842289 to 104.15771

95% confidence interval

95.842289 to 104.15771

100 ± 4.1577115

Margin of error

4.1577115

Standard error (σ/√n)

2.1213203

Critical value z*

1.959963985

Normal curve

-3-2-10123
Middle 95% (±z*) (shaded; horizontal axis in standard deviations).

The 95% confidence interval for the mean is 95.8423 to 104.1577 (100 ± 4.1577).

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Detailed Breakdown

Confidence interval for a mean
QuantityValue
Sample mean x̄100
Standard deviation σ15
Sample size n50
Standard error σ ÷ √n2.1213203
Critical value z* (95%)1.959963985
Margin of error z* × SE4.1577115
Lower bound95.842289
Upper bound104.15771

How This Calculator Works

How It’s Calculated

Confidence interval for a mean with your numbers. Φ is the standard normal cumulative distribution, evaluated to about 15 decimal places (no table lookup or rounding of z).

z* = Φ⁻¹(1 − α/2) = 1.959963985 for 95%

SE = σ ÷ √n = 15 ÷ √50 = 2.1213203

Margin = z* × SE = 4.1577115

Interval = 100 ± 4.1577115 = 95.842289 to 104.15771

Frequently Asked Questions

Does a 95% confidence interval mean there is a 95% chance the true mean is inside it?

Not quite. The true mean is fixed; it is the interval that varies from sample to sample. 95% describes the method: if you took many samples and built an interval from each, about 95 out of 100 of those intervals would contain the true mean. Any single interval either contains it or does not.

Why does a higher confidence level give a wider interval?

To be more certain of catching the true mean you need a wider net. With a mean of 100, a standard deviation of 15 and 50 observations, the 95% interval is 95.84 to 104.16, while the 99% interval widens to 94.54 to 105.46, because the critical value rises from 1.96 to 2.576.

Should I use z or t for a small sample?

This page uses the normal (z) distribution, which assumes the standard deviation is known or the sample is large, roughly 30 or more. For a small sample with a standard deviation estimated from the data, the t distribution gives a slightly wider, more honest interval; the t-test calculator uses it.

How can I make the interval narrower?

Collect more data. The margin of error shrinks with the square root of the sample size, so four times as many observations halve the width. Lowering the confidence level also narrows it, but at the cost of being wrong more often.

Included: z-scores and percentiles, z confidence intervals for a mean, Cochran sample sizes and margins of error for a proportion (with the finite population correction), one- or two-tailed p-values from a z statistic, and the 68–95–99.7 empirical rule ranges with the exact normal shares beside the rounded ones. Φ and Φ⁻¹ are computed to about 15 digits.

Left out: Student’s t intervals for small samples with unknown σ, intervals for differences between groups, design effects for clustered samples, and non-response adjustments. Sample sizes are rounded up. The empirical rule describes a normal distribution only; it does not test whether your data are normal (Chebyshev's bound for any distribution is not shown).

Confidence Interval Calculator for a Mean

By FindMySum · Last reviewed

A confidence interval calculator turns a sample into a range for the quantity you really care about: the mean of the whole population. A sample mean on its own is a single best guess that will almost never be exactly right. The interval adds an honest margin around it, sized by how much the data vary, how many observations you have and how confident you need to be.

Worked example

You measure 50 items and find a mean of 100 with a standard deviation of 15, and you want 95% confidence.

  1. Standard error of the mean: SE = σ ÷ √n = 15 ÷ √50 = 2.1213.
  2. Critical value for 95%: z = 1.96.
  3. Margin of error: 1.96 × 2.1213 = 4.1577.
  4. Interval: 100 ± 4.1577, that is 95.8423 to 104.1577.

So the population mean is plausibly anywhere from about 95.8 to 104.2. Report it as "100 (95% CI 95.8 to 104.2)".

Reading and using the interval

An interval that excludes a value is evidence against that value at the matching significance level: this one excludes 105, so a two-sided test of mean = 105 would reject it at 5%. Two intervals that do not overlap point to a real difference, but overlapping intervals do not prove there is none.

The result is only as good as the sample. A confidence interval accounts for random sampling error, not for bias from who was measured or how. To plan how many observations you need before you start, use the sample size calculator; for z-scores and p-values, the z-score calculator.

Sources

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.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy