Skip to content
Advertisement
Hosinger Special Offer

T-Test Calculator

T-Test Calculator from Gizcalc helps you estimate results quickly within the Math & Statistics category.

  • Instant results
  • Charts & tables
  • Save & compare
  • Private – runs in your browser
p-value —

Sample inputs are pre-filled so you can see a result quickly. Results are estimates only and may not be accurate because prices, interest rates, taxes, fees, fuel costs, tariffs, market returns, medical costs, and local rules can change. Please verify current values before making financial, tax, legal, medical, or business decisions.

Formula used

t = (x̄₁ − x̄₂) ÷ √(s₁² ÷ n₁ + s₂² ÷ n₂)

  • x̄₁, x̄₂ = the group means
  • s₁, s₂ = the group standard deviations
  • n₁, n₂ = the group sizes
  • df = (s₁²/n₁ + s₂²/n₂)² ÷ [(s₁²/n₁)²/(n₁ − 1) + (s₂²/n₂)²/(n₂ − 1)] (Welch–Satterthwaite)

About the T-Test Calculator

What is the T-Test Calculator?

A two-sample t-test checks whether the means of two independent groups differ by more than chance would explain — for example, test scores of two teaching methods, or sales in two regions. The null hypothesis is that the two population means are equal.

This t-test calculator uses Welch's t-test, which does not assume the two groups have equal variances and is recommended as the default. Enter each group's mean, standard deviation and size; you do not need the raw data.

How to use the T-Test Calculator

  1. Group 1 Mean (sample: 78)
  2. Group 1 Standard Deviation (sample: 10)
  3. Group 1 Size (sample: 25)
  4. Group 2 Mean (sample: 72)
  5. Group 2 Standard Deviation (sample: 12)
  6. Group 2 Size (sample: 30)
  7. Alternative Hypothesis — two-tailed unless you decided in advance to test only one direction. (sample: Two-tailed (≠))
  8. Significance Level (α) — the significance level; 0.05 is standard. (sample: 0.05 (5%))
  9. Press Run T-Test (results also refresh as you type). The result card shows the p-value, along with t statistic, Degrees of freedom (Welch), Difference in means and Decision.

Formula used

t = (x̄₁ − x̄₂) ÷ √(s₁² ÷ n₁ + s₂² ÷ n₂)

  • x̄₁, x̄₂ = the group means
  • s₁, s₂ = the group standard deviations
  • n₁, n₂ = the group sizes
  • df = (s₁²/n₁ + s₂²/n₂)² ÷ [(s₁²/n₁)²/(n₁ − 1) + (s₂²/n₂)²/(n₂ − 1)] (Welch–Satterthwaite)

The p-value comes from the t-distribution with those degrees of freedom. Reject the null hypothesis when p < α.

Worked example

These are the sample values already filled in the calculator above, and the result it returns for them:

InputSample value
Group 1 Mean78
Group 1 Standard Deviation10
Group 1 Size25
Group 2 Mean72
Group 2 Standard Deviation12
Group 2 Size30
Alternative HypothesisTwo-tailed (≠)
Significance Level (α)0.05 (5%)
ResultValue
p-value0.048173
t statistic2.0226
Degrees of freedom (Welch)53
Difference in means6
DecisionReject H₀ (significant at α = 0.05)

Tips for using the T-Test Calculator

  • Use a paired t-test instead when the same subjects are measured twice (before and after).
  • The t-test assumes roughly normal data in each group, or reasonably large groups (about 30+).
  • Report the difference in means alongside the p-value so readers see the size of the effect.

Frequently asked questions

A version of the two-sample t-test that allows the two groups to have different variances. It adjusts the degrees of freedom and is more reliable than the classic pooled t-test when variances or group sizes differ.

If p is below α (for example 0.05), the difference in means is statistically significant. If not, the data do not show a clear difference.

t ≈ 2.02 with about 53 degrees of freedom, giving a two-tailed p-value of about 0.048 — significant at the 5% level, but only just.

A z-test uses a known population standard deviation; a t-test estimates it from the sample, which is the usual real-world situation.