Statistics calculators

Free calculators for the tests and effect sizes most often reported in research papers. Each one shows the working, warns when an assumption is doubtful, and gives a sentence in APA style to paste into your results section. Every calculation runs in your browser and is checked against SciPy and statsmodels.

Which test do I need?

Choosing a statistics calculator by research question
Your questionWhat you haveUse
Do two group means differ?Means and SDs, or raw valuesIndependent t-test (Welch)
Did the same people change between two measurements?Paired values or the mean and SD of the differencesPaired t-test
Are two categorical variables associated?A table of countsChi-square test of independence
Same question, but with small counts in a 2 × 2 tableFour counts, an expected count below 5Fisher’s exact test
Do observed counts match expected proportions?Counts per categoryChi-square goodness of fit
How precise is my mean or percentage?Mean, SD and n, or a count out of nConfidence interval
How strongly is an exposure linked to an outcome?A 2 × 2 table (case-control or cohort)Odds ratio
How much does a treatment change the risk?Events and totals in two groupsRelative risk
How many patients must be treated for one to benefit?Events and totals in two groupsNumber needed to treat
How large is the difference between two groups?Means and SDs, or a reported t valueEffect size (Cohen’s d, Hedges’ g)
How accurate is a diagnostic test?Test results against a reference standardSensitivity, specificity, PPV and NPV
Do two raters agree beyond chance?A table of both raters’ categoriesCohen’s kappa
How many participants does my study need?Expected effect size, α and powerPower analysis

A p-value alone says little about how big or important an effect is. Most journals now ask for an effect size with a confidence interval alongside each test, so the calculators report both.

Planning a study