Free Sample Size Calculator

%
%

Leave empty to use 50% (most conservative estimate)

Enter values to calculate the required sample size

When designing a survey or an experiment, one of the first practical questions is: “How many responses do I actually need to get trustworthy results?” A statistical sample size calculator answers that by performing sample size determination based on three key pieces of information – the desired margin of error, the chosen confidence level, and an initial proportion estimate. Whether you are running a market poll, a clinical trial, or an academic study, using a dedicated survey sample size tool ensures that you collect enough data to reach valid conclusions without wasting time or money.

Why the Right Sample Size Matters

Sample size refers to the total number of observations or data points taken from a population for a study. If the sample is too small, the results may be unreliable and fail to reach statistical significance. If it is too large, resources are spent unnecessarily. A properly determined sample size accurately reflects the characteristics of the whole group and minimizes sampling error.

Core Statistical Concepts You Need to Know

Several concepts directly influence the required sample size. Understanding them helps you make informed decisions before running the calculator.

TermDefinition
PopulationThe entire set of individuals or items you want to study (e.g., all customers, all residents of a city).
Margin of Error (ME)The maximum amount by which your survey result could differ from the true population value. Often expressed as ±2%, ±3%, or ±5%.
Confidence LevelThe probability that the true value lies within the margin of error. Common choices are 90%, 95%, and 99%. The higher the level, the more certain you can be.
Standard DeviationA measure of how spread out the responses are. In proportion‑based surveys, it is derived from the estimated proportion.
Study Power (Statistical Power)The chance that your study will detect a real effect when it exists. Typical targets are 80% or 90%.

The Formula Behind the Sample Size Calculator

When the population is very large (effectively infinite), the standard equation for sample size determination is:

n=Z2×p×(1−p)ME2n = \frac{Z^{2} \times p \times (1-p)}{ME^{2}}

where:

  • ZZ – the z‑score tied to your confidence level. The tool functions as a confidence level calculator by automatically picking the correct z‑score, but you can also refer to the table below.
  • pp – your initial proportion estimate (use 0.5 if you have no prior information, as it gives the largest sample).
  • MEME – the margin of error expressed as a decimal (e.g., 0.05 for ±5%).
  • nn – the required sample size for an infinite population.
Confidence LevelCommon Z‑Score
90%1.645
95%1.96
99%2.576

If your target population is finite (for example, all employees in a company or all students on a campus), you must apply the finite population correction to avoid oversampling:

nadj=n1+n−1Nn_{\text{adj}} = \frac{n}{1 + \frac{n-1}{N}}

Here NN stands for the total population size. The finite population correction reduces the sample requirement when the group is relatively small, making the survey sample size more efficient.

Worked Example: Campus Canteen Survey

Let’s walk through a concrete scenario to see how the calculator works. You want to estimate the proportion of students who regularly eat lunch at the campus canteen.

  1. Set the margin of error: You need the final estimate to be within ±2% of the truth, so ME=0.02ME = 0.02.
  2. Choose the confidence level: 99% – this corresponds to a z‑score of 2.576.
  3. Provide an initial proportion estimate: A similar survey from the past showed 30%, so p=0.3p = 0.3.
  4. Enter the population size: The campus has 25,000 students (a finite group).

The calculator first applies the infinite‑population formula:

n=(2.576)2×0.3×(0.7)(0.02)2≈3,484n = \frac{(2.576)^{2} \times 0.3 \times (0.7)}{(0.02)^{2}} \approx 3{,}484

Then it applies the finite population correction:

nadj=3,4841+3,484−125,000≈3,051n_{\text{adj}} = \frac{3{,}484}{1 + \frac{3{,}484 - 1}{25{,}000}} \approx 3{,}051

The required sample size is 3,051 students. This means that if you survey this many students, you can be 99% confident that the result lies within ±2% of the true proportion. If you accept a 95% confidence level instead, the needed sample drops considerably (to roughly 1,867), illustrating the trade‑off between confidence and sample size.

Factors That Influence Your Required Sample

Several considerations affect the final sample size recommendation:

  • Population Size – For large groups (more than 10,000), a sample around 384 is often sufficient for 95% confidence and ±5% margin. For smaller populations, the finite population correction significantly lowers the required number.
  • Confidence Level and Margin of Error – Higher confidence (99% vs 95%) and tighter margins (±2% vs ±5%) both demand larger samples. The calculator doubles as a margin of error calculator by showing how changes in ME reshape the sample.
  • Study Power – Studies that need high power to detect small effects require more participants. Typical power levels are 80% or 90%.
  • Variability in the Population – The more diverse the population, the larger the sample needed. When you are unsure about the proportion, using 50% (maximum variability) yields the most conservative (largest) sample.
  • Type of Study and Subgroup Analysis – Exploratory surveys may need fewer respondents, but clinical trials or studies that break down results by age, gender, or region require extra participants to keep each subgroup statistically meaningful.

Practical Guidance for Choosing a Sample Size

For many common surveys, a sample size between 100 and 400 provides acceptable accuracy. If higher precision is critical, aim for 1,000 or more. Beyond that, the gains become smaller, so overspending on a massive sample rarely pays off. Always balance your desired accuracy against real‑world constraints such as budget, time, and accessibility.

Additional Tools to Complement Sample Size Determination

Once you have your required sample size, you can explore other calculators that build on the same statistical principles:

  • A sampling error calculator – estimates the expected error for a given sample design.
  • A normal probability calculator for sampling distributions – finds the probability that your sample mean falls within a specific interval.
  • A sampling distribution of the sample proportion calculator – evaluates how likely a particular observed proportion is under your sampling plan.

These auxiliary tools, together with the main statistical sample size calculator, give you a complete picture of your survey’s reliability and help you interpret the results correctly.

FAQ

1. What is the formula used to calculate sample size?

The standard formula is n = (Z² × p × (1-p)) / ME², where Z is the z-score for your confidence level, p is the estimated proportion, and ME is the margin of error. When the population is finite, apply the correction: n_adj = n / (1 + (n-1)/N).

2. When should I use the finite population correction?

Use it when your population is relatively small (typically fewer than 10,000 people) and the sample size is more than 5–10% of the total population. The correction reduces the required sample size to avoid oversampling.

3. How does the confidence level affect the required sample size?

A higher confidence level (e.g., 99% vs 95%) increases the z-score, which makes the required sample size larger. For the same margin of error, you need more respondents to be more certain that the result reflects the true value.

4. What is a good default proportion estimate when I have no prior data?

Use 0.5 (50%) because it produces the maximum variability and therefore the largest, most conservative sample size. This ensures that your sample will be large enough regardless of the actual proportion.

How to Use

  1. Select your desired confidence level and enter the margin of error as a percentage.
  2. Provide an estimated proportion (use 50% if unsure) and optionally the total population size for finite population correction.
  3. View the required sample size instantly with the Z-score used for the calculation.