Sample Size Calculator

Determine the ideal sample size for your survey or research.

Last Updated:

Sample Size Formula (Cochran's Formula)

Cochran's formula allows you to calculate an ideal sample size given a desired level of precision, desired confidence level, and the estimated proportion of the attribute present in the population.

n_0The required sample size
ZThe Z-value found in a Z-table (e.g., 1.96 for 95% confidence)
pThe estimated proportion of the population (often 0.5 for maximum variability)
q1 - p
eThe desired margin of error (e.g., 0.05 for 5%)

Manual Step: Calculating Sample Size for an Unknown Population

Let's find the required sample size for a 95% confidence level (Z = 1.96) and a 5% margin of error (e = 0.05), assuming maximum variability (p = 0.5).

1
1. Identify Variables
Write down the known values.
Z=1.96, p=0.5, q=0.5, e=0.05
2
2. Multiply Proportions
Calculate the variance for the proportion.
3
3. Square Z and Error
Square the Z-score and the margin of error.
Z^2 = 3.8416, e^2 = 0.0025
4
4. Calculate Top
Multiply the squared Z-score by the proportion variance.
5
Result
Divide by the squared error. You need 385 people (always round up).

The sample size and margin of error tables print this calculator's answer for populations from 50 to unlimited at 90%, 95% and 99% confidence, show the reverse calculation (the margin of error a sample you already have gives you), and work a population of 400 by hand.

Frequently Asked Questions

What is a good sample size for a survey?
For a 5% margin of error and 95% confidence level, a sample size of around 385 is often sufficient for large populations.
What does confidence level mean?
The confidence level (e.g., 95%) represents how sure you can be that the results from your sample reflect the real population. A 95% confidence level means if you ran the survey 100 times, 95 times the results would be within the margin of error.
How do I calculate sample size for a small population?
For smaller populations (under 10,000), you can use the Finite Population Correction (FPC) to reduce the required sample size. Our calculator handles this automatically if you provide a population size.

Did you know?

For very large populations (over 100,000), the sample size requirement doesn't change much. That's why political polls can predict national results with just 1,000 respondents!

About the Sample Size

Determine the ideal sample size for your research survey. Adjust confidence levels and margin of error to get precise requirements.

Calculator methods and editorial structure reviewed July 11, 2026. Results are estimates; verify regulated rates, eligibility rules, and professional decisions with the cited primary source.

Important: Educational Purposes OnlyThe calculators, estimates, and financial formulas provided on CalculatorVillage.com are for informational and educational purposes only. They are not intended as certified financial planning, tax, legal, or investment advice. Actual rates, terms, and returns will vary. Always consult with a qualified professional before making significant financial decisions.