Confidence Interval Calculator
Calculate a confidence interval for a population mean.
About the Confidence Interval Calculator
Estimates a confidence interval for the population mean from the sample mean, standard deviation, sample size and a confidence level.
$$ CI = \bar{x} \pm z\frac{\sigma}{\sqrt{n}} $$
How to use this calculator
- Enter the sample mean, \(\bar{x}\).
- Enter the population standard deviation, \(\sigma\), if it is known.
- Enter the sample size, \(n\).
- Choose the confidence level so the calculator can use the correct \(z\)-value and show the interval.
The formula explained
The formula \(CI = \bar{x} \pm z\frac{\sigma}{\sqrt{n}}\) computes a confidence interval for a population mean when the population standard deviation is known. The value \(z\frac{\sigma}{\sqrt{n}}\) is the margin of error, the amount added to and subtracted from the sample mean.
- \(\bar{x}\) = sample mean
- \(z\) = z-score for the chosen confidence level
- \(\sigma\) = population standard deviation
- \(n\) = sample size
Step by step method
- Find the sample mean \(\bar{x}\), the population standard deviation \(\sigma\), and the sample size \(n\).
- Compute the standard error, \(\frac{\sigma}{\sqrt{n}}\).
- Multiply by the critical value \(z\) to get the margin of error.
- Add and subtract the margin of error from \(\bar{x}\) to get the lower and upper bounds.
Worked example
Problem. A company measures the average fill amount of 64 bottles. The sample mean is 500 mL, the population standard deviation is 16 mL, and you want a 95% confidence interval.
- For 95% confidence, use \(z = 1.96\).
- Compute the standard error: \(\frac{16}{\sqrt{64}} = \frac{16}{8} = 2\).
- Find the margin of error: \(1.96 \times 2 = 3.92\). The interval is \(500 \pm 3.92\), so the bounds are \(496.08\) and \(503.92\).
Answer. The 95% confidence interval is \((496.08, 503.92)\) mL.
Tips and common mistakes
- This formula is used when the population standard deviation is known, not when it is unknown.
- A larger sample size makes the interval narrower because \(\sqrt{n}\) is in the denominator.
Frequently asked questions
What does 95% confidence mean?+
If you repeated the sampling many times, ~95% of such intervals would contain the true mean.
Which z-values are used?+
90% → 1.645, 95% → 1.96, 99% → 2.576.
More Mathematics Tools
Explore related calculators in this category
Absolute Value Calculator
Calculate the absolute value of any number. Use this free calculator for fast, accurate answers, complete with the formula and a worked example.
Absolute Value Equation Solver
Solve equations of the form |ax + b| = c.
Absolute Value Grapher
Plot y = |f(x)| and see the characteristic V-shape and reflections.
Adding Fractions Calculator
Add two fractions with step-by-step simplification.
You Might Also Like
Popular tools from other categories
.htaccess Generator
Generate common .htaccess rules, force HTTPS, www redirect, and caching, with checkboxes.
1031 Exchange Calculator - Free Online
Free Calculate tax deferral in a 1031 exchange. Step-by-step solutions and formulas included. Fast, accurate, and free, with formula and example.
4% Rule Calculator
Find the retirement nest egg you need using the 4% safe-withdrawal rule.
70% Rule Calculator
Calculate max offer using the 70% rule for flips.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.