# Sample Size Calculator

- Link: https://bestwebdeveloper.org/tools/sample-size-calculator/
- Published: 2026-10-15T20:12:10+00:00
- Author: Best Web Developer

## What the Sample Size Calculator does

For estimating a proportion, the sample size is n₀ = z² × p(1 − p) ÷ e², where z
is the z-score for the confidence level, p the expected proportion (50% is the cautious
choice) and e the margin of error. For small populations, the finite population 
correction reduces the number needed.

It also works as a survey sample size calculator or a margin of error calculator.

## Formula

 * n₀ = z² × p × (1 − p) ÷ e²
 * n = n₀ ÷ (1 + (n₀ − 1) ÷ N)
 * Invitations = n ÷ response rate

## Worked example

Using the starting values in the calculator above:

  |  Input |  Value |  
   |  Confidence level |  95% |  
 |  Margin of error |  5% |  
 |  Expected proportion |  50% |  
 |  Population size (0 if very large) |  2,000 |  
 |  Expected response rate |  25% |

  |  Result |  Value |  
   |  Sample size needed |  323 |  
 |  Invitations to send |  1,292 |  
 |  Sample size for an unlimited population |  385 |  
 |  z-score |  1.96 |  
 |  Share of the population |  16.2% |

## How to read the result

Use 50% when you do not know the expected proportion; it gives the largest, safest
sample.

Sample size does not fix bias: a large sample from the wrong people still gives 
wrong answers.

## Related calculators

 * [Statistical Power Calculator](https://bestwebdeveloper.org/tools/statistical-power-calculator/):
   Find the sample size per group needed to detect a difference between two means
   or two proportions, and the power achieved with a given sample.
 * [Confidence Interval Calculator](https://bestwebdeveloper.org/tools/confidence-interval-calculator/):
   Calculate a confidence interval for a mean (t-distribution) or a proportion (
   Wilson score interval), with the margin of error.
 * [Molarity Calculator](https://bestwebdeveloper.org/tools/molarity-calculator/):
   Calculate the mass of solute to weigh for a solution, the molarity of a solution
   you made, or the stock volume for a dilution (C₁V₁ = C₂V₂).
 * [Radioactive Decay and Half-life Calculator](https://bestwebdeveloper.org/tools/radioactive-decay-calculator/):
   Calculate the amount remaining after a given time from the half-life, the decay
   constant and mean life, and the time to decay to a target level.

Browse every calculator in [Science, Statistics and Everyday Utility Calculators](https://bestwebdeveloper.org/tool-category/science-utility-calculators/),
or talk to us about [custom calculators and web tools](https://bestwebdeveloper.org/services/web-development/).
