Analytics consent

We would like to measure how the free tools are used so we can improve them. Analytics is off until you choose. You can accept or decline — declining does not limit the free tools in any way, and you can change your mind later.

Current state: not decided — analytics is off

Z-Test Calculator

Run a z-test for a one-sample mean or a one-proportion.

Tails

Z-test · mean, two-tailed

2

z statistic
2
p-value
0.0455
Sample size
100

The one-sample mean z-test requires the known population standard deviation σ. If σ is unknown, use a t-test.

Statistically significant at α = 0.05

How the z-test works

The z-test uses the standard normal distribution to test a hypothesis about a mean or a proportion. It requires the population standard deviation to be known — it is not a substitute for a t-test when σ is unknown.

The one-sample mean z-test compares a sample mean against a hypothesized value using the known population σ. The one-proportion z-test compares an observed proportion against a hypothesized value.

The z statistic is the difference between the observed value and the hypothesized value, divided by its standard error. The p-value is read from the normal distribution according to the tails you select.

The formulas

Mean: z = (x̄ − μ₀) / (σ/√n) · Proportion: z = (p̂ − p₀) / √(p₀(1−p₀)/n)

The one-sample mean z-test requires the KNOWN population standard deviation σ. If σ is unknown, a t-test is the appropriate choice — this calculator does not silently substitute one for the other. The p-value is the normal tail probability.

Worked example

A mean z-test with σ known

With n = 100, a sample mean of 102, σ = 10 and μ₀ = 100, z = (102−100)/(10/10) = 2. The two-tailed p-value is about 0.0455 — significant at the 5% level.

Frequently asked questions

When is a z-test appropriate for a mean?

Only when the population standard deviation σ is known. Otherwise use a t-test. For proportions, the normal approximation requires a large enough sample (expected counts of at least 5).

What is the difference between one-tailed and two-tailed?

Two-tailed tests for a difference in either direction; one-tailed tests for a change in a specified direction. Two-tailed is the common default.

Why does the mean z-test need σ?

The z-test's standard error uses the population standard deviation. When σ is unknown and estimated from the sample, the test statistic follows a t-distribution, not a normal one.

Related research methods

  • Hypothesis Testing

When to use this tool

Use a z-test when the population standard deviation is known or the sample is large enough that the standard error is well approximated.

Assumptions

  • Independent observations.
  • Known population standard deviation (or a large sample).

Limitations

  • When the population standard deviation is unknown, a t-test is usually more appropriate.
  • The z-test inherits the same caveats about practical significance as other significance tests.

How to interpret the result

The z statistic measures how many standard errors the sample value is from the hypothesized value; the p-value follows the standard normal distribution.

How to report the result

Report the z statistic, p-value, and the sample mean with confidence interval.

Next steps in your analysis

Built by PanelRoster

PanelRoster is an enterprise operations management platform for organizations coordinating distributed teams, assignments, workflows, quality assurance and operational execution.

Explore PanelRoster