Math / Browser calculator

Sample Size Calculator

Sample Size Calculator works from the inputs you provide and returns required sample size. Use the calculation panel to explore a scenario, then check the formula and limitations before applying the result.

Your inputs

Minimum: 1e-06 · Maximum: 10
Minimum: 0 · Maximum: 100
Minimum: 1e-06 · Maximum: 100
Minimum: 0 · Maximum: 1000000000000 · Whole numbers

Your results

Enter your values and calculate to see the result.

Formula and calculation method

n₀ = z²p(1−p)/e². For population N: n = n₀/[1+(n₀−1)/N]. Round upward.

Normal-approximation sample size for a proportion with simple random sampling; not a power calculation. The critical z value is user-selected.

How to use sample size calculator

  1. Set Critical z value. The example below uses 1.96.
  2. Set Expected proportion (%). The example below uses 50.
  3. Set Margin of error (percentage points). The example below uses 5.
  4. Set Population size (0 = unlimited). The example below uses 0.
  5. Select Calculate to update the result. Reset restores the illustrated inputs. Copy, print or download your own result if you need a record.

Worked example

Example inputs
Critical z value
1.96
Expected proportion (%)
50
Margin of error (percentage points)
5
Population size (0 = unlimited)
0
Required sample size
385

Factors affecting your result

Normal-approximation sample size for a proportion with simple random sampling; not a power calculation. The critical z value is user-selected.

Changing critical z value changes the scenario being evaluated. Adjust one input at a time when comparing results, keep a copy of the assumptions, and compare values using the same unit and period. A precise arithmetic result does not make an uncertain assumption precise.

Frequently asked questions

How does the sample size calculator work?

n₀ = z²p(1−p)/e². For population N: n = n₀/[1+(n₀−1)/N]. Round upward.

What inputs does Sample Size Calculator need?

Enter critical z value, expected proportion (%), margin of error (percentage points), population size (0 = unlimited). Read the unit labels; percentages are entered as ordinary percentages, not decimal fractions.

How should I interpret the sample size calculator result?

Normal-approximation sample size for a proportion with simple random sampling; not a power calculation. The critical z value is user-selected.

Are my sample size calculator inputs uploaded?

No. The calculation runs in this browser. Favorites, recent tool names, theme and formatting preferences may be saved locally, but calculation inputs are not sent to a calculation server or stored by this website. Shared links do not include entered values.

Maintained by Calculators.buzz Editorial Team. Implementation date: . No professional credentials or clinical review are claimed. Read our methodology policy.