Zero Signup ToolsFree browser tools

Calculator Tools

Confidence Interval Calculator

Compute a confidence interval for a mean or a proportion in your browser. Z-interval, t-interval, Wilson score, and a dataset mode with step-by-step working.

Mode

Confidence level

At 95% confidence, alpha = 0.05 and the two-tailed z critical value is 1.96.

95% confidence interval

[67.162892, 77.837108]

Centered on 72.5 with a margin of error of +/-5.337108.

Sample mean

72.5

Sample s

8.4

Sample size n

12

Degrees of freedom

11

Standard error

2.424871

Critical t

2.200986

Margin of error

5.337108

Lower bound

67.162892

Upper bound

77.837108

Step-by-step working

  1. 1.Step 1: Compute the standard error

    SE = s / sqrt(n) = 8.4 / sqrt(12) = 2.424871

  2. 2.Step 2: Look up the critical t with df = 11

    t = 2.200986 for a two-tailed area of 95%.

  3. 3.Step 3: Compute the margin and the interval

    ME = t * SE = 5.337108, CI = [67.162892, 77.837108]

Reference

Two-tailed z critical values

ConfidencealphaTwo-tailed zOne-tailed z
80%0.2+/-1.2816+/-0.8416
90%0.1+/-1.6449+/-1.2816
95%0.05+/-1.9600+/-1.6449
99%0.01+/-2.5758+/-2.3263
99.9%0.001+/-3.2905+/-3.0902

Two-tailed t critical values at 95% confidence

dft (95%)t (99%)t (90%)
1+/-12.706+/-63.657+/-6.314
2+/-4.303+/-9.925+/-2.920
5+/-2.571+/-4.032+/-2.015
10+/-2.228+/-3.169+/-1.812
20+/-2.086+/-2.845+/-1.725
30+/-2.042+/-2.750+/-1.697
60+/-2.000+/-2.660+/-1.671
120+/-1.980+/-2.617+/-1.658
infinity+/-1.960+/-2.576+/-1.645

As df grows the t-distribution converges to the standard normal, which is why z and t critical values agree past df around 100.

When to use z vs t for a mean

Use the z-interval when the population standard deviation (sigma) is genuinely known, or when the sample is large enough (often n at least 30) that the difference between s and sigma is negligible. Use the t-interval whenever you compute the standard deviation from the sample itself; this is the realistic case in almost every applied study, lab report, and survey.

How to interpret a 95% interval

A 95% confidence interval means that if the experiment were repeated many times and a fresh interval computed each time, roughly 95% of those intervals would contain the true population value. It is not a 95% probability that the parameter falls in this specific interval; the parameter is fixed, and it is the interval that varies.

How to use

  1. Pick a mode: Mean (t-interval) for the realistic case with sample s, Mean (z-interval) when sigma is known, Proportion for a binomial sample p, or From dataset to compute the rest from a list of numbers.
  2. Choose a confidence level. 95 percent is the standard for survey research and A/B tests; the preset row covers 80, 90, 95, 99, and 99.9 percent, and Custom accepts any value between 0 and 100 percent.
  3. Fill in the inputs (mean and s and n, or successes and n, or paste the dataset). Load sample fills realistic values; Clear resets the inputs.
  4. Read the highlighted confidence interval, the standard error, the critical value, the margin of error, and the step-by-step working underneath.
  5. Use Copy summary to paste the full result into a report or assignment, and consult the reference tables of z and t critical values at the bottom of the page for a sanity check.

About this tool

Confidence Interval Calculator builds the lower and upper bounds for a population parameter from sample evidence and runs the math entirely in your browser. Four modes cover the cases that actually show up in coursework, surveys, A/B testing, and lab work. The t-interval for a mean takes the sample mean, the sample standard deviation s, and the sample size n; degrees of freedom are n - 1 and the critical t is looked up from Hill's 1970 inverse Student t algorithm so the answer matches a printed t-table to three decimals at the common confidence levels. The z-interval for a mean takes the sample mean, the known population standard deviation sigma, and the sample size, and is appropriate when sigma is genuinely known or when n is large enough that s and sigma agree to a working approximation. The proportion mode takes successes x and sample size n and returns two intervals at once: the Wald (normal approximation) interval everyone is taught first, and the Wilson score interval, which keeps coverage close to the nominal confidence level even when p is near 0 or 1 or n is small. The dataset mode parses a column of numbers, computes the sample mean and the sample standard deviation with Bessel's correction (n - 1), and then runs the t-interval directly. Every mode shows the full working: the standard error, the critical value with its degrees of freedom, the margin of error, and the interval itself, formatted alongside a step-by-step explanation suitable for a homework page or methodology section. Confidence presets cover 80, 90, 95, 99, and 99.9 percent, and a custom field accepts any value strictly between 0 and 100 percent. A built-in reference table lists the standard two-tailed and one-tailed z critical values plus two-tailed t critical values across the most common degrees of freedom, so a quick sanity check is always one glance away. The normal CDF uses the Abramowitz and Stegun 26.2.17 series (accuracy about 7.5e-8) and the inverse normal uses Peter Acklam's rational approximation (accuracy about 1.15e-9), more precision than any classroom z-table offers. Useful for statistics students, survey designers, A/B testers, quality engineers, clinical researchers, and anyone who needs a defensible interval estimate with the working written out. Everything runs locally; the numbers you type stay on your device.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsCalculator Tools