Confidence Interval Calculator
Estimate population confidence interval easily with simple inputs
Confidence Interval Calculator: Find the Range That Likely Holds the True Mean
If you have sample data and you want to know where the true average probably lies, this confidence interval calculator gives you that range in seconds. You enter your sample mean, your standard deviation and your sample size, choose a confidence level, and the tool works out the lower and upper ends of the interval, with the margin of error and the steps shown.
A confidence interval is a range, not a single number. Instead of saying the average height of students is exactly 170 cm, you say it is probably between 168.04 cm and 171.96 cm, at 95% confidence. That range tells you how much trust to put in your sample, and how wide the uncertainty is.
Researchers, students and analysts use intervals for surveys, experiments and business data. A narrow interval means your sample gives a clear picture. A wide interval means you need more data, or less spread, before you can be sure. The calculator below works out the interval for you, and this guide shows you how each number is used.
How to Use the Confidence Interval Calculator
Using the tool is simple, even if you are new to statistics. You need three numbers from your sample, and one choice about how sure you want to be.
1. Enter your sample mean. This is the average of the numbers in your sample, for example 170.
2. Enter your standard deviation. This shows how spread out your sample is, for example 10.
3. Enter your sample size. This is how many people or items you measured, for example 100.
4. Choose a confidence level, such as 90%, 95% or 99%. A higher level gives a wider interval.
5. Click Calculate and read the result. The tool shows the interval, the margin of error, the Z value and the standard error.
The result will show something like: Confidence Interval: 168.04 to 171.96. This means the true population mean is expected to lie within this range, at the confidence level you chose. A confidence interval and a P value answer related questions. Once you have your interval, check the P Value Calculator.
The Confidence Interval Formula, Explained in Plain Words
The formula looks short once you know what each part means. The confidence interval is the sample mean, plus or minus the margin of error. The margin of error is the Z value times the standard error. The standard error is the standard deviation divided by the square root of the sample size. Put together, that is: mean plus or minus Z times standard deviation divided by the square root of n.
1. Start With the Sample Mean
The sample mean is the centre of your interval. It is the average of the numbers you measured. In our example the mean is 170, so the interval will be centred on 170, with the same amount added above and taken away below.
2. Work Out the Standard Error
The standard error shows how much the mean would move if you took a new sample. Divide the standard deviation by the square root of the sample size. With a standard deviation of 10 and a sample size of 100, the square root of 100 is 10, so the standard error is 10 divided by 10, which is 1.
3. Multiply by the Z Value
The Z value comes from your confidence level. For 90% it is 1.645, for 95% it is 1.96, and for 99% it is 2.576. A higher confidence level uses a larger Z value, which makes the interval wider. For 95% confidence, multiply the standard error of 1 by 1.96, which gives a margin of error of 1.96.
4. Add and Subtract the Margin of Error
Take the mean of 170, add the margin of error of 1.96 to get 171.96, and subtract it to get 168.04. That is the interval: 168.04 to 171.96. The tool shows the same figures, with the Z value, the standard error and the margin of error listed in the steps.
5. Worked Example in One Place
Mean 170, standard deviation 10, sample size 100, confidence 95%. Standard error equals 10 divided by the square root of 100, which is 1. Margin of error equals 1.96 times 1, which is 1.96. Interval equals 170 plus or minus 1.96, which is 168.04 to 171.96. Type the same numbers into the tool and you will see the same answer.
6. What 95% Confidence Really Means
A 95% confidence level means that if you took many samples the same way, about 95 out of 100 of the intervals you worked out would contain the true mean. It does not mean there is a 95% chance that this one interval holds the true mean, and it does not mean 95% of your data lies inside the interval.
7. What Makes an Interval Wider or Narrower
Three things change the width. A larger sample makes the interval narrower, because the standard error falls. A larger standard deviation makes it wider, because the data are more spread out. A higher confidence level makes it wider, because the Z value grows. If you want a narrow interval, collect more data and keep the spread low.
Frequently Asked Questions
1. What is a confidence interval in simple words?
It is a range of values that likely holds the true average of a whole group. You work it out from a sample, and you state how confident you are in the range, usually 90%, 95% or 99%.
2. How do I calculate a 95% confidence interval?
Work out the sample mean, the standard deviation and the sample size. Divide the standard deviation by the square root of the sample size to get the standard error, multiply it by 1.96, and add and subtract that margin from the mean. For a mean of 170, a standard deviation of 10 and 100 people, the interval is 168.04 to 171.96.
3. What is the Z value for 95% confidence?
The Z value for 95% confidence is 1.96. For 90% it is 1.645, and for 99% it is 2.576. The tool picks the right Z value for the level you choose, so you do not need to look it up.
4. Can I use this calculator for small sample sizes?
You can, but the result needs care. This tool uses the Z value, which fits larger samples. For a sample of fewer than about 30 people, a t value is often a better choice, so treat a small-sample interval as a rough guide and check it with your teacher or a statistics book.
5. What sample size do I need for a narrow interval?
A larger sample gives a narrower interval, because the standard error falls as the sample size grows. To halve the width, you need about four times as many people, because the sample size sits under a square root. Try a few sample sizes in the tool and watch the interval change.
6. Can I use this calculator for a proportion instead of a mean?
No, this tool is built for a mean, such as an average height or an average score. A proportion, such as the share of people who vote a certain way, needs a different formula, so use a calculator made for proportions for that job.
Disclaimer
Disclaimer: The results on this page are estimates for learning and information only. They are not a substitute for professional advice, and they do not replace a full statistical analysis. If a decision depends on your interval, check the data and the method with a teacher, a statistician or a qualified professional first.
