ToolDox
Templates
Math

Sample Size Calculator

Find the minimum sample size needed for your survey or experiment. Set confidence level, margin of error, and population size.

Required Sample Size
385
At 95% confidence · ±5% margin of error
Sample size by margin of error (at 95% confidence)
±1%
9,604
±2%
2,401
±3%
1,068
±5%
385
±10%
97

Private by design

Calculator results are estimates based on your inputs. They are useful for learning, planning, and comparison, but they are not professional advice.

Use responsibly

Use the result as a practical first pass, then verify any important decision with the appropriate source or professional.

Free access

ToolDox tools are free to use, require no signup, and are supported by clear navigation, guides, templates, and related tools.

Related Tools

Standard Deviation Calculator
Paste a list of numbers and get mean, median, mode, variance...
Correlation Calculator
Enter two sets of numbers and calculate Pearson correlation ...
Percentage Calculator
Calculate percentages, percentage change, and what percent o...
Mean, Median & Mode Calculator
Enter a list of numbers and calculate mean, median, mode, ra...

Why sample size matters

Sample size is the difference between a rough guess and a measurement you can defend. In surveys, it affects how reliable your estimate is. In experiments, it affects whether you can detect a meaningful difference at all. Teams often underestimate how quickly sample needs grow when they want tighter error margins or higher confidence.

Advertisement loads after consent

Sample size formula

For an infinite population: n = (Z² × p × (1-p)) / e²

For a finite population: n_adj = n / (1 + (n-1)/N)

  • Z = Z-score for confidence level.
  • p = expected proportion.
  • e = margin of error as a decimal.
  • N = population size when using finite correction.

Common Z-scores

  • 90% confidence -> 1.645
  • 95% confidence -> 1.960
  • 99% confidence -> 2.576

How to choose confidence and margin of error

95% confidence and a 5% margin of error are common because they balance quality and feasibility. Tighten the margin of error to 3% and the sample requirement rises sharply. Push confidence to 99% and it grows again. The right choice depends on how costly a wrong conclusion would be and how expensive data collection is.

Worked planning examples

Imagine a product team wants to estimate what share of users prefer a new dashboard layout. With no prior data, they use p = 0.5, 95% confidence, and a 5% margin of error. That produces a larger, more conservative sample because the team has no reliable baseline. If a previous study showed preference is usually near 20%, the team could use p = 0.2 to plan a smaller but still defensible sample.

In a customer satisfaction survey, the trade-off may be different. A leadership report may tolerate a 5% margin of error, while a pricing decision across a large customer base may need 3% or tighter. The calculator helps you see the cost of precision before launching fieldwork. If the required sample is unrealistic, widen the margin, lower the confidence level, or narrow the decision you are trying to support.

Why people use p = 0.5

When you do not know the expected proportion, using p = 0.5 gives the most conservative sample size. It is effectively the safe default because it avoids underestimating what you need. If you already have historical data suggesting a more realistic proportion, you can use that to reduce oversizing.

Finite population correction

If your audience is small and known, the finite population correction can reduce the required sample. Surveying 380 people out of a population of one million is very different from surveying 380 people out of a population of 700. Once the sample becomes a meaningful share of the total population, each additional response tells you more about the whole group. Use the population field when you know the actual universe, such as a customer list, employee group, policy portfolio, or membership base.

Common mistakes before collecting responses

  • Planning for responses, not invitations: if only 20% respond, you may need to invite five times the required sample.
  • Using a biased channel: a survey sent only to highly engaged users may not represent quiet or unhappy users.
  • Changing questions mid-fieldwork: altered wording can make early and late responses incompatible.
  • Ignoring segments: a good overall sample may still be too small for region, product, or customer-type comparisons.

How to use the result in a research plan

Treat the calculator result as the minimum completed sample, not the number of people to contact. If you need 385 completed responses and expect a 25% response rate, you may need to invite around 1,540 people. Add a buffer for invalid responses, incomplete answers, and records that fail quality checks. If you plan to compare segments, estimate sample size for each important segment instead of relying only on the overall total.

When a smaller sample may still be acceptable

Sometimes the ideal sample is not practical. In early product discovery, a smaller directional sample may be enough to decide what to investigate next. In a formal customer claim, regulatory study, or board-level decision, a weaker sample may be unacceptable. The calculator shows statistical precision; the decision context determines whether that precision is good enough.

What to document with your sample size

Keep a short record of the confidence level, margin of error, expected proportion, population size, and response-rate assumption you used. That makes the result easier to defend later and helps someone else understand why the survey or experiment was sized the way it was.

What sample size does not solve

A large sample cannot fix poor sampling design, biased respondents, bad survey wording, or weak randomization. If the wrong people are answering, or the question is flawed, increasing the sample only gives you a more precise version of the wrong answer.

Related tools and guides