AP Stats T-Test Calculator

Run a one-sample t-test in seconds. Enter your sample mean, the population mean from the null hypothesis, the sample standard deviation, and the sample size. This calculator gives you the t statistic, the degrees of freedom, and guidance on how to interpret the result.

AP Stats T-Test Calculator (One-Sample)

Enter your values and press Calculate T-Test.

T scale from -4 to +4. The marker shows your t statistic.

Interactive visual: Live preview

Press Show live preview to redraw this chart from your calculator inputs.

What Is a T-Test?

A t-test checks whether a sample mean is far enough from a claimed value to be surprising. It is used instead of a z-test when the population standard deviation is unknown and you must estimate it from the sample. The test statistic follows a t-distribution, whose shape depends on the degrees of freedom.

Interactive visual: See the idea

Example: x-bar 105, mu 100, s 15, n 25 — t = 1.67, df = 24, p about 0.108.

How to Use This Calculator

Interactive visual: Walk through it

Step 1: Open the AP Stats T-Test Calculator calculator at the top and enter the values it asks for.

1) Type the sample mean from your data. 2) Type the population mean you are testing against, which is the null hypothesis value. 3) Type the sample standard deviation, s, not the population standard deviation. 4) Type the sample size, n. 5) Press Calculate T-Test and read the t statistic and degrees of freedom, then use a t-table or p-value calculator to finish the decision.

How to Calculate a One-Sample T-Test

Interactive visual: See it on a chart

Press Update visual to redraw this chart from your calculator inputs.

The formula is: t = (x-bar - mu) / (s / square root of n), with degrees of freedom = n - 1. The denominator, s / square root of n, is the standard error of the mean. A larger absolute t value means the sample mean is farther from the null value, relative to sampling variation.

Worked example: x-bar = 105, mu = 100, s = 15, n = 25. Standard error = 15 / 5 = 3. t = (105 - 100) / 3 = 1.67. Degrees of freedom = 25 - 1 = 24. A t of 1.67 with df = 24 gives a two-tailed p-value of about 0.108, so you would fail to reject the null at alpha = 0.05.

Tips and Common Mistakes

Interactive visual: Mistake vs correct

Mistake: Using z = 1.96 as the cutoff for a small sample t-test.

Frequently Asked Questions

Interactive visual: FAQ

Tap any question below to show or hide its answer.

When do I use a t-test instead of a z-test?

Use a t-test when the population standard deviation is unknown and you estimate it with the sample standard deviation, s, especially for smaller samples.

What are the degrees of freedom for a one-sample t-test?

Degrees of freedom = n - 1, where n is the sample size.

What does a t statistic of 0 mean?

It means the sample mean exactly equals the null value, so there is no evidence against the null hypothesis from this sample.

Why is the t-distribution wider than the normal distribution?

Because estimating the standard deviation from the sample adds uncertainty, especially when n is small. As n grows, the t-distribution approaches the normal distribution.

Can I use this calculator for a two-sample t-test?

No, this page is for a one-sample t-test only. A two-sample t-test needs two sample means, two standard deviations, and two sample sizes, and it uses a different standard error and degrees of freedom.

What if my sample size is very small?

Then the normality condition matters more. Check a graph of the data for strong skew or outliers, and be cautious about your conclusion.

Related Calculators and Guides

Keep exploring AP Statistics with calculators and guides related to this tool.

Related Calculators

Interactive visual: Tool path

Start with this tool, then follow the path through the related calculators.

T-Test Calculator → Two-Sample T-Test Calculator → Hypothesis Testing Calculator

Related Guides

Disclaimer: AP is a trademark of the College Board, which was not involved in this site.

All AP Statistics Calculators

Use any of the 25 free calculators below, no login needed. Each calculator opens on its own page with its own formula, worked example, tips, and FAQs.

AP Statistics Score Calculator Z-Score Calculator P-Value Calculator T-Test Calculator Confidence Interval Calculator Margin of Error Calculator Standard Deviation Calculator Chi-Square Calculator Binomial Distribution Calculator Normal Distribution Calculator Expected Value Calculator Hypothesis Testing Calculator Sample Size Calculator Correlation Coefficient Calculator Residual Calculator Linear Regression Calculator Two-Sample T-Test Calculator Proportion Confidence Interval Calculator Variance Calculator Geometric Distribution Calculator Percentile Calculator Degrees of Freedom Calculator Outlier Calculator R-Squared Calculator Poisson Distribution Calculator

Read the AP Statistics guides for worked examples, TI-84 steps, and exam strategy.