Z-Score Calculator
This z-score calculator expresses an observation's distance from a reference mean in standard deviations. It subtracts the mean from the observation and divides by a supplied positive standard deviation, without assuming a normal distribution.
By Dr. Hassan Khames EliwaLast updated
Result
- Difference from mean
- 15
How it works
Standardize against a defined reference
The formula is z = (x - mean) / standard deviation. The numerator is the signed difference between the observation and its reference mean. Dividing by the standard deviation converts that difference into a scale-free quantity, allowing comparisons across measurements that use different units or have different spreads.
A positive z-score places the observation above the mean; a negative score places it below. Zero means the observation equals the mean. A score of two means a distance of two standard deviations above the mean, not twice the mean and not a two-percent increase. The separate Difference from mean output keeps the original-unit distance visible.
Match the mean and spread
The reference mean and standard deviation should describe the same relevant group, period, and measurement definition. Do not combine a mean from one cohort with a spread from another unless a specific model justifies doing so. Measurements must use the same units before standardization, although the final z-score has no units.
The calculator accepts an observation and mean with magnitudes up to 1e12. The standard deviation must be positive and between 1e-12 and 1e12. A zero standard deviation would make the division undefined; an extremely small one can also exaggerate tiny differences, so the lower bound is explicit rather than hidden.
Separate standardization from probability
Computing a z-score does not require normally distributed data. Interpreting that score through a standard normal probability table does require a suitable distributional assumption or approximation. This page intentionally reports no percentile, tail probability, or automatic outlier verdict. Those interpretations need context about the data-generating process, sample size, and purpose of the analysis.
Outputs show up to ten decimal places. Scientific notation is used for nonzero magnitudes below one millionth or at least 1e15. Rounding is for presentation only; it does not change the reference quantities used in the calculation.
Worked example
Example 1: compare an assessment score
A training assessment has a reference mean of 70 points and standard deviation of 10 points. An observation is 85 points. Enter observation 85, mean 70, and standard deviation 10. The Difference from mean is 15, and the Z-score is 1.5. The score is one and a half reference standard deviations above the mean; no percentile follows from those numbers alone.
Example 2: inspect a below-average measurement
A production measurement is 42 millimeters, with a reference mean of 50 millimeters and standard deviation of 4 millimeters. Enter 42, 50, and 4. The Difference from mean is -8, and the Z-score is -2. The negative sign records direction. Whether that measurement is acceptable depends on engineering tolerances and process context, not just its standardized distance.
Expert tips
Common mistakes
- Dividing by variance. Variance is the square of standard deviation and has squared units. The denominator in a z-score is standard deviation, so substituting variance changes both the number and its meaning.
- Mixing measurement units. An observation in centimeters cannot be compared directly with a mean and standard deviation in millimeters. Convert the observation or both reference quantities before entering them.
- Treating a large score as proof of error. Extreme standardized values may reflect valid observations, unusual conditions, a poor reference group, or data mistakes. Investigate the source rather than deleting the observation automatically.
Frequently asked questions
Does a z-score require a bell-shaped distribution?
No. The arithmetic works whenever the reference standard deviation is positive. Normal-distribution probabilities are an additional interpretation, not part of standardization itself.
Can a z-score be negative?
Yes. A negative score means the observation is below the reference mean. Its absolute magnitude measures the distance in standard-deviation units.
Why is a zero standard deviation invalid?
A zero spread makes the denominator zero. There is no finite standardized distance under this formula, even if the observation also equals the mean.
Is this the same as a z-test statistic?
Not necessarily. A z-test for a sample mean generally uses a standard error in its denominator and a stated null value. This calculator standardizes an individual supplied observation using a supplied standard deviation.
Can I compare scores from different tests?
Standardized scores can help when the reference groups and constructs are comparable. They do not make different tests equivalent or correct for biased sampling, inconsistent measurement, or different underlying skills.
Related calculators
Related guides
MathStandard deviation without the jargonThe average tells you the centre. Standard deviation helps describe the spread, provided you know what the data represents.14 November 2026 · 7 min read
MathPercentages people get wrong: change, difference and pointsThe denominator determines the answer. Learn to distinguish percentage change, symmetric difference and percentage-point movements.14 November 2026 · 7 min readAbout the author
Dr. Hassan Khames Eliwa holds a PhD in Construction & Built Environment and has more than 20 years of international project controls experience. He is Director of Eliwa Project Controls Limited in Auckland and founder of PMMilestone.org and PMMilestone.com.
Buy me a coffee