Sample Size Calculator

Free sample size calculator. Calculate the sample size for surveys (proportions), continuous data (means), and apply finite population correction. Choose confidence level, margin of error, and expected proportion.

Full original guide (expanded)

Sample Size Calculator

Determine how many responses you need for your survey or experiment. This tool supports: proportion-based surveys (the classic approach), mean/continuous outcomes, and finite population correction when your audience is not huge.

choose the confidence for your estimates

0.05 → ±5 percentage points

0.5 → most conservative

apply FPC if filled

Initial sample size (n₀)

ignoring finite population

Adjusted sample size (n)

with FPC if N provided

z-score used

Sample size formulas

Survey / proportion:

\( n_0 = \frac{z^2 \, p (1 - p)}{E^2} \)

FPC: \( n = \frac{n_0}{1 + \frac{n_0 - 1}{N}} \)

Mean / continuous:

\( n_0 = \left( \frac{z \sigma}{E} \right)^2 \)

What should I enter as p?

If you do not have a previous study or pilot, use 0.5. That produces the largest required sample size and is safe.

Quick reference

Confidence z-score Typical MoE
90%1.645±5%
95%1.96±5%
99%2.576±3%

Audit: Complete
Formula (LaTeX) + variables + units
This section shows the formulas used by the calculator engine, plus variable definitions and units.
Formula (extracted LaTeX)
\[','\\]
','\
Formula (extracted text)
Survey / proportion: \( n_0 = \frac{z^2 \, p (1 - p)}{E^2} \) FPC: \( n = \frac{n_0}{1 + \frac{n_0 - 1}{N}} \) Mean / continuous: \( n_0 = \left( \frac{z \sigma}{E} \right)^2 \)
Variables and units
  • No variables provided in audit spec.
Sources (authoritative):
Changelog
Version: 0.1.0-draft
Last code update: 2026-01-19
0.1.0-draft · 2026-01-19
  • Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido on 2026-01-19
Profile · LinkedIn
Formulas

(Formulas preserved from original page content, if present.)

Version 0.1.0-draft
Citations

Add authoritative sources relevant to this calculator (standards bodies, manuals, official docs).

Changelog
  • 0.1.0-draft — 2026-01-19: Initial draft (review required).