Home Calculators EducationT-Test Calculator

T-Test Calculator

One-sample, two-sample independent, and paired t-tests with p-values, confidence intervals, and step-by-step solutions.

Test Type

One-Sample T-Test

Compare a sample mean to a known/hypothesized population mean (μ₀)

t-Statistic
—
test statistic
p-Value
—
Degrees of Freedom
—
df
Critical Value (t*)
—
Confidence Interval
—
Effect Size (Cohen's d)
—

T-Test Quick Reference

One-Sample

t = (x̄ − μ₀) / (s / √n)

df = n − 1

Two-Sample (Welch)

t = (x̄₁−x̄₂) / √(s₁²/n₁ + s₂²/n₂)

df = Welch-Satterthwaite

Paired

t = d̄ / (sᵈ / √n)

df = n − 1

Cohen's d

Small: 0.2 · Medium: 0.5 · Large: 0.8

d = t / √n