Skip to content
LoveToCalc

Definition — what does that mean?

Sample size for a mean

How many observations pin a mean down to a chosen margin of error.

In Swedish: Urvalsstorlek för ett medelvärde

Sample size for a mean

The relation

n=(zα/2σE)²

How large a sample has to be to pin a mean down to a given margin of error at a given confidence level: the critical value times the standard deviation, over the margin, all squared.

Solve for

n=96.04

n equals ((1.96 times 15) divided by 3) squared, equals (29.4 divided by 3) squared, equals 9.8 squared, equals 96.04

Working4 steps

Practice questions

You are given

  • zα/2=1.96
  • σ=10
  • E=2

Round to 2 decimals.

The formula

n = (z · σ / E)²

Holds when σ is known or taken from earlier data and the sample mean is roughly normal. With σ estimated from a small pilot, t takes the place of z.

z is the critical value (1.96 for 95%), σ the standard deviation and E the margin of error you accept. The formula is the margin of error solved for n.

IQ scores, σ = 15, margin ±3 at 95%: n = (1.96 · 15 / 3)² = 9.8² = 96.04. The result is rounded up to 97, since 96 people give a margin slightly above 3.

Halving the margin

Same σ = 15 and z = 1.96, but E = 1.5:

E Working n
3 (1.96 · 15 / 3)² 96.04
1.5 (1.96 · 15 / 1.5)² 384.16

Halving E multiplies n by four, because E enters squared.

Common mistakes

The same idea for a share is sample size for a proportion.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
n(zα/2σE)²(1.96·153)²96.04
zα/2Enσ396.04151.96
σEnzα/2396.041.9615
Ezα/2σn1.96·1596.043

Last reviewed October 11, 2026 ·How pages are reviewed

Statistics and probabilityAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.