Math · 64 calculators
Confidence Interval Calculator
A confidence interval turns a single sample estimate into a range, and the width of that range is the honest measure of how much the sample actually tells you.
Last updated
Margin of error
4.9
- Standard error
- 2.5
- Lower bound
- 95.1
- Upper bound
- 104.9
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
The formula this calculator uses
confidence interval = mean +/- z x (standard deviation / sqrt(n))
- x bar
- Sample mean, the centre of the interval
- s
- Sample standard deviation
- n
- Sample size
- z
- Critical value for the chosen confidence level
How to check the result by hand
- 1
Work out the standard error
Divide the standard deviation by the square root of the sample size. A standard deviation of fifteen with thirty six observations gives an error of 2.5.
- 2
Choose the z score for your confidence level
1.645 for ninety percent, 1.96 for ninety five and 2.576 for ninety nine. Rounding 1.96 to 2 is common and makes the interval slightly wider than stated.
- 3
Multiply to get the margin of error
1.96 times 2.5 is 4.9. This is the half width, not the full width, and confusing the two halves or doubles the reported interval.
- 4
Add and subtract from the sample mean
A mean of a hundred gives a lower bound of 95.1 and an upper bound of 104.9. The interval is centred on the sample mean by construction.
- 5
Check the assumptions before trusting it
Random sampling, independent observations and either a roughly normal distribution or a large enough sample. A biased sample gives a precise but meaningless interval.
Common Questions
How does the Confidence Interval Calculator work?
Divide the standard deviation by the square root of the sample size to get the standard error, multiply by the z score for your confidence level, then add and subtract that margin from the mean. A mean of 100 with standard error 2.5 gives 95.1 to 104.9 at 95 percent confidence.
What do I need to enter in the Confidence Interval Calculator?
It takes 4 inputs: Sample mean, Standard deviation, Sample size, Critical value. Fields that expect a unit say so next to the label.
Where does Margin of error come from?
It comes from SE = s / sqrt(n) — the standard deviation of the sample mean. Shrinks with the square root of the sample size.
What is the most common mistake with the Confidence Interval Calculator?
Dividing by n instead of the square root of n. The standard error uses the square root of the sample size. Dividing by n directly makes the interval far too narrow and overstates the precision badly.
For worked examples, common mistakes and the limits of this formula, read the full How To Calculate A Confidence Interval page.
