Run a one-sample z-test for the case where the population standard deviation σ is genuinely known: enter the sample mean, σ, sample size and the hypothesised mean to get z and its p-values.
In standardised testing with long-established scales, in manufacturing processes characterised over years of data, and in textbook problems. If σ was estimated from the same sample, the t-test is the correct tool.
Because knowing σ removes a layer of uncertainty. The t distribution's heavier tails at 24 df price in the chance that s underestimates σ; z does not pay that price.
0.05 is conventional, 0.01 stricter. Choose before looking at results, and report the exact p-value alongside — this calculator always shows it.
z = (x̄ − μ₀) ÷ (σ ÷ √n). P-values come from the standard normal CDF Φ: two-tailed p = 2 × (1 − Φ(|z|)).
Inputs: x̄ = 105, σ = 15, n = 25, μ₀ = 100.
Steps: Standard error = 15 ÷ 5 = 3. z = 5 ÷ 3 = 1.667. Φ(1.667) ≈ 0.9522. Two-tailed p = 2 × (1 − 0.9522) = 0.0956.
Result: z = 1.667, p ≈ 0.0956.
Add this calculator to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the calculator to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.