esc
Calculators

T-test calculator:
one-sample, two-sample, paired

Paste two groups of numbers (or type their means, SDs and sizes) and see whether the difference between them is statistically significant.

Not significant at α = 0.05p = 0.069564t(21.393) = -1.911
t statistic
-1.910506
Degrees of freedom
21.392595
p-value
0.069564
Difference of means (1 − 2)
-2.666667
Standard error
1.395791
95% confidence interval
-5.566133 to 0.2327993
Effect size (Cohen’s d)
-0.7799607
Sample 1: mean, SD, n
19.083333, 3.117643, 12
Sample 2: mean, SD, n
21.75, 3.695821, 12
  • Welch’s test does not assume equal variances; its degrees of freedom come from the Welch–Satterthwaite formula. It is the safer default.
  • The t-test assumes roughly normal data or samples of about 30 or more.

How to use T-test calculator

  1. 01Pick the testWelch, pooled, paired or one-sample.
  2. 02Paste the dataOr type mean, SD and n.
  3. 03Read p and the intervalWith the effect size.
File character arranging marked pages

Is the difference real?

A t-test divides the difference between means by its standard error. Welch’s version, the default, allows the two groups to have different variances and uses the Welch–Satterthwaite degrees of freedom; Student’s version pools the variances. A paired test works on the differences within each pair, and a one-sample test compares one mean with a fixed value.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

Which two-sample test should I use?

Welch’s test. It is as good as Student’s when the variances are equal and much safer when they are not, which is why R uses it by default.

When is a test paired?

When each value in one group belongs with one value in the other: the same people before and after, left and right eyes, twins. Pairing removes the person-to-person variation and often makes the test far more sensitive.

What does the example on this page show?

Sample 1 averages 19.08 and sample 2 averages 21.75 (12 values each). Welch’s test gives t = −1.91 with 21.39 df and p = 0.0696, so the gap is not significant at α = 0.05. Treated as pairs, the same numbers give p = 0.036.

Is what I type sent anywhere?

No. The calculation runs in your browser and nothing you type leaves your device.