T-Test Calculator
Compare two groups of numbers with Welch's t-test, or compare one group with a known value, and get the t value, degrees of freedom and p-value.
These tools are for study and quick checking. A result is only as good as the numbers you enter and the simplifying assumptions in the formula. For published, regulated or safety-critical work, check it against a trusted source or an instrument.
How it works
- Enter your values in the boxes. Where a box has a unit beside it, check the unit before you read the answer.
- The answer updates as you type, so there is no button to press.
- Use Copy results to keep the answer. Check the formula and its limits below if the result will go into a report or an experiment.
The formula
Welch t = (mean1 - mean2) / sqrt(s1^2/n1 + s2^2/n2)
Frequently asked questions
What does the p-value say?
The chance of a difference at least this big if the groups really had the same mean. Small values suggest a real difference.
Why Welch's test?
It does not assume equal spreads in the two groups, so it is safe to use by default.
Is what I enter sent anywhere?
No. The calculation is done in your browser, so your numbers are not sent to a server or saved.
Related tools
ANOVA Calculator
Run a one-way ANOVA on two or more groups of numbers and get the F value, degrees of freedom, p-value and the sums of squares.
Significant Difference Calculator
Test if two proportions or two means differ significantly from summary figures, with the effect size and a plain answer at your chosen alpha.
Confidence Interval Calculator
Find the confidence interval for a mean from the sample mean, standard deviation and size, using the t distribution for any confidence level.