T-Test Calculator

By Seagit ✨
Deploy to your own cloud with Seagit, today.Start freeNo credit card required

One-sample, Welch two-sample and paired t tests with the p-value

Choose the test

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

Sample mean, x̄5.062500
Standard error0.110093
t statistic0.567700
Degrees of freedom7.0000
Two-tailed p-value0.587976
Left-tail, P(T ≤ t)0.706012
Right-tail, P(T ≥ t)0.293988

Two-tailed p = 0.587976 is not below α = 0.05, so the data do not show a significant difference at that level.

What the test assumes

The t test assumes the observations within each sample are independent and that the means are roughly normal, which holds when the data are close to normal or n is moderate to large. Welch's version does not assume equal variances, so it is the safer default for two groups. Use the paired test when each x has a matching y from the same subject or unit. Read the p-value as the chance of a difference at least this large if the hypothesised value were true, not as the chance that the hypothesis is true.

⚖️ T-Test Calculator — Free Online Tool

One-sample, Welch and paired t tests with the p-value. A t test checks whether a sample mean, a difference between two means or a mean of paired differences is larger than chance alone would produce, when the population standard deviation is unknown. This calculator runs the one-sample, Welch two-sample and paired versions from raw data or summary statistics, and reports the t statistic, degrees of freedom and one- and two-tailed p-values.

How to use it

  1. Pick the test: one sample against a hypothesised mean, two independent samples (Welch), or paired data.
  2. Enter raw values, or switch to summary statistics (mean, SD and n) for the one-sample and Welch tests.
  3. Set the hypothesised value: μ0 for one sample, or the hypothesised difference for two samples and paired data. Zero is the usual choice.
  4. Read t, the degrees of freedom and the two-tailed p-value, then compare p with your significance level.

🚀 Why use this T-Test Calculator tool?

Choose the test before you look at the data. Paired measurements entered as two independent samples throw away the matching and usually lose power. Welch's test is the safer default for two groups because it does not assume equal variances. 100% free, no registration, and complete privacy — everything runs locally in your browser, so your data never touches a server.

Key Features

1️⃣One-sample t

t = (x̄ − μ0) / (s / √n), with df = n − 1. Tests whether the mean differs from a fixed value.

🔀Welch two-sample t

t = (x̄1 − x̄2) / √(s1²/n1 + s2²/n2), with Welch–Satterthwaite degrees of freedom, so unequal variances are allowed.

🔗Paired t

Takes the differences d = x − y, then runs the one-sample test on d with n − 1 degrees of freedom.

🧾Formulas and df shown

The standard error, degrees of freedom and both tails are listed, so the result can be checked against a printed t table.

Popular Use Cases

Experiments

  • • Treatment against control group
  • • Before and after a change on the same subjects
  • • Mean against a regulatory limit

Quality control

  • • Batch mean against the specification
  • • Two production lines compared
  • • Repeated measures on one machine

Coursework and reports

  • • Check a textbook t statistic
  • • Choose between Welch and pooled
  • • Report t, df and p in a write-up

What It Handles

Tests

  • ✓ One-sample against μ0
  • ✓ Welch two-sample with a hypothesised difference
  • ✓ Paired differences against a value

Inputs

  • ✓ Raw lists or summary statistics
  • ✓ Any significance level
  • ✓ Paired lists of equal length

Output

  • ✓ t, df and standard error
  • ✓ Two-tailed, left and right p-values
  • ✓ Verdict against α

Related Tools

Sources & References

Frequently Asked Questions

When should I use Welch instead of Student's pooled t test?

Welch's test does not assume the two groups have the same variance, and it loses little when they do. Student's pooled test assumes equal variances and is only slightly more powerful when that assumption holds. Many statisticians use Welch as the default unless there is a strong reason to assume equal variances.

What does the paired test do differently?

It subtracts each pair first, so the variability between subjects drops out of the standard error. This is why paired designs often detect smaller effects. The two lists must be the same length and in matching order.

What assumptions should the data meet?

Observations within each group should be independent, and the sample mean should be approximately normal. The mean is close to normal for moderate samples even when the data are not, but strong skew or outliers in a small sample can distort the p-value.

Is the p-value the probability that the null hypothesis is true?

No. The p-value is the probability of a t statistic at least as extreme as the one observed, assuming the hypothesised value is true. It measures how surprising the data would be under that assumption, not the probability that the hypothesis itself is true.

🎓 Pro Tips

  • Tip 1: Decide on one tail or two before you calculate. A two-tailed test is the default unless only one direction would matter and you said so in advance.
  • Tip 2: Report the mean difference and its confidence interval with the p-value, since the p-value alone does not show the size of the effect.
  • Tip 3: Small samples make the t test sensitive to outliers. Plot the data first.
  • Tip 4: For more than two groups, running a t test on every pair inflates the false-positive rate. Use ANOVA instead.
banner