Confidence Interval Calculator
Type in your mean, standard deviation, and sample size to get the interval in one click. You will see each step too, so you can follow along.
This tool uses a z-value to work out the interval. The z-value is a fixed number that matches how sure you want to be.
Step by step working
What is a confidence interval?
A confidence interval is a range of numbers. It is your best guess for where the true mean sits. Instead of one number, you get a low end and a high end.
You build it from a small sample. The sample mean sits in the middle, and the margin of error reaches out each way. A bigger sample gives you a smaller range.
What is the z-value?
The z-value is a fixed number that matches how sure you want to be. For 95% confidence it is 1.96, for 90% it is 1.645, and for 99% it is 2.576. You pick the level first, and the tool picks the z-value for you.
A higher level of confidence gives you a wider interval. That is the trade off. You get more sure, but the range gets bigger.
How to use this calculator
- Type your sample mean, standard deviation, and sample size in the boxes above. Then pick a confidence level.
- Press Calculate. You get the margin of error, the interval, and the full working, step by step.
- Press Copy results if you want to paste the answers into your homework or notes.
Worked example
At 95% confidence, the z-value is 1.96.
The margin of error is 1.96 times 4.899, divided by the square root of 8. That is 3.3948.
So the interval is 18 minus 3.3948 to 18 plus 3.3948. That is (14.6052, 21.3948).
Frequently asked questions
What is a confidence interval in simple words?
It is a range that is likely to hold the true mean. You start with a sample mean and add a margin of error each way. The true mean is probably inside that range, but not surely.
What does 95% confidence mean?
It means that if you took many samples, about 95 out of 100 intervals would hold the true mean. It does not mean there is a 95% chance this one interval holds it. It is about the method, not this one answer.
Why does a bigger sample give a smaller interval?
A bigger sample tells you more about the group. The margin of error gets smaller as the sample grows. That is why a sample of 100 gives a tighter range than a sample of 8.
Can the interval include negative numbers?
Yes, it can. If your mean is small and the margin is big, the low end can drop below zero. That is fine, and it only means the range is wide.
Is this calculator free?
Yes, it is free. There is no sign up and no limit. Use it as many times as you like.
More statistics calculators
Need a different tool? Try one of these.
