Confidence Interval Calculator

Mean ± margin of error at 80–99% confidence.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

A confidence interval is a range, built from sample data, that is likely to contain the true population mean. This calculator computes a z-based interval from your sample mean, standard deviation, sample size and chosen confidence level. It is a staple of statistics coursework, survey analysis and A/B testing, where you want to report not just an estimate but how precise it is.

How it works

The interval is the sample mean plus and minus a margin of error:

CI = mean ± z × (σ ÷ √n)

Here σ ÷ √n is the standard error of the mean, and z is the critical value for your confidence level. The tool uses these z values: 80% → 1.282, 90% → 1.645, 95% → 1.960, 98% → 2.326, 99% → 2.576. A higher confidence level uses a larger z, widening the interval; a larger sample size shrinks the standard error, narrowing it.

Example

Sample mean 100, standard deviation 15, sample size 36, at 95% confidence:

standard error = 15 ÷ √36 = 15 ÷ 6 = 2.5 margin = 1.96 × 2.5 = 4.9 interval = 100 ± 4.9 = 95.1 to 104.9

So you can be 95% confident the true mean lies between 95.1 and 104.9. All maths happens locally in your browser.

Ad placeholder (rectangle)