Sample Size Calculator
Set your population, margin of error, and confidence level.
This calculator computes your required sample size in real time then SurveyMars helps you reach exactly the people behind that number.
Advanced Settings
Expected proportion (p). Use 50% when uncertain for the most conservative estimate.
For a population of 100,000 people, a confidence level of 95%, and a margin of error of ± 5.0%, you need at least 383 completed survey responses to achieve statistically reliable results.
The response distribution defaults to p = 0.50 (the most conservative value when the population proportion is unknown).
Sample Attributes
Refine your target audience by selecting demographic and professional attributes.
Our global survey panel supports detailed respondent targeting. Select one or more attributes below to match your research requirements. Available filters and options vary by selected country.
How to Calculate Sample Size for a Survey
Use this free sample size calculator to determine how many completed responses your survey needs — then launch with confidence using SurveyMars.
What Is Sample Size?
Sample size is the number of completed survey responses you need before your results can be treated as statistically representative of the population you are studying. In survey research, sample size is not simply "how many people you can afford to ask." It is the minimum number of responses required to keep random error within an acceptable range, so that percentages, averages, and comparisons reflect real patterns rather than noise from a lucky or unlucky draw.
A survey sample size calculator translates your research design into a concrete target: how many people must finish your questionnaire. Whether you are running a customer satisfaction study, an employee pulse survey, a political poll, or a university thesis project, the same core logic applies — you need enough responses to support the level of precision and confidence you promise in your findings.
Why Sample Size Matters
Too few responses inflate uncertainty. If you survey only 30 customers and 60% say they are satisfied, a wide margin of error means the true satisfaction rate in your full customer base could plausibly be anywhere from roughly 42% to 78%. Decisions built on that range — pricing changes, product launches, policy updates — carry unnecessary risk. An undersized sample also increases the chance that outliers skew your results, creating the appearance of a trend that does not exist in the broader population.
Oversampling is equally wasteful. Collecting 5,000 responses when 400 would have delivered the same precision drains budget, slows fieldwork, and can delay action. A well-calibrated survey sample size calculator helps you strike a balance between collecting enough data for reliable inference and avoiding redundant responses that waste your budget. That efficiency matters especially in competitive market research cycles where speed and cost both influence whether insights reach decision-makers in time.
Confidence Level
Confidence level describes how often your sampling method would produce an interval that captures the true population parameter if you repeated the study many times. At 95% confidence, if the same survey were repeated many times, 95% of the resulting confidence intervals would contain the true population parameter. This is the standard definition used in statistics — it does not mean that any single result has a 95% probability of being "correct," but that your sampling procedure is calibrated to a widely accepted reliability threshold.
Most consumer and business surveys use 95% confidence because it balances rigor with practical sample sizes. Higher confidence (such as 99%) requires more responses for the same margin of error, which is appropriate for high-stakes research — regulatory submissions, clinical-adjacent studies, or legal evidence. Lower confidence (90%) reduces required sample size but accepts more sampling variability. Your confidence level choice should match the consequences of being wrong, not personal preference alone.
Margin of Error
Margin of error (also called sampling error) defines the expected range around a reported percentage. If 52% of respondents prefer Option A with a ± 5% margin of error, the true population preference likely falls between 47% and 57%, assuming proper random sampling. Tighter margins — ± 3% or ± 2% — require substantially larger samples because precision increases exponentially as error shrinks.
When presenting results to stakeholders, always report margin of error alongside headline numbers. It signals transparency and prevents over-interpretation of small differences — for example, 51% versus 49% is often a statistical tie, not proof of a winner, when margins overlap.
Population Size
Population size (N) is the total number of individuals in the group you want to describe — all employees in a company, all customers in a CRM segment, all registered voters in a district, or all students in a faculty. When the population is finite and relatively small, a correction factor reduces the required sample compared with an infinite population formula.
For very large or unknown populations, you can enter 1,000,000 or more. Beyond this point, the required sample size changes very little because confidence level and margin of error have a much greater impact on the calculation. That is why researchers often use a large placeholder when surveying "the general public" or an open market — the calculator stabilizes, and your focus should shift to confidence, error, and response quality rather than debating whether N is 2 million or 20 million.
Response Distribution
Response distribution (p) is the expected proportion of responses in the category you are measuring — for example, the share who agree, purchase, or recognize a brand. When you do not know this proportion in advance, statisticians use p = 0.50 because it maximizes variance p(1−p) and produces the most conservative (largest) sample size estimate. If you expect 80% approval based on prior data, entering 80% in advanced settings yields a smaller required sample because less variability is assumed.
This survey sample size calculator defaults to 50% response distribution so first-time users receive a safe, conservative estimate. Adjust p only when you have credible prior evidence — pilot studies, industry benchmarks, or historical campaign data — and understand that an incorrect assumption can leave you underpowered if actual variance is higher than expected.
From Calculation to Fieldwork
Knowing your target number is step one; reaching qualified respondents is step two. After you calculate sample size, build your questionnaire in a Survey Builder, run quick pulse checks with a Poll Maker, or field a full study through the Audience Panel when you need verified participants matched to demographic and professional filters. For segmentation studies and concept tests, pair your sample size target with a structured Market Research Solution workflow so every response contributes to statistically defensible conclusions.
Whether you need a market research sample size calculator for brand tracking, a sample size calculator for students working on academic projects, or a sample size calculator for surveys inside your organization, the same inputs drive the math. Define population, confidence, margin of error, and (optionally) expected response distribution — then collect at least that many completed, valid responses before drawing conclusions.
Sample Size Formula Explained
The sample size formula below powers this calculator. It follows standard survey statistics used in market research, social science, and polling.
Initial Sample Size Formula
Before adjusting for a finite population, the initial sample size n₀ is calculated as:
- Z = Z-score for your chosen confidence level (1.645 at 90%, 1.960 at 95%, 2.576 at 99%)
- p = Response distribution — the expected proportion in the measured category (0.50 when unknown)
- e = Margin of error expressed as a decimal (5% → 0.05)
In plain terms: higher confidence raises Z, which raises required sample size. A smaller margin of error (more precision) also increases n₀ because e appears in the denominator squared — halving your margin of error roughly quadruples the sample needed. Response distribution affects sample size through p(1−p), which peaks at 0.25 when p = 0.50, making 50% the conservative default when you lack prior data.
Finite Population Correction
When your population N is known and not extremely large, apply the finite population correction:
- n₀ = Initial sample size from the formula above
- N = Population size — total members of the group being studied
This adjustment reflects that sampling without replacement from a small pool reduces variance compared with sampling from a vast population. For example, surveying 200 employees out of 250 requires fewer responses than surveying 200 people from a national consumer base of millions — because each additional respondent represents a larger share of the finite group. As N grows toward very large values, the correction factor approaches 1 and n converges toward n₀.
This sample size calculator applies both steps automatically: it computes n₀ from your confidence level, margin of error, and response distribution, then adjusts for population size when N is provided. The result is rounded up to the nearest whole number because you cannot collect a fraction of a respondent.
Sample Size Calculator Summary
Concise answers to the most common sample size questions — designed for quick scanning by researchers and AI search systems.
What is sample size?
Sample size is the number of completed survey responses needed for results to represent a target population within a stated margin of error and confidence level.
Why is sample size important?
Correct sample size balances statistical reliability with cost — too few responses produce unreliable estimates; too many waste budget without improving precision.
How is sample size calculated?
Sample size uses n₀ = (Z² × p × (1−p)) / e², then adjusts for finite population N. Inputs are confidence level, margin of error, response distribution, and population size.
What is a good sample size for a survey?
There is no universal number — a good sample size depends on population, desired precision, and confidence. Use a calculator rather than rules of thumb.
What confidence level should I use?
95% is standard for most business and academic surveys. Use 99% for high-stakes decisions and 90% when budget constraints require a smaller sample.
Frequently Asked Questions
Take control of your data.
Pair the right sample size with the right audience, and every response you collect contributes to statistically significant, actionable insights.
