Skip to calculators
calcmintly

One-Sample t Test

Compare a sample mean with a stated reference using a two-sided t test.

Add to workspace

Your numbers

Local calculations. Results are estimates, not professional advice.

t statistic

—

Requires an appropriate independent-sampling model. A p-value does not measure the probability that the null hypothesis is true.

Formula

Use t = (m−μ₀)/(s/√n) with df = n−1. m is sample mean, μ₀ is the null-hypothesis mean, s is sample standard deviation, and n is sample size. The displayed p-value is two-sided.

Compare a sample mean with a stated reference using a two-sided t test.

Worked example

Sample observations
2, 4, 6, 8, 10
Null-hypothesis mean
5
t statistic
0.707106781187
Degrees of freedom
4
Two-sided p-value
0.518518518519

Scope and limitations

Requires an appropriate independent-sampling model. A p-value does not measure the probability that the null hypothesis is true.

Inputs are checked for missing values and allowed ranges. A result outside the finite numeric range is not displayed. Rounding affects display, while the calculation uses the model’s numeric precision.

Check your units and assumptions before relying on a result. Changing a label does not convert a currency or physical unit.

Formula version: 66a8f6b24d20 · Example checked:

Methodology

Related tools