A t-test compares a mean with a fixed value, or two means with each other, when the population standard deviation is estimated from the data. The test statistic follows a t-distribution; one-sample, independent-samples and paired versions exist.
Formula
t = (x̄ − μ₀) / (s / √n)