T-Test Calculator

Perform hypothesis testing using the Student's t-distribution.

One-Sample

Two-Sample

Paired

Result
Enter data and calculate
t-Statistic
Degrees of Freedom
p-Value
Critical Value
Sample Mean
Sample SD
95% CI
Decision

T-Distribution & T-Test

The t-test determines if there's a significant difference between means. It's used when the population standard deviation is unknown or sample sizes are small.

One-Sample T-Test Formula

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

Types of T-Tests

TypeUse Case
One-SampleCompare sample mean to known value
Two-SampleCompare means of two independent groups
PairedCompare before/after or matched pairs

Interpreting Results

  • p < α: Reject null hypothesis (significant difference)
  • p ≥ α: Fail to reject null (no significant difference)

T-Distribution Properties

  • Bell-shaped, symmetric around 0
  • Heavier tails than normal distribution
  • Approaches normal as df increases

Frequently Asked Questions

When should I use t-test vs z-test?
Use t-test when population standard deviation is unknown or sample size is small (n < 30). Use z-test when population SD is known and sample size is large.
What is the difference between one-tailed and two-tailed tests?
Two-tailed tests check for any difference. One-tailed tests check for difference in a specific direction (greater than or less than).