CalcUnit Logo

How to Calculate Sample Size

Find the sample size needed for statistical significance.

The Formula

n = (z×σ/E)²

The sample size formula uses the mathematical relationship: n = (z×σ/E)². Each variable in the formula represents a measurable quantity that affects the final result.

What Each Variable Means

Every value in the sample size formula, what it measures, and the value used in the worked example on this page:

VariableTypeExample value
Z* (1.96 for 95%, 2.576 for 99%)Input (you provide)1.96
Population SD Estimate (σ)Input (you provide)0.5
Margin of Error (E)Input (you provide)0.05
Required Sample Size (n)Result (calculated)—
Exact nResult (calculated)—

Step-by-Step Method

  1. 1Write down the values you know: Z* (1.96 for 95%, 2.576 for 99%), Population SD Estimate (σ), Margin of Error (E).
  2. 2Substitute your known values into the formula: n = (z×σ/E)².
  3. 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
  4. 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
  5. 5Verify your answer with the interactive Sample Size Calculator — it solves the same formula instantly.

Worked Example

Take a concrete case: z* (1.96 for 95%, 2.576 for 99%) = 1, with the other inputs at the typical values from the variables table above. Substituting into the formula gives required sample size (n) = 100, exact n = 100.0000. These numbers are solved by the same engine that powers the Sample Size calculator, so you can reproduce them exactly by entering the same inputs there.

Z* (1.96 for 95%, 2.576 for 99%)Required Sample Size (n)Exact n
0.111.0000
1100100.0000
2400400.0000
3900900.0000
416001600.0000
525002500.0000
636003600.0000
864006400.0000

How each result changes as z* (1.96 for 95%, 2.576 for 99%) changes, holding the other inputs constant.

Practice Problems

1. 95% CI, SD=0.5, E=0.05: Plug in Z* (1.96 for 95%, 2.576 for 99%) 1.96, Population SD Estimate (σ) 0.5, Margin of Error (E) 0.05. What is the answer?

Answer: Entering Z* (1.96 for 95%, 2.576 for 99%) 1.96, Population SD Estimate (σ) 0.5, Margin of Error (E) 0.05 gives Required Sample Size (n) 385, Exact n 384.1600.

2. Given Z* (1.96 for 95%, 2.576 for 99%) 3.22, Population SD Estimate (σ) 15, Margin of Error (E) 3, what does it come out to?

Answer: The calculator returns Required Sample Size (n) 260, Exact n 259.2100 for Z* (1.96 for 95%, 2.576 for 99%) 3.22, Population SD Estimate (σ) 15, Margin of Error (E) 3.

Frequently Asked Questions

What is the formula for sample size?

The formula is: n = (z×σ/E)². Find the sample size needed for statistical significance.

What values do I need to calculate sample size?

You need z* (1.96 for 95%, 2.576 for 99%), population sd estimate (σ), margin of error (e). The calculator produces required sample size (n), exact n from those inputs.

What is the sample size when z* (1.96 for 95%, 2.576 for 99%) is 1?

With z* (1.96 for 95%, 2.576 for 99%) = 1, the result is required sample size (n) = 100, exact n = 100.0000. This is worked through in full in the example on this page.

Related Topics

sample sizestatisticssurvey

Use the Interactive Calculator

Skip the manual math — get instant results with our free Sample Size calculator.

Open Calculator

Related Calculators