1. Home
  2. Statistics
  3. Sample Size Calculator

Sample Size Calculator

For a large population, 95% confidence and a ±5% margin of error you need 385 responses: n = z² × p(1 − p) ÷ E² = 1.96² × 0.25 ÷ 0.05².

Expecting only 20% of people to reply? Enter your response rate and the calculator tells you how many invitations to send, not just how many answers you need.

How many responses do I need?

%
%Use 50% if unsure: it gives the safest (largest) sample.
%
Answer —

How we got this

    Your next step

    Your answer carries over, so you don’t have to type it again.

    The sample size formula

    n₀ = z² × p(1 − p) ÷ E²

    z comes from the confidence level (1.96 for 95%), p is the expected proportion and E the margin of error as a decimal. For a small population N, correct it: n = n₀ ÷ (1 + (n₀ − 1) ÷ N).

    Worked example

    A school of 1,200 students, 95% confidence, ±5%: n₀ = 384.2; n = 384.2 ÷ (1 + 383.2 ÷ 1,200) ≈ 292 students.

    Sample sizes at a glance (large population, p = 50%)

    Margin of error90%95%99%
    ±10%6897166
    ±5%271385664
    ±3%7521,0681,844
    ±2%1,6912,4014,147
    ±1%6,7649,60416,588

    Halving the margin of error needs four times as many responses.

    Does population size matter?

    Much less than people think. Once the population is above about 20,000, the sample size hardly changes: 385 responses give ±5% for a city of 100,000 or a country of 200 million. The correction only matters when your sample is a big share of the population.

    Size is not everything

    • A random sample matters more than a big one. 10,000 replies from a biased group can be worse than 400 random ones.
    • Low response rates can bias results if the people who reply differ from those who do not.
    • For subgroups (for example men and women separately) each subgroup needs its own sample size.

    Frequently asked questions

    What sample size do I need for a survey?

    For 95% confidence and ±5% margin of error, 385 completed responses for a large population, fewer for a small one.

    Why use 50% as the proportion?

    p(1 − p) is largest at 50%, so it gives the biggest, safest sample size when you do not know the answer in advance.

    What is the margin of error?

    The range around your result that likely contains the true value. 60% ± 5% means the true figure is probably between 55% and 65%.

    What confidence level should I use?

    95% is standard. Use 90% for quick, low-stakes research and 99% when mistakes are costly.

    Last updated · Written and checked by the AzCalculator team · Calculations run in your browser with full precision and are rounded only for display. How we build calculators