Worked example: Confidence Interval Calculator
Known sigma. This fixed reference example shows one complete scenario; the interactive results above use your current inputs.
View the example inputs
- Standard deviation source
- Known population SD (normal z)
- Sample mean
- 100
- Standard deviation
- 10
- Sample size
- 100
- Confidence level
- 95%
| Calculated quantity | Example result |
|---|---|
| Lower confidence limit | 98.040036 |
| Upper confidence limit | 101.959964 |
| Margin of error | 1.959964 |
| Standard error of the mean | 1 |
| Critical z | 1.959964 |
| Method | Normal z |
Build and interpret an interval for a population mean
Calculate lower and upper limits from summary statistics
Start with the sample mean, spread and count. Divide SD by √n to find the standard error, then multiply by the critical value. Add and subtract that margin from the mean.
With mean 22.8, known population SD 2.7, 100 observations and 95% confidence, the standard error is 0.27. The margin is about 0.52919, giving limits near 22.27081 and 23.32919.
When should I choose Student t or normal z?
Use Student t when the standard deviation was estimated from the same sample and the assumptions for the mean interval hold. The critical value uses n − 1 degrees of freedom. If population SD is known, use the normal z method.
At n = 10 with mean 22.8 and SD 2.7, the 95% t margin is about 1.93146. With the same numeric SD known independently for the population, the z margin is about 1.67345. The two choices describe different knowledge about the spread.
What does 95% confidence describe?
Imagine repeating the same sampling and interval procedure many times. Under its assumptions, about 95% of the constructed intervals would contain the fixed population mean. The reported interval is one realization of that procedure.
Compare the effect of confidence on interval width
Keep the observations fixed and compare the rows below the calculator. Higher confidence uses a larger critical value and widens the interval. At fixed spread, larger samples reduce standard error through the square-root term.
The centered diagram shows the estimate and both endpoints. Use the numeric table when comparing actual widths across levels.
Check the inputs and sampling assumptions
Mean and SD must share a unit. Check whether observations are independent and whether the normal sampling model fits the situation. With small samples, skewness or outliers can have a large effect on the mean and its interval.
Repeated measurements from one individual can be dependent. Count and SD alone cannot correct for that design.
Distinguish a mean interval from a range for an individual
This interval estimates the population mean. For an individual future measurement, uncertainty includes observation-to-observation variation. For the share of people with a trait, use a proportion model.
Formula and calculation method
Two-sided interval = sample mean ± critical value × SD/√n.
Student t uses n−1 degrees of freedom when the population SD is estimated from the sample. Known population SD uses the standard normal distribution.
Scope and Limitations
- One population mean under independent sampling and a suitable normal sampling model. Small-sample Student t assumes normally distributed observations.
Reference Sources
Frequently asked questions
Can I enter confidence other than 90%, 95%, 98% or 99%?
Yes. Choose Custom percentage and enter a confidence between 1% and 99.999%.
What is the standard error?
For this independent-sample model, it is SD divided by the square root of sample size.
Why are t intervals wider for small samples?
Student t allows for uncertainty from estimating population spread. Its critical value is larger at small degrees of freedom.
Can I enter my raw observations?
First calculate the mean, sample SD and count with the Standard Deviation Calculator, then enter them here.