Sample Size Calculator

Before conducting a survey, experiment, or study, you need to determine how large your sample should be to achieve reliable results. Too small a sample gives inaccurate results; too large wastes resources. This calculator uses the standard formula based on your desired margin of error, confidence level, and estimated population proportion.

Sample Size Calculator Interactive Tool

Results

Enter values to see results

How to use this calculator

  1. Enter the total population size (or leave large for infinite).
  2. Enter your desired margin of error (e.g., 5 for ±5%).
  3. Select your desired confidence level.
  4. The minimum sample size is calculated.

The Formula

The mathematical logic powering this calculation is:

n = (z² × p × (1-p)) / e²
(for finite population: n_adjusted = n / (1 + (n-1)/N))

Worked Example

If you input:

  • Population Size: 10000
  • Margin of Error: 5
  • Confidence Level: 95%

Result:

Sample Size: 370 based on the provided inputs and the sample size formula.

Frequently Asked Questions

What margin of error should I use?

A margin of error of ±5% with 95% confidence is the most common standard in market research. For more precise needs (medical research, policy), ±3% or ±2% may be required.

How should I interpret the sample size result?

Use the result as a focused estimate based on the inputs shown in the calculator. If the calculation affects money, health, school records, or compliance work, verify the inputs and compare the result with the relevant official source.

Similar Calculators