1. Home
  2. Calculators
  3. Sample Size Calculator

Sample Size Calculator

For surveys and studies: the number of completed responses and invitations needed, with a table for other margins of error.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use Sample Size Calculator

  1. Enter your numbers, or press a sample to see an example.
  2. Read the results and the table under them.
  3. Copy the results or download the table as a CSV file.

Features

  • Proportion (survey) or mean (measurement) designs
  • Finite-population correction for small groups
  • Response rate to find how many to invite
  • Confidence from 80% to 99.9%
  • A table for margins of error from 1% to 10%

Supported formats

Input

  • Typed numbers

You get

  • On-screen results
  • Copyable text
  • CSV table

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Sample Size Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • It assumes a simple random sample; clustering, weighting or a low response rate bias call for a larger sample.
  • It does not do power analysis for hypothesis tests.

Guide

How many survey responses do you need? Sample size, margin of error and response rate

Before you survey anyone you need to know how many answers are enough. Too few and the result is too imprecise to use, too many and you waste time and money. The answer depends on how precise you want to be, how sure you want to be and how varied the answers are likely to be. This calculator gives the number of completed responses for a survey percentage or a measured average, and the number of people to invite once non-response is included.

The formula for a percentage

For a proportion, Cochran’s formula gives n₀ = z² · p(1 − p) / E², where z is the critical value for your confidence level, p the expected proportion and E the margin of error as a fraction. At 95% confidence z = 1.95996; with p = 50% and E = 5% the result is 384.146, and the answer is always rounded up, so 385 responses. The expected proportion is set to 50% by default because that makes p(1 − p) largest and the sample safest.

Using the tool

Choose What are you estimating?: a percentage or an average. Set the Confidence level, from 80% to 99.9%, the margin of error, the expected percentage, the Population size (0 for very large or unknown) and the Expected response rate. The page opens on a percentage with 95% confidence and ±5% and shows the formula, the critical value 1.95996, n₀ = 384.146 and the required size 385. A table shows other margins: ±1% needs 9,604, ±2% 2,401, ±3% 1,068, ±4% 601, ±5% 385 and ±7% 196.

Small populations

When the group you sample is small, you need fewer responses, because each one tells you a larger fraction of the whole. The finite-population correction is n = n₀ / (1 + (n₀ − 1) / N). For ±3% in a company of 2,000 people, n₀ = 1,067.07 shrinks to 697. If the corrected sample would be as large as the population, the page notes that you should simply ask everyone, a census, since sampling saves nothing.

Response rate

Not everyone you invite will answer. Enter the expected response rate as a percentage and the page divides the required responses by it, rounded up. For ±4% (601 responses) at a 30% response rate, you must invite 2,004 people. The calculation assumes that those who respond resemble those who do not; if non-response is related to the answer, a larger sample does not remove the bias, so work on raising the response rate instead.

Sample size for an average

Choose An average to size a measurement study. Enter the margin of error in the units of the data and an estimate of the standard deviation, from a pilot study or earlier work. The formula is n = (z·σ / E)². With σ = 10 and a margin of ±2 at 95% confidence, n₀ = 96.0365 and the answer is 97. The table shows how the sample changes with the margin: ±0.5 needs 1,537, ±1 needs 385, ±4 needs 25 and ±8 needs 7.

Worked examples

Large population, 95%, ±5%: 385. Same with ±3%: 1,068; ±1%: 9,604. A school of 2,000 with ±3%: 697. A measurement with SD 10 and margin ±2: 97. A survey that needs 601 responses at a 30% response rate: 2,004 invitations. The expected proportion matters too: using p = 10% at ±5% gives 139, versus 385 at 50%. In all cases a result is a minimum for a simple random sample, so add a margin if you plan to analyse subgroups.

Limits

The formulas assume a simple random sample. Clustered samples, stratification and weighting change the effective sample size, often by a design effect of 1.5 to 2 or more, so multiply the result accordingly and consult a statistician for a complex design. The tool does not carry out power analysis for hypothesis tests, such as the sample needed to detect a given difference between two groups, and it does not account for the margin of error of subgroups.

Checked against the current version of the Sample Size Calculator on .

Frequently asked questions

Why do polls of a whole country often use about 1,000 people?

Because the margin of error depends on the sample size, not on the population size once the population is large. A sample of 1,068 gives about ±3% at 95% confidence whether the population is a million or three hundred million, which the table on the page shows. Going to ±1% needs 9,604 responses, nine times as many for a third of the margin.

What if I expect a proportion far from 50%?

Then a smaller sample is enough, because p(1 − p) is smaller. For an expected 10% instead of 50% the needed sample at ±5% falls from 385 to 139. If you have no good estimate, keep 50%: it gives the largest sample and so can only overestimate what you need, never leave you short.

Why is 50% used for the expected proportion?

Because p(1 − p) is largest at 50%, so it gives the biggest, safest sample when you have no estimate.

Does a bigger population need a much bigger sample?

No. Past a few thousand people the required sample barely changes; only small populations shrink it.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.