Calculators PlanetCalculators Planet
HomeFinancialMathHealthOtherBlogAboutContact
Calculators PlanetCalculators Planet

Fast, accurate, and user-friendly online calculators for all your needs.

Financial

  • Mortgage Calculator
  • Amortization Calculator
  • Mortgage Payoff Calculator
  • House Affordability Calculator
  • Rent Calculator

Math

  • Decimal to Fraction Calculator
  • Significant Figures Calculator
  • Percentage Calculator
  • Fraction Calculator
  • Ratio Calculator

Health

  • BMI Calculator
  • Ideal Weight Calculator
  • Body Fat Calculator
  • Calorie Calculator
  • Macro Calculator

Other

  • Age Calculator
  • Date Calculator
  • Time Calculator
  • Hours Calculator
  • Time Card Calculator

2026 Calculators Planet. All rights reserved.

BlogAboutContactPrivacy PolicyCookie PolicyTerms of ServiceDisclaimer
Calculators PlanetCalculators Planet
HomeFinancialMathHealthOtherBlogAboutContact
HomeMathSample Size Calculator

Sample Size Calculator

Calculate the minimum number of survey responses or study participants needed for statistically valid results. Supports proportion and mean estimation with finite population correction.

Share:
Survey Settings
95%

Enter as a percentage, e.g. 5 for ±5%

Leave blank if the population is very large or unknown

Results

Required Sample Size

385

Confidence Level

95%

Z-score

1.96

Margin of Error

±5%

Interpretation

You need at least 385 respondents to be 95% confident your results are within ±5% of the true population value.

What Is a Sample Size Calculator?

Dr. Patel, an epidemiologist at Johns Hopkins, is designing a study to estimate what percentage of adults in Baltimore have received a flu vaccine this season. She cannot survey all 575,000 adult residents. Instead, she needs a sample large enough to produce a statistically reliable estimate. She wants 95% confidence with a 3% margin of error. The calculator tells her she needs 1,067 completed responses. Without this number, she would be guessing. Too few responses and her conclusions could be wrong. Too many and she wastes time and money.

When conducting a survey, experiment, or study, you rarely have the resources to collect data from every member of a population. Instead, you collect data from a subset called a sample. The sample size calculator tells you the minimum number of people or observations you need so that your results are statistically reliable and representative of the whole population. This tool is used by researchers, marketers, pollsters, and data analysts to ensure their conclusions are valid before investing in data collection. For calculating confidence intervals from collected data, use our Confidence Interval Calculator.

What This Calculator Does

Select whether you are estimating a proportion (like a yes/no survey response) or a mean (like average spending). Enter your desired confidence level, margin of error, and optionally your known population size.

Inputs Required

  • Mode: Proportion (percentages) or Mean (averages)
  • Confidence level: How certain you want to be (80%, 90%, 95%, 99%)
  • Margin of error: The acceptable range of error in your results
  • Standard deviation: Required for mean mode. Use a prior study or pilot data
  • Population size: Optional. If known, applies the finite population correction

Outputs Provided

  • Required sample size: The minimum number of responses needed
  • Z-score used: The critical value corresponding to your confidence level
  • Interpretation: Plain English explanation of what the result means

How the Calculation Works

The sample size formula for a proportion uses the worst-case assumption that the true proportion is 50%, which maximizes the required sample size and ensures you are never under-powered.

Proportion: n = (Z^2 x p x (1 - p)) / e^2

Mean: n = (Z^2 x sigma^2) / e^2

Finite population correction: n_adj = n / (1 + (n - 1) / N)

Where Z is the z-score for the chosen confidence level (1.96 for 95%), p is the estimated proportion (0.5 for worst case), e is the margin of error, sigma is the population standard deviation, and N is the known population size. For understanding z-scores, try our Z-score Calculator.

When you provide a known population size, the finite population correction (FPC) reduces the required sample size because smaller populations require less sampling to achieve the same precision. For example, 385 responses needed for an infinite population drops to approximately 323 when the population is 2,000, and to 218 when the population is 500.

How to Use the Calculator

  1. Choose Proportion for surveys with yes/no or categorical answers, or Mean for numerical measurements
  2. Select your desired confidence level. 95% is the standard in most research
  3. Enter your acceptable margin of error. 5% is common for general surveys
  4. If using Mean mode, enter an estimated standard deviation from prior research or a pilot study
  5. Optionally enter the total population size to apply the finite population correction
  6. Read the required sample size and collect at least that many responses

Example Calculations

Example 1: Dr. Patel from Johns Hopkins wants to estimate flu vaccination rates in Baltimore with 95% confidence and a 3% margin of error. Population size is unknown (treated as infinite). Z = 1.96, p = 0.5, e = 0.03. n = (1.96^2 x 0.5 x 0.5) / 0.03^2 = 1,067. She needs 1,067 completed surveys. If she expects a 40% response rate, she must contact at least 2,668 people.

Example 2: Marcus, a product manager at a SaaS company in Denver, wants to survey 2,000 existing customers about a new feature. He wants 95% confidence with a 5% margin of error. The base sample size is 385. With FPC for N = 2,000: n_adj = 385 / (1 + (385 - 1) / 2000) = approximately 323. He needs 323 completed responses, not 385.

Example 3: Jennifer, a clinical researcher at Mayo Clinic, is measuring average blood pressure reduction from a new treatment. Prior studies show a standard deviation of 12 mmHg. She wants to detect a change of 5 mmHg at 95% confidence. n = (1.96^2 x 12^2) / 5^2 = approximately 23 participants per group. She verifies her statistical power using our Statistics Calculator.

Real World Scenarios

Market Research Survey

Marcus from Denver wants to know if 50% or more of potential customers would pay $15 per month for his product. He needs 95% confidence with a 5% margin of error. The calculator shows 385 responses. He launches an online survey and stops collecting once he hits that number. If he wants tighter precision at 3% margin of error, the requirement jumps to 1,067, illustrating the tradeoff between precision and cost.

Clinical Trial Planning

Jennifer from Mayo Clinic is measuring the average blood pressure reduction from a new treatment. Using prior study data showing a standard deviation of 12 mmHg and wanting to detect a change of 5 mmHg at 95% confidence, the calculator determines she needs approximately 23 participants per group. For a more conservative 3 mmHg detection threshold, the requirement rises to approximately 62 per group. She uses this to budget her trial costs.

Political Polling

A pollster wants to estimate voting intent for a candidate with a 3% margin of error at 99% confidence. The required sample size is approximately 1,849, compared to 1,067 at 95% confidence. This illustrates the significant cost of higher confidence. Most national political polls use 95% confidence with 3% to 4% margin of error, requiring 600 to 1,067 respondents.

Common Mistakes to Avoid

  • Confusing response rate with sample size: If you expect only 30% of people to respond, you need to contact far more people than the required sample size. Divide the required sample by the expected response rate to find how many to contact. For 385 responses at 30% response rate, contact at least 1,284 people.
  • Using a margin of error that is too large: A 10% margin of error means your results could be off by 10 percentage points. If you are measuring a 52% to 48% split, a 10% margin makes the result meaningless. Most professional surveys use 3% to 5%.
  • Ignoring non-response bias: Even with the right sample size, if certain groups are less likely to respond, your results may not represent the population. Younger respondents, for example, are harder to reach by phone. Weighting adjustments can help correct for this after data collection.
  • Applying the FPC incorrectly: Only apply the finite population correction when you know the total population size and your sample is more than 5% of that population. Applying it with an unknown or very large population does not change the result meaningfully.

Limitations of This Calculator

This calculator assumes simple random sampling, where every member of the population has an equal chance of being selected. It does not account for stratified sampling, cluster sampling, or other complex survey designs that require different sample size formulas. The proportion mode uses the worst-case assumption of p = 0.5, which maximizes the required sample size. If you have prior data suggesting a different proportion, the actual required sample size may be smaller. The mean mode requires an estimated standard deviation, which is often unknown before data collection. This calculator does not perform power analysis for hypothesis testing, which requires additional inputs like effect size and significance level. For related tools, try our Confidence Interval Calculator, Z-score Calculator, or Statistics Calculator.

Authoritative Research and Resources

  • Australian Bureau of Statistics: Sample Size Calculator Help provides a detailed explanation of confidence levels, margins of error, proportions, and the finite population correction. It includes worked examples and explains how to account for non-response when determining how many people to contact.
  • BLS: Sample Design Handbook documents how the Bureau of Labor Statistics designs its national surveys, including the Current Population Survey and the Consumer Expenditure Survey. It covers stratified sampling, cluster sampling, and sample weighting methods used in large-scale federal data collection.
  • CDC: National Health Interview Survey is an example of a large-scale federal survey that uses complex sample design. The NHIS documents its sample size calculations, weighting procedures, and response rate adjustments, providing a real-world reference for how professional survey research handles the challenges this calculator simplifies.

Frequently Asked Questions

What confidence level should I use?
95% is the standard confidence level in most research, meaning that if you repeated your survey 100 times, 95 times the true population value would fall within your margin of error. Use 99% for high-stakes research where errors are costly, such as clinical trials or regulatory studies. Use 90% for exploratory research where you need a rough estimate and want to minimize sample size. Higher confidence levels require larger samples. Moving from 95% to 99% confidence with a 5% margin of error increases the required sample from 385 to 666.
What margin of error should I choose?
The margin of error is the range within which you expect your result to deviate from the true population value. A 5% margin of error means your result could be 5 percentage points above or below the true value. Most professional surveys use 3% to 5%. For a 52% to 48% election poll, a 5% margin means the true split could be anywhere from 57% to 43%, so tighter margins like 3% are preferred for close races. Smaller margins require exponentially larger samples: reducing the margin from 5% to 1% increases the required sample from 385 to 9,604.
What is the finite population correction and when do I use it?
The finite population correction (FPC) reduces the required sample size when your population is small and known. Without FPC, the formula assumes an infinite population. When you survey a significant fraction of a small population, each additional response provides more information than it would in a large population. For example, 385 responses needed for an infinite population drops to approximately 323 when the population is 2,000, and to 218 when the population is 500. Apply the FPC when your sample is more than 5% of the total population.
What is the difference between proportion and mean mode?
Use proportion mode when your survey asks yes/no questions or measures percentages, such as 'what percentage of customers are satisfied?' The formula uses p = 0.5 as the worst-case scenario, which maximizes the required sample size. Use mean mode when you are measuring a numerical average, such as 'what is the average amount customers spend per month?' Mean mode requires an estimated standard deviation, which you can obtain from prior studies, pilot data, or a reasonable guess based on the expected range of values.
How do I account for non-response in my survey?
The sample size calculator tells you how many completed responses you need, not how many people to contact. If you expect a 30% response rate and need 385 responses, you must contact at least 385 / 0.30 = 1,284 people. Non-response can also introduce bias if certain groups are less likely to respond. The Australian Bureau of Statistics recommends dividing the required sample size by the expected response rate and adding a buffer for incomplete or invalid responses.
Does this calculator work for stratified or cluster sampling?
No. This calculator assumes simple random sampling, where every member of the population has an equal chance of being selected. Stratified sampling (dividing the population into subgroups and sampling each separately) and cluster sampling (sampling groups rather than individuals) require different formulas that account for within-group and between-group variance. The BLS Sample Design Handbook provides guidance on these complex designs. For most general surveys, simple random sampling formulas provide a good starting estimate.
Why does the calculator use p = 0.5 for proportions?
Setting p = 0.5 produces the maximum possible sample size because p x (1 - p) reaches its maximum value of 0.25 when p = 0.5. This conservative approach ensures your sample is large enough regardless of the true proportion. If prior data suggests the true proportion is closer to 0.3 or 0.7, the required sample size decreases. For example, at 95% confidence and 5% margin of error, p = 0.5 requires 385 responses, while p = 0.3 requires only 323. Using 0.5 guarantees you will not be under-powered.

Related Calculators

Confidence Interval Calculator

Calculate confidence intervals for your results

Z-score Calculator

Calculate z-scores and standard normal probabilities

Statistics Calculator

Compute descriptive statistics for a data set

Embed This Calculator

Sample Size Calculator

Calculate
Reset
Calculators PlanetCalculators Planet

Fast, accurate, and user-friendly online calculators for all your needs.

Financial

  • Mortgage Calculator
  • Amortization Calculator
  • Mortgage Payoff Calculator
  • House Affordability Calculator
  • Rent Calculator

Math

  • Decimal to Fraction Calculator
  • Significant Figures Calculator
  • Percentage Calculator
  • Fraction Calculator
  • Ratio Calculator

Health

  • BMI Calculator
  • Ideal Weight Calculator
  • Body Fat Calculator
  • Calorie Calculator
  • Macro Calculator

Other

  • Age Calculator
  • Date Calculator
  • Time Calculator
  • Hours Calculator
  • Time Card Calculator

2026 Calculators Planet. All rights reserved.

BlogAboutContactPrivacy PolicyCookie PolicyTerms of ServiceDisclaimer