Skip to main content

Free Confidence Interval Calculator – Mean, Proportion and Sample Size

Build a confidence interval for a mean with σ known or unknown, or for a proportion, at 90, 95, 99 or any custom level — plus the sample size a target margin of error needs.

Written & reviewed by Helperzy Editorial Team · Updated July 2026

Mean (z & t)ProportionCustom LevelSample SizeFree

What Are You Estimating?

We are 95% confident that the true population mean lies between 22.2708 and 23.3292.

22.2708

Lower Bound

23.3292

Upper Bound

±0.5292

Margin of Error

0.27

Standard Error

1.96

Critical Value

Standard normal (z)

Distribution Used

The Interval

Amber dot = your point estimate. The bar spans the interval; its half-width is the margin of error.

The Working, With Your Numbers

  1. 1. SE = σ ÷ √n = 2.7 ÷ √100 = 0.27
  2. 2. z* for 95% confidence = 1.96 (α/2 = 0.025 in each tail)
  3. 3. ME = z* × SE = 1.96 × 0.27 = 0.52919
  4. 4. CI = x̄ ± ME = 22.8 ± 0.52919 → 22.2708 to 23.3292

What a Confidence Interval Does NOT Mean

A 95% interval does not mean there is a 95% probability that the true value sits inside the specific interval you just computed. In the frequentist reading the population value is fixed, not random — your interval either contains it or it does not. The 95% describes the procedure: if you repeated the whole sampling exercise many times and built an interval each time, about 95 out of every 100 of those intervals would capture the true value. calculator.net makes the same point, and it is the single most common misreading in student work. Nor does a wide interval mean your data is wrong — it usually means n is small.

Critical z Values by Confidence Level

Confidence levelTwo-tailed z*
80%1.282
85%1.440
90%1.645
95%1.960
98%2.326
99%2.576
99.9%3.291

z values match the table published by calculator.net and any standard normal table. t critical values come from Student's t distribution with df = n − 1, solved numerically rather than read from a truncated printed table.

100% Private

Your sample figures stay in this tab — every interval is computed in your browser.

How to Use Confidence Interval Calculator

1

Pick What You Are Estimating

Choose a mean with σ known, a mean with σ unknown, a proportion, or the required sample size. If you are working from a sample standard deviation rather than a known population figure, the t option with df = n − 1 is the correct one.

2

Enter Your Sample Figures and Confidence Level

Type the sample mean and standard deviation with the sample size, or the successes and total for a proportion. Use the 90, 95 and 99 percent presets or type any custom level above 0 and below 100 into the field.

3

Read the Interval, the Sentence and the Working

The plain-English sentence states the interval in words you can paste into a report, and the working panel shows the standard error, critical value and margin of error with your own numbers substituted. Check any warning about the normal approximation before quoting a proportion interval.

How a Confidence Interval Is Built and What It Actually Claims

A confidence interval turns a single estimate into a range, so a report carries its own uncertainty rather than pretending to precision it does not have. Measure 100 bricks and find an average mass of 3 kg and you have a point estimate; add a 95% interval of 2.85 kg to 3.15 kg and you have communicated how much that estimate could move if you weighed a different hundred bricks. Pollsters quote it as a margin of error, medical papers report it beside every treatment effect, and quality teams use it to decide whether a batch really shifted. The width is driven by three things: how variable the data is, how large the sample is, and how confident you want to be. Three formulas cover the standard cases. When the population standard deviation σ is genuinely known, the interval for a mean is x̄ ± z* × σ/√n, where x̄ is the sample mean, n is the sample size, σ/√n is the standard error, and z* is the two-tailed critical value from the standard normal distribution — 1.645 at 90%, 1.960 at 95%, 2.576 at 99%. When σ is unknown and you have only the sample standard deviation s, Student's t distribution replaces the normal: x̄ ± t* × s/√n with df = n − 1. The t value always exceeds z at the same level, which is the price of estimating σ from your own data. For a proportion the interval is p̂ ± z* × √(p̂(1 − p̂)/n), where p̂ is the observed fraction. Rearranging any of these for n gives the sample size a target margin needs. Check it against calculator.net's published example. With x̄ = 22.8, σ = 2.7, n = 100 and 95% confidence, the standard error is 2.7 ÷ 10 = 0.27, so the margin of error is 1.960 × 0.27 = 0.5292 and the interval runs 22.2708 to 23.3292 — matching that page exactly. A LibreTexts textbook case with μ = 90, σ = 36 and n = 9 gives 66.48 to 113.52, again identical. On the t side, OpenStax Example 8.8 measures sensory rates for 15 subjects: x̄ = 8.2267, s = 1.6722, t*(df 14) = 2.1448, producing a 95% interval of 7.30 to 9.15. For a proportion, 600 successes out of 1,000 gives p̂ = 0.6 with a margin of error of ±3.04 percentage points, so the interval is 56.96% to 63.04%. Ask for a ±3-point margin at 95% with p̂ = 0.5 and you need 1,068 respondents. Four real decisions hang on this. A market researcher planning a survey budget needs the sample-size mode first: 385 responses buy a ±5-point margin, and 1,068 buy ±3, so the extra precision nearly triples the cost. A lab technician with twelve replicate measurements must use the t interval, because σ was never known and n is small. A product manager reading an A/B test conversion rate of 5.2% needs the proportion interval to see whether the lift is distinguishable from noise at all. And anyone reporting a mean in a dissertation is usually required to give the interval alongside it, since a bare average hides whether the sample was 10 observations or 10,000. Now the part most calculators leave out. A 95% interval does not mean there is a 95% probability that the true value lies inside the interval you just computed. In the frequentist reading the population value is fixed, not random — your interval either contains it or it does not. The 95% describes the method: repeat the sampling many times and about 95 in every 100 intervals will capture the truth. calculator.net makes the same point, and it is the commonest misreading in student work. Two caveats: the proportion formula is the Wald interval, unreliable when np̂ or n(1 − p̂) falls below 10, where Wilson or Clopper-Pearson is better; and every interval assumes a random sample. Critical z values follow the standard normal table. Nothing you enter is uploaded.

Confidence Interval Calculator Formula & Method

Mean with σ KNOWN (z interval): SE = σ ÷ √n ME = z* × SE CI = x̄ ± ME Mean with σ UNKNOWN (t interval): SE = s ÷ √n df = n − 1 ME = t*(df) × SE CI = x̄ ± ME Proportion (Wald interval): p̂ = x ÷ n SE = √(p̂(1 − p̂) ÷ n) ME = z* × SE CI = p̂ ± ME Required sample size for a target margin of error E: mean: n = ⌈(z* × σ ÷ E)²⌉ proportion: n = ⌈z*² × p̂(1 − p̂) ÷ E²⌉ (use p̂ = 0.5 for the worst case) Variables: x̄ = sample mean (unit of the data), σ = population SD, s = sample SD, n = sample size, p̂ = sample proportion (0 to 1), SE = standard error, ME = margin of error. Critical values: z* = 1.645 at 90%, 1.960 at 95%, 2.576 at 99% (standard normal table). t*(df) comes from Student's t distribution — 2.262 at df 9, 2.145 at df 14, 2.086 at df 20, and 2.750 at df 30 for 99%. Validity: the proportion interval needs roughly n·p̂ ≥ 10 and n(1 − p̂) ≥ 10; below that prefer a Wilson or Clopper-Pearson interval. Rounding rule: full precision through every step, including unrounded critical values; results are rounded only for display, and required sample sizes are always rounded up.

Examples: Confidence Interval Calculator

Input

Mean, σ known: x̄ = 22.8, σ = 2.7, n = 100, 95%

Result

ME ±0.5292 · CI 22.2708 to 23.3292 · SE 0.27 · z* 1.9600

SE = 2.7 ÷ √100 = 0.27 and ME = 1.96 × 0.27 = 0.5292, reproducing calculator.net's published worked example exactly.

Input

Mean, σ known: x̄ = 90, σ = 36, n = 9, 95%

Result

CI 66.4804 to 113.5196

The LibreTexts textbook case: SE = 36 ÷ 3 = 12, so the bounds are 90 ± 1.96 × 12, which that source prints as 66.48 and 113.52.

Input

Mean, σ unknown: OpenStax Example 8.8, 15 sensory rates, 95%

Result

x̄ = 8.2267 · s = 1.6722 · t*(df 14) = 2.1448 · CI 7.3006 to 9.1527

With σ unknown the t distribution is used at df = 15 − 1 = 14, and the interval matches the published answer of 7.30 to 9.15.

Input

Proportion: 600 successes out of 1,000, 95%

Result

p̂ = 0.6 · ME ±3.04 percentage points · CI 56.96% to 63.04%

SE = √(0.6 × 0.4 ÷ 1000) = 0.015492, so ME = 1.96 × 0.015492 = 0.030364, which is 3.04 points either side of 60%.

Input

Sample size: proportion, ±3 point margin, p̂ = 0.5, 95%

Result

n = 1,068 respondents

n = 1.96² × 0.25 ÷ 0.03² = 1067.07, rounded up to 1,068 — the standard published figure behind the familiar ±3% poll margin.

Input

Sample size: mean, ±2 margin, σ = 10, 95%

Result

n = 97 observations

n = (1.96 × 10 ÷ 2)² = 96.04, and since you cannot take a fraction of a measurement it rounds up to 97.

Frequently Asked Questions – Confidence Interval Calculator

It means the procedure works 95% of the time: repeat the sampling many times, build an interval each time, and about 95 in 100 will contain the true value. It does not mean there is a 95% probability that this particular interval contains it — the population value is fixed, not random.