Confidence Interval Calculator

Lower confidence limit

98.015783

Upper confidence limit

101.984217

All results
Calculator inputs
?

Use Student t when the spread is estimated from your sample. Select z when the population standard deviation is known.

?

Arithmetic mean of the observations. Both bounds use the same units as this value.

?

Use the sample SD for Student t, or the known population SD for z. Enter SD in the original measurement unit.

?

Number of independent observations. Student t uses n − 1 degrees of freedom.

?

The long-run coverage level of the chosen interval procedure. Higher confidence requires a larger multiplier.

Interval around the sample mean
Lower
98.01578
Mean
100
Upper
101.9842

Margin of error by confidence level

The sample mean, standard deviation, sample size and selected z or t method stay fixed.

90%1.66
95%1.98
98%2.36
99%2.63

Confidence interval comparison

Confidence interval comparison
ConfidenceCritical valueLower limitUpper limitMargin
90 %1.66039115698.339608844101.6603911561.660391156
95 %1.984216951698.0157830484101.98421695161.9842169516
98 %2.364605861897.6353941382102.36460586182.3646058618
99 %2.626405457397.3735945427102.62640545732.6264054573

How to use the Confidence Interval Calculator

Estimate a two-sided confidence interval for a population mean. Compare Student t and known-SD z methods, standard error, margin and confidence levels.

  1. 1. Enter your inputs

    Start with Standard deviation source, Sample mean, Standard deviation, Sample size. Use the units shown beside each field and open the field help when you need its assumptions.

  2. 2. Read the results

    Results update as you enter valid values. Review Lower confidence limit, Upper confidence limit, Margin of error. Keep the entered units and settings consistent when comparing scenarios.

  3. 3. Check the calculation

    One population mean under independent sampling and a suitable normal sampling model. Small-sample Student t assumes normally distributed observations.

    See the worked example and method

Understanding the Confidence Interval Calculator: uses, inputs and results

The Confidence Interval Calculator shows a two-sided mean interval from sample statistics while making the known-versus-estimated standard-deviation assumption explicit.

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.

Further reading: NIST: confidence limits for a mean

What do the Confidence Interval Calculator inputs mean?

Standard deviation source
Use Student t when the spread is estimated from your sample. Select z when the population standard deviation is known.
Sample mean
Arithmetic mean of the observations. Both bounds use the same units as this value.
Standard deviation
Use the sample SD for Student t, or the known population SD for z. Enter SD in the original measurement unit.
Sample size
Number of independent observations. Student t uses n − 1 degrees of freedom.
Confidence level
The long-run coverage level of the chosen interval procedure. Higher confidence requires a larger multiplier.
Custom confidence
Enter a percentage from 1 to 99.999. For example, 97 means 97% confidence. Unit: %. This field applies when Confidence level is set to Custom percentage.

When is the Confidence Interval Calculator useful?

Calculate a mean interval

Enter the sample mean, size, variability and confidence level to inspect the bounds.

Compare uncertainty assumptions

Select whether the standard deviation is known or estimated. The interval does not remove sampling bias.

Confidence Interval Calculator: a practical reference

The fixed “Known sigma” example on this page produces the results below. It illustrates the stated model; your live results above use your current inputs.

Standard deviation source
Known population SD (normal z)
Sample mean
100
Standard deviation
10
Lower confidence limit
98.040036
Upper confidence limit
101.959964
Review the example inputs and calculation

Use the result in context

One population mean under independent sampling and a suitable normal sampling model. Small-sample Student t assumes normally distributed observations.

Try the Confidence Interval Calculator·Read the subject guide·Explore a related calculator

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 results for the fixed example
Calculated quantityExample result
Lower confidence limit98.040036
Upper confidence limit101.959964
Margin of error1.959964
Standard error of the mean1
Critical z1.959964
MethodNormal 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.

NIST: confidence limits for a mean

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.

NIST: confidence limits for a mean

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.