Paste your data and run a paired, two-sample (Welch or pooled) or one-sample t-test, with the t statistic, p-value, 95% confidence interval and effect size.
t = difference ÷ standard error
In the same order, so each pair belongs to one person.
A t-test checks whether a difference in averages is bigger than you'd expect from random variation alone. It compares the size of the difference with its standard error; the ratio is the t statistic.
There are three versions. A paired test compares two measurements on the same people, such as before and after. A two-sample test compares two separate groups. A one-sample test compares one group's mean with a fixed value.
The t-test assumes the data (or the differences, for paired data) are roughly normal. With more than about 30 per group it holds up well even when they aren't, thanks to the central limit theorem.
As given in the NIST/SEMATECH e-Handbook, section 1.3.5.3; Welch's degrees of freedom from Welch (1947). See Sources.
The pooled version uses one combined variance and df = n₁ + n₂ − 2. Welch is the safer default.
Every patient improved a little, so the paired test is very sensitive. Treated as two separate groups, the same numbers give p ≈ 0.10, because the large differences between patients swamp the small change within each.
Match the test to how the data were collected.
| Your data | Test | Excel |
|---|---|---|
| Same people measured twice | Paired | T.TEST(…, 1) |
| Two separate groups | Welch two-sample | T.TEST(…, 3) |
| Two groups, equal spread known | Pooled two-sample | T.TEST(…, 2) |
| One group against a target | One-sample | Paired with a column of the target |
| Three or more groups | Not a t-test: use ANOVA | — |
It uses Student’s t distribution, published in 1908 by William Gosset under the pen name “Student” while he worked at the Guinness brewery.
There’s no strict minimum, but small samples only detect large effects. The power analysis calculator works out the size you need.
Welch’s test estimates them from the two variances, so they’re usually fractional. That’s expected.
With 30 or more per group, the t-test is usually fine. For small, skewed samples, use the Mann–Whitney U test (independent) or the Wilcoxon signed-rank test (paired).
It shows how big the difference plausibly is, not just whether it’s zero. An interval that excludes zero matches a significant two-tailed test.
Rough guides: 0.2 small, 0.5 medium, 0.8 large. In the blood pressure example d is 2.65, but effects within the same people often are.
Use a z-test for proportions instead. The A/B test calculator compares two conversion rates.
Only if you decided before collecting data that a difference in the other direction would be of no interest.