Skip to content
Free Research Tool + Guide

Sample size & statistical significance calculator.

A free sample size calculator and statistical significance calculator for researchers, students, and survey teams. Work out how many participants you need, or test whether a difference between two groups is real using a p-value. It runs entirely in your browser — nothing is uploaded — and the guide below explains every number so you can report it with confidence.

Research Statistics Calculator

Plan your study or check your results. Work out the sample size you need, or test whether a difference between two groups is statistically significant.

Runs entirely in your browser — nothing you enter is uploaded or stored.

Required sample size

Method & assumptions

Need a statistician to run or verify your analysis? Talk to our data-analysis team.

What it does

One tool for the two calculations researchers need most.

Whether you’re designing a study or writing up results, this covers sample-size planning and significance testing in one place.

n

Sample size calculator

Find the number of participants you need to estimate a proportion or mean, or to compare two groups with enough statistical power.

p

Significance calculator

Compare two proportions (a z-test) or two means (Welch's t-test) and get a two-sided p-value, confidence interval, and effect size.

%

Margin of error & power

Set your confidence level, margin of error, and statistical power, and the calculator handles the maths behind them.

Sample size

How to calculate the sample size for a study

Your sample size is the number of people (or items) you need to measure so your results are precise enough to trust. Too few, and your findings are unreliable; too many, and you waste time and money. The right number depends on three things: how confident you want to be, how precise (your margin of error), and how much natural variation there is in what you’re measuring.

The sample size formula (estimating a proportion)

To estimate a single percentage — such as "what proportion of students agree?" — the standard formula is:

n = z² · p(1 − p) / e²
where z is the critical value for your confidence level (1.96 for 95%), p is your expected proportion, and e is your margin of error. When you’re unsure of p, use 50% (0.5) — it gives the largest, safest sample size.

Worked example

You want to estimate a proportion to within ±5% at 95% confidence, and you're unsure of p, so you use 50%.
n = 1.96² × 0.5 × 0.5 / 0.05² = 3.8416 × 0.25 / 0.0025 = 385 participants.

Sample size for a mean

If you're estimating an average (a mean) rather than a percentage, the formula uses the standard deviation (σ) instead of p(1−p):

n = (z · σ / e)²
Take σ from a pilot study or the published literature. The calculator’s Estimate one mean design does this for you.
Quick reference

Sample size for a survey (95% confidence)

A ready reckoner for the most common question — how many people should I survey? These use a 50% expected proportion (the safest assumption) and a large or unknown population.

Margin of errorSample size (95% confidence)What it means
±10%97Rough, quick pulse-check
±7%196Small survey, broad findings
±5%385The usual standard for surveys
±3%1,068Higher precision (e.g. polling)
±2%2,401Very precise estimates
±1%9,604National-scale precision
Tip: for a known, smaller population, the calculator applies a finite-population correction, which lowers these numbers. For example, ±5% at 95% confidence for a population of 5,000 drops from 385 to about 357.

Confidence level and z-value

Your confidence level sets the z-value in the formula. Higher confidence needs a larger sample:

Confidence levelz-valueCommon use
80%1.28Exploratory work
90%1.645Lower-stakes estimates
95%1.96The academic standard
99%2.576High-stakes / clinical

Sample size to compare two groups (power analysis)

When you're comparing two groups — a treatment vs a control, for example — sample size also depends on statistical power: the chance your study detects a real effect if one exists. The convention is 80% power, with 90–95% used for higher-stakes studies. Bigger differences are easier to detect and need fewer participants; small differences need many more.

Worked example

To detect a difference between 30% and 50% at 95% confidence with 80% power, you need about 93 participants per group (≈186 in total). Halve the gap you're trying to detect and the required sample roughly quadruples — which is why realistic effect sizes matter so much.

Use the calculator’s Compare two proportions or Compare two means designs (on the Sample size tab) to get the exact per-group number for your study.
Significance

Statistical significance and p-values, explained

Once you have results, a significance test tells you whether the difference you found is likely real or just chance. The key output is the p-value.

What is a p-value?

A p-value is the probability of seeing a difference at least as large as yours if there were really no difference between the groups. A small p-value means your result would be unlikely by chance alone, so you have evidence of a real effect.

How to tell if a result is statistically significant

Compare the p-value to your significance level (alpha, α — usually 0.05):

p-valueVerdict (at α = 0.05)Interpretation
p < 0.01Statistically significantStrong evidence of a real difference
p < 0.05Statistically significantEvidence of a real difference
p ≥ 0.05Not significantNot enough evidence to conclude a difference

Worked example

Group 1: 45 of 100 (45%). Group 2: 30 of 100 (30%). A two-proportion z-test gives p = 0.0285. Because 0.0285 is below 0.05, the difference is statistically significant at the 95% level — with a 15-percentage-point difference and a 95% confidence interval of roughly 1.7 to 28.3 points.

The calculator’s Significance test tab runs a two-proportion z-test (for counts) or Welch’s t-test (for means from summary data), and reports the p-value, the confidence interval for the difference, and the effect size.
Effect size

Effect size: how big is the difference?

A p-value tells you whether a difference exists; an effect size tells you how big and how meaningful it is. Journals increasingly ask for both. For comparing two means, the common measure is Cohen’s d:
Cohen's dInterpretation
0.2Small effect
0.5Medium effect
0.8Large effect
For proportions, the equivalent is Cohen’s h. The calculator reports the appropriate effect size with every significance test and two-group sample-size calculation, so you can report it alongside your p-value.
Avoid these

Common sample size & significance mistakes

Confusing "not significant" with "no effect."

Confusing "not significant" with "no effect." A non-significant result often just means your sample was too small to detect a real difference.

Forgetting power when comparing groups.

A margin-of-error sample size isn't enough to compare two groups — you also need to plan for statistical power.

Reporting only the p-value.

Always report the effect size and a confidence interval too, so readers know how big the difference is.

Ignoring dropout.

Recruit more than the minimum so that missing data and withdrawals don't leave you underpowered.

Need the analysis run, checked, or written up?

This calculator handles the quick numbers. If you'd like a statistician to run your full analysis, or an editor to make sure the results read clearly in your manuscript, our team can help — no pressure, just here if you need it.

Glossary

Key statistics terms in plain English

Sample size (n)

The number of participants or observations in your study.

Confidence level

How sure you want to be that your interval contains the true value (e.g. 95%).

Margin of error

How far your estimate may reasonably be from the true value (e.g. ±5%).

p-value

The probability of your result (or a bigger one) if there were no real difference.

Significance level (α)

Your cut-off for calling a result significant — usually 0.05.

Statistical power

The chance of detecting a real effect if one exists — usually set at 80%.

Effect size

How large the difference is (e.g. Cohen's d), independent of sample size.

Confidence interval

A range that likely contains the true difference or value.

FAQs

Sample size & significance

How do I calculate the sample size for my study?

Pick your study design, then enter your confidence level, margin of error (or the effect you want to detect), and expected values. For estimating one proportion the formula is n = z² · p(1 − p) / e². The calculator does this for you and returns the number of participants you need.

What sample size do I need for a survey?

At 95% confidence with a ±5% margin of error and a large or unknown population, you need about 385 respondents. Tighter margins need more: ±3% needs about 1,068 and ±1% needs about 9,604. Use the “Estimate one proportion” design to adjust for your exact confidence, margin, and population size.

How do I know if a result is statistically significant?

Run a significance test and compare the p-value to your significance level (alpha, usually 0.05). If the p-value is below alpha, the result is statistically significant; if it’s equal to or above alpha, it isn’t. The calculator returns the p-value, the verdict, a confidence interval, and an effect size.

What is a p-value in simple terms?

A p-value is the probability of seeing a difference at least as large as yours if there were really no difference between the groups. A small p-value (typically below 0.05) suggests the difference is unlikely to be due to chance alone.

What is statistical power, and why 80%?

Power is the chance your study detects a real effect if one exists. 80% is the common minimum — an 80% chance of finding a true effect. Higher power (90–95%) needs a larger sample. The calculator lets you set power when comparing two groups.

What's the difference between a z-test and a t-test?

Use a z-test to compare two proportions (counts), and a t-test to compare two means. This calculator uses Welch’s t-test for means, which doesn’t assume the two groups have equal variances — the safer, more robust choice.

Is this statistics calculator free and private?

Yes. It’s completely free with no sign-up, and it runs entirely in your browser — nothing you enter is uploaded or stored anywhere.

Can someone check or run my statistical analysis for me?

Yes. This tool gives quick estimates, but for a full analysis or an independent check of your results and reporting, our data-analysis team can run or verify your statistics, and our scientific editors can make sure they read clearly in your manuscript.

From numbers to a publication-ready manuscript

Use the calculator as often as you like. When you’re ready to run, verify, or write up your analysis, ManuscriptLab’s statisticians and editors are here to help.

Get a Custom Quote

Tell us a bit about your project and we’ll get back to you within 24 hours.