Sample Size Calculator

MATH · STATISTICS

Survey & study parameters

Calculated on this device
Enter a confidence level percentage strictly between 0 and 100, such as 95.
%
Enter margin of error in percentage points between 0 and 50.
%
Enter expected population proportion between 0 and 100. Use 50 if unknown.
%
Optional finite population size (N)
Optional total population size. Leave blank for unlimited population.

REQUIRED SAMPLE SIZE (n)

385

At 95% confidence (z = 1.96) with 50% proportion (unlimited population).

Formula:n₀ = z² · p(1 − p) ÷ e²

Critical z-score1.9695% confidence
Exact (unrounded) n384.15Unlimited population

Comparison across confidence levels

Confidence levelz-scoreRequired sample size
80%1.2816165
85%1.4395208
90%1.6449271
95% (Selected)1.96385
98%2.3263542
99%2.5758664

HOW IT WORKS

Cochran's sample size & finite population formulas

Estimating a population proportion within a target margin of error requires balancing confidence level, expected variability, and population size.

01

Unlimited Population (Cochran's Formula)

Using the normal critical value z for your confidence level, expected proportion p, and margin of error e:

n₀ = z² · p(1 − p) ÷ e²
02

Finite Population Correction (FPC)

When sampling from a known finite group of size N, the required sample size shrinks:

n = n₀ ÷ [1 + (n₀ − 1) ÷ N]
03

Margin of Error from Sample Size

Given an existing sample size n, the expected margin of error is:

e = z · √[ p(1 − p) ÷ n ]

SURVEY DESIGN GUIDE

Practical guidance for choosing sample size

Why 50% proportion is the default

The variance term p(1 − p) reaches its maximum of 0.25 when p = 50%. If you do not know the true proportion ahead of time, leaving it at 50% guarantees your sample is large enough for any outcome. Once you collect data, use our Confidence Interval Calculator or Standard Deviation Calculator to analyze your observed results.

Frequently asked questions

Why is sample size always rounded up?

Rounding down would leave your margin of error slightly wider than your target. Rounding up to the next integer ensures you meet or beat your precision goal.

When does finite population size matter?

Finite population correction makes a noticeable difference when your sample represents more than about 5% of the total population. For very large populations, n converges to the unlimited formula.

How does confidence level affect sample size?

Higher confidence (such as 99% vs. 95%) increases the critical z-score, which squares in the numerator and increases the required sample size.

Should I invite more people than the calculated sample size?

Yes—this tool computes completed responses needed. Divide by your expected response rate to determine how many invitations to send.

Your study parameters stay in this browser and are never transmitted.