T-Test Calculator
Calculate the t-statistic, degrees of freedom, and approximate p-value for a one-sample t-test.
Inputs
Results
T-Statistic
1.83
P-Value (two-tailed, approx)
0.07
How to Use This Calculator
- Enter Sample Mean (x̄), Population Mean (μ), and Sample Standard Deviation (s).
- Set Sample Size (n).
- Review T-Statistic and P-Value (two-tailed, approx).
- Use Degrees of Freedom and Standard Error to inform your decision.
- Use the chart to visualize the results and explore different scenarios by adjusting inputs.
How the result changes with Sample Mean (x̄)
| Sample Mean (x̄) | T-Statistic | P-Value (two-tailed, approx) |
|---|---|---|
| -800,000 | -292,155.21 | 0 |
| -300,000 | -109,581.03 | 0 |
| 300,000 | 109,508 | 0 |
| 800,000 | 292,082.18 | 0 |
What each input means
- Sample Mean (x̄)
- The mean of your sample data.
- Population Mean (μ)
- The hypothesized population mean under the null hypothesis.
- Sample Standard Deviation (s)
- The standard deviation of your sample data.
- Sample Size (n)
- The number of observations in your sample. Must be at least 2.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersSample Mean (x̄) = 105, Population Mean (μ) = 100, Sample Standard Deviation (s) = 15, Sample Size (n) = 30 = 4 input(s) provided
- Calculate T-StatisticT-Statistic1.8257 = 1.8257
- Calculate P-ValueP-Value0.0726 = 0.0726
- Calculate Degrees of FreedomDegrees of Freedom = df29 = 29
- Calculate Standard ErrorStandard Error2.7386 = 2.7386
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Chi-Square Test Calculator
Perform a chi-square goodness-of-fit test comparing observed and expected frequencies across four categories.
StatisticsANOVA Calculator
Perform a one-way ANOVA (Analysis of Variance) to compare means across three groups and determine if differences are statistically significant.
Data ScienceA/B Test Calculator
Determine statistical significance of A/B test results. Calculate z-score, p-value, conversion lift, and whether your variant beats the control at your chosen confidence level.
Construction & Building TradesInsulation Calculator
Calculate insulation costs, energy savings, and payback period. Determine the best insulation for your home.
StatisticsKruskal-Wallis Test Calculator
Perform a Kruskal-Wallis H test to compare rank distributions across multiple independent groups.
More in Math & Statistics.