Statistics • Interactive Calculator

Hypothesis Test Calculator

Run a z-test, t-test or chi-square test from summary statistics or raw data. Get the test statistic, p-value, critical value, confidence interval, effect size, a plain-English interpretation and a ready-to-paste APA 7 results sentence.

Load example:

Labels for the write-up (optional)

How to Run a Hypothesis Test (6 Steps)

  1. State the hypotheses. H₀ is the “no effect / no difference” claim (always contains =). H₁ is what you are trying to find evidence for (≠, > or <).
  2. Choose α. The risk of a Type I error you are willing to accept (usually .05).
  3. Pick the right test (table below) and check its assumptions.
  4. Compute the test statistic — how many standard errors your sample result is from the null value.
  5. Find the p-value (or compare with the critical value).
  6. Decide and interpret in context. If p < α, reject H₀; otherwise fail to reject. Always add the effect size and a confidence interval.

Which test should I use?

QuestionDataTest
Is one mean different from a known value?Numeric, σ unknownOne-sample t
Same, but σ is knownNumericOne-sample z
Do two separate groups have different means?Numeric, 2 independent groupsTwo-sample (Welch) t
Did the same people change between two measurements?Numeric, paired/matchedPaired t
Is a proportion different from a claimed value?Categorical (success/failure)One-proportion z
Do two groups differ in a proportion?Categorical, 2 independent groupsTwo-proportion z
Are two categorical variables related?Counts in an r × c tableChi-square independence
Do observed counts match a claimed distribution?Counts in one variableChi-square goodness-of-fit
Compare 3 or more means?Numeric, 3+ groupsOne-way ANOVA

Worked Examples with Interpretation & APA Write-Up

Example 1 — Two-sample (Welch) t-test

A professor compares final-exam scores of students taught with active learning (n = 30, M = 78.40, SD = 9.60) and with traditional lecture (n = 32, M = 72.10, SD = 11.20). H₀: μ₁ − μ₂ = 0; H₁: μ₁ − μ₂ ≠ 0; α = .05.

APA 7 write-up

An independent-samples t-test (Welch’s, equal variances not assumed) was conducted to compare exam score between active learning and lecture. Mean exam score was significantly higher for active learning (M = 78.40, SD = 9.60) than for lecture (M = 72.10, SD = 11.20), t(59.54) = 2.38, p = .020, d = 0.60, 95% CI [1.01, 11.59] for the mean difference.

Example 2 — One-sample t-test (fail to reject)

A random sample of n = 36 commutes has M = 54 min, SD = 12. Test H₀: μ = 50 vs H₁: μ ≠ 50 at α = .05. Then t(35) = 2.00, p = .053, d = 0.33, 95% CI [49.94, 58.06].

APA 7 write-up

A one-sample t-test was conducted to compare mean commute time to the test value of 50. The sample mean (M = 54.00, SD = 12.00) was not significantly different from the test value, t(35) = 2.00, p = .053, d = 0.33, 95% CI [49.94, 58.06].

Example 3 — Chi-square test of independence

Counts of students (rows: study format Group-A / Group-B; columns: grade low / mid / high) are [20, 30, 10] and [25, 15, 40]. Then χ²(2, N = 140) = 21.13, p < .001, Cramér’s V = .39 (medium to large).

APA 7 write-up

A chi-square test of independence was conducted to examine the relationship between study format and grade. The relationship was statistically significant, χ2(2, N = 140) = 21.13, p < .001, Cramér’s V = .39.

APA Style Cheat-Sheet for Hypothesis Tests

Frequently Asked Questions

What does “fail to reject H₀” mean?

You did not find enough evidence against H₀. A large p-value never proves H₀ is true — the sample may simply be too small to detect a real effect.

One-tailed or two-tailed?

Use two-tailed unless a difference in only one direction is meaningful and was decided before seeing the data. A one-tailed test is more powerful in the chosen direction but cannot detect an effect in the other.

Why Welch instead of pooled?

Welch’s test does not require equal variances and loses almost nothing when variances are equal, so it is the safer default.

What is the difference between statistical and practical significance?

With huge samples, trivial differences become “significant”. Effect sizes such as Cohen’s d (0.2 small, 0.5 medium, 0.8 large) tell you how large the difference actually is.

Common mistake: the p-value is not the probability that H₀ is true, and 1 − p is not the probability that H₁ is true. It is P(data this extreme | H₀ true).

More Statistics & Probability Tools