Z-Score Calculator: How to Calculate It
- Raw score (x)
- 85
- You entered
- Population mean (μ)
- 70
- You entered
- Population standard deviation (σ)
- 10
- You entered
This calculator works out the z-score for a single data point: you enter the raw score, the population mean, and the population standard deviation, and it returns how many standard deviations that score sits above or below the mean. The result is a plain number (often between -3 and 3) that tells you exactly how unusual the value is within its distribution.
Formula
The z-score formula is:
z = (x − μ) / σ
- x = the raw score you are standardizing (same unit as the data)
- μ (mu) = the population mean (same unit as the data)
- σ (sigma) = the population standard deviation (same unit as the data)
- z = the z-score (unitless)
The formula subtracts the mean from the raw score to find the distance from the center, then divides by the standard deviation to express that distance in standard-deviation units. A positive z means the score is above the mean; a negative z means it is below.
Worked Example
Using the calculator defaults: raw score x = 85, population mean μ = 70, population standard deviation σ = 10.
- Subtract the mean from the raw score: 85 − 70 = 15
- Divide by the standard deviation: 15 ÷ 10 = 1.5
- The z-score is 1.5
This means the score of 85 is 1.5 standard deviations above the population mean of 70. The calculator rounds to two decimal places, so it shows 1.50.
When to Use a Z-Score
Z-scores are used whenever you need to compare a single value against a known population distribution, especially when the data follows a normal (bell-shaped) curve. Common uses include:
- Standardizing test scores from different exams so they can be compared fairly
- Identifying outliers in a dataset (values with z-scores beyond ±2 or ±3)
- Finding percentiles or probabilities when combined with a standard normal table
- Checking whether a measurement is typical or extreme for a given population
The z-score itself only tells you the distance from the mean in standard deviations. To turn that into a probability or percentile, you need a standard normal table or a calculator with a normal CDF function.
How to Read the Result
- z = 0 — the score is exactly at the mean.
- z = 1 — the score is one standard deviation above the mean (roughly the 84th percentile in a normal distribution).
- z = −1 — one standard deviation below the mean (roughly the 16th percentile).
- |z| > 2 — the value is unusual; only about 5% of data falls beyond ±2 in a normal distribution.
- |z| > 3 — very unusual; less than 0.3% of data falls beyond ±3.
These percentile interpretations assume the data is normally distributed. If the distribution is heavily skewed, the z-score still measures distance from the mean but the percentile mapping is not accurate.
Common Mistakes
- Using sample standard deviation instead of population: the z-score formula requires the population standard deviation (σ). If you only have a sample, you need a t-statistic instead, not a z-score.
- Swapping mean and raw score: the formula is (x − μ), not (μ − x). Swapping them flips the sign of the z-score.
- Mixing units: all three values (x, μ, σ) must be in the same unit. If the mean is in kilograms and the score is in grams, convert first.
- Using variance instead of standard deviation: the denominator is σ, not σ². If you have variance, take its square root first.
- Rounding too early: round only at the final step. Rounding intermediate values can shift the result noticeably.
Tips
- Check the sign: a negative z-score is normal for values below the mean — it is not an error.
- For quick interpretation, remember the empirical rule: about 68% of data lies within ±1σ, 95% within ±2σ, and 99.7% within ±3σ.
- If your data is a sample (not the whole population), use the sample standard deviation and a t-table instead of a z-score.
- When comparing two scores from different distributions, always convert both to z-scores first — the raw values are not directly comparable.
- For a normal distribution, a z-score of 1.96 corresponds to the 97.5th percentile, a common cutoff for statistical significance.
Troubleshooting
- Result is NaN or blank: check that the standard deviation is not zero. If σ = 0, every value equals the mean and the z-score is undefined.
- Result seems too large: verify you entered the standard deviation, not the variance. If you entered 100 for variance when σ should be 10, the z-score will be 10 times too small.
- Sign is opposite of expected: double-check which value is the raw score and which is the mean. A score below the mean must produce a negative z-score.
- Percentile does not match the z-score: the z-score alone does not give a percentile unless the distribution is normal. If your data is skewed, use a different standardization method.
- Comparing z-scores from different samples: z-scores are only comparable if both come from the same population or from populations with the same shape.
Frequently Asked Questions
What does a z-score of 2 mean?
It means the raw score is 2 standard deviations above the population mean. In a normal distribution, that corresponds to roughly the 97.7th percentile — only about 2.3% of values are higher.
Can a z-score be negative?
Yes. A negative z-score simply means the raw score is below the mean. For example, if the mean is 100 and the score is 90 with σ = 5, the z-score is (90 − 100)/5 = −2.
What is the difference between z-score and t-score?
A z-score uses the population standard deviation and is valid for any sample size. A t-score uses the sample standard deviation and is used when the population standard deviation is unknown, typically with small samples (under 30).
What is a good z-score?
There is no universal “good” value — it depends on context. For standardized tests, a positive z-score means above average. For quality control, z-scores beyond ±3 often signal a problem. For identifying outliers, |z| > 2 or 3 is commonly used.
How do I convert a z-score to a percentile?
Use a standard normal table (z-table) or a calculator with a normal CDF function. For example, z = 1.5 corresponds to about the 93.3rd percentile. The conversion only works if the data is normally distributed.
Do I need the population mean and standard deviation, or can I use sample values?
For a true z-score, you need the population parameters. If you only have sample statistics, you should compute a t-statistic instead: t = (x − x̄) / (s / √n) for a sample mean, or use the sample standard deviation directly for a single value with caution.
Related
Formula used
in x | Raw score (x) | - | 85 | 0 in mu | Population mean (μ) | - | 70 | 0 in sigma | Population standard deviation (σ) | - | 10 | 0 out z | Z-score | - | (x - mu) / sigma | 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.