📊

Sample Size Calculator

Survey sample size • Confidence level • Margin of error • Population size

Calculate required sample size
%
%
Calculate margin of error for your sample
%

Survey a small number of people and results may not be representative of reality. Spend too much time on a survey and you have wasted the time and money as well as the good will of the respondent. The solution to this is a sample size calculator, which is able to calculate exactly how many people you require to be surveyed or studied in order to obtain statistically reliable results, based on your size of population, desired level of confidence and acceptable margin of error. Whether you’re conducting academic research, a customer satisfaction survey, or a market research project, a small sample size can lead to inaccurate results regardless of how well the other aspects of the study are designed. It is handy for researchers, students, statisticians, market researchers and anyone who is making a survey or study. Determine the necessary sample size that you need below before you collect your data.

Quick Answer

A sample size calculator can calculate the number of observations or respondents required to provide statistically meaningful results for a given population, confidence level and margin of error. A sample size of approximately 357 individuals is needed to survey a population of 5,000 at a 95% confidence level with a 5% margin of error.

What Is a Sample Size Calculator?

This is a tool that is used to calculate the smallest number of respondents (or observations) required if research or survey results are to be statistically reliable given your target population, confidence level and acceptable margin of error. You’re not given to guessing a “round number,” you’re given a number based on statistical formulas.

Sample size is important because it means it influences your ability to confidently make inferences to the larger population (N) you are studying about. Too small a sample can lead to conclusions being more a result of random chance than actual patterns, and too large a sample can be a waste of time and resources that would be better used to gain a better understanding of the sample than for much greater accuracy beyond a certain point. This is the fundamental compromise between statistical accuracy and the cost of the research that all studies must make.

Two concepts that drive this calculation are confidence level and margin of error. Confidence level is the level of confidence that your results will stay within your stated margin of error if you repeated your study many times, typically 90%, 95% or 99%. Margin of error describes the extent of error in your sample results compared to the population results. A poorly-designed survey, a biased sampling method, or a low response rate, on the other hand, can also negatively influence the quality of the results, and they do not depend on the size of the sample.

How Does the Sample Size Calculator Work?

The calculator applies a standard statistical formula that combines your population size, confidence level, margin of error, and expected response distribution to determine your minimum required sample size. Each input shapes the result in a specific, predictable direction.

Here’s what goes into it:

Population size — the total number of people or units in the group you’re studying; larger populations require proportionally smaller sample size increases as the population grows.

Confidence level — how certain you want to be in your results, typically 90%, 95%, or 99%; higher confidence levels require larger samples.

Margin of error — how much variation from the true value you’re willing to accept, typically expressed as a percentage; smaller margins of error require larger samples.

Expected response distribution — the anticipated split of responses (often set at 50/50 as the most conservative, safest assumption when the true distribution is unknown).

Statistical assumptions — the calculator generally assumes random sampling and independent observations, which are foundational to standard sample size formulas.

The core formula, using a 50% response distribution for maximum required sample size (the safest assumption when you don’t know the true distribution):

n₀ = (Z² × p × (1−p)) ÷ e²

Where Z is the Z-score for your chosen confidence level (1.645 for 90%, 1.96 for 95%, 2.576 for 99%), p is the estimated response proportion (0.5 if unknown), and e is your margin of error as a decimal.

For a known, finite population, this initial result is adjusted using the finite population correction:

n = n₀ ÷ (1 + (n₀−1) ÷ N)

Where N is your total population size. This adjustment reduces the required sample size somewhat when your population is relatively small, since sampling a larger proportion of a small population naturally increases precision.

How to Use the Sample Size Calculator

  1. Enter the total population size.
  2. Select your desired confidence level.
  3. Choose your acceptable margin of error.
  4. Enter your estimated response distribution, if you have one (otherwise, 50% is the standard default).
  5. Click Calculate.
  6. Review your recommended sample size.
  7. Apply the result when designing your survey or research study.

If you’re unsure what confidence level or margin of error to choose, 95% confidence with a 5% margin of error is the most common standard across academic and market research, and it’s a reasonable default unless your project has specific precision requirements.

Factors That Affect Sample Size

FactorImpact on Sample SizeExample
Population SizeLarger populations require proportionally smaller increases in sample size beyond a certain pointA population of 100,000 vs. 1 million requires only a marginally larger sample, not 10x more
Confidence LevelHigher confidence levels require larger samples to maintain the same precisionMoving from 95% to 99% confidence increases required sample size by roughly 70%
Margin of ErrorSmaller (tighter) margins of error require substantially larger samplesCutting margin of error from 5% to 3% roughly triples the required sample size
Response DistributionAn unknown or 50/50 expected split requires the largest, most conservative sample sizeAssuming a known 80/20 split instead of 50/50 can meaningfully reduce required sample size
Research ObjectiveExploratory research may tolerate smaller samples than research aiming for precise estimatesA pilot study needs fewer respondents than a study meant to inform a major business decision
Sampling MethodNon-random or convenience sampling can undermine result validity regardless of sample sizeA large but biased sample can still produce misleading conclusions
VariabilityHigher variability in the population being studied generally requires a larger sampleA highly diverse population needs more respondents than a fairly homogeneous one for the same precision
Desired PrecisionGreater desired precision (smaller error tolerance) directly increases required sample sizeAcademic research often demands tighter precision than an informal internal survey

Benefits of Using a Sample Size Calculator

A sample size calculator is helpful to the research process from the beginning, rather than finding that the sample size has been too small after data has been collected to draw meaningful conclusions. It also saves real time and resources by avoiding over collection and gathering more responses than needed does not continue to meaningfully improve a precision point beyond the calculated point. This prevents the collection of extraneous data, which is important from both a cost and respondent burden perspective. It can help you make sound findings and minimize sampling error, so you can be certain that your findings have a sound basis in statistics — not a round one. This is useful in academic research, business decision making, healthcare research, and market research, because one of the first things that reviewers or stakeholders look at when deciding whether the author’s conclusions are valid or reliable is the sample size that was used.

Limitations of Sample Size Calculators

A sample size calculator can help you determine the number of people you should include in your study, but it cannot ensure that you will get reliable results from your study. It doesn’t take into account bad survey design, which, even if you get a lot of responses, can lead to poor data quality because of the question wording. It cannot identify sampling bias, which occurs when your sampling procedure systematically over-represents or under-represents some groups of people in your sample. Another blind spot is non-response bias — when non-respondents are not very similar to those who respond, your results can be skewed, even if your sample size is technically good. The calculator also assumes that your input assumptions, such as your distribution of responses, is reasonably close to what is actually happening; if either your assumptions are incorrect, or the actual distribution of responses differs from your assumptions, your actual sample size requirement may be different from what you see. Additional factors that no calculator can account for include changes in population between the time of the calculation and the time of collection of the data, and any simple human error in the data collection process.

Due to these restrictions use the calculated sample size as an important starting point and not as a research quality seal of approval. When the study is complex and especially when it is one that will be used to inform major business or research decisions, it is worth hiring a statistician or a research methodology expert.

Tips for Choosing the Right Sample Size

Choose a suitable level of confidence for your situation (e.g. 95% is the usual level of confidence for most studies whereas 99% is appropriate for high-stakes studies where errors might have serious consequences).

Set a reasonable margin of error, depending on the precision needed and the practical limitations of the study; 5% is typical for general research, and 3% or less is good for studies that demand greater precision.

Try to avoid sampling bias, particularly convenience sampling, in order to get a true random or systematic sample, not just a convenience sample—even a good sample size can be defeated by convenience sampling.

Use clear, well-designed surveys and incentives to improve response rates because a large enough sample size does not offset low response rates.

Whenever possible, use random sampling, as it is the basis for the statistical assumptions used in the standard formulas for sample sizes.

Clearly and precisely define your target population before calculating the sample size, as a fuzzy or too broad of a population definition will make your sample size calculation less accurate.

Run test surveys with a small pilot group to identify questions that are confusing and design problems before considering a large data collection.

Find a balance between accuracy and research costs; not all research goals have to be as precise as possible.

Frequently Asked Questions

What is sample size?

 The number of people, observations or units taken from a population to represent it in a study or survey. An adequate sample size enables researchers to make sound conclusions about the entire population without having to survey every member of the population.

What are the different ways to determine the size of a sample?

 You can use the formula n₀ = (Z² × p × (1−p)) ÷ e² where Z is the Z score for your confidence level, p is the proportion of responses you expect (0.5 if you don’t know), and e is the margin of error you’re looking for. Use a correction factor when the population is finite to correct the result down.

At what level of confidence should I select?

 The most used level, that is both academic and market research, is the 95% confidence level, which is a good compromise between reliability and sample size. In high stakes research where mistakes have serious repercussions use 99% and in lower stakes research that is exploratory, use 90%.

What do the terms margin of error mean? 

The margin of error is a percentage that indicates the amount of error you may make in your survey results compared to the true value in the broader population. A 5% margin of error would imply that your results may vary as much as 5 percentage points from the actual population value.

Does the size of the sample depend on the size of the population? 

Yes, but not as much as you think. After around 20,000 or more, increasing the population has a relatively small impact on the number of samples needed. The finite population correction is more significant for smaller populations, resulting in a decrease of the required sample size.

Conclusion

The size of your sample is one of the most critical decisions you can make prior to taking a single data point as it will directly influence whether your final conclusions are believed or not. Apply the sample size calculator above and combine with careful survey design and sampling techniques for the most reliable results, based on your population, confidence level and margin of error. Continue developing your research toolbox by checking out the related statistical calculators below.