Home › Calculators › Sample Size Calculator

Sample Size Calculator

Work out how many responses you need for a survey, poll or study. Set the confidence level and margin of error, optionally add the population size and expected response rate, and see the exact formula steps.

Last updated:

What are you estimating?
%

Usually 90, 95 or 99

%

e.g. 5 for ± 5 percentage points

%

50% is the safest (largest sample)

From a pilot study or past data

Leave empty if very large or unknown

%

Works out how many people to invite

Enter your values to see the result.
Advertisement
Advertisement

How to use the Sample Size Calculator

  1. Choose a proportion or a mean: most surveys estimate a proportion.
  2. Set the confidence level (95% is standard) and the margin of error you can accept.
  3. Enter the expected proportion, or keep 50% if you do not know it.
  4. Add the population size if it is small (for example 500 employees).
  5. Read the required sample size, and add a response rate to see how many people to invite.

The sample size formula

Proportion (Cochran): n₀ = z² × p(1 − p) / E²
Mean: n₀ = (z × σ / E)²
Finite population correction: n = n₀ × N / (n₀ + N − 1)

z is the critical value (1.645 for 90%, 1.960 for 95%, 2.576 for 99% confidence), p the expected proportion, E the margin of error and N the population size. Always round the result up to the next whole number.

Example: 95% confidence, ± 5% margin, p = 50%, population 2,000. n₀ = 1.96² × 0.25 / 0.0025 = 384.16, then n = 384.16 × 2000 / (384.16 + 1999) = 322.4, so you need 323 responses.

Sample sizes at 95% confidence (p = 50%)

Population± 10%± 5%± 3%± 1%
10050809299
50081218341476
1,00088278517906
10,000963709654,900
100,000963831,0568,763
Very large973851,0689,604

Already have your data? Use the confidence interval calculator to find the actual margin of error of your results.

Frequently asked questions

How do I calculate sample size?

For a proportion, use Cochran's formula n₀ = z² × p(1 − p) / E², where z is the critical value for your confidence level, p the expected proportion and E the margin of error as a decimal. Always round up.

What sample size do I need for 95% confidence and a 5% margin of error?

For a large population and p = 50%, n = 1.96² × 0.25 / 0.05² = 384.2, so you need 385 responses. For a population of 1,000 the finite population correction lowers that to 278.

Why use 50% as the expected proportion?

p(1 − p) is largest at p = 0.5, so 50% gives the biggest, most conservative sample size. If you have prior data suggesting, say, 20%, using it gives a smaller required sample.

What is the finite population correction?

When the sample is a noticeable share of a small population, fewer responses are needed. The corrected size is n = n₀ × N / (n₀ + N − 1). For very large populations it makes almost no difference.

Does the population size matter much?

Only when the population is small. Beyond roughly 20,000 people the required sample barely changes, which is why national polls of millions often use about 1,000 respondents.

How do I account for people who do not respond?

Divide the required sample size by the expected response rate. If you need 385 responses and expect 25% to reply, invite 385 / 0.25 = 1,540 people.

How do I choose a sample size to estimate a mean?

Use n = (z × σ / E)², where σ is the expected standard deviation (from a pilot study or earlier data) and E the margin of error in the same units as your measurements.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Confidence Interval CalculatorConfidence interval and margin of error for a mean or a proportion, with steps.Percentage CalculatorWork out percentages, increases and decreases.Standard Deviation CalculatorStandard deviation, variance, mean, median, mode and quartiles.Percentile CalculatorValue at any percentile, percentile rank of a score, quartiles, IQR and outliers.CSAT Score CalculatorCustomer satisfaction % from 1–5 rating counts or scores, plus CES average.T-Table (Student's t Distribution)Interactive t-table: critical t-values for any df and α, p-values, and a printable full table.T-Test CalculatorOne-sample, two-sample (Welch/pooled) and paired t-tests with p-value and CI.Sales Win Rate CalculatorWin rate from deals won and lost, plus the pipeline you need to hit quota.Weighted Average CalculatorCalculate a weighted mean from values and weights, step by step.Average CalculatorMean, weighted average, median, sum, min and max of any list.A/B Test Significance CalculatorCheck if your A/B test result is statistically significant.Z-Score CalculatorZ-score from a value, mean and SD, plus percentile and p-value; or the value from z.Probability CalculatorFind and, or, not, conditional and at-least-once probabilities from P(A) and P(B).Permutation and Combination CalculatorCalculate nPr and nCr, with or without repetition, as exact big numbers.Mean Median Mode CalculatorFind the mean, median, mode, range, min, max, sum and count of a list of numbers.Correlation Coefficient CalculatorPearson r and Spearman rank correlation with significance and interpretation.Average Order Value CalculatorAverage order value from revenue and orders, plus the revenue impact of raising AOV.Binomial Distribution CalculatorBinomial probabilities P(X = k), at most, at least or between, with mean, variance and chart.Normal Distribution CalculatorNormal probabilities P(X < x), between two values and inverse percentiles, on a shaded bell curve.Poisson Distribution CalculatorPoisson probabilities for a rate λ: exactly k, at most, at least or between, with a chart.Chi-Square CalculatorChi-square goodness-of-fit and independence tests with p-value and expected counts.P-Value CalculatorOne- or two-tailed p-values from z, t, chi-square or F statistics, with critical values.Variance CalculatorSample and population variance and standard deviation with a step-by-step deviations table.Five Number Summary CalculatorMin, Q1, median, Q3, max, IQR and fences of a data set, with a box plot.Outlier CalculatorFind outliers with 1.5×/3× IQR fences, z-scores or modified z-scores; get the cleaned data.Geometric Mean CalculatorGeometric, harmonic, arithmetic and quadratic means compared, or average growth from % changes.Expected Value CalculatorExpected value, variance and standard deviation from outcomes and their probabilities.One-Way ANOVA CalculatorOne-way ANOVA for 2-10 groups: SS, df, MS, F statistic, p-value, effect size and full table.Bayes Theorem CalculatorPosterior P(A|B) from P(A), P(B|A) and P(B|not A), with a probability tree and table.Box Plot MakerPaste data to draw box-and-whisker plots with quartiles, IQR and outliers. Download PNG or SVG.Coefficient of Variation CalculatorCV % from a dataset (sample or population) with mean, SD and a two-dataset comparison.Critical Value CalculatorCritical values of z, t, chi-square and F for any alpha, tails and degrees of freedom.Dice Probability CalculatorOdds of rolling a sum (exactly, at least, at most) with any dice, plus the full distribution.Effect Size Calculator (Cohen's d)Cohen's d, Hedges' g and Glass's delta from two means, SDs and sample sizes, with CI.Frequency Table GeneratorMake a frequency, relative and cumulative frequency table from numbers or categories.Histogram MakerPaste numbers, choose bins and get a histogram, frequency table and PNG download.Margin of Error CalculatorSurvey margin of error from sample size, confidence and proportion, with population correction.Moving Average CalculatorSimple, exponential and weighted moving averages of a data series, with table and line chart.Covariance CalculatorSample and population covariance of paired X and Y data, with a step table and scatter plot.Grouped Data CalculatorMean, median, mode, variance and standard deviation from class intervals and frequencies.Inverse Normal Distribution CalculatorinvNorm: find the x or z value for a left, right, central or two-tail area, with a shaded curve.Permutations GeneratorList all permutations of letters, words or items, with k-permutations and repeats, and export them.Statistical Power CalculatorPower or required sample size for t-tests, proportions and correlations, with a power curve.T Distribution CalculatorStudent's t probabilities and critical values for any df, with the area shaded on the curve.Shannon Entropy CalculatorEntropy of text, data or probabilities in bits, nats or hartleys with a frequency table.Odds Ratio and Relative Risk CalculatorOdds ratio, relative risk, risk difference, 95% CIs and p-values from a 2x2 table.Standard Error CalculatorStandard error of the mean from data or SD and n, plus SE of a proportion, with CIs.Descriptive Statistics CalculatorPaste data and get mean, median, mode, quartiles, SD, skewness, kurtosis and a histogram.Empirical Rule Calculator68-95-99.7 rule ranges from a mean and standard deviation, with a shaded bell curve.Z-Table (Standard Normal Table)Interactive z-table: find the area for any z-score, or the z-score for a probability.Average Rate of Change CalculatorAverage rate of change of f(x), two points or a data table over [a, b], with the secant line.Binomial Expansion CalculatorExpand (a + b)^n with the binomial theorem: every term, Pascal coefficients and any specific term.Combinations GeneratorList every k-combination of your items, with or without repetition, and copy or export them.
See all 52 Statistics & Probability Calculators →