Skip to main content
Skip to main content
DigiCalcs
Back to Guides
4 min read5 Steps

How to Calculate Sample Size: Step-by-Step Guide

Learn to manually calculate sample size for surveys and experiments. Understand the formula, Z-scores, and finite population correction with a step-by-step example.

Skip the math — use the calculator

Step-by-Step Instructions

1

Gather Your Inputs

First, identify the key parameters for your study: * **Confidence Level:** Standard choices are 90%, 95%, or 99%. A higher confidence level requires a larger sample. * **Margin of Error (e):** Decide on the acceptable precision. This is often 3%, 5%, or 10%. Convert this percentage to a decimal (e.g., 5% becomes 0.05). * **Population Proportion (p):** If you have a prior estimate from previous studies or pilot data, use it. Otherwise, use `p = 0.5` (50%). This value maximizes `p*(1-p)`, thus yielding the largest possible sample size, ensuring your sample is adequately sized even if the true proportion is different. * **Population Size (N):** Determine the total number of individuals in your target population. If it's unknown or extremely large, you can treat it as infinite for the initial calculation. *Example Inputs:* Let's assume we want to conduct a survey with the following parameters: * Confidence Level = 95% * Margin of Error (e) = 5% (or 0.05) * Population Proportion (p) = 0.5 (since we don't have a prior estimate) * Population Size (N) = 10,000 (a known, finite population)

2

Determine the Z-score

The Z-score corresponds to your chosen confidence level and represents the number of standard deviations a data point is from the mean. You'll need to look this up in a standard Z-table or use common values: | Confidence Level | Z-score (approx.) | | :--------------- | :---------------- | | 90% | 1.645 | | 95% | 1.96 | | 99% | 2.576 | For our example, with a 95% Confidence Level, the Z-score is `1.96`.

3

Calculate the Initial Sample Size (Infinite Population)

Now, plug your `Z`, `p`, and `e` values into the formula for an infinite population: `n₀ = (Z^2 * p * (1-p)) / e^2` Using our example values: * `Z = 1.96` * `p = 0.5` * `e = 0.05` `n₀ = (1.96^2 * 0.5 * (1 - 0.5)) / 0.05^2` `n₀ = (3.8416 * 0.5 * 0.5) / 0.0025` `n₀ = (3.8416 * 0.25) / 0.0025` `n₀ = 0.9604 / 0.0025` `n₀ = 384.16` So, for an infinite population, the initial sample size required is approximately 384.16.

4

Apply Finite Population Correction (if applicable)

Since our example has a known, finite population size (`N = 10,000`), we will apply the Finite Population Correction (FPC). If your `N` was unknown or extremely large (e.g., millions), you could skip this step and use `n₀` (rounded up) as your final sample size. `n = (n₀ * N) / (n₀ + N - 1)` Using our example values: * `n₀ = 384.16` * `N = 10,000` `n = (384.16 * 10000) / (384.16 + 10000 - 1)` `n = 3841600 / (10383.16)` `n ≈ 369.98`

5

Round Up to the Nearest Whole Number

Always round the calculated sample size *up* to the next whole number. This ensures that you meet the minimum required sample size and maintain the desired confidence level and margin of error. For our example, `369.98` rounds up to `370`. Therefore, for a population of 10,000, with a 95% confidence level and a 5% margin of error, you would need a minimum sample size of **370** respondents.

How to Calculate Sample Size: Step-by-Step Guide

Calculating the appropriate sample size is a critical step in designing surveys, experiments, and research studies. It ensures that your findings are statistically significant and representative of the larger population, preventing wasted resources on overly large samples or inaccurate conclusions from samples that are too small. This guide will walk you through the manual calculation process, explaining each component and formula.

Prerequisites

Before diving into the calculation, ensure you have a foundational understanding of:

  • Confidence Level: The probability that your sample results accurately reflect the true population parameter. Commonly expressed as a percentage (e.g., 90%, 95%, 99%).
  • Margin of Error (Confidence Interval): The maximum expected difference between the true population parameter and the sample estimate. It's often expressed as a percentage (e.g., ±3%, ±5%) or a proportion (e.g., 0.03, 0.05).
  • Population Proportion (p): Your best estimate of the proportion of the population that possesses the characteristic you are interested in. If unknown, using 0.5 (50%) is a conservative choice that yields the largest required sample size, ensuring sufficient data for any outcome.
  • Population Size (N): The total number of individuals or items in the entire group you are studying. If the population is very large or unknown, it can be treated as infinite for initial calculations.

Understanding the Formulas

The sample size calculation typically involves two main formulas: one for an infinite or very large population, and a correction for finite populations.

1. Sample Size for Infinite Population

This formula is used when the population size is unknown, extremely large, or when the sample constitutes a very small fraction of the total population.

n₀ = (Z^2 * p * (1-p)) / e^2

Where:

  • n₀ = Initial sample size
  • Z = Z-score corresponding to your desired confidence level
  • p = Estimated population proportion (use 0.5 if unknown)
  • e = Margin of error (as a decimal)

2. Finite Population Correction (FPC)

If your population size (N) is known and relatively small (e.g., less than 20,000) or if your calculated initial sample size n₀ is a significant proportion (e.g., >5%) of the total population, you should apply a finite population correction to reduce the required sample size.

n = (n₀ * N) / (n₀ + N - 1)

Where:

  • n = Corrected sample size for a finite population
  • n₀ = Initial sample size from the infinite population formula
  • N = Total population size

Common Pitfalls to Avoid

  • Incorrect Z-score: Double-check that you're using the correct Z-score for your chosen confidence level.
  • Margin of Error as Percentage: Remember to convert your margin of error from a percentage to a decimal (e.g., 5% becomes 0.05) before plugging it into the formula.
  • Not Rounding Up: Always round the final calculated sample size up to the nearest whole number. Rounding down would slightly reduce your sample and potentially compromise your confidence or margin of error.
  • Assuming p=0.5 When Not Appropriate: While p=0.5 is a safe default, if you have strong prior evidence that the proportion is significantly different (e.g., you expect 90% of a population to have a certain characteristic), using p=0.9 (or p=0.1) will result in a smaller, more efficient sample size.
  • Forgetting FPC for Small Populations: If your population is finite and the initial sample size n₀ is a notable fraction of N, applying the FPC is crucial to avoid oversampling and optimize resources.

When to Use a Sample Size Calculator

While understanding the manual calculation is invaluable for grasping the underlying principles, a sample size calculator offers significant convenience for:

  • Quick Iterations: Rapidly testing different confidence levels or margins of error without manual recalculation.
  • Avoiding Arithmetic Errors: Eliminating the potential for calculation mistakes, especially when dealing with complex numbers.
  • Time Efficiency: Expediting the planning phase of your research.

Use this guide to build a robust understanding, and leverage calculators for efficiency in practical applications.

Ready to Calculate?

Skip the manual work and get instant results.

Open Calculator

Settings

PrivacyTermsAbout© 2026 DigiCalcs