Confidence Interval Calculator
CI = mean ± z × (σ/√n). 90 / 95 / 99 % standard intervals.
Result
Loading calculator…
—
How to use this calculator
- Enter sample mean and standard deviation.
- Enter sample size.
- Pick confidence level.
- Read CI bounds.
About this calculator
A 95% confidence interval means: if we repeated this sampling procedure many times, ~95% of CIs would contain the true population mean. Wider CI = less precision. Doubling sample size shrinks margin by √2 (~30%). Quadrupling halves margin. Common z-values: 80% → 1.282, 90% → 1.645, 95% → 1.96, 99% → 2.576. For small samples (n < 30), use the t-distribution instead — wider intervals at given confidence.
Frequently asked
CI vs. p-value?+
Two views of the same statistical evidence. CI quantifies precision; p tests whether 0 (or some null value) lies in the CI.
When to use t instead of z?+
When n < 30 and σ is estimated from sample. For n ≥ 30, t and z converge so z works. This calc uses z.
Wider CI is bad?+
Wider = less precise. To narrow: increase n or reduce σ. Confidence level (95% vs 99%) also affects width.
Does CI include the true mean?+
For each individual CI: maybe (95% chance under repeated sampling). Don't say "95% probability mean is in this CI" — that's a Bayesian credible interval, not a frequentist CI.
Sample size for 1-point margin?+
n ≈ (z × σ / margin)². For σ = 15, 95% CI, margin = 1: n ≈ (1.96 × 15)² ≈ 864.
Related calculators
P-Value Calculator (z to p)
Convert a z-score to one-tail or two-tail p-value via the standard normal CDF.
Normal Distribution Calculator (PDF + CDF)
Compute probability density and cumulative probability at x for given μ, σ.
Binomial Probability Calculator
P(X = k) = C(n,k) p^k (1−p)^(n−k). Probability of exactly k successes in n trials.
Pearson Correlation Coefficient
r = Σ(xᵢ−x̄)(yᵢ−ȳ) / √(Σ(xᵢ−x̄)² Σ(yᵢ−ȳ)²). Linear correlation [−1, 1].
Combinations Calculator C(n, r)
C(n, r) = n! / (r!(n−r)!). Number of ways to choose r items from n where order doesn't matter.
Permutations Calculator P(n, r)
P(n, r) = n! / (n−r)!. Number of ways to arrange r items from n where order matters.