Sample Size

How large a sample you need for a desired margin of error.

Inputs

Estimating a
Confidence level

Results update as you type.

Results

n = 217

A random sample of at least 217 gives a 95% margin of error of 2 or less.

Results

z*1.96
Exact value216.0821
Round up to217
Show steps
  1. Formula. n = (z* · σ ÷ E)²
  2. Substitute. n = (1.96 · 15 ÷ 2)² = 216.0821
  3. Always round up: n = 217.

About this calculator

Planning a study

Before collecting data, you can decide how precise you want your estimate to be (the margin of error E) and solve for the sample size n that achieves it.

Always round the answer up to the next whole number. Cutting the margin of error in half requires about four times as many people.