Confidence Interval Calculator

Mean confidence interval for known or sample σ.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter the sample mean, standard deviation, sample size and confidence level. A mean of 50 with SD 10 and n = 36 has a 95% interval of 46.7334 to 53.2666. Any confidence level between 0 and 100 works, such as 80 or 99.9.

How to use

1
Step 1
Enter the sample mean.
2
Step 2
Enter the standard deviation.
3
Step 3
Enter the sample size n.
4
Step 4
Enter the confidence level as a percent between 0 and 100 (90, 95, 99 or any other) and press Calculate.

How it works

The margin of error is z × SD ÷ √n, where z is the inverse normal value for your confidence level, so any level works. For n = 36, SD ÷ √n = 10 ÷ 6 = 1.66667, and × 1.95996 gives ±3.26661. The interval is the mean plus and minus that margin. A higher confidence level or a smaller n widens it.

mean ± z × SD ÷ √n      z = 1.2816 (80%), 1.6449 (90%), 1.9600 (95%), 2.5758 (99%)

Worked example

99% interval for a mean height

Input
mean = 172, SD = 8, n = 64, 99%
Output
169.424 to 174.576 (margin 2.57583)
Walkthrough
SD ÷ √n = 8 ÷ 8 = 1. Margin = 2.57583 × 1 = 2.57583, so 172 ± 2.57583.

Limitations

  • The confidence level must be strictly between 0 and 100; 0 or 100 returns an error.
  • Always uses a z value, not a t value, so small-sample intervals are too narrow: mean 50, SD 10, n = 9 gives ±6.5332, while a t interval would be about ±7.69. The SD must be 0 or more.
  • n must be a whole number of at least 1; n = 0 or a fraction returns an error.

Questions

What is the 95% confidence interval for mean 50, SD 10, n = 36?
46.7334 to 53.2666.
What is the 90% interval for the same data?
47.2586 to 52.7414, using z = 1.6449.
What is the 80% interval for the same data?
47.8641 to 52.1359, using z = 1.2816.
What is the 99% interval for mean 172, SD 8, n = 64?
169.424 to 174.576.
Does it use a t-distribution?
No. It uses z values, which is accurate for larger samples (about 30 or more).

Features

  • Any confidence level from 0 to 100
  • Margin of error shown
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Mean, Variance and Standard Deviation

    StatQuest with Josh Starmer

    Clear variance/SD explanation for spread calculators.

    Watch on YouTube
  • Standard Deviation - Explained and Visualized

    Jeremy Blitz-Jones

    Visual SD intuition for probability and stats tools.

    Watch on YouTube
  • Probability

    Math is Fun

    Probability basics for combo and chance calculators.

  • Data Index

    Math is Fun

    Stats and probability explainers for data tools.