Sample Size Calculator – Margin of Error, Confidence Level and Population

Work out how many survey responses you need for a chosen margin of error and confidence level, with and without a finite-population correction.

Free & Instant•Version: v1.0•Formula, examples and assumptions

Calculator InputsFormula v1.0

5095%99.99
0.015%25
150%99

Use 50% for the most conservative (largest) sample.

Enter 0 for an unknown or very large population.

1100%100

Used to scale up the invitations you need to send.

Calculated Output

n₀ = z² × p(1 − p) ÷ e²; finite population correction: n = n₀ ÷ (1 + (n₀ − 1) ÷ N)

Required completed responses

385
Invitations to send at the stated response rate385
z critical value1.9600
Uncorrected sample size (infinite population)385
Finite population correction appliedNo (population unknown or large)
Achieved margin of error at this sample±4.99%
Confidence level95.0%
Assumed proportion50.0%
Sampling fraction of the populationNot applicable

• Assumes simple random sampling. Stratified or clustered designs need a design effect multiplier, and non-probability panels need weighting.

Instant Browser CalculationNo Server Logging

Step-by-Step Mathematical Working

Critical value for 95.0% confidence: z = 1.9600.
n₀ = z² × p(1 − p) ÷ e² = 1.9600² × 0.50 × 0.50 ÷ 0.0500² = 384.15.
No finite population correction is needed for a large or unknown population.
Round up to 385 completed responses; at a 100% response rate, send 385 invitations.

Formula and method

n₀ = z² × p(1 − p) ÷ e²; finite population correction: n = n₀ ÷ (1 + (n₀ − 1) ÷ N)

The margin of error shrinks with the square root of the sample size, so halving it requires about four times the responses. A 5% margin of error at 95% confidence is the conventional default, and the same sample gives roughly the same precision whether the population is 100,000 or 10 million.

Variables

z
Critical value for the confidence level: 1.645 for 90%, 1.96 for 95%, 2.576 for 99%
p
Expected proportion, with 0.5 the most conservative choice
e
Margin of error as a proportion, for example 0.05 for ±5%
N
Total population size, when you are sampling a small finite group

Worked example

For a 95% confidence level, a ±5% margin of error, and p = 0.5, you need 385 responses from a large population, or 245 from a population of 600.

Who this calculator is for

Researchers, product teams, marketers, and students designing a survey or experiment.

Complete guide to the sample size calculator – margin of error, confidence level and population

Every figure below comes from this calculator itself. The method is n₀ = z² × p(1 − p) ÷ e²; finite population correction: n = n₀ ÷ (1 + (n₀ − 1) ÷ N), applied to the tool's default inputs and then stress-tested one input at a time.

What the Sample Size Calculator – Margin of Error, Confidence Level and Population works out

Sample Size Calculator – Margin of Error, Confidence Level and Population answers one specific question: Work out how many survey responses you need for a chosen margin of error and confidence level, with and without a finite-population correction. It is written for researchers, product teams, marketers, and students designing a survey or experiment.

The method is n₀ = z² × p(1 − p) ÷ e²; finite population correction: n = n₀ ÷ (1 + (n₀ − 1) ÷ N). The inputs are Confidence level (%), Margin of error (%), Expected proportion (%), Population size (people), Expected response rate (%). With the default values - Confidence level = 95%, Margin of error = 5%, Expected proportion = 50%, Population size = 0 people, Expected response rate = 100% - the result is Required completed responses: 385. Raising Confidence level from 95% to 104.50% moves the headline result from 385 to 1,514.

Working through the reported figures

Alongside 385 this method reports 8 supporting quantities: Invitations to send at the stated response rate: 385; z critical value: 1.9600; Uncorrected sample size (infinite population): 385; Finite population correction applied: No (population unknown or large). Taken together they show which input moved the answer and by how much.

The arithmetic as executed: Critical value for 95.0% confidence: z = 1.9600. n₀ = z² × p(1 − p) ÷ e² = 1.9600² × 0.50 × 0.50 ÷ 0.0500² = 384.15. No finite population correction is needed for a large or unknown population. Round up to 385 completed responses; at a 100% response rate, send 385 invitations. Run the same substitution yourself; a match confirms the inputs were read as you intended.

How to interpret the answer

The margin of error shrinks with the square root of the sample size, so halving it requires about four times the responses. A 5% margin of error at 95% confidence is the conventional default, and the same sample gives roughly the same precision whether the population is 100,000 or 10 million.

Read it as one scenario: 385 with invitations to send at the stated response rate at 385 holds only for the inputs shown. Change whichever input you are genuinely unsure about and read the pair of figures together.

Common mistakes to avoid

Setting p to the expected result instead of 0.5, which produces a sample that is too small if the estimate is wrong. Forgetting the finite population correction for a small, closed group such as a company's staff. Quoting a margin of error without the confidence level attached to it. Confusing response rate with sample size: plan for a larger invitation to allow for non-response.

Before relying on the figure, re-read Confidence level (%), Margin of error (%), Expected proportion (%), Population size (people), Expected response rate (%) and confirm each entry matches its label, including whether a percentage is entered as 8 for eight per cent or as 0.08. Adjust Confidence level on its own and watch whether the result behaves as the method says it should - here 385 should shift smoothly rather than jump.

Limitations and responsible use

Assumes simple random sampling; stratified, clustered, or quota samples need design effects. Assumes a large-population normal approximation.

The figures above hold within those limits and not outside them. The formula, the substitution and the units are all printed so you can check the arithmetic yourself; whether the inputs describe your real situation is something only you can confirm. For a consequential decision, check the current figure against a primary source, since published values are revised.

Frequently asked questions

Why 385 responses?

1.96² × 0.5 × 0.5 ÷ 0.05² = 384.16, rounded up to 385, for a 95% confidence level and a ±5% margin of error.

What does a 95% confidence level mean?

If the survey were repeated many times, about 95% of the intervals would contain the true value. It is not a 95% probability that your specific interval is correct.

Do I need the finite population correction?

Yes when the population is small enough for the sample to be a meaningful fraction of it - roughly 5% or more.

Related searches for this calculator

People also look for sample size calculator, margin of error calculator, survey sample size, confidence level calculator and how many survey responses do i need. Everything on this page is calculated in your browser from the formula shown above.

Related Mathematics Calculators

Explore another calculator in this subject.