About Two-Sample T-Test Calculator
This two-sample t-test calculator compares the means of two independent groups with the Student test, which pools the variances, and shows Welch alongside for comparison. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.
Enter the mean, standard deviation and size of each group, or paste the raw data. The result gives the pooled variance, the standard error, the t statistic with n1 + n2 minus 2 degrees of freedom, the p-value, the critical value and Cohen’s d.
The page opens on the NIST car-mileage example, which uses this exact test. A recommendation line tells you whether Welch would be the safer choice for your variances and group sizes.
How to use Two-Sample 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.
Student two-sample t-test
The two sample variances are pooled into one estimate, weighted by their degrees of freedom.
s_p² = ((n1 − 1) s1² + (n2 − 1) s2²) / (n1 + n2 − 2)
t = (x̄1 − x̄2) / √(s_p² (1/n1 + 1/n2)), df = n1 + n2 − 2Worked examples
US cars: n 249, mean 20.14458, SD 6.41470. Japanese cars: n 79, mean 30.48101, SD 6.10771 gives t = -12.6206, df = 326, critical values ±1.9673
NIST/SEMATECH e-Handbook, section 1.3.5.3: T = -12.62059, df 326, critical value 1.9673.
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.
What does the Student t-test assume?
Independent observations, roughly normal data in each group and equal population variances. If the variances may differ, use Welch instead.
How are the degrees of freedom found?
They are n1 plus n2 minus 2. For the NIST example, 249 plus 79 minus 2 is 326.
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.
- Welch's T-Test CalculatorCompare two means without assuming equal variances, with Welch-Satterthwaite degrees of freedom.
- Cohen's d CalculatorGet Cohen's d for two groups from summary statistics, with the matching t-test and a size label.