Skip to content
Test versionSearch

Mathematics

Mean and proportion confidence intervals

Calculate a two-sided confidence interval for a mean, using the sample or a known population SD, or a Wilson interval for a proportion. Assumptions are shown.

How it worksFAQRelated tools

Content reviewed:

The example values can be changed. Press Calculate to update the result; you can download it as TXT or CSV and collect scenarios in this tab. JSON, HTML and TXT downloads keep your inputs, the statistical result and the calculation steps shown. Automatic recalculation after editing is off unless you switch it on. Nothing is saved, imported or sent automatically.

Choose the SD meaning correctly. t uses n 2–201; z and Wilson n 2–1,000,000. Confidence 90, 95 or 99%. Independent random observations; normal population for mean t, known population SD for z. Confidence concerns repeated sampling, not a probability that the fixed parameter lies in this already computed interval. Numerical approximation; no exact binomial interval.

Decimal results are approximate. Inputs stay in this browser tab.

Sources

How it works

Own numerical integration of normal and integer-degree Student distributions; bounded inference with explicit sampling/model assumptions. Choose the SD meaning correctly. t uses n 2–201; z and Wilson n 2–1,000,000. Confidence 90, 95 or 99%. Independent random observations; normal population for mean t, known population SD for z. Confidence concerns repeated sampling, not a probability that the fixed parameter lies in this already computed interval. Numerical approximation; no exact binomial interval.

Worked example

With these example values the calculator gives the result below. You can change any value in the form above.

Inputs

Interval model
Mean t: sample SD
Sample size n (t: 2–201)
10
Sample mean
53.7
SD: sample for t
6.567
Two-sided confidence level
95%

Result

Sample size
10
Estimate
53.7
Confidence fraction
0.95
Degrees of freedom
9
Numerical critical value
2.2621571628
Standard error
2.07666773943
Absolute margin
4.69774880151
Lower limit
49.0022511985
Upper limit
58.3977488015
Model and assumptions
Student t; sample standard deviation; normal-population assumption

Frequently asked questions

How do I calculate a confidence interval for a mean?

The confidence interval calculator uses estimate plus or minus critical value times standard error. With a sample SD it uses Student t, and with a known population SD it uses z.

How is a confidence interval for a proportion calculated?

For a proportion the calculator uses the Wilson score interval. It does not compute an exact binomial interval.

Which confidence levels can I choose?

The mean and proportion confidence interval calculator offers two-sided confidence levels of 90, 95 or 99%.

What sample sizes are allowed?

The Student t interval accepts n from 2 to 201. The z interval and the Wilson proportion interval accept n from 2 to 1,000,000.

When should I use t instead of z for a mean interval?

Use t when the SD comes from the sample, assuming a normal population. Use z only when the population standard deviation is known.

Does a 95% confidence interval mean a 95% chance that the true value lies inside it?

No. Confidence describes the repeated-sampling coverage of the procedure, not a probability that the fixed parameter lies in the interval already computed.