Statistics

Sample Size Calculator — How Many Responses Do You Need?

Enter your desired confidence level and margin of error to find the minimum number of survey responses or study participants required for statistically reliable results.

Advertisement

📝 Enter Survey Parameters

📊 Result

Enter your parameters to see the required sample size
⚠️

Disclaimer: This tool performs standard mathematical calculations for educational and reference purposes. Always double-check results independently for graded coursework, published research, or business-critical decisions.

How Sample Size Is Calculated

Deciding how many people to survey isn't guesswork — it follows directly from three choices you make up front: how confident you want to be in the result, how much error you're willing to tolerate, and how varied you expect the answers to be. The base formula for an infinite (or very large) population is n₀ = (z² × p × (1−p)) / E², where z is the critical value tied to your confidence level, p is the expected proportion of respondents falling into the category you care about, and E is your acceptable margin of error, both expressed as decimals.

If you're sampling from a known, finite group — say, everyone enrolled in a specific course, or every employee at one company — you can shrink that number further with the finite population correction: n = n₀ / (1 + (n₀−1)/N), where N is the total population size. Smaller populations need proportionally fewer respondents to reach the same confidence level, because there's simply less unknown variation left to capture.

Why 50% Proportion Is the Safe Default

The product p × (1−p) is largest when p = 0.5, which is why leaving the proportion at 50% gives you the biggest, most conservative sample size estimate. If you already have a solid guess at the real proportion — from a pilot study or prior data — plugging that in instead will usually lower the required sample size, sometimes substantially.

Worked Example

Suppose you want 95% confidence (z = 1.96), a 5% margin of error (E = 0.05), and no strong prior belief about the outcome, so you leave p at 50% (0.5) with an unrestricted population.

  1. Step 1: n₀ = (1.96² × 0.5 × 0.5) / 0.05² = (3.8416 × 0.25) / 0.0025 = 384.16
  2. Step 2: Since there's no finite population to correct for, this is the final raw value
  3. Step 3: Round up to a whole person — you need at least 385 respondents

Frequently Asked Questions

A proportion of 50% produces the widest possible spread of answers, which in turn requires the largest sample size to hit your target margin of error. Using 50% when you don't already know the likely outcome is the safe, conservative choice — it guarantees your sample is large enough no matter which way the real answer leans.
When you're sampling from a small, known group (say, 400 employees at one company) rather than an effectively unlimited population, you don't need as many respondents to reach the same confidence and margin of error. The correction shrinks the raw sample size downward to reflect that the population itself is capping how much new information each additional respondent can add.
The formula gives you the minimum count needed to achieve your stated confidence and margin of error. Rounding down would leave you just short of that target, so the result is always rounded up to the next whole person — you can survey more than the minimum, but never fewer.
Advertisement