Sample size calculator

A precise, accessible tool for planning data collection by computing necessary sample size for proportions or means in surveys and experiments.

Tool coming soon!

We're working hard to get this tool ready for you.

Request Feature / Support
2,784+
Total Calculations Run
< 15ms
Browser Execution Speed
100%
Client-Side Privacy
4.9 / 5.0
User Satisfaction
AI Web Tool Generator

Build Your Own Custom Web Calculator in Seconds

Type what tool or calculator you need below. Our AI will build it instantly for your site.

Popular ideas:
100% FREE • No Credit Card Required

About This Tool

This tool computes the minimum sample size required for estimating proportions or means in a population, given key design parameters. It supports common scenarios in market research, academia, applied statistics, and product analytics. By handling both finite and infinite populations, it accommodates small target groups and large audiences alike. The calculator emphasizes reproducibility by exporting inputs and results for later audit and documentation.

Conceptually, it uses standard formulas: for proportions, n0 = (Z^2 p(1-p)) / E^2; for means, n0 = (Z^2 s^2) / E^2. If the population is finite, it applies the finite population correction n = n0 / (1 + (n0 - 1)/N). Optional design effects can scale the result to accommodate cluster sampling or weighting; non-response adjustments may increase the target sample. Defaults assume p=0.5 and a 95% confidence level.

Inputs include population size N, margin of error E (in percentage points), confidence level CL (percent), and either an estimated proportion p or a standard deviation s. Outputs present the recommended sample size n, the adjusted margin of error, and the impact of design choices. The tool clarifies the implications for survey timelines, budgets, and data quality.

Ideal users are researchers, students, marketers, and product teams planning surveys, interviews, or experiments. Unique value lies in explicit finite population handling, clear methodological notes, and straightforward sensitivity analysis. The tool emphasizes transparency: it shows formulas, assumptions, and reproducible results to support audit trails and methodological discussions.

How to Use

  1. Provide inputs: set population size N (leave blank for very large populations), margin of error E (in percentage points), confidence level CL (as a percent), and either estimated proportion p (0-
  2. or standard deviation s.
  3. Choose advanced options: enable finite population correction and set design effect DEFF if known.
  4. Run calculation: the tool computes the base n0, applies FPC and DEFF, and outputs the final recommended sample size.
  5. Review outputs: inspect n, effective margin of error, and any notes about assumptions.
  6. Export or save: copy inputs and results or export to CSV/JSON if supported.
How to use sample size calculator online

Frequently Asked Questions

Find Quick Answers

What is a sample size and why does it matter?
Sample size is the number of respondents or observations needed to estimate a population parameter with a specified precision. Larger samples reduce sampling error but increase cost and effort. This tool helps balance precision and resources by computing the minimum n for given margin of error and confidence level.
Does the calculator assume simple random sampling?
By default, the calculator uses the simple random sampling assumption. You can adjust for design effects to approximate cluster sampling or weighting. If you have a complex design, increase DEFF to reflect additional variance in estimates.
What if population size is unknown?
If N is unknown or very large, the infinite population formula is used and the finite population correction is omitted. The result is an approximate n suitable for planning when the sampling frame is not fixed or is variable over time.
How does design effect influence the result?
Design effect scales the baseline sample size to reflect clustering, stratification, or weighting that increases variance. A DEFF of 1.5 increases the required n by 50%, while DEFF = 1 implies no adjustment.

Need to run multiple calculations?

Create a free account today to unlock unlimited daily runs, access advanced parameters, save your history, and request custom features.

Register Free Account

Related Tools

Other useful calculators and utilities you might like

Mathematics

Spotify to MP3 Converter

Convert Spotify tracks and playlists to MP3 format instantly with our free online converter.

Mathematics

Road Distance Calculator

Calculate the driving distance and travel time between two addresses with our free online road dista...

Mathematics

Age Calculator

Calculate your exact age in years, months, and days from any birth date to any target date.

Mathematics

Currency Converter

Convert currencies instantly with real-time exchange rates and historical data support.

Your Feedback Matters

Help Us to Improve