Sample Size Calculator
Imagine you want to survey shoppers about a new product. You cannot ask every single person. This tool tells you exactly how many people you need to ask for trustworthy results.
What sample size actually means
You cannot always ask everyone a question. A whole city, a whole customer base, or a whole country is too big to survey one by one. So you ask a smaller group instead. Sample size is simply how many people that smaller group needs to be, so the answer you get is close to what you would have found by asking everyone.
n is the sample size you need.Z is a fixed number tied to your confidence level, such as 1.96 for 95%.p is the proportion you expect, usually 0.5 when you are not sure.e is your margin of error, written as a decimal.
If your population is small and known, one more step adjusts the number down. That step uses this formula.
N is your total population size. This step only matters when your population is small enough to count.
Two ideas worth understanding well
Confidence level
This is how sure you want to be that your results are correct. Think of it like a weather forecast. A 95% confidence level means that if you ran this survey 100 times, about 95 of those times the true answer would fall inside your result.
Margin of error
This is how much wiggle room your result has. If 60% of people say yes with a 5% margin of error, the true number is likely somewhere between 55% and 65%.
Why a smaller margin of error needs more people
A tighter margin of error means less room for guessing, so more responses are needed to earn that precision. Going from a 5% margin to a 3% margin can nearly triple your required sample size. This is one of the most common surprises people run into when planning a survey.
Frequently asked questions
Use 50%. It gives the largest, safest sample size, since this is the point where results are hardest to predict in advance.
Once a population is large enough, adding more people to it barely affects the sample size you need. That is why surveys for a city and a whole country can need a similar number of responses.
Yes, in a practical sense. A larger sample costs more time and money, even if the accuracy gained becomes smaller and smaller past a certain point.
This formula fits simple random surveys asking yes or no style questions. Studies with more complex designs may need extra adjustments beyond this tool.
Keep exploring your data with more free tools.
Try one of these calculators next.
