Category

t-Statistic Calculator (t-Value) | Formula, Student's t-Test & Examples

Free t-statistic calculator. Compute the t-value (t-score) from sample mean, population mean, sample size, and standard deviation. Includes standard error, degrees of freedom, significance interpretation, and formula breakdown.

0 calculations

Calculation Parameters

Enter Parameters

Enter your sample statistics above and click Calculate.



What Is the t-Statistic and Student's t-Test?

In statistics, the t-statistic (also called the t-value or t-score) is a measure that describes how far a sample mean lies from the population mean, expressed in units of the standard error. It is central to Student's t-test — a hypothesis test used to evaluate claims about a population mean when the sample size is small or the population standard deviation is unknown.

The t-statistic tells you whether to reject the null hypothesis (H₀: the sample comes from the stated population) in favor of the alternative. The larger the absolute t-value, the stronger the evidence against H₀.

The t-Statistic Formula

The one-sample t-statistic is calculated as:

t = (x̄ − μ) / (s / √n)
  • x̄ — Sample mean (the average of your data)
  • μ — Population mean (the hypothesized or known value)
  • s — Sample standard deviation
  • n — Sample size
  • s / √n — Standard error of the mean (SE)
  • n − 1 — Degrees of freedom (df)

How to Use This t-Statistic Calculator

Choose your calculation mode, then enter the required values:

  1. Find t-value — enter sample mean (x̄), population mean (μ), sample size (n), and sample standard deviation (s). The calculator returns the t-statistic, standard error, degrees of freedom, and a significance interpretation.
  2. Find sample mean — if you already know the t-value, enter it along with μ, n, and s to recover x̄.

No unit conversion is needed — the t-statistic is dimensionless and works identically whether your measurements are in metric units (kg, m, °C) or US customary units (lb, ft, °F).

t-Statistic Example

A factory claims its bolts have a mean diameter of 50 mm (μ = 50). You measure a sample of n = 30 bolts and find:

  • Sample mean: x̄ = 52.5 mm
  • Sample standard deviation: s = 5.5 mm

Step 1: Standard error = s / √n = 5.5 / √30 ≈ 1.0046

Step 2: t = (52.5 − 50) / 1.0046 ≈ 2.489

Step 3: With df = 29 and |t| ≈ 2.49 > 1.960 (critical value at α = 0.05, two-tailed), we reject H₀. There is statistically significant evidence that the bolt diameter differs from 50 mm.

t-Score vs. Z-Score: What Is the Difference?

Featuret-Score (t-statistic)Z-Score (z-statistic)
Best forSmall samples (n < 30) or unknown σLarge samples (n ≥ 30) with known σ
Distribution usedStudent's t-distribution (heavier tails)Standard normal distribution
Degrees of freedomn − 1Not applicable
Std deviation sourceSample (s)Population (σ)
Converges toNormal distribution as n → ∞Itself (always normal)

Critical Values for the t-Test

The t-distribution has heavier tails than the normal distribution, especially for small samples. Critical values depend on the significance level (α) and degrees of freedom (df = n − 1). For large df the values converge to z-score thresholds:

  • α = 0.05, two-tailed: |t| > 1.960 → reject H₀ at 5% significance
  • α = 0.01, two-tailed: |t| > 2.576 → reject H₀ at 1% significance
  • α = 0.001, two-tailed: |t| > 3.291 → reject H₀ at 0.1% significance

For small samples use exact t-table values for your specific degrees of freedom.

FAQs

What does a negative t-value mean?

A negative t-value means the sample mean is below the population mean (x̄ < μ). The sign indicates direction; significance is determined by the absolute value |t|.

Is a t-value of 2 statistically significant?

For large samples (df ≥ 30), |t| ≈ 2 corresponds roughly to p ≈ 0.05 (two-tailed), so it is borderline significant at the 5% level. For smaller samples you need |t| slightly larger than 2 to reach the same significance.

Can I use this calculator for two-sample t-tests?

This calculator handles the one-sample t-test (comparing a sample mean to a known value). For two-sample or paired t-tests, use our dedicated t-test Calculator.

What is the p-value corresponding to my t-statistic?

The p-value depends on both the t-statistic and the degrees of freedom. Use our P-Value Calculator to convert your t-value to a p-value for one-tailed or two-tailed tests.

Calculation History

Loading...