Sample Size Calculator

Find out how many people you need to ask, so your result is reliable enough to act on. It is for anyone planning a survey or a test, with no prior knowledge needed.

Your inputs

The defaults are filled in, so you already have a result.

How sure do you want to be?
percent, from 1 to 20

Most people do not need these. The defaults are the safe choice.

You need 385 people for a reliable answer.

You need 385 people for a reliable answer.

Your choices
95 percent sure, plus or minus 5 percent, expected share 50 percent.
Sentence for your plan
To estimate the share with 95 percent confidence and a 5 percent margin of error, you need 385 participants.

How the number changes with precision

As the margin gets smaller, the number of people grows fast. The dot shows your current choice.

1%5%10%15%20%people1001,00010,000385 people
How we got this number

At 95 percent confidence the math uses 1.96. The expected share is 50 percent and the margin is 5 percent. 1.96 squared, times 50 percent, times 50 percent, divided by 5 percent squared, comes to 384.16. Rounded up to the next whole person, that is 385. The full formula and its source are in How it works.

How it works

Sample size is about precision. You pick how sure you want to be and how close the answer needs to be, and the calculator works out how many people you need to ask. A larger group gives a tighter answer. A smaller group gives a looser one, and the calculator shows you how much looser.

The formula, in plain words

The calculator uses the standard formula for estimating a share, from William Cochran's 1977 book Sampling Techniques. Take the number that goes with your confidence level, called the Z value, and square it. Multiply by the share you expect, then by one minus that share. Divide by the margin of error, squared. That gives the number of people for a large group.

The Z value is 1.645 for 90 percent confidence and 1.96 for 95 percent. For any other level, such as 75 percent, it comes from the normal curve, the bell shaped curve that results like these follow.

When you give a total group size, a finite population correction lowers the number, because asking a big part of a small group already tells you a lot about it. The number is divided by one plus the number minus one, over the group size. The result is always rounded up to the next whole person.

What each input means

Confidence level is how sure you want to be that the true answer is inside your range.

Margin of error is how far your answer could be from the true one, in points either way.

Expected share is the share of people you expect to give a certain answer. If you do not know, keep 50 percent, which is the safe choice.

Total group is how many people there are in all, if you know it. Leave it blank for a large or unknown group.

What it means

This describes the default example: 385 people at 95 percent confidence and a 5 percent margin. Your own result is in the calculator above.

With 385 people at 95 percent confidence and a 5 percent margin, your result is reliable enough to act on for a share. If the survey says 60 percent of people complete the task, the true share is likely between 55 and 65 percent.

A large sample gives a tighter estimate. It does not by itself prove a difference is real. That needs a comparison between groups, not just a larger sample.

If you recruit about half as many people, 192 instead of 385, your margin grows to about 7.1 percent at the same confidence.

Same margin, different confidence

At a 5 percent margin and a 50 percent share, 90 percent confidence needs 271 people, 95 percent needs 385, and 99 percent needs 664. More confidence costs more people, and the cost grows fast near the top.

Example

This describes the default example: 385 people at 95 percent confidence and a 5 percent margin. Your own result is in the calculator above.

You want to know what share of customers finish checkout. You pick 95 percent confidence, a 5 percent margin, and a 50 percent share because you do not know the share yet. The calculator says you need 385 people. In your plan you write: to estimate the share with 95 percent confidence and a 5 percent margin of error, you need 385 participants.

If you can only recruit 100 people, your margin grows to about 9.8 percent. Your result is looser, so say that plainly in your findings.

When this calculator does not apply

This calculator is for estimating a share, for example what share of people complete a task. It is not for an A/B test. Comparing two versions needs a different calculation, with your starting rate, the smallest difference you care about, and the chance of spotting it, for each version.

It is also not for a study that looks for problems rather than measuring a share, such as a usability test. For finding problems, 5 to 8 people per round is the usual starting point.

FAQ

What is sample size?

Sample size is how many people you ask. A larger sample gives a more precise answer. A smaller sample gives a looser answer, and this calculator shows you how much looser.

Why is 95 percent the usual choice?

It balances confidence and cost. 90 percent needs fewer people but you can be less sure of the answer. 99 percent lets you be more sure, but needs many more people. Most research uses 95 percent, so it is easy to compare your result with others.

What if I recruit fewer people than the calculator says?

Your margin of error grows. With about half as many people, the margin grows by about 40 percent, for example from 5 to about 7 points. You can still use the result. Say plainly in your findings how wide the margin is, so no one mistakes a loose result for a precise one.

Does population size matter?

Only when the whole group is small. If it is large or you do not know its size, leave it blank, because it changes almost nothing. If the whole group is 2,000 people, the number drops from 385 to 323, because you are asking a big part of the group.

What is statistical significance?

Statistical significance is about whether a difference between two groups is likely to be real and not just chance. Sample size is about precision, how tight your estimate is. A large sample gives a tight estimate, but it does not by itself prove a difference is real. Comparing two groups is a different calculation, and you need enough people in each group, not just in total.

Do I need an account to use this?

No. The calculator is free, with no account and no email. Download your result right away. You only need a free account if you want to save the result to User Sage.

Where does the formula come from?

From William Cochran's 1977 book Sampling Techniques. The calculator runs that formula directly, with no AI.

Conduct a survey, a usability test, or a moderated session

Fast answers from an AI panel, checked by real people, so you can act on them.

Get started free