ThisCalculator

Everyday

Calculate Z Value: Formula, Examples, and Meaning

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Calculate Z Value: Formula, Examples, and Meaning

To calculate a z value, subtract the mean from an observation and divide by the standard deviation: z = (x − μ) / σ. Enter the observation, mean, and population standard deviation below to get the signed z value, which tells you how many standard deviations the observation is from the mean.

Formula

The population z value, also called a z-score, is calculated as:

z = (x − μ) / σ

  • x is the observation or raw value.
  • μ (mu) is the population mean.
  • σ (sigma) is the population standard deviation.
  • z is the result, measured in standard deviations rather than in the original units.

The observation and mean must use the same unit, such as points, centimeters, or degrees. The standard deviation must use that unit too. In the calculator, the unit is left unspecified so you can enter any consistent measurement. The standard deviation must be greater than zero; if it is zero, the formula involves division by zero and has no defined result.

Worked Example

Using the calculator’s default values, the observation is 70, the mean is 60, and the standard deviation is 5.

  1. Subtract the mean from the observation: 70 − 60 = 10.
  2. Divide the difference by the standard deviation: 10 ÷ 5 = 2.
  3. The z value is 2.00.

The observation is two standard deviations above the mean. The calculator rounds the displayed result to two decimal places; the underlying value in this example is exactly 2.

What a Z Value Tells You

A z value expresses relative position in a distribution. It removes the original measurement unit, making it possible to describe how far an observation lies from its mean in a consistent way. A result of 0 means the observation equals the mean. A positive result is above the mean, and a negative result is below it.

  • z = 1: one standard deviation above the mean.
  • z = −1.5: one and a half standard deviations below the mean.
  • z = 0: exactly at the mean.

The size of the number indicates distance, not whether a result is good, bad, unusual, or important. Those judgments depend on the subject, the data distribution, and the purpose of the analysis. A z value alone does not establish the probability of an outcome.

When to Use a Z Value

Z values are useful when you want to compare an observation with the spread of its data, or compare measurements recorded on different scales. For example, if one measurement is in kilograms and another in centimeters, their raw numbers cannot be compared meaningfully. Their z values can describe their relative distance from their respective means, provided each mean and standard deviation are appropriate and correctly calculated.

In introductory statistics, z values are also used with the standard normal distribution to find probabilities or percentiles. That step requires an additional assumption or model: the standard normal table applies directly when values follow a normal distribution, or in settings where a normal approximation is justified. Standardizing a value does not, by itself, make the underlying data normally distributed.

Population and Sample Versions

The calculator uses the population formula, with σ as the population standard deviation. If you have a sample rather than the full population, a common sample-based score is:

z = (x − x̄) / s

Here, x̄ is the sample mean and s is the sample standard deviation, often computed with a denominator of n − 1. Use the version that matches the information and statistical method you have. Substituting a sample standard deviation for a population standard deviation changes the calculation and should not be done without noting that choice.

There is also a different statistic called a one-sample z-test statistic. It typically compares a sample mean with a hypothesized population mean and divides by the standard error, not by the standard deviation of individual observations. That is not the same calculation as the z value of one observation shown here.

Common Mistakes and Limits

  • Mixing units: Convert measurements first if the observation, mean, and standard deviation use different units. For example, do not subtract a mean in inches from an observation in centimeters.
  • Reversing the subtraction: Use observation minus mean. Reversing the order flips the sign and changes whether the value is above or below the mean.
  • Using the wrong spread: The denominator is a standard deviation, not a variance. If you have variance, take its square root before using this formula.
  • Overinterpreting the result: A large absolute z value describes distance from the mean, but does not prove an error or determine a probability without distributional context.
  • Rounding too early: Keep full precision for intermediate calculations and round the final result to a useful number of decimal places.

The formula also has limits when the data contain strong skew, unusual outliers, or a distribution for which the mean and standard deviation are poor summaries. In such cases, a z value can still be calculated, but it may not communicate the observation’s practical or probabilistic significance well. A standard deviation of zero makes the score undefined because every value in a constant dataset is identical.

Frequently Asked Questions

What is the formula for calculating a z value?
Subtract the mean from the observation, then divide by the standard deviation: z = (x − μ) / σ.

Can a z value be negative?
Yes. A negative z value means the observation is below the mean. Its magnitude gives the distance in standard deviations.

What does a z value of zero mean?
It means the observation equals the mean, so its distance from the mean is zero standard deviations.

Is a z value the same as a z-test statistic?
Not necessarily. This calculator standardizes one observation. A z-test statistic usually standardizes a sample result using a standard error and tests a specific hypothesis.

Can I calculate a z value without the standard deviation?
No. The standard deviation is required to express the observation’s distance in standard-deviation units. If it is zero, the result is undefined.

Related

Formula used
in x | Observation | - | 70 | 
in m | Mean | - | 60 | 
in s | Standard deviation | - | 5 | 0
out z | Z value | standard deviations | (x - m) / s | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.