About Welch's T-Test Calculator
This Welch's t-test calculator compares the means of two independent groups without assuming that they have equal variances, and shows the Student test next to it. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.
Welch’s test uses each group’s own variance in the standard error and adjusts the degrees of freedom with the Welch-Satterthwaite formula, which is usually not a whole number. That is why it stays accurate when the groups have different spreads or very different sizes.
The page opens on two groups with unequal spread and size. The table under the answer shows both tests, so you can see how much the choice changes the p-value.
How to use Welch's T-Test Calculator
- Choose the test: one-sample, paired or two-sample.
- Choose raw data or summary statistics. For raw data, paste each list; for paired data, keep the two lists in the same order and the same length.
- For a one-sample test type the hypothesised mean. For two samples pick Welch or Student.
- Pick the alternative hypothesis (two-tailed, right or left) and the significance level.
- Read the t statistic, p-value, interval and Cohen's d, then open the working to see every formula.
Features
- One-sample, paired and independent two-sample t-tests.
- Welch (unequal variances) and Student (pooled) two-sample tests, compared side by side with a recommendation.
- Raw data or summary statistics (mean, standard deviation, n).
- Cohen's d with a size label, plus the standard error and a confidence interval.
- Left, right or two-tailed tests, with the critical value for your significance level.
- A bell curve with the rejection region shaded and the t statistic marked.
- Step-by-step KaTeX working and a plain-English conclusion.
Welch's t-test
The standard error adds the variance of each mean, and the degrees of freedom come from the Welch-Satterthwaite approximation.
t = (x̄1 − x̄2) / √(s1²/n1 + s2²/n2)
df = (s1²/n1 + s2²/n2)² / ( (s1²/n1)²/(n1 − 1) + (s2²/n2)²/(n2 − 1) )Worked examples
Group 1: mean 83.2, SD 4.1, n 12. Group 2: mean 78, SD 9.5, n 25 gives Welch t = 2.323, df = 34.81, p = 0.026. Student t = 1.807, df = 35, p = 0.079
When the smaller group also has the smaller spread, Student and Welch can give clearly different answers.
Sleep data, drug 1 and drug 2, raw values gives t = -1.861, df = 17.78, p = 0.079
R: t.test(extra ~ group, data = sleep) gives t = -1.8608, df = 17.776, p = 0.07939.
Privacy: how it works
- The test is calculated by code in your own browser tab. Your data is not sent to Ulkaa or to any other server.
- There is no account and nothing is stored. Closing the tab clears what you entered.
Tips
- Use the paired test when the same people or items are measured twice. Using the two-sample test on paired data throws away the pairing and usually loses power.
- Decide one-tailed or two-tailed before you see the data. A two-tailed test is the safe default.
- Report the effect size and the interval with the p-value. A tiny p-value with a negligible Cohen's d is statistically significant but may not matter in practice.
- If your lists have different lengths, that is fine for the two-sample test, but the paired test needs equal lengths.
Frequently asked questions
Is it really free?
Yes. There is no price, no trial and no credit card. Ulkaa Tool does the work with your own device, so there is no server bill to pass on to you.
Do I need an account?
No. There is no sign-up and no login. Open the page and use it. An Ulkaa account is not needed for anything on this tool.
Does it run in my browser?
Yes. Your data are processed by code running in your browser tab, on your own device.
Is my data uploaded?
No. Your data are never sent to Ulkaa or to anyone else. You can check this yourself by watching the Network tab in your browser developer tools while you use the tool.
Why are the degrees of freedom not a whole number?
Welch’s formula estimates an effective degrees of freedom between the smaller group’s n minus 1 and n1 + n2 minus 2. Software uses the fractional value, and so does this calculator.
Should I always use Welch?
It is a sound default. It gives nearly the same result as Student when the variances are equal and the correct one when they are not, so there is little to lose.
More T-Test Calculator pages
- T-Test CalculatorRun a one-sample, paired or two-sample t-test from raw data or summary statistics, with Cohen's d, the p-value and the working.
- One-Sample T-Test CalculatorCompare the mean of one sample with a value you expect and see the t statistic, p-value and working.
- Paired T-Test CalculatorPaste two matched lists and get the paired t statistic, p-value and working.
- Two-Sample T-Test CalculatorCompare the means of two independent groups with the classic pooled Student t-test.
- Cohen's d CalculatorGet Cohen's d for two groups from summary statistics, with the matching t-test and a size label.