Skip to main content

Sample Size Calculator

How many respondents you need for your precision and confidence.

The formula behind it

n = z²·p(1−p)/e² (proportions); n = z²σ²/e² (means)
e
the margin of error you can tolerate
p
expected proportion (0.5 = safest)

Sample size planning inverts the margin-of-error formula: choose the precision you need and the confidence you want, and the required n follows. Rounding is always upward.

How to use this calculator

  1. 1

    Choose proportion-based or mean-based.

  2. 2

    Set the confidence level and the margin of error.

  3. 3

    Press Calculate — leave the proportion blank for the conservative 0.5.

Worked examples

Survey planning

95%, e = 3%, p unknown → n = 1,068 — the classic national-poll number.

Measurement study

σ = 4, e = 0.5, 95% → n = 246.

Frequently asked questions

Explore more categories

Command Palette

Search for a command to run...