Sample Size Calculator

Choose a confidence level, margin of error, and estimated proportion to find the minimum sample size needed.

Leave population size blank for the large-population formula. For sampling without replacement from a known population, use n = n₀ / (1 + (n₀−1)/N) and round up. At least one observation is shown, even for p=0% or 100%; those boundary assumptions do not establish survey certainty. Margin: 0.000001–100%; population: a positive safe integer. Decimal bounds are checked exactly; reduced decimal denominators must be ≤10²⁴. Rational arithmetic continues through the final upward rounding, and whole counts are shown without significant-digit truncation. The source’s rounded critical values 1.645, 1.96 and 2.576 are retained. Counts are at least one and the corrected count cannot exceed the population; the uncorrected ceiling must not exceed 9007199254740991. This is a normal-approximation planning formula, not guaranteed coverage.

Minimum sample size
—
Sample size without population correction
—

How sample size is calculated

Choose a confidence level, margin of error, and estimated proportion to find the minimum sample size needed.

Leave population size blank for the large-population formula. For sampling without replacement from a known population, use n = n₀ / (1 + (n₀−1)/N) and round up. At least one observation is shown, even for p=0% or 100%; those boundary assumptions do not establish survey certainty. Margin: 0.000001–100%; population: a positive safe integer. Decimal bounds are checked exactly; reduced decimal denominators must be ≤10²⁴. Rational arithmetic continues through the final upward rounding, and whole counts are shown without significant-digit truncation. The source’s rounded critical values 1.645, 1.96 and 2.576 are retained. Counts are at least one and the corrected count cannot exceed the population; the uncorrected ceiling must not exceed 9007199254740991. This is a normal-approximation planning formula, not guaranteed coverage.

n₀=z²p(1−p)/E²; n=n₀/(1+(n₀−1)/N); ceil(n)

Frequently asked questions

What confidence level should I use?

Leave population size blank for the large-population formula. For sampling without replacement from a known population, use n = n₀ / (1 + (n₀−1)/N) and round up. At least one observation is shown, even for p=0% or 100%; those boundary assumptions do not establish survey certainty. Margin: 0.000001–100%; population: a positive safe integer. Decimal bounds are checked exactly; reduced decimal denominators must be ≤10²⁴. Rational arithmetic continues through the final upward rounding, and whole counts are shown without significant-digit truncation. The source’s rounded critical values 1.645, 1.96 and 2.576 are retained. Counts are at least one and the corrected count cannot exceed the population; the uncorrected ceiling must not exceed 9007199254740991. This is a normal-approximation planning formula, not guaranteed coverage.

Why does the estimated proportion matter if I don't know the answer yet?

Leave population size blank for the large-population formula. For sampling without replacement from a known population, use n = n₀ / (1 + (n₀−1)/N) and round up. At least one observation is shown, even for p=0% or 100%; those boundary assumptions do not establish survey certainty. Margin: 0.000001–100%; population: a positive safe integer. Decimal bounds are checked exactly; reduced decimal denominators must be ≤10²⁴. Rational arithmetic continues through the final upward rounding, and whole counts are shown without significant-digit truncation. The source’s rounded critical values 1.645, 1.96 and 2.576 are retained. Counts are at least one and the corrected count cannot exceed the population; the uncorrected ceiling must not exceed 9007199254740991. This is a normal-approximation planning formula, not guaranteed coverage.

Does this account for the total population size?

Leave population size blank for the large-population formula. For sampling without replacement from a known population, use n = n₀ / (1 + (n₀−1)/N) and round up. At least one observation is shown, even for p=0% or 100%; those boundary assumptions do not establish survey certainty. Margin: 0.000001–100%; population: a positive safe integer. Decimal bounds are checked exactly; reduced decimal denominators must be ≤10²⁴. Rational arithmetic continues through the final upward rounding, and whole counts are shown without significant-digit truncation. The source’s rounded critical values 1.645, 1.96 and 2.576 are retained. Counts are at least one and the corrected count cannot exceed the population; the uncorrected ceiling must not exceed 9007199254740991. This is a normal-approximation planning formula, not guaranteed coverage.

How we verified this calculator

The calculator is checked against 6 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Confidence level = 95%
Margin of error (%) = 5
Estimated proportion (%) = 50
Population size (optional) =
Minimum sample size: 385
Sample size without population correction: 385
2
Confidence level = 95%
Margin of error (%) = 5
Estimated proportion (%) = 50
Population size (optional) = 1000
Minimum sample size: 278
Sample size without population correction: 385
3
Confidence level = 90%
Margin of error (%) = 3
Estimated proportion (%) = 30
Population size (optional) = 200
Minimum sample size: 153
Sample size without population correction: 632
4
Confidence level = 99%
Margin of error (%) = 1
Estimated proportion (%) = 50
Population size (optional) = 1
Minimum sample size: 1
Sample size without population correction: 16590
5
Confidence level = 95%
Margin of error (%) = 5
Estimated proportion (%) = 0
Population size (optional) = 1000
Minimum sample size: 1
Sample size without population correction: 1
6
Confidence level = 95%
Margin of error (%) = 5
Estimated proportion (%) = 100
Population size (optional) = 1000
Minimum sample size: 1
Sample size without population correction: 1

How we test our calculators →

Also try:

Back to category →