1. Home
  2. Calculators
  3. T-Test Calculator

T-Test Calculator

For comparing groups in coursework and lab work: paste your data or enter summary statistics and get t, degrees of freedom, p, the confidence interval and an effect size.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use T-Test Calculator

  1. Enter your numbers, or press a sample to see an example.
  2. Read the results and the table under them.
  3. Copy the results or download the table as a CSV file.

Features

  • Welch, pooled, paired and one-sample tests
  • Raw data or summary statistics
  • One-way ANOVA table with eta and omega squared
  • One- or two-sided p-value and confidence interval
  • A t distribution chart with the tails shaded

Supported formats

Input

  • Typed or pasted numbers
  • Plain text with spaces, commas or lines

You get

  • On-screen results
  • t distribution chart (SVG and PNG)
  • CSV tables

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the T-Test Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • The tests assume the data are independent observations; the tool cannot check study design, bias or whether a test suits your question.
  • ANOVA gives only the omnibus test; post-hoc comparisons are not included.

Guide

T-tests and one-way ANOVA: comparing group means with p-values and intervals

The t-test answers one of the commonest questions in science: is the difference between these averages bigger than random variation would produce? This calculator offers the six versions you are likely to need, from raw data or summary statistics, with the p-value, a confidence interval for the difference and an effect size. A one-way ANOVA covers three or more groups. A chart shows the t distribution with the tails of your result shaded.

Choosing the test

Two independent groups with possibly different spreads: Welch’s test, the default. Two groups with equal variances: Student’s pooled test. The same subjects measured twice: the paired test. One sample against a known value: the one-sample test. Two groups known only through their n, mean and standard deviation: the summary option. Three or more groups: ANOVA. Welch’s test loses little when variances are equal, which is why it is a safe default.

Entering data

For raw data paste the numbers of each group separated by spaces, commas or lines. The alternative hypothesis can be two-sided or one-sided (group 1 larger or smaller), and α can be 0.10, 0.05 or 0.01. For ANOVA type one group per line, optionally with a name before a colon, such as A: 4.2 5.1 4.8 5.5 4.9. Groups need at least two values each, and a paired test needs the same count in both lists, with each pair in the same position.

Reading a t-test

The rows show the group summaries, the difference in means, its standard error, the t statistic, the degrees of freedom, the p-value, the confidence interval of the difference and a decision at your α. The default data, two groups of ten, give a difference of −2.52, standard error 1.2754781, t = −1.9757297, df = 15.2679 and p = 0.0665, with a 95% interval of −5.2344678 to 0.19446776. Because p ≥ 0.05 and the interval includes 0, the difference is not significant at 5%.

Paired, one-sample and summary examples

For eight before-and-after readings with differences averaging 4.5 and a standard deviation of 3.1622777, the paired test gives a standard error of 1.118034, t = 4.0249224, df = 7, p = 0.0050 and an interval of 1.8562697 to 7.1437303. Testing the first group of ten against 20 gives t = 0.72499, df = 9 and p = 0.4869. Summary statistics n = 30, mean 52, SD 10 against n = 35, mean 47, SD 12 give t = 1.8321511, df = 62.9588 and p = 0.0717.

One-way ANOVA

For three groups A, B and C the tool gives an ANOVA table with the sums of squares, degrees of freedom, mean squares, F and p. The sample data have means 4.9, 6.16 and 7.3, F = 37.401384 on 2 and 12 degrees of freedom and p below 0.0001, with η² = 0.861756 and ω² = 0.829163: group membership explains about 86% of the variation. ANOVA says that at least one mean differs but not which; follow it with a post-hoc test.

The chart and effect size

The chart draws the t distribution for your degrees of freedom, shades the tail area equal to the p-value and marks the critical values. The page also reports Cohen’s d for independent groups and d_z for paired data, so a significant result can be judged for size: the paired example has d_z = 1.423, a large effect, while the 52 versus 47 summary example has d = 0.449, a small to medium one.

Limits

All the t-tests assume independent observations and roughly normal data or enough observations to rely on the central limit theorem; extreme outliers and tiny skewed samples can mislead. The tool does not run non-parametric alternatives such as Mann-Whitney, post-hoc comparisons or repeated-measures ANOVA, and it cannot check study design or multiple testing. A small p-value is not proof of an important effect.

Checked against the current version of the T-Test Calculator on .

Frequently asked questions

When is a paired t-test the right choice?

When each value in one group is linked to exactly one value in the other, such as the same people measured before and after, or two measurements on the same sample. The test works on the differences, which removes the person-to-person variation and often makes a real change easier to detect.

Why does a result with p = 0.0665 not count as significant?

Because it is above the chosen α of 0.05, so the data are not unusual enough under the null hypothesis to reject it at that level. It does not show that the means are equal, only that this sample cannot rule it out. The interval, −5.23 to 0.19 for the difference, shows the plausible range and includes zero.

Should I use Welch or Student’s t-test?

Welch is the safer default because it does not assume equal variances and loses little power when they are equal.

What does the ANOVA tell me?

Whether at least one group mean differs. A significant F should be followed by a post-hoc test to see which groups differ.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.