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.
- PriceFree, no login or sign-up needed
- Your dataProcessed in your browser, never uploaded
- Works onPhone, tablet or computer, any modern browser
- Made byDr. Muhammad Aammar Tufail, Codanics
- Published14 November 2026
- Last updated16 November 2026
📚 How to cite this tool
This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.
Tufail, M. A. (2026). T-test calculator [Online tool]. Codanics. Retrieved 16 November 2026, from https://codanics.com/tools/t-test-calculator/
In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)
The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 14 November 2026.
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.
Do I need to log in or create an account to use the t-test calculator?
No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.
How do I cite this tool in my thesis or paper?
Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). T-test calculator [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/t-test-calculator/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.
Free guides and courses from Codanics
More free tools
See all free Codanics tools → · Codanics on YouTube · WhatsApp channel