Skip to content

Sample Size Calculator

Find how many people to survey for a given confidence level and margin of error.

Calculated instantly in your browser.

%
Use 50% for the most conservative (largest) sample.
%

How do you calculate the sample size for a survey?

n₀ = z² × p(1−p) ÷ e², where z is the confidence z-score, p the response distribution and e the margin of error. For a finite population N, n = n₀ ÷ (1 + (n₀−1) ÷ N). At 95% confidence (z = 1.96), a 5% margin and 50% distribution, you need about 385 responses for a large population, or about 370 if it is 10,000.

Understanding your result

A higher confidence level or a smaller margin of error requires more responses. A 50% distribution gives the largest, safest sample when you cannot estimate the split in advance.

Formula and method

n₀ = z² × p(1−p) ÷ e², where z is the confidence z-score, p the response distribution and e the margin of error. For a finite population N, n = n₀ ÷ (1 + (n₀−1) ÷ N).

Worked example

At 95% confidence (z = 1.96) with a 5% margin and 50% distribution, you need about 385 responses for a large population, or about 370 if the population is 10,000.

How to use this tool

  1. Pick your confidence level and margin of error.
  2. Optionally enter your total population size.
  3. Read off the number of completed responses you need.

Common mistakes to avoid

  • Confusing the number of completed responses with the number of invitations — adjust for your response rate.
  • Using a tiny margin of error and being surprised by a huge sample.

About the Sample Size Calculator

The Sample Size Calculator tells you how many responses a survey needs to be statistically reliable for your chosen confidence level and margin of error, with an optional correction when your total population is small.

Who should use this tool

Researchers, students, marketers and product teams planning a survey or experiment.

Benefits

  • Get the exact number of responses to aim for.
  • Choose your confidence level and margin of error.
  • Finite-population correction for smaller groups.
  • Private and instant — no sign-up.

Practical use cases

  • Planning a customer-satisfaction survey.
  • Sizing an A/B test audience.
  • Checking a study has enough participants.

Explore all Mathematics tools

Frequently asked questions

What confidence level should I use?

95% is the most common default. Use 99% when you need extra certainty (it needs a larger sample) or 90% for quick, lower-stakes surveys.

Why 50% for response distribution?

A 50/50 split gives the most conservative (largest) sample, so it is the safe choice when you do not know how answers will split.

Share this tool

Free to use — copy the link, share it anywhere, or add the tool to your own website.

Embed this tool on your site (free)

Copy this code and paste it into any web page — it stays free and always up to date: