Skip to main content

Hypothesis Testing Calculator

Calculate p-values, test statistics, confidence intervals, and conclusions for common hypothesis tests.

Background

Hypothesis testing helps you decide whether sample data gives enough evidence to reject a null hypothesis. This calculator shows the test statistic, p-value, decision, assumptions, effect size, and a plain-English conclusion so students can understand the result, not just copy a number.

Run a hypothesis test

Choose test type

Use the helper when you are not sure which test fits your homework problem.

Which test should I use?

Hypothesis settings

One-sample mean test

Enter summary statistics, or paste raw sample data and click “Use pasted data.”

Two-sample mean test

Default uses Welch's t-test, which is safer when standard deviations differ.

Paired t-test

Paste paired values or enter summary statistics for the differences.

One-proportion test

Two-proportion test

Chi-square goodness-of-fit

Enter observed counts and expected counts or expected proportions. Use the same order for both lists.

Chi-square test of independence

Paste a two-way table. Separate cells with commas or spaces, and rows with new lines.

One-way ANOVA

Paste one group per line. Numbers can be separated by commas or spaces.

Display options

Result

No result yet. Choose a test type, enter your data, then click Calculate Hypothesis Test.

How to use this calculator

  • Choose the test type or use the “Which test should I use?” helper.
  • Enter summary statistics, raw data, category counts, or a two-way table.
  • Choose α and the alternative hypothesis: left-tailed, right-tailed, or two-tailed.
  • Click Calculate Hypothesis Test.
  • Read the p-value, reject/fail-to-reject decision, confidence interval, assumptions, effect size, and plain-English conclusion.

How this calculator works

  • Mean tests use t or z style test statistics depending on the test and available information.
  • Proportion tests use normal approximation z tests and pooled proportions for hypothesis testing.
  • Chi-square tests compare observed counts with expected counts.
  • ANOVA compares between-group variation with within-group variation using an F statistic.
  • The calculator converts the test statistic into a p-value and compares it with α.

Formula & Equations Used

One-sample t: t = (x̄ − μ₀) / (s / √n)

Two-sample t: t = (x̄₁ − x̄₂) / √(s₁²/n₁ + s₂²/n₂)

One-proportion z: z = (p̂ − p₀) / √(p₀(1 − p₀)/n)

Chi-square: χ² = Σ (O − E)² / E

ANOVA: F = MS_between / MS_within

Example Problems & Step-by-Step Solutions

Example 1: One-sample mean test

A class sample has mean 72.4, standard deviation 8.1, and n = 36. Test whether the true mean differs from 70.

Use a two-tailed one-sample t-test with H₀: μ = 70 and H₁: μ ≠ 70.

Example 2: Two-proportion test

Compare whether two groups have different success rates using x₁/n₁ and x₂/n₂.

The calculator uses the pooled proportion for the z test and an unpooled standard error for the confidence interval.

Example 3: One-way ANOVA

Paste each group on its own line to test whether at least one group mean is different.

ANOVA gives an F statistic and p-value, but a significant result does not say which exact groups differ.

Common mistakes to avoid

  • Do not say “accept H₀.” In most intro stats courses, say “fail to reject H₀.”
  • Do not confuse statistical significance with practical importance. Check the effect size too.
  • Do not use a two-sample test for paired before/after data.
  • Do not use chi-square tests with expected counts that are too small without caution.
  • Make sure the alternative hypothesis direction matches the wording of the problem.

FAQ

What does the p-value mean?

The p-value is the probability of getting a result at least as extreme as your sample result, assuming the null hypothesis is true.

When do I reject the null hypothesis?

Reject H₀ when the p-value is less than or equal to α. Otherwise, fail to reject H₀.

Which test should I use for before/after data?

Use a paired t-test because each before value is linked to a matching after value.

Basic Concepts of Probability
4. Probability
7 problems
Topic
Ernest
Introduction to Confidence Intervals
7. Sampling Distributions & Confidence Intervals: Mean
6 problems
Topic
Ernest
Confidence Intervals for Population Mean
7. Sampling Distributions & Confidence Intervals: Mean
7 problems
Topic
Justin
Confidence Intervals for Population Proportion
8. Sampling Distributions & Confidence Intervals: Proportion
7 problems
Topic
Ernest
Steps in Hypothesis Testing
9. Hypothesis Testing for One Sample
7 problems
Topic
Ally
Two Means - Unknown, Unequal Variance
10. Hypothesis Testing for Two Samples
3 problems
Topic
Justin
Two Means - Matched Pairs (Dependent Samples)
10. Hypothesis Testing for Two Samples
3 problems
Topic
Brendan
Chi Square Goodness of Fit Test
13. Chi-Square Tests & Goodness of Fit
4 problems
Topic
Justin
Introduction to Contingency Tables
13. Chi-Square Tests & Goodness of Fit
3 problems
Topic
Chi Square Test for Independence
13. Chi-Square Tests & Goodness of Fit
3 problems
Topic
Chi Square Test for Homogeneity
13. Chi-Square Tests & Goodness of Fit
3 problems
Topic
4. Probability - Part 1 of 2
3 topics 9 problems
Chapter
Ernest
4. Probability - Part 2 of 2
3 topics 9 problems
Chapter
Ernest
7. Sampling Distributions & Confidence Intervals: Mean
2 topics 6 problems
Chapter
Ally
8. Sampling Distributions & Confidence Intervals: Proportion
1 topic 3 problems
Chapter
Ernest
9. Hypothesis Testing for One Sample
1 topic 3 problems
Chapter
David-Paige
10. Hypothesis Testing for Two Samples
3 topics 6 problems
Chapter
Brendan
13. Chi-Square Tests & Goodness of Fit
4 topics 5 problems
Chapter
14. ANOVA
1 topic 3 problems
Chapter
Chi Square Analysis
3. Extensions to Mendelian Inheritance
7 problems
Topic
Kylia
3. Extensions to Mendelian Inheritance - Part 1 of 2
5 topics 14 problems
Chapter
Kylia
3. Extensions to Mendelian Inheritance - Part 2 of 2
6 topics 13 problems
Chapter
Nicole
Mean Evaluation
4 & 5. Statistics, Quality Assurance and Calibration Methods
5 problems
Topic
The Gaussian Distribution
4 & 5. Statistics, Quality Assurance and Calibration Methods
5 problems
Topic
Confidence Intervals
4 & 5. Statistics, Quality Assurance and Calibration Methods
5 problems
Topic
Analysis of Variance (f-Test)
4 & 5. Statistics, Quality Assurance and Calibration Methods
5 problems
Topic
Hypothesis Testing (t-Test)
4 & 5. Statistics, Quality Assurance and Calibration Methods
5 problems
Topic
4 & 5. Statistics, Quality Assurance and Calibration Methods - Part 1 of 2
4 topics 12 problems
Chapter
4 & 5. Statistics, Quality Assurance and Calibration Methods - Part 2 of 2
2 topics 6 problems
Chapter
Basic Concepts of Probability
4. Probability
10 problems
Topic
Ernest
Introduction to Confidence Intervals
7. Sampling Distributions & Confidence Intervals: Mean
10 problems
Topic
Justin
Confidence Intervals for Population Mean
7. Sampling Distributions & Confidence Intervals: Mean
10 problems
Topic
Laura
Confidence Intervals for Population Proportion
8. Sampling Distributions & Confidence Intervals: Proportion
10 problems
Topic
Ernest
Steps in Hypothesis Testing
9. Hypothesis Testing for One Sample
10 problems
Topic
Ernest
Performing Hypothesis Tests: Means
9. Hypothesis Testing for One Sample
10 problems
Topic
Laura
Performing Hypothesis Tests: Proportions
9. Hypothesis Testing for One Sample
10 problems
Topic
Ernest
Two Means - Unknown, Unequal Variance
10. Hypothesis Testing for Two Samples
10 problems
Topic
Ally
Two Means - Matched Pairs (Dependent Samples)
10. Hypothesis Testing for Two Samples
10 problems
Topic
Laura
Goodness of Fit Test
13. Chi-Square Tests & Goodness of Fit
10 problems
Topic
Brendan
Contingency Tables
13. Chi-Square Tests & Goodness of Fit
8 problems
Topic
Zachary
Independence Tests
13. Chi-Square Tests & Goodness of Fit
10 problems
Topic
Laura
Introduction to ANOVA
14. ANOVA
10 problems
Topic
Ally
4. Probability
9 topics 15 problems
Chapter
Ernest
7. Sampling Distributions & Confidence Intervals: Mean
3 topics 15 problems
Chapter
Ally
8. Sampling Distributions & Confidence Intervals: Proportion
2 topics 15 problems
Chapter
Laura
9. Hypothesis Testing for One Sample
3 topics 15 problems
Chapter
Brendan
10. Hypothesis Testing for Two Samples
3 topics 15 problems
Chapter
Ally
13. Chi-Square Tests & Goodness of Fit
3 topics 15 problems
Chapter
Brendan
14. ANOVA
1 topic 15 problems
Chapter
Ally
Sample Size Calculator
Calculate sample size for means or proportions using confidence level and margin of error
Probability Distribution Calculator
Calculate probabilities for normal, binomial, Poisson, t, chi-square, F, and other common distributions
Critical Value Calculator
Find critical values for Z, t, χ², or F distributions using α and tail type
Degrees of Freedom Calculator
Calculate degrees of freedom for t-tests, χ², ANOVA, F, and regression
Z-Score Calculator
Calculate z-scores, percentiles, and reverse-solve x, μ, or σ
Central Limit Theorem Calculator
Calculate sample mean probabilities, standard error, and quantiles using CLT
Chi-Square Calculator
Run chi-square goodness-of-fit and independence tests - with distribution curves and step-by-step solutions
Probability Calculator
Calculate P(A), P(A ∩ B), P(A ∪ B), and P(A | B) with steps and a Venn visual.
Confidence Interval Calculator
Calculate confidence intervals for means, proportions, or raw data inputs
P-Value Calculator
Compute p-values from Z, t, χ², or F test statistics with one- or two-tailed options
Statistics & Data Analysis Lab
Upload datasets, analyze statistics visually, run hypothesis tests, and interpret results with interactive charts
ANOVA Calculator
Run one-way ANOVA, two-way ANOVA, and Tukey HSD — with F-distribution curves and step-by-step solutions
Normal Distribution Calculator
Calculate normal distribution probabilities, z-scores, percentiles, and shaded bell-curve areas
Standard Deviation Calculator
Calculate standard deviation, variance, and mean from data
Standard Error Calculator
Calculate standard error for mean, proportion, or raw data inputs
A/B Test Significance Calculator
Check if A/B test results are statistically significant
Back to all calculatorsAll calculators