CalcDepo

One-Sample t-Test Calculator

Compute the t statistic comparing a sample mean to a value.

Inputs

Results

t statistic2
Degrees of freedom35
Approx. two-tailed p-value0.04550013

Chart

Not what you need? Search by intent

Describe what you want to find β€” β€œis the mean different” β€” and jump to the right calculator.

How to use the one-sample t-test calculator

Compute the t statistic comparing a sample mean to a value. Enter sample mean, hypothesised mean, sample standard deviation, sample size in the fields above; the t statistic, degrees of freedom, approx. two-tailed p-value are computed instantly and plotted on the chart so you can see how the answer changes.

Formula

t statistic = (m-mu) / (s / √(n))
Degrees of freedom = n-1
Approx. two-tailed p-value = 2 Γ— (1-ncdf(abs([t statistic])))

Variables

  • m β€” Sample mean
  • mu β€” Hypothesised mean
  • s β€” Sample standard deviation
  • n β€” Sample size

Worked example

With sample mean = 52, hypothesised mean = 50, sample standard deviation = 6, sample size = 36, the calculator gives t statistic β‰ˆ 2; degrees of freedom β‰ˆ 35; approx. two-tailed p-value β‰ˆ 0.04550013.

Frequently asked questions

What is the formula for the one-sample t-test calculation?

t statistic = (m-mu) / (s / √(n)). Degrees of freedom = n-1. Approx. two-tailed p-value = 2 Γ— (1-ncdf(abs([t statistic]))). Here m is sample mean, mu is hypothesised mean, s is sample standard deviation, n is sample size.

What inputs do I need for the one-sample t-test calculator?

You need sample mean, hypothesised mean, sample standard deviation, sample size. Each field is pre-filled with a typical example so you can see how the result responds as you edit the numbers.

How do I use this calculator?

Type values into the input fields. Results and the chart update instantly. Use Reset to restore the example values, Copy results to paste them elsewhere, or Share to copy a link that preserves your inputs.

Is the result exact?

Calculations use standard formulas and double-precision arithmetic, then display about seven significant figures. Real-world measurements carry uncertainty, so treat results as estimates unless your inputs are exact.

Related calculators

More in Statistics & Probability: Mean, Median and Mode Β· Standard Deviation Β· Quartiles and IQR Β· Percentile Β· Z-Score Β· Normal Distribution Probability Β· Inverse Normal Β· Binomial Probability