← Back to QuantegyAI

Confidence Interval Calculator

For a population mean (with σ known or unknown) or a population proportion.

Built by Dr. Mienie Roberts for university statistics and TExES 7–12 students. Free to use, free to share.

📊 Sample data

Computed from your sample.
A decimal between 0 and 1.

🎯 Confidence level

Custom: %
Methodology. Critical values use the inverse normal (Acklam, 2003) for z* and the inverse t-distribution (computed via the regularized incomplete beta function) for t*. The proportion interval uses the standard Wald form p̂ ± z* · √(p̂(1−p̂)/n); for very small n or extreme p̂, prefer the Wilson or Agresti–Coull interval. More on methods ↓

Methods and assumptions

One-sample mean (σ unknown). Uses x̄ ± t* · (s/√n) with df = n − 1. Assumes the data are approximately normal or n is large enough for the central limit theorem to apply (a common rule of thumb is n ≥ 30, though smaller n is acceptable when the population is roughly symmetric and free of strong outliers).

One-sample mean (σ known). Uses x̄ ± z* · (σ/√n). The σ-known case is rare in practice — it appears in introductory courses and in problems where σ is fixed by design (instrument calibration, simulated populations).

One-sample proportion. Uses p̂ ± z* · √(p̂(1−p̂)/n). The Wald interval requires np̂ ≥ 10 and n(1−p̂) ≥ 10 to be reliable. When p̂ is close to 0 or 1, or when n is small, the Wilson score and Agresti–Coull intervals are preferred (Agresti & Coull, 1998; Brown, Cai, & DasGupta, 2001).

This calculator is provided as an open educational resource. Author: Dr. Mienie Roberts, mathematics faculty and founder of QuantegyAI. Citation: Roberts, M. (2026). Confidence Interval Calculator [Web applet]. QuantegyAI. Retrieved from https://quantegyai.com/confidence-interval-calculator.html

References: Acklam, P. J. (2003). An algorithm for computing the inverse normal cumulative distribution function. Agresti, A., & Coull, B. A. (1998). Approximate is better than “exact” for interval estimation of binomial proportions. The American Statistician, 52(2), 119–126. Brown, L. D., Cai, T. T., & DasGupta, A. (2001). Interval estimation for a binomial proportion. Statistical Science, 16(2), 101–133.

Free to use, share, and embed for educational purposes. Suggestions: contact us.