Paired & Unpaired Two-Sample Student's t-Test

One-Sample Student's t-Test Calculator

Calculate t-statistic t = (x̄ - μ₀) / (s / √n), standard error of the mean, and two-tailed hypothesis test significance at α = 0.05.

t-Test Inference Output Client-Side Execution
t-Statistic

2.471

Degrees of Freedom: 24
Standard Error (SE)

1.700

s / √n
Critical t (α=.05)

±2.12

Two-tailed threshold
Null Hypothesis

Reject H₀ (p < 0.05)

Statistically significant difference

At a Glance

Category
Statistics
Best For
Students testing a sample mean when the standard deviation is estimated
Privacy
100% in your browser: nothing you enter is uploaded
Time Required
Under a minute
Cost
Free
Updated
November 2026

Quick Overview

What This Tool Does

Divides the difference between the sample mean and the hypothesized mean by the standard error and compares it with an approximate critical value.

Who Should Use It

Statistics students, scientists and analysts.

When to Use It

Small samples where the population standard deviation is unknown.

Why It Is Useful

The t-test accounts for the extra uncertainty of estimating the standard deviation.

Key Features & Capabilities

t statistic

The standardized difference from the hypothesized mean.

Standard error

The sample standard deviation divided by √n.

Significance check

Compared with an approximate 0.05 threshold.

How to Use This Tool

1

Enter the means

Type the sample mean and the hypothesized mean. Tip: Use the same units.

2

Enter s and n

Type the sample standard deviation and the sample size. Tip: n must be at least 2.

3

Read the t statistic

Larger absolute values mean stronger evidence. Tip: The sign shows direction.

4

Compare with the threshold

If |t| exceeds the critical value the result is significant at 0.05. Tip: Confirm with an exact table for important decisions.

Worked Real-World Example

25 observations

A sample of 25 has a mean of 104.2 and a standard deviation of 8.5. Test whether the true mean is 100.

Sample Inputs
Sample mean104.2
Hypothesized mean100.0
Sample standard deviation8.5
Sample size25
t statistic2.471 (df 24; significant at 0.05)
Calculation Breakdown
Standard error: 8.5 ÷ √25 = 1.7
t statistic: (104.2 − 100) ÷ 1.7 = 2.471
Degrees of freedom and threshold: df = 24; 2.0 + 4 ÷ 34 = 2.12 (the exact table value is about 2.064)
Decision: 2.471 exceeds 2.12 = Significant at 0.05
The sample mean is about 2.5 standard errors above 100, unlikely if the true mean were 100. The tool's threshold is an approximation, but the exact 2.064 gives the same decision.

How It Works (Math & Calculation Logic)

df = n − 1. Standard error = s ÷ √n. t = (sample mean − hypothesized mean) ÷ standard error. The two-tailed 0.05 critical value is approximated as 1.96 for df above 30 and 2.0 + 4 ÷ (df + 10) otherwise. The result is significant if |t| exceeds it.

Formula / Algorithmt = (x̄ − μ₀) ÷ (s ÷ √n)
Variable & Logic Definitions
x̄Sample mean - Observed
μ₀Hypothesized mean - Under H₀
sSample SD - Standard deviation
nSample size - Observations (count)

How to Interpret Your Results

Typical Benchmarks

For large samples the critical value approaches 1.96.

Evaluating Your Output

Smaller samples need larger t values for significance.

Recommended Next Action

Use the exact critical value or p-value from statistical software for formal reporting.

Frequently Asked Questions

What is a t-test?
A test of a mean using the t distribution when σ is estimated from the sample.
When do I use t instead of z?
When the sample is small and the population standard deviation is unknown.
How do I find degrees of freedom?
n minus one for a one-sample test.
Is the critical value exact?
It is an approximation; exact values come from a t table.
What does significant mean?
The result is unlikely under the null hypothesis at the 5% level.

Complementary QuickForma Utilities

Mathematics & Statistics

Z-Score Calculator

Calculate standard score Z = (X - mu) / sigma and percentile rank under standard normal curve.

Open Tool
Mathematics & Statistics

Confidence Interval Calculator

Calculate margin of error E = Z * (sigma / sqrt(n)) and lower/upper bounds for confidence intervals.

Open Tool
Mathematics & Statistics

Hypothesis Test Calculator

Calculate test statistic Z = (xbar - mu) / (s / sqrt(n)), two-tailed p-value, and significance decision.

Open Tool
Mathematics & Statistics

One-Way & Two-Way ANOVA F-Test Calculator

Computes Analysis of Variance (ANOVA) table, Sum of Squares, Mean Squares, and F-statistic.

Open Tool
Mathematics & Statistics

p-Value Calculator from Z, t, F & Chi-Square Statistics

Converts test statistics (Z, t, F, chi²) into one-tailed and two-tailed p-values.

Open Tool
Mathematics & Statistics

Pearson r & Spearman Rank Correlation

Computes Pearson product-moment correlation coefficient r and Spearman rank correlation.

Open Tool
Mathematics & Statistics

IQR, Box Plot Quartiles & Outlier Detector

Solves Q1, Q2 (Median), Q3, Interquartile Range (IQR), and identifies mild/extreme outliers (1.5 × IQR).

Open Tool
Mathematics & Statistics

Polar vs Rectangular Complex Number Calculator

Online client-side Polar vs Rectangular Complex Number Calculator tool.

Open Tool
Mathematics & Statistics

Factorial n! & Permutation Formula Solver

Online client-side Factorial n! & Permutation Formula Solver tool.

Open Tool
Mathematics & Statistics

Logarithm Base-b Conversion Solver

Online client-side Logarithm Base-b Conversion Solver tool.

Open Tool