Sample size calculator.
For surveys of any size.

Enter your population, confidence level and margin of error. The sample size calculator shows how many completed responses your survey needs, and how many people to invite. Free, no account.

Your survey

How many people are in the group you want to learn about. Leave it empty if the group is very large or you do not know its size.

How sure you want to be that the true figure lies within the margin of error.

How far the survey's result may be from the true figure, in percentage points either way.

The share you expect to give a particular answer. 50% gives the largest sample, so it is the safe choice.

The share of the people you invite who you expect to answer. Add it to see how many people to invite.

What you need

Completed responses needed 
For a very large population 

A survey gives you the numbers. Interviews tell you why. Record interviews and focus groups with Laxis: Zoom, Teams and Google Meet calls without a bot, transcribed with each speaker labelled, or in-person conversations on your phone or computer. You get the transcript and the summary; 300 minutes a month free.

The calculator runs in your browser. The numbers you enter are not sent anywhere: Laxis receives nothing, and nothing is kept once you close the tab.

How it works

How to calculate the sample size for a survey

Three steps, all in your browser.

  1. Enter the population size

    Type how many people are in the group you want to learn about, or leave the box empty if the group is very large or you do not know its size. The sample size calculator starts with an example, so you see a result at once.

  2. Choose the confidence level and the margin of error

    The calculator starts with 95% and 5%. Keep the expected proportion at 50% unless you have a better figure, and add an expected response rate to see how many people to invite.

  3. Press Copy result

    Read the completed responses needed and the sum behind them, then copy the result as a sentence for your survey plan or report. The Margin of error tab works the other way round, from the responses you collected.

Where it helps

Know how many answers you need before you send the survey

Customer and market research

Work out how many customers to hear from before you report what they think.

Employee surveys

Enter your headcount as the population to see how many replies you need.

Student projects and theses

Show how you chose your sample: the calculator gives the formula with your numbers in it.

Reporting results

After the survey, use the Margin of error tab to say how precise your figures are.

Sample size, explained

What sample size means, how it is worked out, and what it cannot fix

What is sample size?

Sample size is the number of completed responses a survey collects. You can rarely ask everyone in the group you care about, which statisticians call the population, so you ask a sample and use its answers to estimate what the whole group thinks.

The larger the sample, the closer that estimate is likely to be to the true figure. A survey sample size calculator turns this around: you say how close you need to be and how sure, and it gives the smallest sample that gets you there. With the values this calculator starts with, a population of 10,000 needs 370 completed responses.

The four inputs: population, confidence level, margin of error and proportion

Population size is the number of people in the group you want to learn about: your customers, your employees, the students at a school. Leave it empty when the group is very large or you do not know its size. Margin of error is how far the survey's result may be from the true figure. With a margin of 5%, a result of 60% means the true figure is very likely between 55% and 65%.

Confidence level is how sure you want to be that the true figure lies within the margin. With a 5% margin, raising it from 95% to 99% takes the sample for a very large population from 385 to 664. Expected proportion is the share you expect to give a particular answer. 50% needs the largest sample, those 385 responses at 95%; if you expect 20%, 246 are enough.

The sample size formula, with a worked example

For a very large population the formula is n₀ = z² × p × (1 − p) ÷ e². Here z is the z-score of the confidence level (1.96 for 95%, or 1.959964 before rounding), p is the expected proportion and e is the margin of error, both written as fractions. With p = 0.5 and e = 0.05: 1.959964² × 0.5 × 0.5 ÷ 0.05² = 384.15, so you need 385 completed responses. The z-scores of the other levels are 1.282 for 80%, 1.44 for 85%, 1.645 for 90% and 2.576 for 99%.

When the population is not much larger than that, each answer tells you more about the whole group, and the finite population correction lowers the sample: n = n₀ ÷ (1 + (n₀ − 1) ÷ N), where N is the population. For 10,000 people: 384.15 ÷ (1 + 383.15 ÷ 10,000) = 369.97, which rounds up to 370. The calculator always rounds up, because rounding down would leave the margin of error slightly wider than you asked for.

Response rate: how many people to invite

The sample size is the number of completed responses, not the number of invitations. Not everyone you ask will answer, so divide the sample by the response rate you expect. If you need 370 responses and expect one person in five to answer, a response rate of 20%, invite 370 ÷ 0.2 = 1,850 people. Use the rate of your own earlier surveys if you have one.

Enter an expected response rate and the calculator does the division for you. If the answer is more people than the population has, the sample is out of reach at that rate: a population of 1,000 needs 278 responses, which at 20% would mean inviting 1,390 people. Invite everyone, then use the Margin of error tab to see how precise the responses you received are. With 200 responses from those 1,000 people, the margin of error is 6.2 points.

Margin of error: working back from the responses you have

After the survey the question is reversed: how precise is the result, given the responses you collected? The margin of error is e = z × √(p × (1 − p) ÷ n), where n is the number of responses; with a known population N it is multiplied by √((N − n) ÷ (N − 1)). At 95% confidence and a proportion of 50%, 100 responses give a margin of 9.8 points, 385 give 4.99 and 1,000 give 3.1.

Precision gets expensive quickly. To halve the margin of error you need about four times the responses: 385 for 5 points, 1,537 for 2.5 points.

What the number does not fix

A large enough sample only limits the error that comes from asking some people rather than all of them. It assumes the sample was drawn at random, so that everyone in the population had the same chance of being asked. If only your most engaged customers answer, or the survey reaches people through one channel only, the result can be off by more than the margin of error, however many responses you collect.

The margin of error is also for the sample as a whole, not for each group inside it. If 100 of your 385 respondents are under 30, the result for that group alone has a margin of 9.8 points, not 5. When you plan to compare groups, work out the sample for the smallest group you want to report on.

After the survey: interviews and focus groups

A survey tells you how many people hold a view. Interviews and focus groups tell you why. You can record those conversations with Laxis instead of taking notes: it records Zoom, Teams and Google Meet calls without a bot and transcribes them with each speaker labelled, then writes the summary.

Laxis also records in-person conversations on your phone or computer and writes the transcript and the summary. The free plan includes 300 minutes a month.

Sample size by population

Completed responses needed at 95% confidence with an expected proportion of 50%, for three margins of error. Worked out with this calculator.

Population±3% margin of error±5% margin of error±10% margin of error
100928050
50034121881
1,00051727888
5,00088035795
10,00096537096
100,0001,05638396
1,000,0001,06638497
Very large or unknown1,06838597

For another confidence level, margin of error or proportion, change the numbers in the calculator above.

Questions

How do you calculate sample size?

Multiply the square of the z-score for your confidence level by p × (1 − p), where p is the expected proportion, and divide by the square of the margin of error: n₀ = z² × p × (1 − p) ÷ e². At 95% confidence, a proportion of 50% and a 5% margin, that gives 385. If you know the population size N, correct it with n = n₀ ÷ (1 + (n₀ − 1) ÷ N), and round up.

What is a good sample size for a survey?

It depends on how precise the result has to be. For a very large population at 95% confidence, 97 completed responses give a margin of error of 10 points, 385 give 5 points and 1,068 give 3 points. Choose the margin you can accept, and remember that the sample has to be drawn at random for it to hold.

What sample size do I need for a population of 1,000?

278 completed responses, at 95% confidence with a 5% margin of error and an expected proportion of 50%. A 3% margin needs 517 responses and a 10% margin needs 88.

What sample size do I need for a population of 10,000?

370 completed responses, at 95% confidence with a 5% margin of error and an expected proportion of 50%. A 3% margin needs 965 responses and a 10% margin needs 96.

What is the margin of error?

It is how far a survey's result may be from the figure you would get by asking everyone, at a given confidence level. With a margin of error of 5 points, a result of 60% means the true figure is very likely between 55% and 65%. Use the Margin of error tab to work it out from the responses you collected.

Does population size matter?

Only when the population is small. At 95% confidence and a 5% margin, a population of 1,000 needs 278 responses and one of 10,000 needs 370, but 100,000 needs 383 and 1,000,000 needs 384. With no limit at all the answer is 385, so from 100,000 people upwards the population changes the sample by 2 responses at most.

Which confidence level should I use?

95% is the convention in survey research, and the calculator starts with it. Use 99% when a wrong conclusion would be costly, and 90% when a rougher answer is enough. The price is the sample: for a very large population and a 5% margin, 90% needs 271 responses, 95% needs 385 and 99% needs 664.

What if I don't know the expected proportion?

Use 50%. The sample depends on p × (1 − p), which is largest at 50%, so no other value asks for more responses. If an earlier survey suggests the share is nearer 20% or 80%, entering it lowers the sample for a very large population from 385 to 246.

How many people should I invite to my survey?

Divide the sample size by the response rate you expect. For 370 completed responses at a response rate of 20%, invite 1,850 people. Enter an expected response rate in the calculator to see the number for your survey.

Is this sample size calculator free?

Yes, with no account and no limit. It runs in your browser: the numbers you enter are not sent to Laxis or anywhere else, and nothing is saved when you close the tab.

Interviewing people as well?

Laxis records Zoom, Teams and Google Meet calls without a bot, transcribes them with each speaker labelled and writes the summary, so you can listen instead of taking notes. The free plan includes 300 minutes a month.

Free to start · No credit card required