Opens in a new tab

CALCULATOR · REPORTING

t-Test Calculator From Summary Statistics

Enter the mean, SD and sample size of each group, or the mean and SD of the paired differences. The t statistic, degrees of freedom, p-value, confidence interval for the difference and effect size update as you type. Nothing you enter leaves your browser.

Runs in your browser. No data is sent or stored.

Method reviewed by an in-house statistician · Last checked November 2026

In Short

A t test calculator that works from summary statistics gives the test of a mean difference without the raw data: the t statistic, the degrees of freedom, a two-sided p-value, the difference with its 95% confidence interval and an effect size. Three tabs cover the independent-groups Welch test (the default), the independent-groups pooled-variance Student test and the paired test. The interval for the difference is the main result and the p-value sits beside it. The calculator cannot see your data, so it cannot check outliers or the shape of the distribution.

How It Is Calculated

The default independent-groups test is Welch’s, which does not assume equal variances (Welch, 1947; Delacre et al., 2017):

FORMULA

SE = √(s₁²/n₁ + s₂²/n₂) t = (m₁ − m₂)/SE
df = SE⁴ / [ (s₁²/n₁)²/(n₁ − 1) + (s₂²/n₂)²/(n₂ − 1) ]
CI = (m₁ − m₂) ± t(0.975, df) · SE

m = group mean · s = group SD · n = group size · df = Welch-Satterthwaite degrees of freedom · p = two-sided tail probability of t with df degrees of freedom.

The pooled-variance test assumes a common SD:

FORMULA

s_p = √( [ (n₁ − 1)s₁² + (n₂ − 1)s₂² ] / (n₁ + n₂ − 2) ) SE = s_p · √(1/n₁ + 1/n₂) df = n₁ + n₂ − 2

For paired data the unit is the within-person difference. Enter the mean of the differences, the SD of the differences and n:

FORMULA

SE = s_d/√n t = mean difference / SE df = n − 1 d_z = mean difference / s_d g_z = d_z · J(n − 1)

s_d = SD of the differences · J = the small-sample correction factor for Hedges’ g.

The means and SDs of the two conditions are not enough for a paired test, because the SD of the differences depends on the correlation between them.

On the independent-groups tabs, Cohen’s d is the mean difference over the pooled SD, with Hedges’ g shown beside it. On the Welch tab, d and g still use the pooled SD even though the test does not. The paired effect size is labeled “standardized mean change (d_z), not comparable with an independent-groups d”. The reporting sentence follows APA form: t(df), the p-value, the difference with its interval and the effect size.

Assumptions and When Not to Use It

  • Independent groups for the first two tabs. Each participant is in one group. For the same people measured twice, or matched pairs, use the paired tab and enter the differences. See Paired Samples t-Test.
  • Welch unless equal variances are justified. Welch’s test is the default because it does not need equal SDs. The pooled-variance test is available for when equal variances are justified by the design or by the evidence.
  • A mean difference is the right question. The t-test compares means. For an ordinal outcome, or when the distributional assumptions behind the means are not tenable, see Parametric vs Nonparametric Tests: How to Choose.
  • Summary statistics hide the data. Outliers, skew and floor or ceiling effects cannot be seen from a mean and SD. Judge them from the raw data or the original report.
  • Two-sided tests at 95%. The interval and the p-value are two-sided.
  • Valid inputs. Each group needs n ≥ 2 and an SD above zero.

Worked Example (Hypothetical Values)

A report gives a symptom score for two independent groups of 30, with a mean of 55 and an SD of 12 in the first group, and a mean of 50 and an SD of 12 in the second.

Input or result Value
Group 1: mean, SD, n 55, 12, 30
Group 2: mean, SD, n 50, 12, 30
Welch t 1.6137
Degrees of freedom 58.00
p-value, two-sided, beside the estimate 0.112
Mean difference, 95% CI 5 (-1.2021 to 11.2021)
Cohen’s d 0.4167

With equal sizes and equal SDs, the pooled-variance tab gives the same result. The interval includes 0, and it is also compatible with a difference of more than 11 points, so the p-value of 0.112 should not be read as evidence of no difference. Press “Load the worked example” under the calculator and these values fill the fields. HYPOTHETICAL VALUES.

What the Result Still Needs

  1. 1
    A test that matches the design. Independent groups and paired measurements are different tests. The report says which one was used and why.
  2. 2
    SDs, not standard errors. The values entered are standard deviations. A standard error entered as an SD gives a test statistic that is far too large.
  3. 3
    The assumptions judged from the data. Outliers and skew are checked in the raw data, and the choice between Welch and pooled variance is stated.
  4. 4
    An effect size with its label. The report names Cohen’s d or Hedges’ g, says that it uses the pooled SD and, for paired data, calls it d_z.
  5. 5
    The whole sentence. The report gives t, the degrees of freedom, the p-value, the mean difference with its confidence interval and the effect size.
Have the test reported correctly

A statistician checks the design behind your summary statistics, chooses the right test and writes the results sentence, with the interval and the effect size, for your manuscript.

Quantitative Data Analysis
Already have a calculation?

Independent Statistical Review confirms an analysis prepared by you, a colleague or an AI tool before it goes to a committee or a journal.

Independent Statistical Review

Frequently Asked Questions

It does not assume equal variances, and when the group sizes and SDs are equal it gives the same answer as the pooled test, as in the worked example. The pooled test needs a common SD. Use the pooled tab only when that assumption is part of your design.

No. A paired test works on the within-person differences, and their SD depends on the correlation between the two conditions, which the two SDs do not reveal. Enter the mean and SD of the differences, taken from the report or the data.

The paired d_z divides the mean difference by the SD of the differences, whereas the independent-groups d divides it by the pooled SD of the groups. The two use different yardsticks. Label the paired value as standardized mean change (d_z).

No. In the worked example the p-value is 0.112, and the interval runs from about -1.2 to 11.2, so it is compatible with no difference and with a substantial one. Report the interval, not only the p-value.

The effect size and the test answer different questions. The test must allow unequal variances to protect the p-value, while d and g use the pooled SD as a common yardstick. The page states this so you can report it.

References

  1. Delacre, M., Lakens, D., & Leys, C. (2017). Why psychologists should by default use Welch’s t-test instead of Student’s t-test. International Review of Social Psychology, 30(1), 92-101. https://doi.org/10.5334/irsp.82
  2. Lakens, D. (2013). Calculating and reporting effect sizes to facilitate cumulative science: A practical primer for t-tests and ANOVAs. Frontiers in Psychology, 4, Article 863. https://doi.org/10.3389/fpsyg.2013.00863
  3. Welch, B. L. (1947). The generalization of “Student’s” problem when several different population variances are involved. Biometrika, 34(1-2), 28-35. https://doi.org/10.1093/biomet/34.1-2.28
i

Method reviewed by an in-house statistician · Last checked November 2026 · Test cases and boundary cases verified before release

Found an error or have a suggestion? Write to info@onlinespss.com with the calculator name and the inputs you used. Every report is checked by a statistician.

Have a Statistician Check Your t-Test Reporting

Share the study aim, the design and the table or report your summary statistics come from. A statistically trained Research Coordinator reviews the request, and the scope and one fixed project fee are confirmed before work begins.

No Commitment Required

Strictly Confidential

Fixed Project Fee

In-House PhD-Level Statisticians

Same-Day Response