One-Sample T-Test Calculator: t Statistic & p-Value | EverydayCalcSkip to main content
everydaycalc.

Find calculators and file viewers

Press Esc to close · / or Ctrl+K to open

Home›Math & Scientific›One Sample T-Test Calculator
Math & Scientific

One Sample T-Test Calculator

Run a one-sample Student t test from raw observations against a hypothesized mean, with a two-sided p-value, sample SD and degrees of freedom.

✦ INSTANT CALCULATION

One Sample T-Test Calculator

YOUR RESULT
—

ⓘ Calculated locally in your browser. Results depend on the values and units you enter.

Interactive mathematical graph

The axes, points and dimensions are recalculated from the values you enter.

How this calculator works

A one-sample t test compares the mean of an independent sample with a hypothesized mean. Enter 3–1000 numerical observations and a hypothesized mean. This calculator computes sample standard deviation with n−1 in the denominator, t = (sample mean − hypothesized mean) / (sample SD/√n), df = n−1, and the two-sided Student t tail probability. A constant sample has undefined t statistic and produces an input error. The test assumes independent observations and approximately normal data at small n. A p-value is not the probability that the null hypothesis is true.

Worked example

For observations 2,4,5,7,9 and hypothesized mean 5, calculate the observed t statistic and its two-sided p-value.

Engine-checked example

This example uses the values shown below, not your current entries.

Sample observations (comma or space separated)
2, 4, 5, 7, 9
Hypothesized population mean (H₀)
5
Result for the sample inputs0.757228349937489 p-value

Frequently asked questions

Which test does this calculator perform?

A two-sided, one-sample t test of an independent sample mean against a hypothesized population mean. It does not compare two groups.

Can I enter a sample of just two values?

No. This tool requires at least three numeric observations and calculates sample spread using n minus one degrees of freedom.

Does a small p-value prove the research claim?

No. A p-value describes a result under the test assumptions. It does not quantify the probability that the null hypothesis is true.

Results are informational and assume the stated inputs and formulas. Double-check critical financial or engineering decisions with a qualified professional.

Add this calculator to your website

Share a working calculator on your blog or website. Choose a fixed size or let the height fit the content.

Fixed height

Works on websites that accept iframe HTML.

Responsive height

Automatically adjusts the height. Your website must allow scripts.

Open calculator preview ↗

Powered by EverydayCalc