Plan your research. Analyse your data.

Sample size, power analysis and hypothesis-testing calculators for researchers and graduate students. Exact methods, worked formulas and a paragraph you can adapt for your methods section.

H₀H₁
α (false positive) 5% β (miss) 39% power 61%

Two-sample t-test with 40 per group has 59.8% power to detect d = 0.50. For 80% power you need 64 per group.

Not sure which test or sample size you need?

Describe your study in plain words: what you compare or relate, how you measure it, and roughly how many people you can reach. The assistant suggests the analysis, the effect size to plan with and which calculator to open next.

0/2000 characters

Uses an AI model via Vercel AI Gateway. It only sees what you send here; check anything you publish.

What the slider above is showing

Every hypothesis test is a bet between two pictures of the world. The solid curve is what your test statistic looks like if there is no effect (H₀). The dashed curve is what it looks like if the effect you care about is real (H₁). The critical value is where you draw the line: anything beyond it counts as “significant”.

The coral slice is α, the chance of a false positive, which you fix in advance (usually 5%). The teal area is power, the chance of detecting a real effect. The grey area is β, the chance of missing it. Increasing the sample size narrows the sampling distributions, which in standardised units pushes H₁ further away from H₀, so power rises. That is the whole logic of a power analysis: pick the smallest effect worth detecting, pick α, and find the n that gets power to 80% or 90%.

Which calculator do I need?

Your questionDataUse
How many people should I survey?Proportion or mean, known populationSample size, Cochran
How many participants for my experiment?Planned test + expected effectPower analysis
Do two groups differ on a score?Continuous, 2 groupst-test
Do three or more groups differ?Continuous, 3+ groupsOne-way ANOVA
Are two categorical variables related?Counts in a tableChi-square
Do two measures move together?Two continuous variablesCorrelation
Is version B converting better than A?Two proportionsSignificance calculator

How the numbers are computed

Power for t-tests uses the exact noncentral t distribution; ANOVA and chi-square power use the noncentral F and χ² distributions, the same approach as G*Power (Faul et al., 2007). Correlation power uses Fisher's z transformation. Sample sizes for surveys follow Cochran (1977) with the finite population correction. Everything runs in your browser, so results appear as you type.