Sample Size Calculator for Studies, Surveys, and Experiments

This sample size calculator lets you quickly determine how many people or observations you need for a survey or experiment so your estimates reach a target margin of error at your chosen confidence level.

4.86/5 (1,388 ratings • 1,325 reviews)
Works for both proportions and means Built for stats students, researchers, and survey designers worldwide

Choose Your Sample Size Calculator Mode

Use the proportion mode when your outcome is a yes/no result (support vs do not support, pass vs fail). Use the mean mode when your outcome is a numeric value (test score, time, weight). This tool is built for common class projects, surveys, and thesis designs.

This sample size calculator uses standard large-sample formulas. For very small samples, rare events, clustered sampling, or complex experimental designs, consult a statistician or your advisor for a full power analysis.

Enter your confidence level, margin of error, and any population information, then click Calculate Sample Size to see how many observations you need.

How to Use This Sample Size Tool Step by Step

1

Pick Proportion vs Mean Mode

If your outcome is a binary survey response (support vs not, correct vs incorrect), use the proportion mode. If your outcome is numeric (test scores, time, weight, income), use the mean mode. Choosing the right mode makes sure the sample size formula matches your research design.

2

Enter Confidence Level and Margin of Error

Most studies use 95% confidence; high-stakes research sometimes uses 99%. The margin of error tells the calculator how precise your estimate should be. Smaller margins of error require larger sample sizes, especially in surveys with a wide variety of opinions.

3

Provide Proportion or Standard Deviation

In proportion mode, you provide an estimated proportion p. If you are unsure, set p to 50%, which is conservative. In mean mode, you provide an estimated standard deviation σ from pilot data or past research so the calculator can scale the formula to your outcome’s variability.

4

Optional: Add Population Size

If your population is not extremely large—say, less than 100,000 for a local program or specific cohort—enter it so the survey sample size tool can apply a finite population correction (FPC). This may reduce the required sample size, saving time and money without harming accuracy.

Core Sample Size Formulas Used by This Calculator

Scenario Formula (Infinite Population) Finite Population Correction
Proportion (Survey) n₀ = (Z² × p × (1 − p)) / E²
where Z = Z-score for confidence level, p = expected proportion, E = margin of error (as proportion).
n = (N × n₀) / (N + n₀ − 1)
where N = population size. If N is very large or unknown, we use n₀.
Mean (Numeric Outcome) n₀ = (Z² × σ²) / E²
where Z = Z-score, σ = standard deviation, E = margin of error in outcome units.
n = (N × n₀) / (N + n₀ − 1)
same finite population correction as in the proportion case.

Why Sample Size Calculation Matters More Than You Think

Under-powered studies waste time and funding. Over-powered studies waste money and participant goodwill. A well-designed sample size calculation helps you hit the sweet spot where your results are statistically meaningful without recruiting more people than you truly need. This tool is designed to make that trade-off visible even if you are new to research methods.

In classes, professors often throw formulas on a slide and expect you to translate them into a real design by hand. The sample size tool for survey and experiment on this page wraps those formulas in a friendly interface. By experimenting with different confidence levels, margins of error, and population sizes, you can see in real time how each choice pushes your sample size up or down.

Balancing Precision and Feasibility

Choosing a tiny margin of error might sound ideal, but it can push your required sample size from 200 to over 1,000 participants. The calculator shows you this jump instantly, helping you decide whether an ultra-small error bar is worth the added cost and recruitment time for your thesis or capstone project.

When to Use 50% in Proportion Mode

If you do not know the true proportion for a yes/no survey item, setting p = 0.5 (50%) in the proportion mode produces the largest possible variance and therefore the most conservative sample size. Once you have pilot data, you can plug in a more realistic p to see whether your required n drops.

Interpreting Standard Deviation for Means

For numeric outcomes, σ is the key driver of sample size. A exam score with σ = 5 may require far fewer students than a highly variable outcome with σ = 25. The mean mode lets you quickly compare sample sizes under different SD assumptions taken from textbooks, past cohorts, or pilot studies.

Sample Size Calculator FAQ

What does a sample size calculator actually compute?

This calculator takes your desired confidence level, margin of error, and an estimate of variability (p or σ) and returns the minimum number of observations needed so that your estimate is likely to be within that margin of error. It essentially inverts the usual confidence interval formulas.

Is this sample size calculator only for surveys?

No. The proportion mode is built for survey questions, but the mean mode works for numeric outcomes in lab experiments, educational studies, psychology projects, and more. As long as you can reasonably approximate normality, the formulas apply.

What confidence level should I use?

Many undergraduate projects use 95% confidence. If you are working on high-stakes or publishable research, 99% may be required. This tool will show you that raising confidence from 95% to 99% can substantially increase the needed sample size because the Z-score grows from about 1.96 to 2.576.

How do I choose a margin of error?

Ask yourself how much inaccuracy your stakeholders can tolerate. In a political poll, a ±3% margin might be necessary. In a classroom project, ±5% or ±10% may be acceptable. The smaller the margin, the larger the required sample size this tool will recommend.

What if I do not know the standard deviation for means?

Use pilot data, past classes, or published literature to get a rough guess. Alternatively, run the mean mode with several plausible σ values to see a range of required sample sizes. It is better to overestimate σ slightly than to pick a value that is far too small.

Why does the calculator ask for population size?

When your population is relatively small, such as all students in a program or all clients in a clinic, sampling a non-trivial fraction of them reduces uncertainty. The sample size calculation applies a finite population correction so you do not recruit more participants than necessary.

Can this sample size calculator handle power and effect size?

This tool focuses on precision-based sample size calculation using margin of error. Power and effect-size-based calculations for t-tests, ANOVA, or regression require additional assumptions. For class projects, precision-based approaches are usually sufficient; for publication-level work, combine this calculator with a power analysis tool or consult a statistician.

Do I need to adjust sample size for non-response in surveys?

Yes. This tool reports the number of completed responses required. If you expect only 50% of invited participants to respond, you should double the invitation count to reach your target number of completed questionnaires.

Is it okay if my actual sample is slightly larger than required?

Having a bit more data than the minimum is usually fine and can slightly increase precision. Just make sure you are not violating ethical or logistical constraints by oversampling. The calculator gives you a minimum; treat it as a sensible lower bound rather than a strict ceiling.

Can I use this for stratified or cluster sampling?

Not directly. Stratified and cluster designs often require design effects and more advanced adjustments. You can still use this tool to get a baseline per-stratum sample size, but talk to a statistician or methods professor before finalizing cluster-based sample sizes.

Does this calculator work for non-normal data?

The formulas assume large-sample normal approximations. For highly skewed distributions, rare events, or tiny samples, exact or simulation-based methods may be better. In practice, many survey and educational outcomes behave well enough for the large-sample sample size formula to be a good guide.

How should I cite this sample size calculator in my thesis?

In your methods section, you might write something like: “Sample size was determined using an online sample size calculator (TakeMyClassForMe, 2026) with a 95% confidence level and 5% margin of error.” Always follow your department’s citation style.

When Sample Size Calculations Get Messy, Get a Stats Partner

If your research design involves multiple groups, repeated measures, or complex survey sampling, a simple calculator is only the beginning. Instead of guessing, you can work with a statistics expert to build a proper power analysis and defend your choices in front of your supervisor or committee.

Our US-based tutors help students design, analyze, and write up quantitative projects across psychology, business, nursing, and education. Use the numbers from this sample size calculation as a starting point, then bring them to our team to confirm assumptions, refine your design, and avoid painful last-minute revisions.

Talk to a Statistics Specialist

EDUCATIONAL USE ONLY

This tool is meant for educational and planning purposes only.

It does not replace a full power analysis or professional statistical consulting. Always confirm sample size decisions with your advisor, committee, or a qualified statistician, especially for clinical or policy-sensitive research.

Need Help With Sample Size or Statistics?

Get a custom quote from a US-based tutor to review your design and calculations.