T-Test Calculator

Independent, paired, and one-sample t-tests with exact p-values, confidence intervals, effect size, and APA output.

Runs entirely in your browserFree · no signup

1. Choose your design

Two separate groups of people measured once each — treatment vs control, men vs women, two different schools.

2. Enter your data

One number per line. Commas, spaces, and tabs work too — paste straight from a spreadsheet column.

n = 10 · mean 69.5

n = 10 · mean 81.9

Welch's does not assume equal variances and is the recommended default. Choose Student's only if you have a reason to.

3. Results

t
-7.870
df
16.85
p (two-tailed)
< .001

significant at .05

Cohen's d
-3.52

large effect

Mean difference
-12.400
95% CI of the difference
[-15.73, -9.07]

excludes zero

Hedges' g
-3.37

small-sample corrected d

Descriptive statistics
GroupnMeanSDSEMMinMax
Group 11069.503.030.9665.0074.00
Group 21081.903.961.2576.0088.00

Statistically significant at the .05 level

A difference this large would occur less than 1 time in 1,000 by chance alone if there were genuinely no difference. The effect size (large, d = -3.52) tells you whether it matters practically — significance and importance are different questions.

Check this assumption

With fewer than about 15 per group, the t-test relies on your data being roughly normally distributed. Check for skew and outliers, or use a Mann-Whitney U test instead.

4. APA-formatted write-up

Edit the wording to fit your variables — the numbers and notation are already correct.

APA results text
Welch's independent-samples t-test compared Group 1 (M = 69.50, SD = 3.03, n = 10) and Group 2 (M = 81.90, SD = 3.96, n = 10).
The difference was statistically significant, t(16.85) = -7.87, p < .001, 95% CI [-15.73, -9.07], d = -3.52.

Inline: t(16.85) = -7.87, p < .001, d = -3.52

What a t-test does

A t-test asks one question: is the difference between these means bigger than you’d expect from random variation alone? It compares the size of the difference against how much the data bounces around, producing the t statistic — a signal-to-noise ratio. Large t means the difference is large relative to the noise.

The p-value converts that into a probability: how often would you see a difference at least this large if the groups were really identical? Small p means your data would be surprising under the assumption of no difference.

Report all four numbers

A complete t-test result has four parts, and reporting only the p-value is the most common mistake in student write-ups:

  • The test statistic and df — t(18) = 2.45. Lets a reader verify your p-value.
  • The p-value — p = .025. Exact to three decimals, or p < .001 below that. APA drops the leading zero.
  • The confidence interval — 95% CI [1.24, 8.76]. The range of differences your data is consistent with. Far more informative than p alone.
  • The effect size — d = 0.82. How big the difference is in standard-deviation units, independent of sample size.

Plus the descriptives for each group (M, SD, n), which the calculator also produces. The copy-ready block assembles all of it in APA notation.

Significance is not importance

These are separate questions and conflating them is the single biggest interpretive error in applied statistics. With 10,000 participants, a difference of 0.1 points on a 100-point scale will come out significant. It is also meaningless. With 12 participants, a genuinely large effect may fail to reach significance.

The p-value answers “could this be chance?”. The effect size answers “is it big enough to care about?”. You need both, and when they disagree, the effect size and confidence interval are usually the more useful pair to reason from.

Assumptions, and what to do when they fail

  • Independence. Each observation is a different participant (or, for paired designs, each pair is independent of other pairs). This one cannot be fixed after the fact — it’s a property of your design.
  • Approximate normality. Matters at small n; largely self-correcting above roughly 30 per group. If your data is clearly skewed with a small sample, use a Mann-Whitney U or Wilcoxon signed-rank test.
  • Equal variances. Only relevant to Student’s t-test. Using Welch’s makes the question moot, which is why it’s the default here.

The calculator checks the variance ratio and your sample sizes automatically and tells you when one of these deserves attention.

Frequently asked questions

Which t-test do I need?
If two separate groups of people were each measured once — treatment vs control, two schools, men vs women — you need an independent-samples t-test. If the same people were measured twice, before and after, you need a paired-samples t-test. If you have one group and want to compare it against a fixed known value, you need a one-sample t-test. Using an independent test on paired data throws away the pairing and loses power.
Should I use Welch's or Student's t-test?
Welch's, in almost all cases — which is why it's the default here. Student's t-test assumes the two groups have equal variances, and when that assumption is wrong it gives you an inflated error rate. Welch's makes no such assumption and performs essentially as well when variances are equal. R's t.test() has defaulted to Welch's for this reason for years. Only choose Student's if a specific convention in your field requires it.
Why is my df not a whole number?
Welch's t-test adjusts the degrees of freedom to account for unequal variances, using the Welch-Satterthwaite equation, which produces a fractional value. This is correct and expected — report it to two decimal places, e.g. t(17.34) = 2.45. Student's t-test always gives whole-number df (n1 + n2 - 2).
What does p = .04 actually mean?
If there were genuinely no difference between the groups, you'd see a difference at least this large about 4 times in 100 by chance. It does not mean there's a 96% chance your hypothesis is true, and it says nothing about how big or important the difference is. That's what the effect size and confidence interval are for.
My result isn't significant. Can I say the groups are the same?
No. A non-significant result means your data can't distinguish the groups from equal — not that they are equal. The distinction matters, and the confidence interval is how you communicate it honestly: if it runs from -0.5 to +8.0, you have ruled out large negative differences but not large positive ones. Reporting that is much stronger than 'no difference was found'.
Do I need to report the effect size?
Yes. APA style requires it, and most journals now enforce it. With a large enough sample, trivially small differences become statistically significant, so p alone tells a reader nothing about magnitude. Cohen's d is the standard for t-tests: 0.2 is small, 0.5 medium, 0.8 large. Use Hedges' g instead when your sample is small (under about 20 per group), since it corrects the upward bias in d.
What if my data isn't normally distributed?
With reasonable sample sizes — roughly 30 per group — the t-test is robust to non-normality because the sampling distribution of the mean approaches normal regardless. Below about 15 per group it matters more, and clear skew or outliers should push you toward a Mann-Whitney U test (independent) or a Wilcoxon signed-rank test (paired). The calculator flags this when your n is small.

Related free tools

Need the whole analysis, not just this step?

Analytika picks the right test for your data, checks the assumptions, and writes up the results in APA format. Upload a dataset and ask a question in plain English.

Try it free