Think Again app poster showing 10 interactive philosophy experiments, 50 insight cards, and 133,000 plus responses.

New on iPhone

Try Think Again

10 interactive philosophy experiments and 50 insight cards built from 133,000 plus responses.

Download on the App Store

Z-Test Calculator for Sample Mean

This calculator performs a Z-test to determine whether a sample mean is significantly different from a known population mean. This test is used when the population standard deviation (σ) is known.

When to Use

Use the Z-test for sample mean when you want to compare your sample mean to a known or hypothesized population mean, and you know the population standard deviation (not the sample standard deviation).

⚠️ Important Distinction

The Z-test requires a known population standard deviation (σ). In practice, this is rare — you typically don't know the true population SD. When σ is unknown, use the one-sample t-test instead.

Requirements

  • Sample is randomly selected
  • Population standard deviation (σ) is known
  • Data is normally distributed, OR sample size is large (n ≥ 30)

Examples

  • Testing if a manufacturing process mean differs from a known specification
  • Comparing test scores to a national standard with known SD
  • Quality control when population parameters are established

Null Hypothesis

H₀: μ = μ₀ (the sample comes from a population with mean equal to the hypothesized value)

Formula

z = (x̄ - μ₀) / (σ / √n)

Where:

  • x̄ = sample mean
  • μ₀ = hypothesized population mean
  • σ = population standard deviation (known!)
  • n = sample size

Z-Test vs T-Test

FeatureZ-TestT-Test
Population SD (σ)KnownUnknown (estimated from sample)
DistributionStandard NormalStudent's t-distribution
Sample sizeAny (with normal data)Any (with normal data)
Common in practice?RareVery common
Think Again app banner showing 133,000 plus minds tested and categories including trolley problems, free will, God, personal identity, logic, and moral taboos.