Z Test Calculator

T statistic calculator

t statistic
t=—
df = —
p-value
—
Critical t*
—
Decision
—
t distribution with — degrees of freedomRejection region p-value area Your t Normal curve
t distribution with rejection regions and the observed t statistic
Signal ÷ noise: what t measuresThe bar is your difference. Each tick is one standard error. t counts how many standard errors fit in the difference.
Observed difference measured in standard errors

Confidence interval

Effect size

Critical values

Your data

The working, step by step

    In plain words

    —

    Report it

    —

    What Is a T Statistic?

    A t statistic measures how many standard errors (SE) a sample result sits from the value stated in the null hypothesis. It is the signal (the observed difference) divided by the noise (the standard error of that difference). A t statistic of 2.19 means the sample mean is 2.19 standard errors away from the hypothesized mean.

    William Sealy Gosset published the t distribution in 1908 under the pen name "Student", while working on small samples at the Guinness brewery in Dublin. The t statistic replaces the z statistic whenever the population standard deviation (σ) is unknown and has to be estimated from the sample. This calculator is part of the Z Test Calculator suite and shows every t value on a live t curve.

    How to Use the T Statistic Calculator

    To find a t statistic, follow 3 steps in the panels on the left:

    1. Choose the t statistic: one sample (a mean against a fixed value), two sample (two independent group means) or paired (before/after measurements on the same subjects).
    2. Enter your data: type the mean, standard deviation and size, or switch to Raw data and paste the values. The calculator finds the means and standard deviations for you.
    3. Set the hypothesis: enter the hypothesized value, pick left-tailed, two-tailed or right-tailed, and choose α (0.10, 0.05 or 0.01).

    The t statistic, degrees of freedom (df), p-value, critical t, decision, both charts and the 4 detail cards update on every keystroke. All calculations run in your browser, and no data leaves your device.

    T Statistic Formula

    The one-sample t statistic formula is t = (x̄ − μ₀) / (s / √n), with n − 1 degrees of freedom.

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

    The numerator is the difference between the sample mean and the hypothesized mean. The denominator, s / √n, is the estimated standard error of the mean. The formula changes with the type of t statistic:

    T statisticFormulaDegrees of freedom
    One sample(x̄ − μ₀) / (s / √n)n − 1
    Paired(d̄ − μd) / (sd / √n)n − 1 (n = pairs)
    Two sample, Welch(x̄₁ − x̄₂ − Δ₀) / √(s₁²/n₁ + s₂²/n₂)Welch–Satterthwaite
    Two sample, pooled(x̄₁ − x̄₂ − Δ₀) / (sp √(1/n₁ + 1/n₂))n₁ + n₂ − 2

    Welch or Pooled?

    Use Welch's t statistic by default, and the pooled version only when both groups have similar standard deviations. Welch's formula does not assume equal variances and gives almost the same answer as the pooled formula when the variances are equal. Tick "Assume equal variances" to switch to the pooled formula and n₁ + n₂ − 2 degrees of freedom.

    Degrees of Freedom and the T Distribution

    Degrees of freedom set the shape of the t distribution: fewer degrees of freedom give heavier tails and larger critical values. The two-tailed critical value at α = 0.05 is 2.228 with 10 degrees of freedom, 2.042 with 30, 1.984 with 100 and 1.960 for the normal distribution. The dashed curve in the main chart is the normal distribution, so you can watch the t curve close in on it as the sample grows.

    Find t* for any α and degrees of freedom with the critical value calculator.

    How to Read the Results

    Read a t statistic in 3 steps: its size, its p-value and its confidence interval.

    The Size of t

    The Signal ÷ noise chart draws the observed difference as a bar and marks every standard error as a tick. The number of ticks that fit inside the bar is the t statistic. The red dashed line shows how many standard errors the difference needs to reach significance at the chosen α.

    The P-Value

    The p-value is the probability of a t statistic at least as extreme as yours if the null hypothesis is true. The hatched area in the main chart is the p-value. Reject H₀ when p ≤ α, which is the same as t falling in the red rejection region. Convert any t, z, χ² or F statistic with the p-value calculator.

    The Confidence Interval

    A 95% confidence interval for the mean is x̄ ± t* × SE, the range of plausible values for the true mean. A two-tailed test at α = 0.05 rejects H₀ exactly when the 95% interval excludes the hypothesized value. Build intervals for means and proportions with the confidence interval calculator.

    Effect Size

    Cohen's d puts the difference in standard deviation units: 0.2 is small, 0.5 is medium and 0.8 is large. A large sample makes a tiny difference significant, so report d next to every t statistic. Compare more effect size measures with the effect size calculator.

    T Statistic Examples

    There are 3 worked examples below, one for each type of t statistic.

    One sample: 25 students average 79.2 (s = 9.6). Does the mean differ from 75?

    1. Standard error
      SE = 9.6 / √25 = 1.92
    2. T statistic
      t = (79.2 − 75) / 1.92 = 2.188
    3. Degrees of freedom
      df = 25 − 1 = 24
    4. P-value
      p = 0.0387 (two-tailed)
    5. Critical value
      t* = ±2.064 at α = 0.05
    6. 95% CI
      [75.24, 83.16]
    7. Decision
      Reject H₀: the mean differs from 75, with a small effect (d = 0.44).

    Two sample: group 1 averages 82.5 (s = 8.1, n = 30), group 2 averages 77.9 (s = 9.4, n = 28).

    1. Standard error
      SE = √(8.1²/30 + 9.4²/28) = 2.311
    2. T statistic
      t = (82.5 − 77.9) / 2.311 = 1.990
    3. Degrees of freedom
      Welch df = 53.48
    4. P-value
      p = 0.0517 (two-tailed)
    5. 95% CI
      [−0.04, 9.24]
    6. Decision
      Fail to reject H₀ at α = 0.05, though the effect is medium (d = 0.53).

    Paired: 15 people improve by 3.2 points on average after training (sd = 4.5).

    1. Standard error
      SE = 4.5 / √15 = 1.162
    2. T statistic
      t = 3.2 / 1.162 = 2.754
    3. Degrees of freedom
      df = 15 − 1 = 14
    4. P-value
      p = 0.0155 (two-tailed)
    5. 95% CI
      [0.71, 5.69]
    6. Decision
      Reject H₀: the training changes scores, with a medium effect (dz = 0.71).

    T Statistic vs. Z Statistic

    A t statistic uses the sample standard deviation and the t distribution, while a z statistic uses a known population standard deviation and the normal distribution. Both divide a difference by its standard error. With small samples, the t statistic needs a larger value to reach significance: 2.064 with 24 degrees of freedom against 1.960 for z. Above about 100 observations, the two give nearly the same p-value.

    Assumptions of the T Statistic

    There are 3 assumptions behind a valid t statistic:

    1. Independent observations. Each value comes from a different subject, except for the pairs in a paired design.
    2. Approximately normal data or a large sample. With n ≥ 30 per group, the Central Limit Theorem (CLT) makes the t statistic reliable for most data. Check small samples for strong skew or outliers.
    3. A continuous outcome measured on an interval scale. Use a test for proportions for yes/no outcomes.

    Paste raw data to see each value on the strip plot and spot outliers before you trust the result. Calculate the spread of your data with the standard deviation calculator.

    FAQs

    How do I find the t statistic?

    Find the t statistic by subtracting the hypothesized mean from the sample mean and dividing by the standard error, s / √n. For x̄ = 79.2, μ₀ = 75, s = 9.6 and n = 25, t = 4.2 / 1.92 = 2.19.

    What does a negative t statistic mean?

    A negative t statistic means the sample mean is below the hypothesized value. The sign shows the direction and the size shows the distance in standard errors. A negative t is significant in a two-tailed or left-tailed test when it passes the critical value.

    What is a good t statistic?

    There is no fixed good t statistic, but |t| above 2 is significant at α = 0.05 for most samples larger than 30. The exact cut-off depends on the degrees of freedom and the tail: 2.064 for a two-tailed test with 24 degrees of freedom and 1.711 for a one-tailed test.

    Can a t statistic be 0?

    Yes, a t statistic is 0 when the sample mean equals the hypothesized value exactly. A t of 0 gives a two-tailed p-value of 1, the weakest possible evidence against H₀.

    Is the t statistic the same as the t-test?

    No, the t statistic is the number a t-test produces, and the t-test is the full procedure built around it. The test adds the hypotheses, the p-value, the decision and the conclusion. Run the full test from raw data or summaries with the t-test calculator.

    How do I report a t statistic in APA format?

    Report a t statistic as t(df) = value, followed by the p-value, the confidence interval and the effect size. Example: t(24) = 2.19, p = .039, 95% CI [75.24, 83.16], d = 0.44. Give t to 2 decimals and p to 3 decimals without a leading zero.