Skip to content
SoftwareSolutions.net
Calculators & Converters

Sample size calculator

Find how many people a survey needs for a set margin of error.

Try it

Ready

Inputs

Result

The result appears here as you type.

About Sample size calculator

A sample size calculator estimates how many people or observations you need to survey or measure to get a result with a chosen level of precision. You enter the confidence level, the margin of error you can accept and, for a proportion, an estimate of the expected share. The calculator returns the minimum sample size, which helps researchers avoid studies too small to be useful and too large to be affordable.

The answer depends on the assumptions you make. A more precise margin, a higher confidence level or a population close to a 50% split all increase the sample needed. The figure is a planning estimate and assumes a random sample, so non-response and bias must be managed separately.

How to use Sample size calculator

  1. Choose the confidence level, usually 95%.
  2. Enter the margin of error you are willing to accept, such as 5%.
  3. Enter the expected proportion, or use 50% if you have no estimate.
  4. Enter the population size if it is small, or leave it blank for a very large population.
  5. Read the minimum sample size and add extra for expected non-response.

The formula and its inputs

For a large population the sample size is the square of the z-value multiplied by p times one minus p, divided by the square of the margin of error. With 95% confidence, a 5% margin and p at 50%, the calculation gives about 385 respondents. A finite population correction reduces the figure when the population is small.

Using 50% for the proportion is the safest choice, because it gives the largest sample. If you have a good estimate from a pilot study, a value further from 50% reduces the required sample.

Non-response and real studies

Not everyone you contact will reply, so the number to approach is larger than the sample size. If you expect a 40% response rate, you need to contact about 2.5 times the target. Plan the budget and timeline with that in mind.

A large sample does not fix a biased one. Random selection, clear questions and a representative frame matter more than size alone. Report the sample size, method and response rate with your results.

Frequently asked questions

Why is 385 a common answer?

It comes from 95% confidence, a 5% margin and an expected proportion of 50% for a very large population.

Should I always use 50%?

It is the conservative choice. Use a known estimate if you have one from earlier research.

What about small populations?

Enter the population size and the calculator applies a correction that lowers the required sample.

Related tools

Tools that pair well with this one.