Sample Size Calculator

Mean • Proportion • Confidence level • FPC
Auto-updates

Settings

Pick Mean if you know population σ. Pick Proportion for surveys / yes-no outcomes.
CL
z
Choosing a CL auto-fills z. Selecting “Custom z” lets you type a z-value.
Quick summary
Enter inputs to compute required sample size.

Inputs

E must be > 0. For proportion, E is absolute (0.03 = 3%).
Used only in Mean mode.
Use when population is not huge relative to sample size.

Results

Required sample size (n)
We round up to the next whole number.
Base n (before FPC)
Inputs used
Updating…

Action

Hard reset: cancels pending updates and clears everything on the first click.

Use this Sample Size Calculator to estimate how many observations are needed for a selected confidence level and margin of error when estimating a population mean or proportion.

Calculation Method

For a population mean:

n = (z × σ ÷ E)²

For a population proportion:

n = z² × p(1 − p) ÷ E²

If the expected proportion is unknown, p = 0.50 is commonly used because it gives the most conservative sample-size estimate.

When the total population size N is known and relatively small, finite population correction can be applied:

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

Example

For a 95% confidence level, 5 percentage-point margin of error, and unknown population proportion:

z = 1.96

p = 0.50

n = 1.96² × 0.50 × 0.50 ÷ 0.05²

n ≈ 384.16

Always round required sample size up, giving 385 completed observations.

Important Note

This calculator plans sample size for confidence-interval precision, not statistical power. The formulas also assume an appropriate sampling design and do not automatically account for nonresponse, clustering, weighting, design effects, or biased sampling.

Source

View Sponsored Offers →

Related Tools

Variance Calculator

Use our Variance Calculator to find sample or population variance from a data set. Get mean, variance, standard deviation, SSE, range, and sorted values fast.

Outlier Calculator (Tukey Fences)

Use our Outlier Calculator to find low and high outliers with Tukey fences and the IQR method. Get Q1, Q3, IQR, fences, counts, and sorted data fast.

IQ PERCENTILE CALCULATOR

Use our IQ Percentile Calculator to convert an IQ score into percentile rank, percent above, and percent below using SD 15 or SD 16 normal-distribution scales.

Margin of Error Calculator

Use our Margin of Error Calculator to find margin of error for a mean or proportion from sample size, confidence level, and z value.

IQR (Interquartile Range) Calculator

Use our IQR Calculator(Interquartile Range) to find Q1, Q3, median, and interquartile range from a data set. Supports raw numbers, value:count input, and two quartile methods.

p-value Calculator

Use our P-value Calculator to calculate one-tailed or two-tailed p-values for Z, t, chi-square, and F test statistics.

Median Calculator

Use our Median Calculator to find the middle value of any data set. Supports raw numbers, value:count input, sorted preview, and instant live results.

Mean Median Mode Calculator

Use our Mean Median Mode Calculator to find the average, median, and mode from any data set. Supports raw numbers, value:count input, and sorted preview.

Percentile Calculator

Use our Percentile Calculator to find percentile values from a data set with nearest rank or linear interpolation. Supports raw numbers and value:count input.