Confidence Intervals and Sample Size in Plain English
Three statistics concepts that fit together in a specific order -- how many people to survey, how wide the resulting uncertainty is once you have data, and how to tell whether a difference is real or just noise.
Confidence intervals, sample size, and p-values are three of the most commonly misunderstood ideas in statistics, and most of the confusion comes from not seeing how they fit together in sequence. Each one answers a genuinely different question, and they run in a specific order: how much data should you collect, how uncertain is the data you actually collected, and does a difference in that data mean anything at all.
Before You Collect Data: How Many Do You Need?
The Sample Size Calculator answers the question that comes first, before a single response is collected: given a desired margin of error and confidence level, how many respondents or observations does a survey actually need? Because margin of error is squared in the underlying formula, cutting your desired margin of error in half doesn’t just double the required sample — it roughly quadruples it, which is exactly why a tight ±1% margin demands dramatically more respondents than a typical ±5% one.
Practical takeaway: decide how precise you actually need your results to be before designing the survey, not after — tightening the margin of error after data collection has already started means the sample size decision has already been made, for better or worse.
After You Have Data: How Wide Is Your Uncertainty?
The Confidence Interval Calculator answers the reverse question, once real data exists: given a sample’s mean, standard deviation, and size, how wide a range likely contains the true population value? A “95% confidence interval” means that if the same sampling process were repeated many times, about 95% of the intervals it produced would contain the true population mean — it does not mean there’s a 95% chance the true mean falls in this one specific interval, a distinction that trips up even people who use the term regularly. The same square-root relationship from sample size shows up here too: a bigger sample shrinks the standard error (and therefore the whole interval), but cutting the interval in half again requires roughly quadrupling the sample, not just doubling it.
Practical takeaway: a news report’s “margin of error of plus or minus 3 percentage points” is describing exactly this same interval, just phrased differently — and a narrower interval isn’t automatically better if it comes from a lower confidence level, since precision and confidence trade off against each other.
Deciding Whether a Difference Is Real
The P-Value Calculator answers a third, genuinely different question: given a z-score from a comparison or test, what’s the probability of seeing a result this extreme purely by chance, if there were actually no real effect? A p-value below the conventional 0.05 threshold is generally treated as statistically significant — but that threshold is a widely-used convention, not a law of nature, and a p-value never tells you the probability that the null hypothesis itself is true, a common and consequential misreading.
Practical takeaway: statistical significance and practical significance are different things — with a large enough sample, even a tiny, practically meaningless effect can produce a very small p-value, so a p-value is best read alongside a confidence interval or effect size, never on its own.
Putting It Together
The natural order is: use Sample Size Calculator while planning a survey or experiment to decide how much data to collect for the precision you want, run Confidence Interval Calculator once real data is in hand to see how wide your actual uncertainty turned out to be, and use
P-Value Calculator when comparing groups or testing a specific hypothesis to judge whether an observed difference is likely real or just noise. These three tools sit at different stages of the same statistical process — confusing which one applies to which stage (asking a confidence-interval question before you have data, or a sample-size question after you already do) is one of the most common ways people misuse each other’s numbers.
Calculators Used in This Guide
- Sample SizeFind how many respondents or observations a survey needs to estimate a proportion within a chosen margin of error and confidence level.
- Confidence IntervalFind the confidence interval for a population mean, given a sample's mean, standard deviation, and size.
- P-ValueFind the p-value for a given z-score in a one-tailed or two-tailed hypothesis test, and whether it is statistically significant.