About T Test Calculator
A t test asks whether a difference between means is larger than the noise in the samples. This calculator covers the three common forms: one sample compared with a fixed value, two independent groups with Welch or pooled variances, and paired measurements on the same subjects. Results come from Student's t distribution rather than a normal approximation, so they stay usable with small samples.
Paste raw values or enter summary n, mean and standard deviation, then read t, degrees of freedom, the two-tailed p-value, the mean difference and a confidence interval. The formulas and assumptions are shown next to the result, because a p-value is only as meaningful as the sampling design and the independence of the observations.
What this tool does
Three t tests in one panel
Switch between one-sample, two-sample and paired t tests; the required inputs change with the selected design.
Raw data or summary statistics
Paste lists separated by commas, spaces or newlines, or type n, mean and standard deviation when the raw values are not available.
Welch or pooled variance
Use Welch's correction by default for unequal variances, or choose the pooled Student t test when equal variances are a reasonable assumption.
Two-tailed p-value from the t distribution
The p-value uses the regularized incomplete beta function, so it is the actual Student's t tail rather than a normal approximation.
Confidence interval and alpha choice
Pick 0.10, 0.05 or 0.01 as the significance level and read a confidence interval for the mean difference at the matching confidence.
Working and assumptions shown
Every result lists the substituted formulas, the group summaries and a short list of the assumptions that the p-value depends on.
How to use T Test Calculator
- 01
Choose the test
Use one-sample for a mean against a fixed value, two-sample for two independent groups, and paired when the same subjects are measured twice.
- 02
Enter raw data or summaries
Paste the values, or switch to summary statistics and type the sample size, mean and standard deviation for each group.
- 03
Set alpha and the null mean
Pick a significance level; for a one-sample test, enter the value μ₀ that the sample is being compared against (0 is the default).
- 04
Read the result
The main figure is the two-tailed p-value; the grid also shows t, df, the mean difference, the standard error and the confidence interval.
- 05
Check the assumptions
Confirm independence, approximate normality and, for the pooled test, equal variances; the notes under the result explain what each assumption covers.
How this tool works
- Works with
- NUMBERS → T TEST
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- Chrome, Edge, Firefox or Safari · JavaScript enabled
Limitations worth knowing
- The calculator reports two-tailed p-values and does not offer a one-tailed mode or a directional hypothesis setting.
- It assumes independent observations and approximately normal sample means; it does not test those assumptions, so skewed small samples need a different method.
- Summary mode trusts the n, mean and standard deviation you enter; it cannot detect inconsistent or rounded summaries.
- No multiple-comparison correction, effect size beyond the mean difference and confidence interval, or nonparametric alternative is included.
Privacy and file handling
The values you paste or type are parsed and calculated with plain JavaScript in your browser tab. Nothing is uploaded, stored or logged, and the tool makes no network request while you work. Closing the page clears the inputs.
Read the full privacy policy
