Sample-size planning, margins and sampling assumptions
Enter confidence as a percentage, such as 95. Proportion p is also a percentage; use 50 if unknown. Proportion margin E is in percentage points, such as 5. Mean margin and population SD use the same original units. Leave population N blank for a large-population model.
Choose a proportion or a mean and state the target
A proportion describes a binary outcome, such as the percentage of items meeting a specification. A mean describes a numerical measurement, such as an average duration. Choose Sample size to solve for the completed observations needed under the stated model, or Margin to evaluate an existing n. Confidence C is a two-sided percentage: 95 means a central standard-normal probability of 0.95 and z approximately 1.95996398454. The result concerns uncertainty from the sampling model. A larger sample does not automatically remove selection bias, measurement error or dependence between observations.
Plan a proportion in percentage points
Let p be the expected proportion on a 0-to-1 scale and E the desired absolute margin. The large-population planning formula is n₀ = z²p(1−p)/E². The inputs use percentages for p and percentage points for E: p = 50 and E = 5 become 0.5 and 0.05 internally. With 95% confidence, the unrounded target is about 384.1458821 and the rounded-up target is 385. Use 50% when p is unknown because p(1−p) is largest there. This conservative variance choice does not guarantee exact binomial coverage. Near-zero proportions, small expected counts and observed boundary proportions need a more suitable interval/design method.
Plan a mean with a population SD assumption
For a mean with population standard deviation σ and absolute margin E, use n₀ = (zσ/E)². Both quantities must use the same units; if durations are measured in minutes, σ and E must both be minutes. At 95% confidence with σ = 12 and E = 2, n₀ is approximately 138.2925175, so the target is 139. A known normal-population SD justifies the normal mean margin directly; a pilot or engineering estimate makes this a planning approximation and does not remove uncertainty in σ. This tool does not iterate a Student-t sample-size design for unknown SD.
Use finite population correction for the right design
Enter N only when sampling without replacement from a known finite population using simple random sampling. The SE multiplier is f = √((N−n)/(N−1)), and the adjusted raw target is n* = Nn₀/(N−1+n₀). The final target is the ceiling of n*, not a correction applied after an already rounded n₀. For the 95%, p = 50%, E = 5-point example with N = 1000, the target is 278. In mean mode, σ describes the full population using divisor N; conventions based on divisor N−1 have a different-looking correction. If n = N, modeled sampling error is zero, while measurement or coverage error may remain.
Interpret the margin and check the approximation
For a proportion, E(n) = z√(p(1−p)/n)f, shown in percentage points; for a mean, E(n) = zσf/√n in the original units. Planning mode recomputes this margin using the rounded-up target. The target is the smallest supported integer satisfying that formula, not a universal guarantee of achieved confidence or precision. A 95% confidence procedure describes long-run coverage under its assumptions, not a 95% probability assigned to a fixed parameter after observation. Counts np and n(1−p) below 10 signal a weak normal approximation; this diagnostic is a rule of thumb rather than a proof that coverage is adequate.
Recognize limits and keep the planning report
Supported confidence runs from 50% to 99.9999%; sample and optional population counts are bounded at 10¹². Inputs permit 50 coefficient or integer-fraction-component digits and entered E exponents within ±40. Proportions must be strictly inside 0–100% and population SD must be positive. Unsupported or numerically ambiguous rounding cases return an error. Cluster sampling, unequal weights, stratification, nonresponse, hypothesis-test power and exact-binomial designs require additional choices beyond this model. The result is a target for completed valid observations, not invitations sent. Copy, CSV and print retain inputs, assumptions, intermediate values and checks; calculations stay in this tab.
Use Standard Deviation Calculator to examine variability before choosing a mean-planning σ. Percentage Calculator helps distinguish percentages from percentage points, Rounding Calculator explains reporting choices, and Random Number Generator can illustrate random draws without establishing a representative sampling frame.
ISO 3534-1:2006 supplies vocabulary and symbol context, not certification. NIST/SEMATECH — Selecting Sample Sizes explains normal sample-size models; UC Berkeley — Standard Error explains finite-population standard errors. NIST Dataplot — Binomial Confidence Limits describes limitations of symmetric normal proportion intervals and alternative methods.
Common questions
Should I use 50% for the expected proportion?
Use 50% when no defensible prior estimate exists; it maximizes p(1−p) within this normal planning formula. It does not guarantee exact binomial coverage.
Is a 5% margin the same as 5 percentage points?
The proportion input here uses 5 percentage points: for example, a 40% estimate has a modeled margin of ±5 points, not 5% of 40.
Why round the sample size up?
Rounding down can miss the requested modeled margin. The calculator rounds the adjusted raw target up and checks the formula again at that integer.
When should I enter population N?
For simple random sampling without replacement from a known finite group. Leave it blank for a large-population or with-replacement model.
Can I enter an observed proportion of 0% or 100%?
This normal model rejects those boundaries because a zero estimated variance would misleadingly imply no uncertainty. Use an appropriate adjusted or exact interval/design.
Does this calculate invitations or test power?
No. It targets completed valid observations under a precision model. Invitations, nonresponse, clustering and hypothesis-test power need separate assumptions.
Explore related tools
- Right Triangle Calculator
- Pythagorean Theorem Calculator
- Surface Area Calculator
- Circle Calculator
- Distance Calculator
- Area Calculator
- Slope Calculator
- Volume Calculator
- Triangle Calculator
- Confidence Interval Calculator
- Z-score Calculator
- Permutation and Combination Calculator
- Mean, Median, Mode & Range Calculator
- Statistics Calculator
- Probability Calculator
- Number Sequence Calculator
- Standard Deviation Calculator
- Random Number Generator
- Scientific Notation Calculator
- Big Number Calculator
- Root Calculator
- Log Calculator
- Matrix Calculator
- Rounding Calculator
- Exponent Calculator
- Fraction Calculator
- Scientific Calculator
- Percentage Calculator
- Percent Error Calculator
- Quadratic Formula Calculator
- Least Common Multiple Calculator
- Greatest Common Factor Calculator
- Factor Calculator
- Ratio Calculator