Statistics Confidence Interval Calculator

This statistics confidence interval calculator builds an interval for a mean or a proportion from summary statistics at 90, 95 and 99 percent.

Checks on your data

  • A 95 % interval means that if the study were repeated many times, about 95 % of the intervals built this way would contain the true value.
  • The t interval assumes roughly normal data, especially for small samples.

Results

95 % confidence interval
49.3754 to 55.4246
Sample mean
52.4
Margin of error
3.02459
Standard error
1.47885
t critical value
2.04523
df = 29
Sample size to halve the width
about 120
width shrinks with √n
Intervals at 90 %, 95 % and 99 %
90%: 49.89 to 54.9195%: 49.38 to 55.4299%: 48.32 to 56.484850525456
How the level changes the interval
LevelLowerUpperWidth
90%49.887254.91285.02551
95%49.375455.42466.04918
99%48.323756.47638.15257
Show step-by-step solution
  1. Standard error = s ÷ √n = 8.1 ÷ √30 = 1.47885.
  2. t* for 95 % with 29 df = 2.04523.
  3. Margin of error = t* × SE = 3.02459.
  4. Interval = 52.4 ± 3.02459 = 49.3754 to 55.4246.
Meanx̄ ± t*·s/√n
ProportionWilson score
Higher levelWider interval
Larger nNarrower interval

What Is Statistics Confidence Interval?

A confidence interval gives a range of plausible values for a population mean or proportion. It is built from the sample estimate, its standard error and a critical value.

Choose a mean or a proportion, enter your summary statistics and a confidence level. You get the interval, margin of error, standard error and critical value, a comparison of the 90, 95 and 99 percent intervals and the sample size that would halve the width.

Below are the formulas, a worked example and answers on how to read a confidence interval.

How to Use the Statistics Confidence Interval Calculator

  1. Choose mean or proportion.
  2. Enter the summary statistics.
  3. Set the confidence level.
  4. Compare the 90, 95 and 99 % intervals.

Statistics Confidence Interval Formula

Interval for a mean

xˉ±t∗sn\bar x\pm t^*\frac{s}{\sqrt n}

Wilson interval

p^+z22n±zp^(1−p^)n+z24n21+z2n\frac{\hat p+\frac{z^2}{2n}\pm z\sqrt{\frac{\hat p(1-\hat p)}{n}+\frac{z^2}{4n^2}}}{1+\frac{z^2}{n}}

Statistics Confidence Interval Variables Explained

SymbolMeaningNotes
x̄Sample mean
sSample standard deviation
nSample size
t*Critical value

Statistics Confidence Interval Worked Example

A sample of 30 has mean 52.4 and SD 8.1. The standard error is 8.1 ÷ √30 = 1.479 and t* (29 df, 95 %) = 2.045, so the margin of error is 3.024 and the interval is 49.38 to 55.42.

With the example values loaded in the calculator above, the steps are:

  1. Standard error = s ÷ √n = 8.1 ÷ √30 = 1.47885.
  2. t* for 95 % with 29 df = 2.04523.
  3. Margin of error = t* × SE = 3.02459.
  4. Interval = 52.4 ± 3.02459 = 49.3754 to 55.4246.

Result: 95 % confidence interval = 49.3754 to 55.4246; Sample mean = 52.4; Margin of error = 3.02459.

How to Read a Confidence Interval

A sample of 30 with mean 52.4 and SD 8.1 gives a 95% interval of 49.38 to 55.42. The interval is the estimate plus or minus a margin of error, here 3.02.

The 95% describes the method, not this single interval. If you repeated the study many times, about 95% of intervals built this way would contain the true mean. The table on this page shows how the same data give narrower intervals at lower confidence and wider ones at higher confidence.

Where Statistics Confidence Interval Is Used

Estimating a mean

Build an interval for a population mean from a sample mean, SD and n.

Estimating a proportion

Use the number of successes and n for a poll or conversion rate.

Comparing levels

See how 90%, 95% and 99% change the width.

Planning

Find the sample size that would halve the width.

Common Statistics Confidence Interval Mistakes to Avoid

  • For a mean, the t critical value depends on the sample size. It is above 1.96 for small samples.
  • A wider interval is not a mistake. It means more uncertainty, usually from a smaller sample.
  • Do not read the interval as "95% of the data". It describes the mean, not individual values.
  • Halving the width needs about four times the sample size.

Statistics Confidence Interval Terms and Definitions

Margin of error
Half the width of the interval.

Statistics Confidence Interval FAQs

How do I calculate a confidence interval?

Compute the standard error, multiply it by the critical value for your confidence level, and add and subtract that margin from the sample estimate. For a mean the critical value is from the t distribution with n − 1 degrees of freedom.

What does 95 % confidence mean?

It means the procedure captures the true value in about 95% of repeated samples. It does not mean there is a 95% probability that this one interval contains it.

Why does a higher level give a wider interval?

To be more sure of capturing the true value, you need a larger critical value, which widens the margin. At 99% the interval is wider than at 95% for the same data.

How can I narrow the interval?

Increase the sample size, reduce the variability of the measurements, or accept a lower confidence level. Quadrupling n halves the width.

Related calculators

Last updated 2026-11-09. See our disclaimer.