Sample Size Calculator

Find how many survey responses you need for your confidence level and margin of error, with finite population correction – or find the margin of error.

Calculator

Was this tool useful?

About this tool

About Sample Size Calculator

Planning a survey or study? Enter your confidence level, the margin of error you can accept and your population size to see how many people you need to ask.

How it works

n₀ = z² × p(1 − p) ÷ e². With population N: n = n₀ ÷ (1 + (n₀ − 1) ÷ N). z = 1.96 for 95% confidence.

Example

95% confidence, ±5% margin, unknown population: 1.96² × 0.25 ÷ 0.05² = 384.2 → 385 responses. For a population of 1,000 you need 278.

How to use this tool

  1. Choose Sample size or Margin of error.
  2. Pick the confidence level and enter the margin of error (or your sample size).
  3. Optionally enter the population size and expected proportion.

Frequently asked questions

Why use 50% as the proportion?

50% gives the largest sample size, so it is the safe choice when you don’t know what to expect.

Does a bigger population need a much bigger sample?

No. Above about 20,000 people the sample size hardly changes.

Do I need to sign up?

No. The calculator is free, works in your browser and nothing you type is stored.

Can I use the Sample Size Calculator for homework?

Yes. The Sample Size Calculator shows the answer and, where possible, the method, so you can check your own working. Teachers usually want to see the steps, so use it to learn the method rather than only copying the answer.