Sample Size Calculator - Determine Required Sample Size

Calculate the required sample size for surveys, research studies, and statistical analysis with confidence levels and margins of error.

Updated: November 2025 • Free Tool

Sample Size Calculator

Leave blank or enter 0 for infinite/very large populations

Typical values: 3%, 5%, or 10%

Use 0.5 for maximum variability (most conservative)

Results

Required Sample Size
0
Confidence Level 95%
Margin of Error ±5%
Z-Score 1.96
Response Rate -

What is a Sample Size Calculator?

A Sample Size Calculator is a statistical tool that determines how many participants or observations you need in a study to achieve statistically valid results. This calculator uses established statistical formulas to ensure your sample is large enough to represent the population accurately while minimizing unnecessary data collection costs and time.

Sample size calculation is fundamental to research design, survey methodology, and quality control. Collecting too few responses leads to unreliable results that cannot be generalized to the population, while collecting too many wastes resources without improving statistical validity significantly. This calculator helps you find the optimal balance based on your desired confidence level and acceptable margin of error.

This calculator is essential for:

  • Market Researchers - Determining survey sample sizes for customer satisfaction studies, product testing, and market analysis with statistically valid results.
  • Academic Researchers - Planning research studies, dissertations, and experiments with appropriate sample sizes to ensure publishable results and valid conclusions.
  • Quality Control Specialists - Calculating inspection sample sizes for manufacturing processes, product testing, and acceptance sampling to maintain quality standards.
  • Survey Designers - Planning polls, questionnaires, and feedback collection with the right number of respondents to achieve reliable insights.
  • Data Scientists - Determining training and testing dataset sizes for machine learning models and statistical validation procedures.
  • Healthcare Professionals - Designing clinical trials and medical studies with adequate participant numbers for statistically significant findings.

For analyzing your collected data, use our mean median mode range calculator to understand central tendencies and distribution.

To evaluate statistical significance of your results, our p-value calculator helps determine if findings are statistically meaningful.

For calculating averages from your sample data, try our average calculator for quick mean calculations.

How This Calculator Works

The calculator uses the standard sample size formula for proportions:

For Infinite Populations:
n = (Z² × p × (1-p)) / E²

Where:
• n = Required sample size
• Z = Z-score for confidence level
• p = Population proportion (0.5 for max variability)
• E = Margin of error (as decimal)
For Finite Populations:
n_adjusted = n / (1 + ((n - 1) / N))

Where:
• n = Initial sample size from above formula
• N = Population size
This correction reduces required sample size for smaller populations.
Z-Scores by Confidence Level:
• 90% confidence: Z = 1.645
• 95% confidence: Z = 1.96
• 99% confidence: Z = 2.576

The calculation process:

  • Step 1: Convert margin of error from percentage to decimal (5% = 0.05)
  • Step 2: Select appropriate Z-score based on confidence level
  • Step 3: Calculate base sample size using the infinite population formula
  • Step 4: Apply finite population correction if population size is specified
  • Step 5: Round up to ensure adequate sample size

The proportion (p) defaults to 0.5, which provides the most conservative (largest) sample size estimate. If you know the expected proportion from prior studies, you can adjust it for a more precise calculation.

Key Concepts Explained

Confidence Level

The probability that your sample accurately represents the population. 95% confidence means if you repeated the study 100 times, 95 would produce results within your margin of error. Higher confidence requires larger samples.

Margin of Error

The range of uncertainty in your results, expressed as ±%. A 5% margin means if your sample shows 60% agreement, the true population value is likely between 55% and 65%. Smaller margins require larger samples.

Population Proportion

The expected percentage of the population with a characteristic. Using 0.5 (50%) assumes maximum variability and gives the most conservative sample size. Known proportions from prior research allow smaller samples.

Z-Score

A statistical value representing standard deviations from the mean for your chosen confidence level. Z = 1.96 for 95% confidence is most common. Higher Z-scores (like 2.576 for 99%) increase required sample size.

Finite Population Correction

An adjustment reducing required sample size when sampling from small populations. When your sample exceeds 5% of the population, this correction prevents oversampling while maintaining statistical validity.

Response Rate

The percentage of people who complete your survey. If you expect a 50% response rate and need 385 responses, you must contact 770 people. Always account for non-response in your planning.

How to Use This Calculator

1

Enter Population Size

Input total population size if known and finite. Leave blank or enter 0 for very large or unknown populations (treats as infinite).

2

Select Confidence Level

Choose 90%, 95%, or 99%. Use 95% for most research (standard practice). Choose 99% for critical decisions requiring higher certainty.

3

Set Margin of Error

Enter acceptable error percentage (typically 3%, 5%, or 10%). Smaller margins need larger samples but give more precise results.

4

Set Population Proportion

Enter expected proportion (0.5 is default for maximum variability). Use known values from prior studies if available for more efficient sampling.

5

Calculate Sample Size

Click 'Calculate' to get your required sample size. The result is the minimum number of responses needed for statistical validity.

6

Adjust for Response Rate

Multiply by response rate to determine total contacts needed. If expecting 50% response and need 385 responses, contact 770 people.

Benefits of Using This Calculator

  • Statistical Validity: Ensures your research meets academic and professional standards with mathematically sound sample sizes based on established statistical formulas used worldwide.
  • Cost Efficiency: Prevents oversampling that wastes time and money while avoiding undersampling that produces unreliable results requiring costly re-surveys.
  • Flexible Parameters: Adjust confidence levels (90%, 95%, 99%) and margins of error to match your specific research needs, budget constraints, and accuracy requirements.
  • Finite Population Correction: Automatically applies correction for small populations, preventing unnecessarily large sample sizes when surveying limited groups.
  • Research Planning: Helps plan budgets, timelines, and resource allocation by knowing exact participant numbers needed before starting data collection.
  • Publication Ready: Calculates sample sizes that meet journal publication requirements and institutional review board standards for research approval.
  • Educational Tool: Demonstrates the relationship between confidence levels, margins of error, and sample sizes, helping students understand statistical concepts practically.

Factors That Affect Your Results

  • Confidence Level Choice: Higher confidence (99% vs 95%) increases required sample size significantly. Moving from 95% to 99% confidence can increase sample needs by over 70%.
  • Margin of Error Precision: Reducing margin of error from 5% to 3% dramatically increases sample size. Halving the margin roughly quadruples the required sample due to squared relationship.
  • Population Variability: Using p = 0.5 assumes maximum variability (most conservative). If you know the expected proportion is closer to extremes (0.1 or 0.9), smaller samples suffice.
  • Population Size Effect: For populations under 20,000, finite population correction reduces required sample size. The smaller the population, the greater the reduction in required sample.
  • Expected Response Rate: Low response rates require contacting more participants. A 30% response rate means contacting over 3 times your calculated sample size to get sufficient responses.
  • Stratification Needs: If analyzing subgroups separately, each subgroup needs adequate sample size. A study analyzing results by age groups requires sufficient participants in each age category.
Sample Size Calculator - Free online calculator for determining required sample size for surveys and research with confidence levels and margin of error
Professional sample size calculator interface for research and survey planning. Features include confidence level selection, margin of error settings, finite population correction, and mobile-friendly design for statistical analysis.

Frequently Asked Questions

What is sample size in statistics?

Sample size is the number of observations or participants included in a study. It determines how many people or data points you need to collect to achieve statistically valid results that can be generalized to a larger population with a specified level of confidence.

How do you calculate required sample size?

Sample size is calculated using the formula: n = (Z² × p × (1-p)) / E², where Z is the z-score for confidence level, p is the population proportion (0.5 for maximum variability), and E is the margin of error. For finite populations, apply a correction factor.

What confidence level should I use for my survey?

The most common confidence level is 95% (z-score = 1.96), meaning you can be 95% confident the true population parameter lies within your margin of error. Use 90% for less critical decisions or 99% for high-stakes research requiring greater certainty.

What is margin of error in sample size calculation?

Margin of error (also called confidence interval) represents how much your sample results might differ from the true population value. A 5% margin of error means your results could be plus or minus 5 percentage points from the actual population value.

Does sample size depend on population size?

For large populations (over 20,000), population size has minimal effect on required sample size. For smaller populations, a finite population correction is applied, reducing the required sample size. The reduction becomes more significant as the sample represents a larger fraction of the population.