Sample Size Calculator - Survey Margin of Error

Sample Size Calculator

%
±%
%

If you do not know the proportion, keep 50%: it gives the largest, safest sample. Leave the population empty if it is very large or unknown.

Result 385
Critical value (z) 1.95996
Without population correction 385

Step-by-step solution

z = Φ⁻¹(1 − (1 − 0.95) / 2) = 1.95996
n₀ = z² · p · (1 − p) / e² = 1.95996² · 0.5 · 0.5 / 0.05² = 384.1459
n ≈ 385

Sample size for common margins

Margin of error90%95%99%
±1%6764960416588
±2%169124014147
±3%75210681844
±4%4236011037
±5%271385664
±10%6897166

How the sample size is calculated

To estimate a percentage, such as the share of people who answer yes, you need enough responses for random variation to stay inside the margin you accept.

How to use it

  1. 1 Set the confidence level and the margin of error you can accept.
  2. 2 Enter the expected proportion and, if the group is small, the population size.
  3. 3 Read the number of completed responses you need, rounded up.

Formula

n₀ = z² · p · (1 − p) / e²
n = n₀ / (1 + (n₀ − 1) / N)
e = z · √(p · (1 − p) / n) · √((N − n) / (N − 1))

Finite population correction

When the sample is a noticeable part of the population, fewer responses are enough. For a 5% margin at 95% confidence, a very large population needs 385 responses but a group of 1000 people needs 278.

Halving the margin costs four times as much

The margin shrinks with the square root of the sample size. Going from 5% to 2.5% takes about four times as many responses.

Responses, not invitations

The result counts completed responses. Divide it by the response rate you expect to find how many people to invite: 385 responses at a 20% rate means 1925 invitations.

Related calculators: Confidence Interval · Z-Score · Standard Deviation

Sample Size FAQ

The product p × (1 − p) is largest at 50%, so that assumption never gives too small a sample.
New
Logarithm Calculate the logarithm of a number in any base, with ln, log10 and log2, the antilog, and the change of base steps.
Popular Today
Logarithm Calculate the logarithm of a number in any base, with ln, log10 and log2, the antilog, and the change of base steps.

Other math calculators

Scientific Calculator A scientific calculator with trigonometry, logarithms, powers, roots and factorials. Type an expression or use the keypad; degrees and radians both supported.
Fraction Calculator Add, subtract, multiply or divide two fractions. The answer is simplified and also shown as a mixed number and a decimal, so you can use the form you need.
Standard Deviation Paste a list of numbers and get the standard deviation, variance, mean, median, mode and range at once - both the sample and the population version.
Quadratic Solver Enter a, b and c to solve ax² + bx + c = 0. You get the roots, the discriminant that decides how many there are, and the vertex of the parabola.
Triangle Calculator Solve a right triangle from any two sides, or a general triangle from all three. You get the missing side, all three angles, the area and a drawing to scale.

Other Calculators You May Like

Age Calculator Free age calculator: enter your birth date to see your exact age in years, months, days, hours and minutes, plus the countdown to your next birthday.
Date Difference Calculator Free date difference calculator: find the exact time between two dates in years, months, days and weeks, and see how many working days fall in between.
Day of the Week Calculator Free day of the week calculator: find out which weekday any date falls on - past or future - handy for birthdays, events and historical dates.
Business Days Calculator Free business days calculator: count the working days between two dates, weekends excluded - useful for deadlines, delivery dates and project planning.
Week Number Calculator Free ISO 8601 week number calculator: find which week of the year any date falls in, and see the first and last day of that week at a glance.