About Paired T-Test Calculator
This paired t-test calculator compares two measurements taken on the same subjects, such as before and after a treatment, by testing whether the mean difference is zero. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.
Paste the first measurement in one box and the second in the other, in the same order. The calculator subtracts them pair by pair and runs a one-sample t-test on the differences. If you only have the mean, standard deviation and count of the differences, switch to summary statistics.
Pairing matters because each subject acts as its own control. The same sleep data analysed as two independent groups is not significant at 0.05, but analysed as pairs it is clearly significant.
How to use Paired 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.
Paired t-test
Take the difference of each pair, then test the mean difference against zero.
d_i = a_i − b_i
t = d̄ / (s_d / √n), df = n − 1Worked examples
Sleep data, drug 1 minus drug 2, 10 patients, two-tailed gives t = -4.062, df = 9, p = 0.003
R: t.test(extra ~ group, data = sleep, paired = TRUE) gives t = -4.0621, df = 9, p = 0.002833.
Drug 2 minus drug 1, right-tailed (is drug 2 better?) gives t = 4.062, p = 0.001
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.
Do the two lists need the same length?
Yes. Each value in the first list is matched with the value at the same position in the second. The calculator tells you if the lengths differ.
What is the difference between a paired and an independent t-test?
A paired test uses the differences within matched pairs and removes between-subject variation. An independent test treats the groups as unrelated. Use the paired test only when each value really has a partner.
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.
- Two-Sample T-Test CalculatorCompare the means of two independent groups with the classic pooled Student t-test.
- 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.