Sample Size Calculator
In research and surveys, sample size refers to the number of people or observations selected from a larger population for a study. Choosing the right sample size is essential because it affects the accuracy and reliability of the results. If the sample is too small, the findings may not represent the whole population, while an unnecessarily large sample can waste time and resources. To solve this challenge, a sample size calculator makes the process simple and precise. Our calculator not only computes the minimum required sample size but also provides a clear step-by-step solution. This makes it a useful tool for academic research, surveys, and professional studies.
Find the minimum Sample Size
Enter your confidence level, margin of error, and estimated proportion as decimals. If you know your population size, include it to apply the finite population correction.
Related Tools
- Slovin’s sample size calculator
- Cochran’s sample size calcalator
- Taro Yamane sample size calculator
Minimum Sample Size Formula
Before jumping into calculations, it’s important to understand why we use a formula to determine sample size. In research and surveys, guessing the number of participants can lead to unreliable results. Too few participants increase the chance of error, while too many waste time and resources. A minimum sample size formula helps strike the right balance by giving you the smallest number of responses needed to represent your population with accuracy.
The standard formula used to compute the minimum sample size for your study is defined as follows:
$$n_0 \;=\; \frac{Z^2 \cdot p \cdot (1-p)}{e^2}$$
Where:
- n0 is the initial (minimum) sample size assuming a very large or infinite population
- Z is the Z-score for your chosen confidence level (see table 1)
- p is the estimated proportion (use 0.5 if unknown — it gives the most conservative sample)
- e is the desired margin of error (expressed as a decimal, e.g. 5% → 0.05)
Note: The above formula is used when the population is very large or infinite.
However, if the target population is known and finite, you’ll need to apply the finite population correction (FPC) factor. Thus the sample size formula after adjusting for finite population becomes:
$$n \;=\; \frac{N \cdot n_0}{n_0 + N – 1}$$
Where n is the corrected sample size for finite population, N. A common rule of thumb is to apply FPC when n0 is more than about 5% of N (i.e., n0/N>0.05).
How to Compute Minimum Sample Size (Step by Step)
Knowing the sample size computation formula is useful, but the real clarity comes when you see how it is applied in practice. Below are simple step-by-step scenarios showing how to compute the minimum sample size. We will look at both an infinite population (very large population) and a finite population (limited size). Each example follows four clear steps:
Scenario A — Large (Infinite) Population
Imagine you are planning a national survey where the target population is extremely large, such as all adults in a country. Since the population is so large, we treat it as infinite. In this case, we use the base sample size formula without applying the finite population correction.
Solution
1. Consider the default inputs:
- Confidence level = 95% → Z=1.96
- Estimated proportion p=0.5p = 0.5p=0.5
- Margin of error e=0.05e = 0.05e=0.05
2. Apply the sample size formula, assuming infinite population
$$n_0 = \frac{Z^2 \cdot p(1-p)}{e^2}$$
3. Substitute the values and compute
$$n_0 = \frac{1.96^2 \times 0.5(1-0.5)}{0.05^2} $$
$$= \frac{3.8416 \times 0.25}{0.0025}$$
$$ = \frac{0.9604}{0.0025} $$
= 384.16
4. Round up to the nearesr whole number, gives 385 participants.
Similarly, using our free sample size calculator, we get the minimum sample size is 385 participants, as shown below:

Scenario B — Finite Population (N = 10,000)
Now imagine you are conducting a survey among a specific group, such as the employees of a large company with 10,000 staff members. Since the population is finite, we apply the finite population correction (FPC) to adjust the initial sample size. This helps ensure the sample size is not larger than necessary.
Solution
1. Based on the scenario, we know N = 10,000.
Assuming that all the other inputs remain the same, we only need to apply the finite population correction given that n0 = 384.16.
2. Apply the finite population correction formula
$$n = \frac{N \cdot n_0}{n_0 + N – 1}$$
3. Substitute and compute
$$n = \frac{10,000 \times 384.16}{384.16 + 10,000 – 1}$$
$$ = \frac{3,841,600}{10,383.16}$$
= 369.98
4. Round Up to the nearest whole number. This gives a total of 370 participants.
Similarly, using our calculator, we only need to specify the finite population size, N = 10,000 and hit the calculate button. This gives a minimum sample size of 370 participants.

What is Confidence Level and How is Z-Score Determined?
The confidence level shows how certain you want to be that your sample results reflect the true population values. In other words, it represents the probability that your sample estimate will fall within the margin of error. For example, a 95% confidence level means that if you repeated the study many times, 95 out of 100 samples would give results within the specified margin of error.
The Z-score is the number of standard deviations from the mean that corresponds to your chosen confidence level. A higher confidence level leads to a larger Z-score, which in turn increases the required sample size. Here are the most commonly used confidence levels and their Z-scores:
Confidence Level | Z-Score |
---|---|
80% | 1.282 |
85% | 1.440 |
90% | 1.645 |
92% | 1.751 |
95% | 1.960 |
96% | 2.054 |
97% | 2.170 |
98% | 2.326 |
99% | 2.576 |
99.9% | 3.291 |
Want to learn more about z scores and how to obtain them from standard normal tables? Check out our detailed guide here.
Factors That Influence Sample Size
Choosing the right sample size is not just about plugging numbers into a calculator. Several factors work together to determine how many people or items you actually need in your study. Understanding these factors will help you design a survey or research project that is accurate, reliable, and efficient. Let’s look at the four most important ones.
1. Population Size
Population size refers to the total number of people or items you are studying. If your population is very large, the required sample size does not increase indefinitely. Instead, it levels off after a certain point. However, when the population is small, you need to apply the finite correction factor, which reduces the sample size to better match the limited group.
2. Confidence Level
The confidence level shows how sure you want to be that your results reflect the true opinions or behaviors of the entire population. A higher confidence level (for example, 99% instead of 90%) requires a larger sample size. This is because you need more data to be more certain. Common confidence levels are 90%, 95%, and 99%.
3. Margin of Error
The margin of error is how much error you are willing to accept in your results. A smaller margin of error (for example, ±3% instead of ±5%) means your results will be more precise, but it also means you need a larger sample size. On the other hand, if you allow a bigger margin of error, the required sample size goes down.
4. Variability (Proportion in Population)
Variability refers to how different or similar the population is in terms of the characteristic you are studying. When there is more variability (for example, a 50/50 split in opinions), you need a larger sample size to capture that diversity. If the population is more uniform (for example, 90% agree on something), then a smaller sample size is enough.
Conclusion
Determining the right sample size is a key step in producing reliable and accurate research results. A sample size calculator makes this process easier by not only giving you the minimum number of participants needed but also showing the step-by-step calculation behind it. Whether your population is infinite or finite, the calculator adjusts accordingly and ensures your study has the right level of precision. By understanding factors like population size, confidence level, margin of error, and variability, you can make informed decisions and design surveys or studies that truly reflect your target population.
Frequently Asked Questions
A sample size calculator is a tool that helps researchers, students, and professionals determine the minimum number of people or items needed in a study. It uses inputs like confidence level, margin of error, population size, and variability to give an accurate sample size.
The general formula for minimum sample size (in a large or infinite population) is:
$$ n_0 = \frac{Z^2 \cdot p(1-p)}{e^2}$$
Where:
– Z is Z-score based on chosen confidence level (e.g., 1.96 for 95%)
– p is the estimated proportion of the population (commonly 0.5 if unknown)
– e is the margin of error
However, for finite populations, the formula is adjusted with the finite correction factor, as follows:
$$n = \frac{N \cdot n_0}{n_0 + N – 1}$$
Where N is the finite population size.
Calculating sample size is important because it ensures your study results represent the population accurately. For instance, if the sample is too small, your findings may be unreliable. However, if the sample is too large, you may waste time and resources.
You typically need four key inputs:
– Population size (N): the total number of people in your study group.
– Confidence level (Z): how certain you want to be about your results (e.g., 95%).
– Margin of error (E): how much error you can accept (e.g., ±5%).
– Proportion (p): the expected variability in your population (often set at 0.5 if unknown).
The most commonly used confidence level is 95%, which balances accuracy and sample size. If you need more certainty, you can choose 99%, but that will increase the required sample size. For quick surveys, 90% confidence is sometimes acceptable.
A smaller margin of error requires a larger sample size. For example, if you want results within ±3% instead of ±5%, you need more participants. Choosing the right margin of error depends on how precise your study needs to be.