What Is Sample Size Determination?

Sample size determination answers the single most critical budgeting question before launching any survey, A/B experiment, clinical audit, or manufacturing inspection: how many individuals (n) must we observe so our sample estimate lands reliably close to the true population value? Collecting too few responses produces wide, noisy confidence intervals that miss real effects, while oversampling wastes time and budget for negligible extra precision.

Our Sample Size Calculator computes exact sample sizes across four dedicated modes: Cochran's Proportion Formula (with conservative p = 50% and optional Finite Population Correction for known group sizes), Custom Expected Proportion (p%) when prior rates are already known, Reverse Margin of Error from an achieved sample size n, and Continuous Mean Sample Size using standard deviation (σ). It automatically applies ceiling rounding (always rounding fractional counts up) and displays survey invite targets adjusted for response-rate attrition.

Sample Size Formulas: Cochran, Finite Population & Continuous Mean

Depending on whether your study estimates a percentage (Yes/No proportion) or a continuous numerical average (like response time or weight), apply these statistical equations:

Infinite Pop. Proportion (Cochran): n₀ = [ Z² × p × (1 − p) ] ÷ E²
Finite Population Correction (FPC): n = n₀ ÷ [ 1 + (n₀ − 1) ÷ N ]
Reverse Margin of Error (MOE%): E = Z × √[ p(1 − p) ÷ n ] × √[ (N − n) ÷ (N − 1) ]
Continuous Variable (Mean SD): n = ( Z × σ ÷ E )²
Response-Rate Invite Planning: Invites Needed = ⌈ n ÷ Expected_Response_Rate ⌉
Infographic showing Cochran formula n0=385 at 95% confidence and +/-5% margin of error alongside Finite Population Correction dropping n to 370 for N=10,000, 278 for N=1,000, and 218 for N=500
Diagram 1: Two-stage Cochran and Finite Population Correction (FPC) flow demonstrating how population size N reduces required surveys when sampling > 5% of a small group.

Common Z-Critical Multipliers & Benchmark Sample Table

Notice how every Confidence Level pairs with a symmetric two-tailed Z-critical score capturing the center area of a standard normal bell curve. Here are the exact conservative (p = 50%) sample sizes across standard research precision targets:

Confidence Level Critical Z MOE = ±5% (Unlimited) MOE = ±3% (Unlimited) MOE = ±1% (Unlimited)
90% Confidence 1.6449 271 752 6,764
95% Confidence (Standard) 1.9600 385 1,068 9,604
98% Confidence 2.3263 542 1,504 13,530
99% Confidence 2.5758 664 1,844 16,588

Look at how rapidly infinite-population sample size plateaus! Whether you are polling 100,000 employees, 50 million households, or 8 billion global citizens, 385 respondents gives the exact same ±5% precision at 95% confidence. Finite Population Correction only changes n noticeably when your sample represents more than ~5% of the entire target group (such as surveying 278 out of 1,000 hospital patients).

Why Halving Margin of Error Quadruples Sample Size (The 4× Law)

Because Margin of Error E appears squared in the denominator (E²), improving survey accuracy follows an unforgiving inverse-square law: cutting your allowable Margin of Error in half multiplies required respondents by 4×! Moving from ±10% to ±5% jumps from 97 to 385 surveys; tightening from ±5% to ±2.5% jumps 4× again to 1,537; tightening to ±1% explodes cost 25× up to 9,604 interviews!

Curve showing Required Sample Size n versus Margin of Error from +/-10% (97 surveys) to +/-5% (385), +/-3% (1,068), and +/-2% (2,401), illustrating why halving MOE quadruples n
Diagram 2: Because n scales proportionally with 1 / E², cutting Margin of Error in half always multiplies sample size by 4.

2 Worked Examples

Example 1: Customer Satisfaction Survey With Known Population (N = 10,000, 95%, ±5%)

A SaaS company has 10,000 active accounts and wants to estimate user satisfaction within ±5 percentage points at 95% confidence with no prior poll estimate. How many completed surveys are needed, and how many emails should be sent assuming an 80% completion rate?

  1. Select parameters: Z = 1.95996 (for 95% confidence), conservative p = 0.50 (maximizing p(1 − p) = 0.25), and E = 0.05.
  2. Solve infinite Cochran size n₀: n₀ = (1.95996² × 0.25) ÷ 0.05² = (3.84146 × 0.25) ÷ 0.0025 = 0.96036 ÷ 0.0025 = 384.15 (which rounds up to 385 for unlimited populations).
  3. Apply Finite Population Correction for N = 10,000: n = 384.15 ÷ (1 + (384.15 − 1) ÷ 10,000) = 384.15 ÷ 1.03831 = 369.97.
  4. Apply Ceiling Rule & Attrition Buffer: Rounding 369.97 strictly up gives 370 completed surveys. Adjusting for an expected 80% response rate (370 ÷ 0.80 = 462.5) means sending 463 survey invitations!

Example 2: Known Defect Proportion (p = 20%) & Continuous Mean SD Study (σ = 15)

Compare two ways researchers shrink sample sizes without losing statistical accuracy:

  • Known Proportion Savings (Mode 2, p = 20%, ±3%, 95%): Historical logs show roughly 20% of support tickets escalate to Tier 2. Using p = 0.20 makes p(1 − p) = 0.20 × 0.80 = 0.16 instead of 0.25. Thus n = (1.95996² × 0.16) ÷ 0.03² = 0.61463 ÷ 0.0009 = 682.93 -> 683 tickets (saving 36% compared to 1,068 at p = 50%!).
  • Continuous Mean Sample Size (Mode 4, σ = 15, E = ±3, 95%): To estimate average monthly bill within ±$3 when historical Standard Deviation equals $15, compute n = (1.95996 × 15 ÷ 3)² = (9.7998)² = 96.04 -> 97 accounts.
Infographic contrasting p(1-p) variance savings across p=50% (1,068), p=20% (683), and p=10% (385) against continuous Mean SD sample size formula (n = 97) and response-rate adjustment
Diagram 3: Replacing conservative p = 50% with known prior rates shrinks sample requirements up to 64%, alongside Mean SD and attrition planning.

Always Round Up (Why 384.15 Becomes 385, Not 384)

Standard arithmetic rounds 384.15 down to 384. Why do every statistical textbook and Mode 1 of our calculator round 384.15 strictly UP to 385 via mathematical ceiling (⌈n⌉)? Because Margin of Error shrinks monotonically as n grows: with only 384 respondents, your realized Margin of Error equals ±5.001%, violating the maximum ±5.000% specification! Picking 385 guarantees realized Margin of Error is ±4.994% ≤ ±5.0%.

Planning for Response Rates, Design Effect & Subgroup Analysis

Cochran's base formula assumes a Simple Random Sample (SRS) with a 100% completion rate and overall aggregate reporting. In real fieldwork, adjust your target sample size carefully for three operational realities:

  • Non-Response & Attrition (n_invited = ⌈n ÷ r⌉): If only 25% of emailed customers finish your questionnaire (r = 0.25), multiply your required 385 completes by 4 (invite 1,540 contacts). Failing to account for low response rates creates both small-sample error and non-response selection bias.
  • Complex / Cluster Sampling Design Effect (DEFF): Multistage cluster polling (sampling neighborhoods then households) loses independence relative to pure random sampling. Multiply SRS sample size by estimated Design Effect (commonly DEFF = 1.2 to 2.0).
  • Regional / Age Subgroup Breakdowns: If you plan to report separate ±5% confidence intervals for Gen Z, Millennials, Gen X, and Boomers individually, you need ~385 completes within each subgroup (4 × 385 = 1,540 total)!

Cochran vs. Yamane's Simplified Formula (n = N / (1 + N e²))

You may occasionally encounter Taro Yamane's simplified finite-population shortcut: n = N ÷ (1 + N × E²). Where does that formula come from? Notice that at 95% confidence and conservative p = 50%, the numerator Z² × p × (1 − p) equals 1.96² × 0.25 = 0.9604 ≈ 1.0! Replacing 0.9604 with 1 in Cochran + FPC produces Yamane's approximation directly: for N = 10,000 and E = 0.05, Yamane gives 10000 / 26 = 385 (slightly more conservative than Cochran's exact 370). However, Yamane ONLY approximates 95% confidence and cannot handle 90% or 99% confidence levels, whereas Cochran handles any confidence level accurately.

Confidence Interval Sample Sizing vs. Hypothesis Testing Power (80%)

Our calculator focuses on estimating a single population percentage or mean within a chosen Margin of Error (confidence interval precision). When designing two-group A/B experiments or randomized clinical trials comparing Control vs. Treatment, researchers add a second error parameter called Statistical Power (1 − β, typically 80%, giving Z_β = 0.8416) alongside Confidence Level α:

Two-Group Equal Allocation Per Arm: n_arm ≈ 2 × [ (Z_{α/2} + Z_β) × σ ÷ Δ ]²

Here Δ denotes the Minimum Detectable Effect (MDE) you care about detecting reliably. Notice the exact same inverse-square cost structure governs A/B testing as well: trying to detect half as large a conversion lift (halving Δ) requires 4× as many visitors per variant to maintain 80% statistical power!

Sample Size Formulas in Excel, Google Sheets & Python

Compute exact Z-criticals and sample sizes cleanly inside spreadsheets or code without static lookup tables:

Excel / Sheets (Unlimited n0): =ROUNDUP((NORM.S.INV(0.5 + Conf/2)^2 * p * (1-p)) / E^2, 0)
Excel / Sheets (With Finite N): =ROUNDUP(n0 / (1 + (n0 - 1) / PopN), 0)
Excel / Sheets (Mean SD n): =ROUNDUP((NORM.S.INV(0.5 + Conf/2) * SD / E)^2, 0)
Python (SciPy + math): math.ceil((norm.ppf(0.5 + cl/2)**2 * p * (1-p)) / E**2)

5 Common Sample Size Planning Mistakes to Avoid

  1. Assuming Larger Populations Always Need Proportionally Larger Samples: Doubling a customer base from 100,000 to 200,000 does not double required sample size; n₀ = 385 holds for both!
  2. Rounding Sample Sizes Down Instead of Ceiling Up: Always use ROUNDUP / math.ceil so precision targets are strictly satisfied.
  3. Forgetting Population Overlap on Tiny Groups: On a company with only 200 employees, using infinite 385 asks for more people than exist! Entering N = 200 in Mode 1 applies FPC cleanly and reduces required completes to 132.
  4. Applying Continuous Mean Formula Without Pilot SD (σ): When planning a Mean estimate (Continuous Mean Mode 4), estimate σ from past studies or use the Range Rule of Thumb (Est. σ ≈ Range ÷ 4).
  5. Using One SRS Calculation When Comparing Multiple Subgroups: Sampling 385 nationwide respondents gives ±5% overall accuracy, yet leaves small 30-person state breakdowns sitting at a huge ±18% Margin of Error!

Related Statistics & Probability Tools

Explore complementary distribution, confidence, and spread calculators inside our Math & Statistics hub:

Read how Staticnexa validates inverse normal quantiles and rounding guarantees in our Editorial & Mathematical Accuracy Policy.

Frequently Asked Questions

Why is 385 the standard sample size for surveys?

Using Cochran formula at the industry-standard 95% confidence level (Z = 1.96), +/-5% margin of error (E = 0.05), and worst-case conservative proportion p = 50% yields n0 = (1.96^2 * 0.25) / 0.05^2 = 384.15, which always rounds up via ceiling to 385 respondents for large populations.

When should I use Finite Population Correction (FPC)?

Apply Finite Population Correction whenever your sample size exceeds about 5% of the total known population size N (for example, surveying employees in a 500-person company or auditing 1,000 invoices). For populations over 20,000, FPC adjustment is minimal.

Why should p = 50% be used when the true proportion is unknown?

In Cochran formula, variance equals p * (1 - p), which reaches its absolute mathematical maximum of 0.25 when p = 0.50 (50%). Choosing 50% guarantees your sample size is large enough regardless of what percentage the survey actually finds.

How does Margin of Error affect required sample size?

Sample size grows inversely with the square of Margin of Error (1 / E^2). Cutting Margin of Error in half (say from +/-6% down to +/-3%) requires four times (4x) as many completed responses.

How do I calculate sample size for estimating a Mean instead of a Percentage?

Switch to Mode 4 (Continuous Mean SD) and enter estimated standard deviation (sigma), allowable error tolerance E, and Confidence Level to solve n = ceil((Z * sigma / E)^2).

Why should sample sizes account for expected response rate?

If you calculate n = 385 required completes but expect only 80% of invitees to respond, divide 385 by 0.80 to send 482 invitations so non-responses do not widen your final Margin of Error.

Mathematical References & Standards