Skip to main content
Calcimator

Sample Size Calculator

Determine the required sample size for your survey or study. Calculate how many responses you need for statistically significant results.

About this calculator

This calculator computes Required Sample Size as n = z² × p × (1−p) ÷ e² (line 73), where z is looked up from a fixed table for 90%, 95%, or 99% confidence (lines 14-18) and e is Margin of Error converted to a decimal. Switching Confidence Level end to end actually moves Required Sample Size more than any other input: at the default Margin of Error and Expected Response Rate, 90% confidence needs 271 responses and 99% needs 664 — more than double — because z is squared in the numerator and 99%'s z-score (2.576) is well over 90%'s (1.645). Margin of Error is a different kind of lever: it's the input you drag smoothly rather than pick from three fixed options, and among Confidence Level and Expected Response Rate, it's the only one that moves Required Sample Size at all under a small, symmetric nudge — raising it always lowers the required sample size, since e sits in the denominator, squared.

Expected Response Rate (p) showing no effect from a symmetric 10% nudge at its default of 0.5 is not evidence that it's irrelevant — it's the opposite kind of trap. p × (1−p) is maximized exactly at p = 0.5 (its derivative, 1 − 2p, is zero there), so a symmetric nudge to 0.45 and 0.55 lands on the identical value, 0.2475, on both sides — that reads as zero effect only because it straddles a peak, not because the term is flat everywhere; moving p to 0.3 instead changes p(1−p) to 0.21, a real and substantial shift. When Population Size is between 0 and 1,000,000, a finite-population correction shrinks the required sample further (line 78-80), and the reported Effective Margin of Error is recomputed against that adjusted sample size rather than simply echoing the target Margin of Error back. This calculator does not account for expected non-response or attrition beyond the response-rate proportion itself, and it silently falls back to the 95% z-value (1.96) if an unrecognized Confidence Level ever reaches the engine (line 20), though the UI only ever offers 90, 95, or 99.

Inputs

%

Results

Required Sample Size

385

Adjusted Sample Size385
Z-Score Used1.96
Effective Margin of Error4.99%
InterpretationYou need 385 responses for 95% confidence with ±5.0% margin of error.
How to Use This Calculator
  1. Enter the desired Confidence Level (e.g., 95%) and Margin of Error (e.g., 5%) for your survey.
  2. The calculator uses the formula n = z² × p(1−p) / e², where z is the critical z-score and p is the estimated proportion.
  3. If you have a prior estimate of the response proportion, enter it; otherwise use 0.5 (maximum variability, largest required sample).
  4. For a finite population, enter the Population Size and the calculator applies a finite population correction factor.
  5. A larger margin of error requires fewer respondents; halving the margin of error quadruples the required sample size.
  6. Results are rounded up to the nearest integer since you cannot survey a fraction of a person.

How the result changes with Margin of Error

Margin of ErrorRequired Sample Size
2.5%1,537
3.75%683
7.5%171
13%57

What each input means

Confidence Level
How confident you want to be in your results
Margin of Error
Acceptable range of error (e.g., ±5%)
Expected Response Rate
Use 0.5 if unknown (most conservative)
Population Size
Total population size (0 for infinite/unknown)

What each result means

Required Sample Size
For infinite population
Adjusted Sample Size
Adjusted for finite population

How this is calculated

Formula

n = (z² × p × (1-p)) / e²

Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Which input has the biggest effect on the Required Sample Size?

Confidence Level, if you consider its full range: switching from 90% to 99% confidence takes Required Sample Size from 271 to 664 at the default Margin of Error and Expected Response Rate — more than double — because z is squared and 99%'s z-score (2.576) is well above 90%'s (1.645). Among the inputs you can nudge smoothly rather than pick from a short list, Margin of Error has the biggest effect — n = z² × p(1−p) ÷ e² (line 73) puts Margin of Error in the denominator, squared, so tightening it drives the required sample size up sharply.

Does the Expected Response Rate not matter, since a small nudge to it doesn't change the Required Sample Size?

It does matter — the calculator's default of 0.5 is a special point, not a generally flat one. p(1−p) is maximized exactly at p = 0.5, so a symmetric nudge to 0.45 and 0.55 lands on the same value (0.2475) on both sides and shows zero net effect. Move p away from 0.5 in one direction only — say, down to 0.3 — and p(1−p) drops to 0.21, a real change that lowers the Required Sample Size, since the formula's numerator gets smaller.

Does raising the Margin of Error always reduce the required sample size?

Yes, robustly — Required Sample Size = z² × p(1−p) ÷ e² (line 73) has Margin of Error only in the denominator, squared, so for any positive value of e, increasing it always shrinks the fraction and therefore always lowers the required sample size; the relationship never reverses direction.

How does entering a Population Size change the result?

When Population Size is set between 0 and 1,000,000, the calculator applies a finite-population correction (line 78-80) that shrinks Adjusted Sample Size below the infinite-population Required Sample Size, and it also recomputes Effective Margin of Error against that smaller adjusted sample rather than just repeating the target Margin of Error you entered (lines 88-92) — so the two margin figures can differ once a Population Size is supplied.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Math & Statistics.