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

More of our calculators...

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.

Chi-Square Calculator

Use our Chi-Square Calculator to run goodness-of-fit and independence tests, or find right-tail p-values and critical χ² values from df and alpha.

Confidence Interval Calculator

Use our Confidence Interval Calculator to find confidence intervals for a mean or proportion with standard error, critical value, margin of error, and lower and upper bounds.

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.

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.

t-test Calculator

Use our T-Test Calculator to compute t statistic, p-value, confidence interval, and conclusion for one-sample, Welch, pooled, or paired t-tests.

t-statistic Calculator

Use our t-Statistic Calculator to compute the t value, degrees of freedom, and standard error for one-sample, two-sample, Welch, pooled, or paired t-tests.

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.

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.