FreeRuns in your browserNo sign-up

Sample size calculator

How many interviews do you need, how precise will your result be, and how should the sample split across cities or age groups? Plan it here and see your sample as a crowd.

Your survey
z = 1.6449, 1.9600 or 2.5758
How close to real value you want
50% is the most cautious choice
Only matters for small universes
1.0 SRS · 1.2–1.5 weighted · 2+ clustered
Used to estimate invites/contacts needed
Your sample

Sample size by margin of error
Margin of error (±%)Required n
Your sample
Precision
Quota setup
Only used with "Proportional with a minimum per cell"

Cells (label + population share %)

Quota plan
Plan table
Cell Pop share Planned n Sample share MOE (±%) Weight

How to use it

Open the tab you need. In Sample size, enter your confidence level, the margin of error you are willing to live with, the proportion you expect (50% if you have no idea), and optionally the population size, design effect and expected response or incidence. The tool tells you how many completes you need and how many invites or contacts that works out to.

In Margin of error, enter the number of completes you have (or plan to have) and see how precise the headline result will be. This is the number to quote when a journalist, a client or a dissertation examiner asks "how accurate is that figure?".

In Quota planner, enter your total sample, add one row per cell (city, age group, NCCS, whatever matters), and the tool splits the sample across cells, flags cells that are too small to read, calculates the weight you would need to restore population share and shows you the overall effective sample size and design effect from weighting.

How it's calculated

For a proportion, the sample size for a simple random sample is:

n₀ = z² × p × (1 − p) / e²

where z is the critical value for your confidence (1.6449 at 90%, 1.9600 at 95%, 2.5758 at 99%), p is the expected proportion as a decimal and e is the margin of error as a decimal. At 95%, ±5 percentage points and p = 0.5, that gives n₀ ≈ 384.15, which rounds up to 385.

Multiply by the design effect to adjust for weighting or clustering: n_eff = n₀ × DEFF. Then apply the finite population correction when the universe is small:

n = n_eff / (1 + (n_eff − 1) / N)

Round up at the end. For a known response or incidence rate r, the number of invites or contacts you need is ⌈n / r⌉.

The margin of error for an observed proportion is:

MOE = z × √(DEFF × p × (1 − p) / n)

multiplied by √((N − n) / (N − 1)) when the population is finite. By convention it is reported in percentage points: a result of 40% with a ±3 point MOE means the true value is somewhere between roughly 37% and 43%.

Worked example

Suppose you want to run a national survey in India at 95% confidence with a ±5 point margin of error. You have no prior information so you set p = 50%. The calculator returns 385 completes, which is the number most people quote. If you plan to compare four cities equally — Mumbai, Delhi NCR, Bengaluru and Chennai — 385 is not enough: each city would have about 96 completes and a margin of error of around ±10 points, which is far too wide to tell cities apart.

Boosting to 1,000 completes split evenly across those four cities gives 250 per city. The MOE tab then reports roughly ±6.2 points per city at 95% confidence — still wide, but usable. If you then weight the cities back to their real population shares (say 40/30/20/10), the Kish formula shows the effective sample drops to about 833 and your overall design effect becomes 1.20 — the price you pay for an even sample is a modest loss of precision.

Planning quotas for subgroups

When you report numbers by subgroup — city, age, NCCS, gender, category of user — every subgroup needs its own readable base. A common rule of thumb in market research is a minimum of 50 to 75 completes per subgroup for exploratory reads and 100 or more when you want to quote percentages with reasonable confidence. The planner flags cells below 50 as too small to read.

Use the "Proportional with a minimum per cell" method when real population shares would leave some cells too thin. The tool reserves the minimum for each cell first and distributes only the remainder proportionally. The largest-remainder rounding rule is used throughout so cells always sum back to your total.

Weighting and effective sample size

If your sample and population shares do not match, you weight the data. The weight for each cell is population share / sample share. Weights at or near 1 cost you nothing. Very large or very small weights are expensive because they cut the effective sample size.

The standard measure is the Kish effective sample size:

n_effective = (Σ nᵢ wᵢ)² / Σ (nᵢ wᵢ²)

and the resulting design effect is n / n_effective. In the four-city example with 250 per city and population shares 40/30/20/10, the weights are 1.6, 1.2, 0.8 and 0.4, n_effective is 833.3 and the design effect is 1.20. The quota planner shows all of this live as you edit shares.

Frequently asked questions

Why does the calculator keep showing 385?

At 95% confidence, ±5 percentage points and p = 50% (the most cautious choice), the standard formula gives about 384.15, which rounds up to 385. Change the confidence, margin of error, p or add a population size and it will update.

Does population size really matter?

Only for small populations. For a very large universe the sample size depends on confidence, p and margin of error, not on how many people exist. The finite population correction trims the required sample when you survey a sizeable share of a small universe, for example an office of 1,000 people.

What design effect should I use?

If you plan to weight the data or use clustered sampling, start with 1.2 to 1.5. Cluster surveys with intra-cluster correlation can push the design effect to 2 or more. Use 1.0 only for a simple random sample with no weighting.

What is the minimum base per subgroup?

A common rule of thumb is a minimum readable base of 50 to 75 per subgroup, and 100 or more if you want to report percentages with reasonable confidence. The planner flags cells below 50 as too small to read.

How do I compute margin of error for a subgroup?

Use the subgroup's own sample size in the margin of error formula. A city with 250 respondents at 95% confidence and p = 50% has a margin of error of about ±6.2 percentage points, which is much wider than the full sample.

How do I plan for online panel incidence?

Enter your expected incidence or response rate in the sample size tab. The tool then shows how many invites or contacts you need to reach the required number of completes, for example 2,000 invites at a 20% incidence for 400 completes.

More free tools