Math / calculator
Confidence Interval Calculator
Estimate Z and T confidence intervals for a population mean with explicit standard deviation assumptions and confidence levels.
Calculator
Calculator
Calculate a confidence interval for a mean.
Choose Z only for a known population standard deviation; T uses a sample SD and n−1 degrees of freedom. T sample sizes are bounded to 2–10,000.
Your result
Enter details to see the result.
Complete the inputs and calculate to see the main result and its supporting breakdown.
Example
Worked example
Example inputs
- SD and distribution
- Sample SD — T
- Sample mean
- 100
- Standard deviation
- 15
- Sample size
- 25
- Confidence level
- 95%
Calculation breakdown
Mean ± critical × SD/√n; Z for known population SD; T with n−1 degrees of freedom for sample SD.
- Critical value
- 2.0638985616
- Margin of error
- 6.1916956849
- Confidence level
- 95%
- Lower bound
- 93.8083043151
Example result
Upper bound
106.1916956849
Repeated-sampling coverage under the selected distribution assumptions.
How to interpret the result
Lower and upper bounds surround the entered sample mean. Margin of error is the critical value times standard error; the displayed distribution identifies how uncertainty was modeled.
How to use this calculator
- Select known population SD (Z) or sample SD (T).
- Enter the sample mean, matching SD and whole-number sample size.
- Choose confidence coverage and calculate both bounds and margin.
How it works
Formula
Mean ± critical × SD/√n; Z for known population SD; T with n−1 degrees of freedom for sample SD.
Does 95% mean a 95% chance this fixed mean is inside?
It describes long-run coverage of repeated intervals under the sampling model, not a probability assigned to a fixed population mean.
What this calculator does
Build an interval around a sample mean and choose the distribution based on whether population or sample standard deviation is available.
Inputs you will need
Required or selected inputs
- SD and distribution
- Sample mean
- Standard deviation
- Sample size
- Confidence level
Assumptions
- Observations are independent random samples. T assumes a normal population or adequate sample size; Z requires a known population SD.
Limitations
- Confidence levels are 90%, 95%, 99%. T uses sample sizes 2–10,000; Z allows 1–1 billion. Zero entered SD gives a zero-width interval.
Useful next steps
For a hypothesis test with a supplied Z or T statistic, use P-Value Calculator.
References
NIST: confidence limits, normal and Student t distributions — Mean intervals use population SD with Z, or sample SD with T and n−1 degrees of freedom. P-values require an explicitly chosen distribution and tail. T evaluation uses the DLMF incomplete-beta continued fraction; survey planning uses the normal proportion approximation.
See how HandyChest handles units, validation, rounding, and testing, or Report a problem with this calculator.
Good to know
Frequently asked questions
How should I read the confidence interval result?
Lower and upper bounds surround the entered sample mean. Margin of error is the critical value times standard error; the displayed distribution identifies how uncertainty was modeled.
Keep going