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.
Adding Fractions Calculator
Add two fractions with step-by-step simplification.
One-Way ANOVA Calculator
Perform one-way ANOVA on multiple groups.
You Might Also Like
Popular tools from other categories
AC to DC Converter Calculator
Convert AC voltage to DC voltage for different rectifier configurations. Free online calculator with instant, step-by-step results.
Acid-Base Titration Calculator
Calculate concentration from titration data. Get quick, accurate results with this free online calculator, including formulas and worked examples.
ABV Calculator
Calculate alcohol by volume from original and final gravity. Free calculator with instant calculations, the underlying formula, and an easy-to-follow example.
Amortization Schedule Calculator - Free Online
Free Generate a complete amortization schedule. Step-by-step solutions and formulas included. Free, accurate results with step-by-step explanations.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.