Primary formula
Proportion n=z^2 p(1-p)/E^2. Mean n=(z sigma/E)^2. Optional finite-population correction n/[1+(n-1)/N].
Statistics calculator
Estimate a planning sample size from confidence level, target margin and expected variability, then round up.
Estimate a planning sample size from confidence level, target margin and expected variability, then round up.
Proportion n=z^2 p(1-p)/E^2. Mean n=(z sigma/E)^2. Optional finite-population correction n/[1+(n-1)/N].
The formula matches simple random-sampling precision planning. The variability estimate is reasonable. Finite-population correction is used only for a known finite population.
Statistics calculations use Decimal.js for deterministic arithmetic; displayed values are rounded only after the selected method is evaluated.
Finite numeric observations and method-specific inputs are validated locally.
The selected Statistics method runs in a pure TypeScript engine.
The result includes substitutions, ordered data, supporting measures and method warnings.
A tool-specific dataset visual appears only after a valid calculation.
Use this Statistics page for initial precision planning before collecting a simple random sample.
Sample Size Calculator processes the entered values locally and exposes the selected convention, calculation steps and related values.
Use this Statistics page for initial precision planning before collecting a simple random sample.
Choose the mode that matches the data available and the question being answered before entering values.
Proportion n=z^2 p(1-p)/E^2. Mean n=(z sigma/E)^2. Optional finite-population correction n/[1+(n-1)/N].
The calculation is deterministic, but interpretation depends on whether the selected model and entered data fit the real situation.
Use the default example inputs to reproduce the primary worked example. The result breakdown is produced by the same pure TypeScript engine used by the page.
The following examples show how data, event structure, count or method changes the result.
Sample-size planning balances desired precision against variability. Higher confidence or tighter margins increase the required count.
The finite-population correction reduces the count when sampling without replacement from a population that is not much larger than the sample.
The dynamic visual is a population feeding a selected sample with confidence and margin controls. It appears only after a valid calculation and uses the current result.
Visual proportions are normalized for readability and are explanatory rather than a substitute for a full statistical plot.
Check dataset parsing, method choice and denominator before using a result.
Statistical conventions and model assumptions can change a result or its interpretation.
This calculator provides educational statistics calculations and does not replace statistical consulting, instructor guidance or professional analysis.
Input values are processed in the browser calculator session and are not sent to an external statistics service.
It returns an unrounded planning estimate and the required whole-number sample rounded up.
confidence level, target margin and either expected proportion or standard deviation, plus optional population size
n=z^2p(1-p)/E^2 or n=(z sigma/E)^2 with optional finite-population correction
It returns an unrounded planning estimate and the required whole-number sample rounded up. Interpret it only under the assumptions stated on the page.
The result addresses simple precision only; power, design effects, nonresponse and subgroup analyses need separate planning.
Select the mode that matches the question, keep units or probabilities consistent and do not treat a model output as stronger evidence than the inputs support.
The tools answer related but different questions. The Sample Size Calculator follows n=z^2p(1-p)/E^2 or n=(z sigma/E)^2 with optional finite-population correction, while the Margin of Error Calculator reports its own named quantity or model.
Yes where the selected model permits them. Whole-number count fields reject decimals, while measurements, probabilities and dataset values accept finite decimals.
No. It performs a deterministic calculation; study design, data quality and subject-matter interpretation remain separate.
The visual uses the current inputs and result to show the model structure, selected region or interval. It appears only after a valid calculation.
Different conventions, critical values, rounding rules or event assumptions can change results. NexaCalc labels the selected method and rounds only for display.
The result addresses simple precision only; power, design effects, nonresponse and subgroup analyses need separate planning.
Statistics methods and references reviewed on August 6, 2026.
This calculator provides mathematical results from the values, conventions and methods you enter. Verify important academic, engineering or professional work independently.