Z score is a statistical measure that indicates how many standard deviations a data point is from the mean of a data set. It is a useful tool for understanding the relative position of data points within a distribution. Whether you are analyzing test scores, financial data, or any other dataset, learning how to calculate a Z score can help you make informed comparisons and interpretations. In this blog post, we will explore how to calculate Z scores, why they are important, and answer some frequently asked questions about Z scores.
What is a Z Score?
A Z score, also known as a standard score, tells you how far away a particular data point is from the mean of a data set, measured in terms of standard deviations. A positive Z score indicates that the data point is above the mean, while a negative Z score indicates that the data point is below the mean.
The formula and its conditions
, where X is the observed value, μ is the reference population mean and σ is its standard deviation, with σ > 0. The result is unitless. A descriptive sample-standardized score uses , with s > 0.
Standardization works for any distribution with a finite mean and positive finite standard deviation; it does not turn a skewed distribution into a normal one. Normal-table probabilities need an appropriate normal model.
Correction to the two original screenshots below
The screenshots use a separate dataset: 5, 8, 12, 15, 18. Its mean is 11.6 and squared deviations sum to 109.2. The population variance is 21.84, so , or 4.67 to two decimal places, not the 4.66 arithmetic error shown in both illustrations.
For X = 15, use the unrounded standard deviation: . The displayed final z score of 0.73 is still correct to two decimal places. The screenshots are retained for context; this corrected calculation supersedes their 4.66 value. Both screenshots treat their five values as the complete population.


Corrected result for the screenshots above: 5, 8, 12, 15, 18 have mean 11.6, squared-deviation sum 109.2, population variance 21.84 and standard deviation √21.84 ≈ 4.6733. For 15, z = 3.4/√21.84 ≈ 0.7275, which rounds to 0.73. Use these values instead of the screenshots’ 4.66.
Step-by-Step Guide to Calculate Z Score
Step 1: Find the Mean (Average)
The first step in calculating a Z score is to determine the mean (average) of the data set. Add all the data points together and divide by the number of data points.
Example: Treat [10, 15, 20, 25, 30] as the complete population of interest, not a sample estimate.
Mean (μ) = (10 + 15 + 20 + 25 + 30) / 5 = 100 / 5 = 20
Step 2: Calculate the Standard Deviation
Next, calculate the standard deviation of the data set. The standard deviation measures the dispersion of data points around the mean.
Example:
Step 1: Subtract the mean from each data point and square the result.
(10 – 20)² = 100
(15 – 20)² = 25
(20 – 20)² = 0
(25 – 20)² = 25
(30 – 20)² = 100
Step 2: Find the average of these squared differences.
Sum = 100 + 25 + 0 + 25 + 100 = 250
Variance = 250 / 5 = 50
Step 3: Take the square root of the variance to find the standard deviation (σ).
Standard Deviation (σ) = √50 ≈ 7.07
Step 3: Use the Z Score Formula
Now that you have the mean and standard deviation, you can calculate the Z score for any data point in the data set.
Example: Calculate the Z score for the value 25.
Z = (X – μ) / σ
, which rounds to 0.71. Keep the unrounded standard deviation until the final step.
Final Answer: The Z score for the value 25 is approximately 0.71.
If these five values are a sample
The sample mean is still 20, but the usual sample variance is , and . The descriptive standardized score for 25 is then . State which reference and standard-deviation convention you use. This individual-value score is not the same as a hypothesis-test statistic for a sample mean, whose denominator uses a standard error.
Interpreting Z Scores
Z = 0: The data point is equal to the mean.
Z > 0: The data point is above the mean.
Z < 0: The data point is below the mean.
Z > 2 or Z < -2: The value is more than two reference standard deviations from the mean. This can prompt investigation, but it is not a universal outlier test; consider distribution shape, sample size and context.
Importance of Z Scores
Standardization: Z scores compare standardized distance from appropriate reference means across units or scales. They do not necessarily compare percentiles when distribution shapes differ.
Identify Outliers: Z scores can flag possible outliers for investigation. Mean and standard deviation are themselves sensitive to extreme values; a flag alone is not a reason to delete data.
Probability Calculation: Z scores are used in normal distribution to determine the probability of a data point occurring within a certain range.
Examples of Calculating Z Scores
Example 1: In a class, the average test score is 75 with a standard deviation of 10. If a student scored 85, what is their Z score?
Mean (μ) = 75
Standard Deviation (σ) = 10
Data Point (X) = 85
Z = (X – μ) / σ = (85 – 75) / 10 = 1
Final Answer: The Z score is 1.
Example 2: The average monthly rent in a city is $1,200 with a standard deviation of $150. If a particular apartment has a rent of $1,500, what is the Z score?
Mean (μ) = 1,200
Standard Deviation (σ) = 150
Data Point (X) = 1,500
Z = (X – μ) / σ = (1,500 – 1,200) / 150 = 2
Final Answer: The Z score is 2.
Frequently Asked Questions about Z Score
Q1: What is the formula for calculating a Z score?
The formula for a Z score is , requiring σ > 0:
Where X is the value of the data point, μ is the mean, and σ is the standard deviation.
Q2: What does a Z score tell you?
A Z score indicates how many standard deviations a data point is from the mean. It helps in understanding the relative position of the data point within the distribution.
Q3: Can a Z score be negative?
Yes, a Z score can be negative if the data point is below the mean. A negative Z score indicates that the value is less than the average.
Q4: What is a good Z score?
A Z score close to 0 means the data point is near the mean. There is no universally “good” Z score: whether high or low is desirable depends on the measured outcome. Values beyond ±2 may merit investigation under an approximately normal model, but are not automatically errors or outliers.
Q5: How are Z scores used in real life?
Z scores are used in many fields, such as finance (to assess risk), education (to compare test scores), and healthcare (to analyze patient data relative to norms).
Q6: How do you interpret a Z score of 1.5?
A Z score of 1.5 means the data point is 1.5 standard deviations above the mean.
Q7: What is the difference between a Z score and a percentile?
A Z score measures the number of standard deviations away from the mean, while a percentile describes relative rank in a distribution (with conventions for ties). A Z score alone does not determine a percentile without distributional information. Under a standard normal model, z = 1 is approximately the 84.13th percentile and z = 2 the 97.72nd percentile.
Q8: Can Z scores be used for skewed distributions?
Yes, with a finite mean and positive finite standard deviation, the score still measures standardized distance for a skewed distribution. It does not remove the skew or justify using a standard normal table. Use the actual distribution or empirical ranks for percentiles.
Q9: How do you calculate Z score without standard deviation?
You need both the mean and the standard deviation to calculate a Z score. The standard deviation must be positive; if all reference values are identical, it is zero and the Z score is undefined. Do not divide by zero.
Q10: What is the Z score for the mean value?
For a positive standard deviation, the Z score for the mean value is 0 because it represents the point that is exactly at the average of the distribution.
Conclusion
Calculating the Z score is a valuable skill in statistics that helps you understand the relative position of data points within a distribution. By using the Z score formula, you can determine how far a value is from the mean and make informed decisions based on that information. Whether you’re comparing test scores, analyzing financial data, or interpreting survey results, Z scores provide a standardized way to measure and compare data.
Now that you know how to calculate Z scores, try using them in your own data analysis projects to better understand the significance of different values within your data sets.





