T-Statistic Calculator

Calculate t-statistic, p-value, and Cohen's d for one-sample, two-sample (Welch's), and paired t-tests. Includes critical value table and distribution visual.

t-Statistic
1.5586
(xฬ„ โˆ’ ฮผโ‚€) / SE
Degrees of Freedom
29.00
n โˆ’ 1 = 29
Standard Error
2.2457
s / โˆšn
P-Value (two-tailed)
0.000000
โœ… Significant at ฮฑ = 0.05
P-Value (left-tailed)
1.000000
H\u2081: \u03BC < \u03BC\u2080
P-Value (right-tailed)
0.000000
H\u2081: \u03BC > \u03BC\u2080
Cohen\'s d
0.2846
Small effect

Test Statistic on t-Distribution

0
t=1.56

Critical Values (df = 29)

\u03B1 (two-tailed)\u03B1 (one-tailed)|t| needed|t| observedDecision
0.10.051.6991.559Fail to reject
0.050.0252.0461.559Fail to reject
0.020.012.4621.559Fail to reject
0.010.0052.7561.559Fail to reject
0.0010.00053.6571.559Fail to reject
Planning notes, formulas, and examples

About the T-Statistic Calculator

The T-Statistic Calculator performs complete t-test analysis for one-sample, independent two-sample, and paired designs. Enter your summary statistics or paired differences and the calculator computes the t-statistic, exact p-values for two-tailed and one-tailed tests, Cohen's d effect size, and critical values at multiple significance levels.

The t-test is the workhorse of statistical hypothesis testing, used when comparing means with unknown population standard deviations and relatively small sample sizes. Unlike the z-test, the t-distribution accounts for the extra uncertainty from estimating ฯƒ, producing wider confidence intervals and more conservative p-values, especially for small n.

For two-sample comparisons, the calculator provides both Welch's t-test (which doesn't assume equal variances) and the pooled t-test. Welch's test is preferred as the default because it's valid whether or not variances are equal, and it has been shown to maintain better Type I error control across a wide range of conditions.

When This Page Helps

The t-test is the most commonly used statistical test in research, quality control, and data analysis. This calculator supports all three major variants โ€” one-sample, independent, and paired โ€” with proper Welch correction for unequal variances. Cohen's d provides the effect size that p-values alone cannot convey.

The critical value table lets you quickly see whether your result would be significant at various ฮฑ levels, and the visual t-distribution display helps students and non-statisticians understand where the test statistic falls relative to the null distribution.

How to Use the Inputs

  1. Select the test type: one-sample, two-sample, or paired.
  2. For one-sample: enter sample mean, standard deviation, sample size, and hypothesized mean.
  3. For two-sample: enter means, SDs, and sizes for both groups.
  4. For paired: enter the comma-separated differences (after โˆ’ before).
  5. Set the significance level (default 0.05).
  6. Review the t-statistic, p-values, and effect size.
  7. Check the critical value table to see significance at multiple ฮฑ levels.
Formula used
One-sample: t = (xฬ„ โˆ’ ฮผโ‚€) / (s/โˆšn), df = nโˆ’1. Two-sample (Welch): t = (xฬ„โ‚ โˆ’ xฬ„โ‚‚) / โˆš(sโ‚ยฒ/nโ‚ + sโ‚‚ยฒ/nโ‚‚), df via Welch-Satterthwaite. Paired: t = dฬ„ / (s_d/โˆšn), df = nโˆ’1.

Example Calculation

Result: t = 1.558, df = 29, p = 0.130 (two-tailed), Cohen's d = 0.284

SE = 12.3/โˆš30 = 2.246. t = (78.5-75)/2.246 = 1.558. With df=29, the two-tailed p-value is 0.130. Since p > 0.05, we fail to reject Hโ‚€. Cohen's d = 3.5/12.3 = 0.284 (small effect).

Tips & Best Practices

  • Always check whether your data meets t-test assumptions before interpreting results.
  • Prefer Welch's t-test over the pooled test โ€” it's safer when variances might differ.
  • Report Cohen's d alongside p-values to convey practical significance.
  • For paired data, enter differences directly if you've already computed them.
  • A significant p-value with a tiny Cohen's d means the effect is real but practically irrelevant.
  • Increase sample size to detect smaller effects with greater power.

One-Sample, Two-Sample, and Paired Designs

The one-sample t-test compares a mean to a known value (ฮผโ‚€). The two-sample test compares means from two independent groups. The paired test compares means from matched or repeated measurements on the same subjects. Choosing the right design is often more important than the statistical test itself.

The Welch-Satterthwaite Approximation

When group variances are unequal, the standard pooled t-test can produce misleading results. Welch's modification adjusts both the standard error formula and the degrees of freedom. The Satterthwaite approximation for df produces a non-integer value that better reflects the actual sampling distribution.

Effect Size and Power

Statistical significance depends on sample size: large samples detect trivial effects. Cohen's d standardizes the effect, making it comparable across studies. Power analysis uses d, ฮฑ, and n to determine the probability of detecting a real effect. Planning sample size around desired power (typically 0.80) produces more efficient studies.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Use the t-test when the population standard deviation is unknown (nearly always in practice) and you're estimating it from the sample. The z-test is only appropriate when ฯƒ is known. For large n, the t and z distributions converge.