T Test Calculator
Calculate the t-statistic and p-value for one-sample, two-sample, or paired t-tests using raw data or summary statistics.
Input mode:
Enter your data and click Calculate
Results will appear here
t-statistic
—
Degrees of Freedom
—
p-value (2-tailed)
—
Sample Statistics
| Group | n | Mean | Std Dev | Std Error |
|---|
Formula used
Summary
Calculate the t-statistic and p-value for one-sample, two-sample, or paired t-tests using raw data or summary statistics.
How it works
- Select the test type: one-sample, two-sample (independent), or paired.
- Enter your data as comma- or space-separated numbers, or switch to summary statistics mode.
- For one-sample tests, set the hypothesized mean (H₀); for two-sample tests, paste a second data set.
- Click Calculate to compute the t-statistic and degrees of freedom.
- The tool looks up the p-value using a JavaScript implementation of the Student's t-distribution and reports whether the result is statistically significant at α = 0.05.
Use cases
- Determine whether a product's average weight differs from the labelled value.
- Compare exam scores between two student groups before and after an intervention.
- Analyze before-and-after blood pressure readings in a clinical trial.
- Validate A/B test results by checking if two conversion rate samples differ significantly.
- Quickly verify homework or statistics course assignments.
- Check whether a sample mean deviates from a quality-control threshold.
- Perform preliminary data analysis before running more complex ANOVA tests.
- Teach students the relationship between t-statistic, degrees of freedom, and p-value.
Frequently Asked Questions
Last updated: 2026-06-10 ·
Reviewed by Nham Vu