TTEST Function

Excel Functions › Compatibility

All versions (legacy) Compatibility

The Excel TTEST function returns the probability (p–value) of a Student's t–test on two data sets. It is a legacy name — Microsoft now recommends T.TEST, which is identical.


Quick answer:
=TTEST({3,4,5,8,9,1,2,4,5},{6,19,3,2,14,4,5,17,1},2,1) paired two-tailed p ≈ 0.196

Syntax

=TTEST(array1, array2, tails, type)
ArgumentDescription
array1RequiredThe first data set.
array2RequiredThe second data set.
tailsRequired1 = one-tailed, 2 = two-tailed.
typeRequired1 = paired; 2 = two-sample equal variance; 3 = two-sample unequal variance.

How to use it

TTEST compares two samples and returns the p–value — the probability that the difference in means arose by chance. Choose the tail count and the test type.

=TTEST({3,4,5,8,9,1,2,4,5},{6,19,3,2,14,4,5,17,1},2,1) // paired, two-tailed p ≈ 0.196

type 1 is a paired test (the two arrays must be the same length); type 2 assumes equal variances; type 3 (Welch) does not. A small p–value (say below 0.05) suggests the means differ significantly.

Use the modern name: =T.TEST(array1, array2, tails, type) takes the same four arguments and returns the same p–value. TTEST is kept only for backward compatibility.

Try it: interactive demo

Live demo

Pick a TTEST example to see the formula and its result.

Result:

Practice workbook

📊
Download the free TTEST practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

Is TTEST the same as T.TEST?
Yes — T.TEST (Excel 2010+) takes the same array1, array2, tails, and type arguments and returns identical p–values. TTEST is kept for backward compatibility.
What do the type values mean?
1 = paired (same-length arrays), 2 = two-sample assuming equal variances, 3 = two-sample assuming unequal variances (Welch's test).
How do I read the result?
TTEST returns a p–value. A small value (commonly < 0.05) indicates the two means differ more than chance would explain.
Should I switch to T.TEST?
For new work, yes — it is the supported name. Existing TTEST formulas keep working.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: T.TEST · TDIST · TINV · F.TEST · Z.TEST