What Is a Null Hypothesis? A Plain-English Guide With Examples

Last updated November 2026

The null hypothesis H0 means no effect, the alternative H1 means there is an effect, and the p-value decides whether to reject H0

The null hypothesis is the starting assumption in a statistical test: nothing is going on, there is no effect and no difference. You collect data to see whether the evidence is strong enough to reject that assumption. This guide explains what it is, how to write one, and how to use a p-value to decide, with worked examples.

What Is a Null Hypothesis?

The null hypothesis, written H₀ ("H-naught"), states that there is no effect, no difference or no relationship in the population you are studying. The alternative hypothesis, written H₁ or Hₐ, states the opposite: that there is an effect, a difference or a relationship.

You never prove the alternative directly. You assume the null is true, then ask how likely your data would be if that were so. If the data would be very unlikely, you reject the null in favour of the alternative.

Null and Alternative Hypothesis Examples

QuestionNull hypothesis (H₀)Alternative (H₁)
Is a coin fair?p = 0.5p ≠ 0.5
Is the average student height 170 cm?μ = 170μ ≠ 170
Does a new drug lower blood pressure more than a placebo?μ(drug) = μ(placebo)μ(drug) < μ(placebo)
Does a new teaching method raise test scores?μ(new) = μ(old)μ(new) > μ(old)
Are height and weight related?ρ = 0 (no correlation)ρ ≠ 0

How to Write a Null Hypothesis

  1. Turn the research question into a claim about the population, using population symbols such as μ (mean), p (proportion) or ρ (correlation).
  2. Write H₀ with an equals sign. The null always includes equality: =, ≤ or ≥.
  3. Write H₁ as the opposite, using ≠, < or >. It never includes equality.
  4. Choose one-tailed or two-tailed. Use ≠ (two-tailed) when you care about a difference in either direction. Use < or > (one-tailed) when you only care about one direction.

How a Hypothesis Test Works

  1. State H₀ and H₁.
  2. Choose a significance level α, usually 0.05. This is the risk you accept of rejecting a true null.
  3. Collect data and compute a test statistic such as z or t.
  4. Find the p-value: the probability of seeing results at least this extreme if H₀ were true.
  5. Decide. If p ≤ α, reject H₀. If p > α, fail to reject H₀.

To find a p-value from a test statistic, use the P-Value Calculator.

Worked Example: Reject the Null

A machine is supposed to fill bottles with a mean of 500 ml. The standard deviation is known to be 9 ml. A sample of 36 bottles has a mean of 497 ml. Test at α = 0.05.

  1. H₀: μ = 500 and H₁: μ ≠ 500 (two-tailed).
  2. Standard error = 9 ÷ √36 = 9 ÷ 6 = 1.5.
  3. z = (497 − 500) ÷ 1.5 = −2.0.
  4. Two-tailed p-value = 2 × P(Z < −2.0) = 2 × 0.0228 = 0.0455.
  5. 0.0455 is less than 0.05, so reject H₀.
Answer: reject H₀. There is evidence the mean fill differs from 500 ml.

Worked Example: Fail to Reject the Null

Same machine, but now the sample mean is 498.5 ml.

  1. z = (498.5 − 500) ÷ 1.5 = −1.0.
  2. Two-tailed p-value = 2 × P(Z < −1.0) = 2 × 0.1587 = 0.3173.
  3. 0.3173 is greater than 0.05, so fail to reject H₀.
Answer: fail to reject H₀. There is not enough evidence that the mean differs from 500 ml.

"Fail to Reject" Is Not "Accept"

When the p-value is large, you do not prove the null is true. You only show that your data did not give strong enough evidence against it. A small sample can miss a real effect. That is why the correct wording is fail to reject H₀, not "accept H₀".

Type I and Type II Errors

H₀ is actually trueH₀ is actually false
Reject H₀Type I error (false positive), probability αCorrect decision
Fail to reject H₀Correct decisionType II error (false negative), probability β

Lowering α makes Type I errors less likely but Type II errors more likely. A larger sample reduces the chance of a Type II error.

Common Mistakes to Avoid

Practice Problems

  1. Write H₀ and H₁ for: "The average commute is 30 minutes."
  2. Write H₀ and H₁ for: "A new fertiliser increases crop yield."
  3. A test gives p = 0.03 with α = 0.05. What is the decision?
  4. A test gives p = 0.12 with α = 0.05. What is the decision?
  5. You reject a true null hypothesis. Which type of error is this?

Answers

  1. H₀: μ = 30 and H₁: μ ≠ 30.
  2. H₀: μ(new) = μ(old) and H₁: μ(new) > μ(old).
  3. 0.03 is below 0.05, so reject H₀.
  4. 0.12 is above 0.05, so fail to reject H₀.
  5. A Type I error.
Key takeaway: the null hypothesis says there is no effect. Compute a p-value, compare it with α, then reject H₀ if p ≤ α or fail to reject it if p > α. Never say you accept the null. To get a p-value from a z, t, F or chi-square statistic with full working, use the P-Value Calculator.

Frequently Asked Questions

What is a null hypothesis in simple terms?
The null hypothesis is the default assumption that there is no effect, no difference or no relationship. A statistical test checks whether the data give enough evidence to reject it.
What is the difference between the null and alternative hypothesis?
The null hypothesis (H₀) says there is no effect. The alternative hypothesis (H₁ or Hₐ) says there is an effect, difference or relationship. They are opposites, so exactly one of them is true.
When do you reject the null hypothesis?
Reject H₀ when the p-value is less than or equal to your significance level α, usually 0.05. This means the data would be unlikely if the null were true.
Why do we say fail to reject instead of accept?
A large p-value only shows that the data did not provide enough evidence against H₀. It does not prove H₀ is true, because a small sample can miss a real effect.
Does the null hypothesis always have an equals sign?
Yes. H₀ always contains equality: =, ≤ or ≥. The alternative hypothesis uses ≠, < or > and never includes equality.
What is a p-value?
The p-value is the probability of getting results at least as extreme as yours if the null hypothesis were true. It is not the probability that the null hypothesis is true.
What is a significance level?
The significance level α is the risk you accept of rejecting a true null hypothesis, which is a Type I error. The most common choice is 0.05, meaning a 5% risk.

Related Articles

Author

StepSolvers Team

The StepSolvers team writes plain-English math guides that go with our free step-by-step calculators. Each guide explains the idea, works through an example, and links to the calculator that does the arithmetic for you. About StepSolvers