Hypothesis Test Calculator (z and t)
Find out whether a difference in your data is likely to be real, with the p-value, confidence interval and effect size explained in plain English.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Choose the test
Matching your data.
- 2Enter the data
Summary statistics or raw values.
- 3Set the hypothesis
Hypothesised value and alternative.
- 4Choose α
Usually 0.05.
- 5Read the results
p-value, interval, effect size.
- 6Interpret carefully
Significance and practical importance.
About this tool
A hypothesis test asks a simple question: if there were really no difference, how surprising would my data be? Whether you are comparing exam scores between two classes, checking whether a new process changed the average fill weight, measuring blood pressure before and after a programme or comparing conversion rates in an A/B test, the right test turns your data into a p-value and a confidence interval. This calculator covers the tests people use most: the one-sample z test with a known standard deviation, the one-sample t test, Welch's two-sample t test (the safe default when group variances may differ), the classic pooled two-sample t test, the paired t test for before-and-after data, and one- and two-proportion z tests. Enter summary statistics (mean, standard deviation and sample size) or paste raw data, choose a two-sided or one-sided alternative and a significance level, and get the test statistic, degrees of freedom, p-value, confidence interval, effect size such as Cohen's d, a chart of the distribution with your statistic marked and a plain-English conclusion.
Choosing the test
- One group against a target value: one-sample t test (or z test if the population standard deviation is truly known). - Two independent groups: Welch's t test. Use the pooled test only when you have good reason to believe the variances are equal. - The same people measured twice: paired t test on the differences. - Percentages or counts of successes: one- or two-proportion z test.
Reading the result
The p-value is the probability of a result at least as extreme as yours if the null hypothesis (no difference) were true. A p-value below the significance level, usually 0.05, counts as statistically significant. The confidence interval gives the range of plausible values for the true difference; if it excludes zero, the result is significant at the matching level.
Significant is not the same as important
With a large sample, tiny and unimportant differences become significant; with a small sample, important differences can be missed. Always look at the estimate and its interval, and at effect sizes such as Cohen's d (0.2 small, 0.5 medium, 0.8 large).
Assumptions
t tests assume roughly normal data or reasonably large samples (around 30 per group is usually fine), and independent observations. Proportion tests need at least about 10 successes and 10 failures in each group. For small, skewed samples consider a non-parametric test such as Mann-Whitney or Wilcoxon.
Limits
This calculator is for learning and everyday analysis, not a replacement for a statistician in regulated research. Running many tests on the same data inflates false positives; correct for multiple comparisons if you do.
Worked example
Paired scores 72 75 68 80 77 71 69 74 before and 70 72 69 76 73 70 66 71 after give a mean difference of 2.375, t = 3.99 with 7 degrees of freedom, p = 0.005 and a 95% interval from 0.97 to 3.78, so the drop is statistically significant.
Quick facts
- Category: Math & Science
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: NIST/SEMATECH e-Handbook of Statistical Methods: tests of means and proportions
Frequently asked questions
Which t test should I use for two groups?
Welch's test, unless you are sure the two groups have equal variances.
What does p = 0.03 mean?
If there were no real difference, data this extreme would occur about 3% of the time.
One-sided or two-sided?
Two-sided unless you decided before collecting data that only one direction matters.
Can I paste raw data?
Yes. Choose raw data and paste numbers separated by spaces, commas or new lines.
Is a significant result proof?
No. It is evidence against no difference; check effect size and study design too.
Is my data uploaded?
No. Calculations run in your browser.
