---
slug: sample-size-calculator
title: "Sample Size Calculator"
category: math
updated: 2026-11-18
canonical: https://calcseed.com/c/math/sample-size-calculator/
html: /c/math/sample-size-calculator/
---

# Sample Size Calculator

Find the minimum sample size you need for a survey or experiment, given your confidence level, margin of error and expected proportion.

## Quick answer

**Quick answer:** with the default inputs (1.96, 5%, 50%, 0), the required sample size is **385**. Change any input to update the result.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| Confidence level | 1.96 |  |
| Margin of error | 5 | % |
| Expected proportion | 50 | % |
| Population size (optional) | 0 |  |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| Required sample size | 385 |  |

## Formula

```text
n = z² &middot; p(1 − p) / e²
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| Confidence level | select |  | 1.96 |
| Margin of error | number | % | 5 |
| Expected proportion | number | % | 50 |
| Population size (optional) | number |  | 0 |

## Outputs

| Result | Format |
| --- | --- |
| Required sample size | primary |
| Required sample size | number |

## How it works

### What this calculator does

Enter your confidence level, the margin of error you can live with, your best guess at the expected proportion and (optionally) the population size, and the calculator returns the minimum number of responses you need to collect. At the defaults — 95% confidence, a 5% margin of error, an unknown proportion and a very large population — it reports 385, the single most cited number in survey research.

### How the formula works

The required sample size grows with your confidence level and shrinks as you accept a larger margin of error. It also depends on the **expected proportion** p: uncertainty is greatest when p = 50%, so that value produces the largest — and therefore safest — recommendation.

Here **z** is the z-score for your confidence level (1.96 for 95%), **p** is the expected proportion as a decimal, and **e** is the margin of error as a decimal. If you enter a finite population size, a correction term is applied to avoid over-sampling small groups.

### Worked example at the defaults

- z-score for 95% confidence: z = 1.96, so z² = 3.8416
- Worst-case proportion: p(1 − p) = 0.5 × 0.5 = 0.25
- Numerator: 3.8416 × 0.25 = 0.9604
- Margin of error squared: e² = 0.05² = 0.0025
- Raw size: 0.9604 ÷ 0.0025 = 384.16, rounded up to **385**

Rounding up is not optional — 384.16 responses cannot exist, and rounding down to 384 widens the true margin of error by a hair. That is why national polls aim for roughly 400–1000 respondents: 385 is the floor, and real surveys add buffer for nonresponses.

| Confidence level | z-score | Sample size (5% margin of error) |
| --- | --- | --- |
| 90% | 1.645 | 271 |
| 95% | 1.96 | 385 |
| 99% | 2.576 | 664 |

Moving from 90% to 99% confidence costs nearly 400 extra responses for the same 5% margin. Most commercial surveys settle on 95% because the 385-response floor is affordable, while safety-critical studies pay the 664-response price of 99% confidence.

### What each input does to the number

#### The margin of error dominates

Because e is squared in the denominator, halving the margin quadruples the sample. At 95% confidence with p = 50%, a 3% margin needs n = 0.9604 ÷ 0.0009 ≈ 1,067 responses, a 5% margin needs 385, and a 10% margin needs only 0.9604 ÷ 0.01 ≈ 97. This is the trade every survey budget runs through: precision is priced in responses, and it rises with the square.

#### The expected proportion matters less than you think

The product p(1 − p) peaks at 0.25 when p = 50%. If prior data suggests the true proportion is near 30% (or 70%), the product falls to 0.21 and the requirement drops to 3.8416 × 0.21 ÷ 0.0025 ≈ 323 responses — about 62 fewer than the safe default. When you have no idea, stay at 50%; the extra 62 responses buy insurance against a wrong guess.

### Small populations: the finite correction

Sampling from a small group reduces the requirement, because each response carries more information. With a population of 1,000, the correction turns 384.16 into 384.16 ÷ (1 + 383.16 ÷ 1000) ≈ 278 responses. At a population of 500 it drops to about 218, and at 10,000 the correction barely bites — 370 versus 385. Leave the population field at 0 when the group is large or unknown; enter it only for genuinely small populations like a 300-person company all-hands survey.

### Common mistakes

- Confusing margin of error with confidence level — 5% is the spread, 95% is how often the method succeeds
- Rounding the raw 384.16 down instead of up, which quietly widens the real margin
- Forgetting nonresponse: if only 60% of invitees answer, invite 385 ÷ 0.6 ≈ 642 people to net 385 responses
- Applying the finite correction to a large population, where it makes almost no difference
- Using one number for a subgroup analysis — a 385-response survey gives ±5% overall but roughly ±10% for a quarter-sized subgroup

A quick self-check on any quoted survey: sample size 385 corresponds to about ±5% at 95% confidence, 1,067 to about ±3%, and 385 ÷ 4 ≈ 96 to about ±10%. If a poll claims ±3% precision on 400 responses, the numbers do not agree.

## FAQ

### What sample size do I need for a survey?

For a 95% confidence level and 5% margin of error, about 385 responses is the standard starting point for a large population. Add buffer for nonresponses — inviting roughly 640 people at a 60% response rate nets 385 answers.

### What does 95% confidence actually mean?

It means that if you repeated the survey many times, about 95% of the calculated intervals would contain the true population value. It is a statement about the long-run method, not about any single survey.

### Why is 50% the recommended proportion?

The term p(1 − p) is largest when p = 50%, so using it gives the most conservative (safest) sample size when you do not know the real proportion. A known proportion of 30% or 70% would lower the requirement from 385 to about 323.

### Does a bigger population need a much bigger sample?

No. Above roughly 20,000 people the required sample size barely changes, because the formula depends on proportions, not absolute size. A population of 1,000 does shrink the need to about 278 through the finite correction.

### How many responses do I need for a 3% margin of error?

About 1,068 at 95% confidence with an unknown proportion, since 0.9604 ÷ 0.0009 ≈ 1,067.1 rounds up. Halving the margin of error from 5% to 3% costs nearly 700 extra responses.

### Why do I round 384.16 up to 385?

Responses come in whole numbers and rounding down would widen the true margin of error slightly. Always round the raw formula output up to the next whole response.

### What sample size gives a ±10% margin of error?

Only about 97 responses at 95% confidence. That is enough for rough internal pulse checks, but far too imprecise for decisions worth millions.

### How do I handle subgroups in my sample?

Plan the sample size for the smallest subgroup you want to analyze. If a group is one quarter of the sample, a 385-response survey gives that group roughly ±10% precision instead of the overall ±5%.

### Does the 385 figure apply to yes/no questions only?

The proportion formula is built for yes/no or multiple-choice shares. For estimating a numerical average, use the confidence interval approach with your expected standard deviation instead.

## Method and sources

Methodology: Results follow exact mathematical definitions; the arithmetic is deterministic and can be verified by hand from the steps shown.

Last updated: 2026-11-18.
- n = z²p(1-p)/e², with finite-population correction n = n₀/(1 + (n₀-1)/N).
