Z-Score Calculator Formula
Understand the math behind the z-score calculator. Each variable explained with a worked example.
Formulas Used
Z-Score
z_score = (x - mu) / sigmaAbsolute Distance (in SDs)
abs_z = abs((x - mu) / sigma)Raw Deviation
raw_deviation = x - muVariables
| Variable | Description | Default |
|---|---|---|
x | Value (x) | 85 |
mu | Mean (mu) | 70 |
sigma | Standard Deviation (sigma) | 10 |
How It Works
How to Calculate a Z-Score
Formula
Z = (X - mu) / sigma
The z-score expresses how far a data point is from the population mean in units of standard deviations. A positive z-score means the value is above the mean; a negative z-score means below. Z-scores allow comparison across different scales and distributions.
Worked Example
A student scores 85 on a test where the class mean is 70 and SD is 10.
x = 85mu = 70sigma = 10
- 01Z = (X - mu) / sigma
- 02Z = (85 - 70) / 10
- 03Z = 15 / 10 = 1.5
- 04The score is 1.5 standard deviations above the mean
Ready to run the numbers?
Open Z-Score Calculator