Confidence Interval

Use this calculator

A confidence interval gives a range of plausible population parameter values using a stated estimation procedure. Its confidence level describes the long-run coverage of that procedure over repeated samples, not the probability assigned to the unknown fixed parameter after one interval is observed.

Estimate plus an uncertainty margin

SE = \frac{s}{\sqrt{n}}
CI = \bar{x} \pm z\, SE

SE is standard error; s is the entered Standard deviation; n Sample size; x̄ Sample mean; z selected normal critical value. The app uses a z-based normal approximation and reports bounds x̄−zSE through x̄+zSE.

Enter a mean and sample information

Enter Sample mean, nonnegative Standard deviation and positive integer Sample size; choose Confidence level 90%, 95% or 99%, then Calculate. For x̄=100, s=15, n=100 at 95%, SE=1.5 and margin=2.94.

Read the two interval endpoints

The main result is Confidence interval, 97.06 to 102.94 in this example. The result also displays Margin of error and Standard error, with a warning that small samples with unknown population SD generally call for a t-based procedure.

How width changes

Higher confidence increases z and widens the interval for the same data. A larger sample decreases SE as 1/√n and usually narrows it.

Example 100 ± 2.94 gives [97.06,102.94]

Higher confidence increases z and widens the interval for the same data. A larger sample decreases SE as 1/√n and usually narrows it.

Sampling assumptions

An interval calculation relies on how data were sampled, distributional assumptions, and the meaning of the supplied SD; more decimal places do not repair biased sampling.

With s=15 and 95% z=1.96, margin declines as 1/√n

An interval calculation relies on how data were sampled, distributional assumptions, and the meaning of the supplied SD; more decimal places do not repair biased sampling.

Interpreting repeated coverage

A well-calibrated 95% construction covers the true population mean in approximately 95% of hypothetical repetitions under its assumptions.

Estimate SE, multiply by z, add/subtract from mean

A well-calibrated 95% construction covers the true population mean in approximately 95% of hypothetical repetitions under its assumptions.

Relation to testing

An interval communicates direction, magnitude and precision together; it offers more context than a single hypothesis-test threshold.

Quick answers

What changes when I select 99%?

The larger critical value generally makes the interval wider.

What does Margin of error represent?

The distance from the estimated mean to either reported bound.

Does 95% mean a 95% chance this fixed interval contains the mean?

In the frequentist framework, 95% describes the method’s coverage across repeated samples.

Why is the small-sample warning shown?

A t-based interval is often more appropriate with unknown population SD and small n.