Perform one‑sample or two‑sample independent t‑tests (Welch’s). Obtain t‑value, degrees of freedom, one/two‑tailed p‑value, Cohen’s d, and Hedges' g. Paste raw data or use summary statistics. Interactive t‑distribution curve with tooltip.
The t‑statistic measures how many standard errors the sample mean (or difference of means) lies from the hypothesized population parameter. It is the backbone of Student’s t‑test, used when the population standard deviation is unknown and sample sizes are moderate. William Sealy Gosset (aka “Student”) developed the t‑distribution in 1908 to monitor quality in Guinness breweries – a breakthrough in small‑sample inference.
One‑sample: t = (x̄ − μ₀) / (s / √n) | Two‑sample (Welch): t = (x̄₁ − x̄₂) / √(s₁²/n₁ + s₂²/n₂)
Welch–Satterthwaite df: df ≈ (s₁²/n₁ + s₂²/n₂)² / [ (s₁²/n₁)²/(n₁−1) + (s₂²/n₂)²/(n₂−1) ]
For a one‑sample t‑test, the null hypothesis assumes the population mean equals μ₀. The test statistic follows a t‑distribution with n−1 degrees of freedom if assumptions (normality, independence) are reasonably met. Our calculator computes the p‑value based on your selected tail (one‑tailed left/right or two‑tailed) using the cumulative distribution function of the t‑distribution. For two independent samples, we implement Welch’s t‑test, which does not assume equal variances and provides robust results even when variances differ.
The 95% confidence interval for the mean difference (or single mean) is also reported, giving a range of plausible values for the true parameter. Cohen’s d is computed as (mean difference) / pooled SD (one‑sample: d = (x̄ − μ₀)/s ; two‑sample: d = (x̄₁−x̄₂) / √[(s₁²+s₂²)/2] – a common approximation of the population standard deviation). Hedges' g is calculated as Cohen's d multiplied by a correction factor: g = d × (1 - 3/(4*(n₁+n₂)-9)) for two-sample tests, which reduces small-sample bias.
A marketing team launched a new checkout UI. With 42 days of data (new design: n=42, mean conversion = 3.2%, sd=0.8%; old design: n=40, mean=2.9%, sd=0.9%). Using the two‑sample t‑test (Welch’s), the t‑statistic was 1.86 with df=78.3, p‑value = 0.066. At α=0.05, not statistically significant, but the effect size d=0.35 (small to medium). The team decided to collect more data. This calculator reproduces such real‑world scenarios, empowering data‑driven decisions.
? Data note: This case study is based on a simulated dataset reflecting patterns commonly observed in online retail experiments. No proprietary or confidential data was used.
Accuracy is ensured by three measures:
If you suspect an error, please contact us with your inputs and expected results – we will investigate.