Sample Size Calculator for Surveys

Work out how many survey responses you need for a chosen confidence level and margin of error, with the finite population correction.

Updated · Free · Runs in your browser

%
%

Use 50% if unsure: it gives the largest, safest sample.

Leave at 0 for a very large population.

%
Responses needed —
For a very large population —
People to invite —
Z-score used —
    Was this calculator helpful?

    Sample size by margin of error

    The formula

    n₀ = z² × p(1 − p) ÷ e²
    Finite population correction: n = n₀ ÷ (1 + (n₀ − 1) ÷ N)
    People to invite = n ÷ expected response rate
    z = 1.645 (90%), 1.960 (95%), 2.576 (99%); p = expected proportion; e = margin of error

    Worked example

    1. 95% confidence (z = 1.96), ±5% margin and p = 50%:
    2. n₀ = 1.96² × 0.5 × 0.5 ÷ 0.05² = 3.8416 × 0.25 ÷ 0.0025 = 384.2, so you need 385 responses.
    3. For a population of 2,000 employees: n = 384.2 ÷ (1 + 383.2 ÷ 2,000) = 322.4, so 323 responses.
    4. With a 30% response rate, invite 323 ÷ 0.3 = 1,077 people.

    How many people do you need to survey?

    The number of responses needed depends on how precise you want the result to be (the margin of error), how sure you want to be that the true answer falls within that margin (the confidence level), how varied the answers are likely to be, and sometimes the size of the population. Surprisingly, for large populations the population size barely matters: about 385 responses give a ±5% margin at 95% confidence whether you're surveying a city of 100,000 or a country of 300 million.

    Choosing the confidence level and margin

    A 95% confidence level is the standard in most research and polling. It means that if you repeated the survey many times, about 95% of the intervals would contain the true value. A 99% level needs about 70% more responses for the same margin. Halving the margin of error requires four times as many responses, because the margin shrinks with the square root of the sample size. A ±5% margin is common for general surveys, while national polls often aim for ±3% (about 1,070 responses) and important research for ±2% or less.

    Why use 50% for the proportion?

    The expected proportion is your best guess at the share of people who will give a particular answer. The formula's p(1 − p) term is largest at 50%, so using 50% gives the most conservative, largest sample size, which is why it's the default when you have no prior information. If earlier research suggests the proportion is around 10% or 90%, you can use that value and need fewer responses. For a 10% proportion at ±5%, you'd need 139 rather than 385.

    Small populations

    When your sample is a significant share of the population, such as surveying a company's 500 employees or a school's 800 pupils, the finite population correction reduces the number needed. For 500 people at ±5% and 95% confidence, you need 218 responses rather than 385. If the population is small enough, it may be simpler to survey everyone. The correction only matters when the sample is more than about 5% of the population; otherwise the large-population figure is fine.

    Response rates and bias

    The sample size is the number of completed responses you need, not the number of people you contact. Online and email surveys often get response rates of 10–30%, so enter your expected rate to see how many people to invite. A large sample doesn't fix bias: if the people who respond differ from those who don't, for example because only the most satisfied customers reply, the results can be misleading however many responses you get. Random sampling, reminders and short, neutral questionnaires all help.

    Sample size for numeric answers

    When you're estimating an average, such as mean spending or satisfaction scores on a 1–10 scale, rather than a percentage, the formula uses the standard deviation instead: n = (z × σ ÷ E)², where E is the margin you want in the same units. If spending has a standard deviation of $40 and you want the mean to within ±$5 at 95% confidence, you need (1.96 × 40 ÷ 5)² = 246 responses. Use a pilot survey or previous data to estimate the standard deviation.

    Once you have your results, the margin of error calculator shows the precision of each answer, including when the actual proportion differs from your estimate. For experiments that compare two versions, such as website designs or marketing emails, our A/B test calculator tests whether the difference is statistically significant. To summarise numeric answers, use the standard deviation calculator.

    Frequently asked questions

    What sample size do I need for 95% confidence?
    For a large population, a ±5% margin of error needs 385 responses, ±3% needs 1,068 and ±1% needs 9,604. Smaller populations need fewer.
    Does population size matter for sample size?
    Only when the sample is a sizeable share of the population, roughly more than 5%. For large populations, the required sample is almost the same whatever the population size.
    What proportion should I use if I don't know?
    Use 50%. It gives the largest required sample, so your margin of error will be no worse than planned whatever the true proportion turns out to be.
    Is a sample of 100 enough?
    A random sample of 100 gives a margin of error of about ±10% at 95% confidence. That's enough for a rough idea, but not for detecting small differences or analysing subgroups.
    How do I calculate sample size for comparing two groups?
    Comparing groups, such as in an A/B test, needs a power calculation that depends on the smallest difference you want to detect. As a rule of thumb, detecting a 5-point difference between two 50% proportions needs about 1,570 per group at 95% confidence and 80% power.

    ↑↓ to navigate · Enter to open