Data Science

Confidence Interval Calculator

Calculate a z-based confidence interval for a population mean from a sample mean, standard deviation and sample size.

Explore statistics and data science calculators

Move between confidence intervals, sample size, standard error, relative variability, correlation, regression and prediction error.

Share this calculator
WhatsApp

Confidence Interval Calculator is an educational statistics and data-science tool for exploring a standard quantitative relationship.

How it works

Enter the requested values using the stated definitions. The calculator validates the numerical domain and applies CI = x̄ ± z × s / √n.

The formula

CI = x̄ ± z × s / √n

Variables: x̄ = Sample mean; s = Standard deviation; n = Sample size; z = Z critical value.

Worked example

Example: x̄ = 100, s = 15, n = 100, z = 1.96 → margin = 2.94 and CI = [97.06, 102.94].

Frequently asked questions

What is this statistics calculator intended for?

It is intended for study, classroom exercises and quick exploration of the stated statistical relationship.

Does the result replace a full statistical analysis?

No. Sampling design, assumptions, data quality, dependence, distribution shape, bias and model diagnostics may materially affect a real analysis.

Last content reviewSeptember 26, 2026
Editorial reviewHe-Sab Editorial Review

Sources and references

These sources are used to verify terminology, formulas, and information related to this calculator.