Σ
SDCalc
IntermediateFundamentals·9 min

Z-Score from Standard Deviation: Formula and Worked Example

Calculate a z-score from a raw value, mean, and standard deviation. Learn the formula, sample-vs-population choice, interpretation bands, and decision checks.

By Standard Deviation Calculator Team · Senior Statistician and Data Educator·Published

Quick Answer

To calculate a z-score from standard deviation, subtract the mean from the raw value, then divide by the standard deviation: z = (x - mean) / SD. The result tells you how many standard deviations the value sits above or below the mean.

TL;DR

Use z = (x - mean) / SD. Positive z-scores are above average; negative z-scores are below average. Values beyond about +/-2 deserve context checks; values beyond about +/-3 often need investigation.

Background: a student, analyst, or quality reviewer often has three numbers already in hand: one observed value, the mean, and the standard deviation. The practical question is not just "what is the z-score?" It is "is this value ordinary, worth explaining, or unusual enough to act on?" This guide answers that calculation question from the role of a senior statistician and data educator.

A z-score is a standardized distance from the mean. A standard deviation is the distance unit used for that standardization. A mean is the arithmetic center used as the reference point. If you still need to calculate the mean or SD first, use the mean and standard deviation calculator, sample standard deviation calculator, or population standard deviation calculator.

Formula

Z-score from standard deviation

z = (x - mean) / SD
SymbolMeaningExample
xThe raw value you want to standardize90 quiz points
meanThe average of the reference group79.17 quiz points
SDThe standard deviation of the same reference group6.21 quiz points
zThe raw value expressed in SD units1.75
1

Use the same unit

The raw value, mean, and standard deviation must all use the same measurement unit, such as points, seconds, dollars, or millimeters.
2

Subtract the mean

Compute the raw distance from average: x - mean.
3

Divide by the standard deviation

Turn that raw distance into standard-deviation units.
4

Interpret the sign and size

The sign gives direction. The absolute value gives distance from average.

Worked Example

For a first-hand calculator check while drafting this article, we entered this 12-score quiz dataset: 68, 72, 74, 76, 77, 79, 80, 81, 83, 84, 86, 90. The sample mean is 79.17 and the sample standard deviation is 6.21. Now suppose the instructor wants to standardize the score 90.

Substitute the numbers

z = (90 - 79.17) / 6.21 = 10.83 / 6.21 = 1.75

The score of 90 is about 1.75 sample standard deviations above the class mean. That is a strong result in this class, but it is not automatically an outlier. If the class scores are roughly bell-shaped, the empirical rule suggests that values within about two standard deviations are still common enough to interpret as high performance rather than a data problem.

What changes if the raw value is lower?

For the same class, a score of 68 gives z = (68 - 79.17) / 6.21 = -1.80. The negative sign means below average. The size, 1.80, means the score is 1.80 standard deviations from the mean.

Use the z-score calculator when the mean and SD are already known. Use the descriptive statistics calculator when you want mean, variance, standard deviation, and z-score context from a full list of observations.

Sample or Population SD

Use the standard deviation that matches your reference group. If the listed values are a sample from a larger process, use sample standard deviation s. If the listed values are the complete fixed population you want to describe, use population standard deviation sigma. This choice changes the denominator in the SD calculation before the z-score is computed.

SituationUse this SDWhy it matters
One class section used to infer future sectionsSample SDThe class is a sample from a wider teaching process.
Every employee in one small teamPopulation SDThe list is the complete group being described.
Recent production parts used to judge future runsSample SDThe parts estimate ongoing process variation.
A fixed roster of final contest scoresPopulation SDNo larger group is being estimated.

Decision criterion

When the question is about a future process, default to sample SD. When the question is only about a complete closed list, population SD is defensible. See Sample vs Population for the full formula choice.

Interpretation Bands

NIST describes the normal distribution as a central model for many measurement processes, and OpenStax introduces z-scores as the standard way to locate values on that model. The bands below are useful when the reference data are reasonably symmetric and the mean and standard deviation are meaningful summaries.

Z-score rangePlain-language meaningTypical action
-1 to +1Close to averageUsually treat as routine variation.
-2 to -1 or +1 to +2Noticeably low or highExplain with context, especially for grades, labs, or process checks.
-3 to -2 or +2 to +3Unusual under a bell-shaped modelReview data quality, subgroup, timing, and practical consequences.
Less than -3 or greater than +3Very unusual under a normal modelInvestigate before treating the value as routine.

These are decision aids, not deletion rules. A z-score of 3.2 may be a sensor error, a special-cause event, or the most important observation in the dataset. If the decision is about unusual values, pair this method with the outlier detection guide and modified z-score article.

Decision Checklist

  • The raw value, mean, and SD come from the same population, process, or comparison group.
  • The standard deviation is not zero. If SD = 0, the z-score is undefined.
  • The distribution is not extremely skewed or dominated by one outlier.
  • The sample size is large enough that the mean and SD are stable for your purpose.
  • You chose sample SD or population SD deliberately, not because a spreadsheet default picked it.
  • You have a practical action rule before labeling a value as unusual.

For normal-probability work, continue with Standard Deviation and Normal Distribution. For broader interpretation of high and low spread, read How to Interpret Standard Deviation.

Common Mistakes

  • Using mismatched groups:Do not compare a student score with the mean and SD from a different test unless that is the intended reference group.
  • Treating z as a percent:A z-score of 1.75 is not 1.75%. It means 1.75 standard deviations above the mean.
  • Ignoring direction:Positive and negative z-scores can have the same distance from average but opposite meanings.
  • Assuming normality:Z-scores can standardize any numeric value, but normal-table probabilities require a suitable distribution shape.
  • Deleting extreme values automatically:Investigate unusual z-scores before removing them. The value may be valid evidence rather than an error.

Weakest-section revision note

A generic version of this guide would stop at the formula. The useful substitution is the 12-score dataset above, where 90 becomes z = 1.75 and 68 becomes z = -1.80, making the interpretation testable instead of abstract.

Further Reading

Sources

References and further authoritative reading used in preparing this article.

  1. NIST/SEMATECH e-Handbook of Statistical Methods: Normal DistributionNIST
  2. OpenStax Introductory Statistics 2e: The Normal DistributionOpenStax