Guide
T-tests and one-way ANOVA: comparing group means with p-values and intervals
The t-test answers one of the commonest questions in science: is the difference between these averages bigger than random variation would produce? This calculator offers the six versions you are likely to need, from raw data or summary statistics, with the p-value, a confidence interval for the difference and an effect size. A one-way ANOVA covers three or more groups. A chart shows the t distribution with the tails of your result shaded.
Choosing the test
Two independent groups with possibly different spreads: Welch’s test, the default. Two groups with equal variances: Student’s pooled test. The same subjects measured twice: the paired test. One sample against a known value: the one-sample test. Two groups known only through their n, mean and standard deviation: the summary option. Three or more groups: ANOVA. Welch’s test loses little when variances are equal, which is why it is a safe default.
Entering data
For raw data paste the numbers of each group separated by spaces, commas or lines. The alternative hypothesis can be two-sided or one-sided (group 1 larger or smaller), and α can be 0.10, 0.05 or 0.01. For ANOVA type one group per line, optionally with a name before a colon, such as A: 4.2 5.1 4.8 5.5 4.9. Groups need at least two values each, and a paired test needs the same count in both lists, with each pair in the same position.
Reading a t-test
The rows show the group summaries, the difference in means, its standard error, the t statistic, the degrees of freedom, the p-value, the confidence interval of the difference and a decision at your α. The default data, two groups of ten, give a difference of −2.52, standard error 1.2754781, t = −1.9757297, df = 15.2679 and p = 0.0665, with a 95% interval of −5.2344678 to 0.19446776. Because p ≥ 0.05 and the interval includes 0, the difference is not significant at 5%.
Paired, one-sample and summary examples
For eight before-and-after readings with differences averaging 4.5 and a standard deviation of 3.1622777, the paired test gives a standard error of 1.118034, t = 4.0249224, df = 7, p = 0.0050 and an interval of 1.8562697 to 7.1437303. Testing the first group of ten against 20 gives t = 0.72499, df = 9 and p = 0.4869. Summary statistics n = 30, mean 52, SD 10 against n = 35, mean 47, SD 12 give t = 1.8321511, df = 62.9588 and p = 0.0717.
One-way ANOVA
For three groups A, B and C the tool gives an ANOVA table with the sums of squares, degrees of freedom, mean squares, F and p. The sample data have means 4.9, 6.16 and 7.3, F = 37.401384 on 2 and 12 degrees of freedom and p below 0.0001, with η² = 0.861756 and ω² = 0.829163: group membership explains about 86% of the variation. ANOVA says that at least one mean differs but not which; follow it with a post-hoc test.
The chart and effect size
The chart draws the t distribution for your degrees of freedom, shades the tail area equal to the p-value and marks the critical values. The page also reports Cohen’s d for independent groups and d_z for paired data, so a significant result can be judged for size: the paired example has d_z = 1.423, a large effect, while the 52 versus 47 summary example has d = 0.449, a small to medium one.
Limits
All the t-tests assume independent observations and roughly normal data or enough observations to rely on the central limit theorem; extreme outliers and tiny skewed samples can mislead. The tool does not run non-parametric alternatives such as Mann-Whitney, post-hoc comparisons or repeated-measures ANOVA, and it cannot check study design or multiple testing. A small p-value is not proof of an important effect.
Related tools
- Effect Size Calculator turns a t value or group summaries into Cohen’s d and Hedges’ g.
- Chi-Square Calculator is the test for counts rather than means.
- Standard Error Calculator summarises one group before you compare it.
- Z-Score Calculator covers the normal case when the deviation is known.
Checked against the current version of the T-Test Calculator on .

