Margin of Error & Survey Sample Size Solver

Margin of Error & Survey Sample Size Solver

Determine statistically rigorous sample sizes for surveys, market research studies, and A/B experiments.

Leave blank or 0 for unknown / infinite population.

%
%

50% provides the most conservative sample size recommendation.

Recommended Sample Size Client-Side Execution
Required Respondents (n)
382

Provides 95% confidence with ±5% margin of error.

Z-Score Factor1.96
Finite Pop CorrectionApplied

At a Glance

Category
Statistics
Best For
Researchers and marketers planning surveys
Privacy
100% in your browser: nothing you enter is uploaded
Time Required
Under a minute
Cost
Free
Updated
November 2026

Quick Overview

What This Tool Does

Uses Cochran's formula for the sample size of an infinite population and adjusts it for your finite population size.

Who Should Use It

Survey researchers, marketers, students and UX researchers.

When to Use It

Before collecting survey data.

Why It Is Useful

Too small a sample gives unreliable results; too large wastes effort.

Key Features & Capabilities

Cochran's formula

Standard method for proportions.

Finite population correction

Adjusts for small populations.

Choice of confidence

Choose a 90%, 95% or 99% confidence level.

How to Use This Tool

1

Enter the population

Type the total number of people in the group. Tip: For very large populations use a large number.

2

Choose confidence

Select 90%, 95% or 99%. Tip: 95% is the most common.

3

Set the margin of error

Type how close to the true value you need to be. Tip: A smaller margin requires a larger sample.

4

Set the proportion

Use 50% if unsure, which gives the largest sample. Tip: Use a known estimate to reduce the sample.

Worked Real-World Example

A population of 50,000

A survey of 50,000 people with 95% confidence, a 5% margin of error and 50% expected proportion.

Sample Inputs
Population size50,000
Confidence level95 %
Margin of error5 %
Expected proportion50 %
Required sample size382 respondents
Calculation Breakdown
Infinite population size: 1.96² × 0.5 × 0.5 ÷ 0.05² = 384.16
Correction denominator: 1 + (384.16 − 1) ÷ 50,000 = 1.00766
Divide: 384.16 ÷ 1.00766 = 381.24
Round up: whole respondents = 382
Surveying 382 randomly chosen people gives results within ±5 percentage points 95% of the time. For large populations the correction barely matters: the answer is close to 385.

How It Works (Math & Calculation Logic)

n₀ = z² × p × (1 − p) ÷ e², with z = 1.645, 1.96 or 2.576 for 90%, 95% or 99% confidence. The finite population correction is n = n₀ ÷ (1 + (n₀ − 1) ÷ N), rounded up.

Formula / Algorithmn₀ = z² p (1 − p) ÷ e² n = n₀ ÷ (1 + (n₀ − 1) ÷ N)
Variable & Logic Definitions
zZ-score - For the confidence level
pProportion - Expected response proportion
eMargin of error - Desired precision
NPopulation - Total group size

How to Interpret Your Results

Typical Benchmarks

Many surveys use 95% confidence and a 3% to 5% margin of error.

Evaluating Your Output

Halving the margin of error roughly quadruples the sample.

Recommended Next Action

Plan for non-response by inviting more people than the calculated sample.

Frequently Asked Questions

How do I calculate sample size?
Use n₀ = z² p (1 − p) ÷ e², then apply the finite population correction.
Why use 50% proportion?
It maximizes p(1 − p) and gives the most conservative (largest) sample.
Does population size matter?
Only for small populations; beyond tens of thousands the sample barely changes.
What is the margin of error?
The maximum expected difference between the sample result and the true value.
What if response rates are low?
Invite more people so that enough respond.

Complementary QuickForma Utilities

Mathematics & Statistics

Z-Score Calculator

Calculate standard score Z = (X - mu) / sigma and percentile rank under standard normal curve.

Open Tool
Mathematics & Statistics

Confidence Interval Calculator

Calculate margin of error E = Z * (sigma / sqrt(n)) and lower/upper bounds for confidence intervals.

Open Tool
Mathematics & Statistics

Hypothesis Test Calculator

Calculate test statistic Z = (xbar - mu) / (s / sqrt(n)), two-tailed p-value, and significance decision.

Open Tool
Mathematics & Statistics

Sample & Population Standard Deviation Solver

Solves sample (s) and population (σ) standard deviation with variance steps.

Open Tool
Science & Engineering

Density, Mass & Volume Chemistry Solver

Solves Density = Mass/Volume with automatic unit conversions (g/cm³, kg/m³, g/mL).

Open Tool
Mathematics & Statistics

Altman Z-Score Business Bankruptcy Predictor

Uses 5 financial ratios to predict public and private business insolvency risk.

Open Tool
Mathematics & Statistics

Raw Quiz / Exam Test Score Percentage Solver

Converts raw exam points (e.g. 47 out of 58) into percentage, letter grade, and grade points.

Open Tool
Mathematics & Statistics

Definite & Indefinite Integration Solver

Calculates polynomial, exponential, and trigonometric definite/indefinite integrals with step-by-step logic.

Open Tool
Mathematics & Statistics

Matrix Addition, Multiplication & Determinant Solver

Performs $2\times 2$ and $3\times 3$ matrix operations, determinant calculation, and matrix inversion.

Open Tool
Mathematics & Statistics

Dot Product, Cross Product & Vector Magnitude Solver

Solves 2D/3D vector addition, magnitude $|\vec{v}|$, dot product a⃗·b⃗, and cross product a⃗×b⃗.

Open Tool
Mathematics & Statistics

Polynomial Factoring & Synthetic Division Solver

Solves polynomial roots, synthetic division, and factors quadratic/cubic expressions.

Open Tool
Mathematics & Statistics

p-Value Calculator from Z, t, F & Chi-Square Statistics

Converts test statistics (Z, t, F, chi²) into one-tailed and two-tailed p-values.

Open Tool