PERSONAL FINANCE · 206 TOOLS · 0 SIGN-UP
TallyBench / Confidence Interval Calculator
// CONFIDENCE INTERVAL CALCULATOR

Confidence interval for a sample mean or proportion.

Enter your sample statistics and confidence level to get the interval and margin of error.

Educational tool. Double-check critical calculations independently.
Confidence Interval
Margin of Error

What does a confidence interval actually tell you?

A confidence interval gives a range that's likely to contain the true population parameter at the stated confidence level. A common misconception is that a 95% confidence interval means "there's a 95% chance the true value is in this specific interval" — technically, the 95% describes the long-run reliability of the method (if you repeated the sampling many times, about 95% of the resulting intervals would contain the true value), not a probability statement about this one result.

How does sample size affect the interval width?

Larger samples produce narrower, more precise intervals. The margin of error shrinks in proportion to the square root of the sample size, so quadrupling your sample size only halves the margin of error.

How does confidence level affect the interval width?

Higher confidence requires a wider interval, all else equal, because capturing the true value more reliably requires casting a wider net — a 99% confidence interval is always wider than a 95% one built from the same data.

How is this related to your Sample Size Calculator?

The Sample Size Calculator works backward from a target margin of error to tell you how large a sample you need. This tool works forward from a sample you've already collected to compute the resulting confidence interval.

Worked example: a sample mean of 100, standard deviation of 15, n=30, at 95% confidence (z=1.96): margin of error = 1.96×(15/√30) ≈ 5.37, giving a confidence interval of roughly 94.63 – 105.37.

What "95% confident" actually means

It does not mean there is a 95% probability the true value sits in your interval. The true value is fixed; your interval is what varies. The correct reading is procedural: if you repeated this sampling process many times, about 95% of the intervals you produced would contain the true population value.

In practice this distinction matters most when an interval is wide. A wide interval is not a weaker claim about the same estimate — it is a statement that your data barely constrains the answer.

A worked example

With a sample of 100, a sample mean of 50 and a standard deviation of 10, the standard error is 10/√100 = 1. At 95% confidence the critical z value is 1.96, so the margin of error is 1.96 and the interval is [48.04, 51.96].

Note what drives that width: the standard error divides by the square root of the sample size. Quadrupling your sample halves the margin of error — it does not quarter it. Precision gets expensive quickly, which is the single most useful thing to know when planning a study.

Choosing a confidence level

Higher confidence always means a wider interval. There is no setting that gives you both precision and certainty; you are choosing where to sit on that trade.

Assumptions worth checking

The z-based interval assumes a roughly normal sampling distribution — safe for large samples by the central limit theorem, questionable below about 30, where the t-distribution is the correct choice. It also assumes genuine random sampling. No confidence interval fixes a biased sample; it will report a precise-looking range around the wrong number.

To work out the sample size needed for a target margin of error, use the Sample Size Calculator.