T-Test Calculator: Independent, Welch, Paired and One-Sample
Compare two groups, a before-and-after measurement or a sample against a known value. Paste raw data or type means and SDs, and get t, df, p, the 95% CI, Cohen’s d and a sentence ready for your results section.
How to use the t-test calculator
- Pick the test: independent samples (two separate groups), paired samples (the same people measured twice) or one sample (compare with a known value).
- Choose raw data or summary statistics. For raw data, type or paste each group’s values into its box, or use Paste from Excel or Upload CSV / Excel to load your spreadsheet. A long-format sheet (a group column and a value column) is split into the two groups for you.
- Choose two-tailed (the usual choice) or one-tailed, and keep Welch’s test unless you have a good reason to assume equal variances.
- Click Run t-test and copy the APA sentence. Download the means plot for your thesis.
Which t-test should I use?
| Design | Example | Test |
|---|---|---|
| Two separate groups | Yield of treated vs untreated plots | Independent samples (Welch) |
| Same subjects measured twice | Blood pressure before and after a diet | Paired samples |
| One group vs a known value | Is mean IQ in our sample different from 100? | One sample |
| Three or more groups | Four fertilizer doses | ANOVA, not several t-tests |
Formulas
Assumptions
- The observations are independent (except for the pairing in a paired test).
- The data, or the paired differences, are roughly normally distributed. With more than about 30 per group, the t-test is robust to mild non-normality.
- Student’s test also assumes equal variances. Welch’s test does not, which is why it is the recommended default.
Frequently asked questions
Should I use Welch's or Student's t-test?
Use Welch’s t-test by default. It gives almost the same answer as Student’s test when variances are equal, and it protects you when they are not. Many statisticians recommend skipping the equal-variance check altogether and always using Welch.
How do I report a t-test in APA style?
Report the means and SDs, then t(df) = value, p = value, and an effect size, for example: t(22) = 4.35, p < .001, d = 1.78. This tool writes that sentence for you.
What is the difference between one-tailed and two-tailed?
A two-tailed test checks for a difference in either direction and is the standard choice. Use one-tailed only if you specified the direction before collecting data and a difference in the other direction would be meaningless.
Can I run a t-test from mean and standard deviation only?
Yes. Switch the input to ‘Summary statistics’ and type the mean, SD and n of each group. This is handy for checking published papers or extracting data for a meta-analysis.
What if my p-value is above 0.05?
It means your data do not provide strong evidence of a difference. It does not prove that the groups are the same. Report the effect size and confidence interval so readers can judge the size and precision of the difference.
Is my data uploaded?
No. The test runs entirely in your browser.