T Test Calculator

Calculate a one-sample t statistic, standard error, and degrees of freedom using sample mean, hypothesized mean, sample standard deviation, and sample size.

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

Result will appear here.
Metric Value

Privacy: calculations run locally in your browser. No inputs are stored or transmitted.

How it works

This tool computes the one-sample t statistic, standard error, and degrees of freedom. It does not assume a known population standard deviation.

Examples

  • x̄ = 72, μ₀ = 70, s = 8, n = 25
  • Standard error = s / √n
  • Degrees of freedom = n − 1

FAQ

  • What kind of t test does this page calculate?

    This page calculates a one-sample t statistic using sample mean, hypothesized mean, sample standard deviation, and sample size.

  • What is the formula for the t statistic?

    t = (sample mean − hypothesized mean) / (sample SD / √n).

  • Why must sample size be at least 2?

    A one-sample t test needs at least 2 observations so that degrees of freedom n − 1 is at least 1.

  • Are calculations stored?

    No. Everything runs locally in your browser.

Related tools