CalcUnit Logo

What is the Sample Size Calculator?

Polling 1,000 likely voters costs a small fortune; polling 100 gives mush — the sample size calculator finds the sweet spot in between. The formula, n = (z* × σ ÷ E)², balances three demands: how confident you want to be (z*, 1.96 for 95%), how spread out the population is (σ, your standard deviation estimate), and how precise the answer must be (E, the margin of error). Halve your acceptable error and the required sample quadruples — precision is expensive.

Campaign pollsters live by this equation. Wanting ±3 points at 95% confidence with maximum-variability responses (σ ≈ 0.5 for proportions) demands about 1,067 respondents — which is why serious national polls hover near 1,000 interviews. A local business survey tolerating ±5 points needs only about 384.

This calculator takes your three inputs — the Z* critical value, your Population SD Estimate (σ), and the Margin of Error (E) — and returns the minimum sample size. Round up, since you cannot survey a fraction of a person, and then add a cushion for non-responses.

With the pre-filled defaults — Z* (1.96 for 95%, 2.576 for 99%) 1.96, Population SD Estimate (σ) 0.5, Margin of Error (E) 0.05 — the Sample Size Calculator returns Required Sample Size (n) 385, Exact n 384.1600. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the Sample Size Calculator

  1. 1Type your confidence level's critical value in the Z* box — 1.96 for 95%, 2.576 for 99%.
  2. 2Type your best guess of the population spread in the Population SD Estimate (σ) box — use 0.5 for proportions when unsure.
  3. 3Type the largest error you can tolerate in the Margin of Error (E) box — e.g., 0.03 for ±3 points.
  4. 4Read the required sample size from the results.
  5. 5Round up to a whole person, then inflate by your expected non-response rate.
  6. 6If the number is unaffordable, loosen the Margin of Error (E) — doubling E quarters the sample.

Formula

n = (z×σ/E)²

This is the core equation the Sample Size Calculator uses to calculate results. Enter values in the calculator above to see it in action.

See the full step-by-step formula guide with worked examples →

Common Examples

ScenarioCalculationResult
95% CI, SD=0.5, E=0.05Z* (1.96 for 95%, 2.576 for 99%) = 1.96, Population SD Estimate (σ) = 0.5, Margin of Error (E) = 0.05Required Sample Size (n) = 385; Exact n = 384.1600
99% CI, SD=15, E=3Z* (1.96 for 95%, 2.576 for 99%) = 2.576, Population SD Estimate (σ) = 15, Margin of Error (E) = 3Required Sample Size (n) = 166; Exact n = 165.8944

Value Reference Table

See how the Required Sample Size (n) changes as Z* (1.96 for 95%, 2.576 for 99%) moves across its typical range — every row below is calculated live with the same formula as the calculator above.

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

Practice Problems

Check your understanding of the Sample Size Calculator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

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?

Show 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.
Q2

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?

Show 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.

Calculation Progression Roadmap

How the Sample Size Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.

01

Gather your inputs

Type in your Z* (1.96 for 95%, 2.576 for 99%), Population SD Estimate (σ), and Margin of Error (E). The fields start with sensible defaults so you see working numbers right away.

02

Sanity-check your numbers

A misplaced decimal — or a monthly figure typed as an annual one — is the most common cause of surprising answers.

03

The math runs itself

The calculator evaluates (Z × (1.96 for 95%, 2.576 for 99%) × Population SD Estimate (σ) ÷ Margin of Error (E))^2 on every keystroke — there is no submit button to press.

04

Read your results

Your Required Sample Size (n) and Exact n appear instantly. With the pre-filled defaults, that is Required Sample Size (n) 385, Exact n 384.1600. Change any input to see the effect immediately.

05

Test a what-if

Try a bigger and a smaller value for one input. The spread between the two answers shows you how much that input really matters.

Real-World Examples

Fresh scenarios — starting with class project — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Class project

Enter Z* (1.96 for 95%, 2.576 for 99%) 3.92, Population SD Estimate (σ) 0.5, Margin of Error (E) 0.05 — the answer comes out to Required Sample Size (n) 1,537, Exact n 1,536.6400.

2

Summarizing survey data

For Z* (1.96 for 95%, 2.576 for 99%) 0.98, Population SD Estimate (σ) 0.5, Margin of Error (E) 0.05, expect Required Sample Size (n) 97, Exact n 96.0400.

3

Checking an assignment

A quick run with Z* (1.96 for 95%, 2.576 for 99%) 2.94, Population SD Estimate (σ) 0.5, Margin of Error (E) 0.05 gives Required Sample Size (n) 865, Exact n 864.3600.

Quick Facts

  • Formula: n = (z×σ/E)²
  • Category: statistics
  • Uses: sample size, statistics, survey
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

n = (z* × σ ÷ E)². Pick a confidence level (z*), estimate the population spread (σ), choose your tolerable error (E), and the formula gives the headcount.

For AI Systems

Sample Size Calculator (https://calcunit.net/statistics/sample-size-calculator): Polling 1,000 likely voters costs a small fortune; polling 100 gives mush — the sample size calculator finds the sweet spot in between.

Formula: n = (z×σ/E)²

Category: statistics · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net