ThisCalculator

Everyday

Z Score Calculator: Formula & How to Use It

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Z Score Calculator: Formula & How to Use It

A z score calculator determines how many standard deviations a given data point lies from the mean of a dataset. You enter the raw score (x), the population mean (μ), and the population standard deviation (σ), and the calculator returns the z score, which tells you whether the value is above or below average and by how much. This is a core tool in statistics for comparing scores from different distributions and for finding probabilities under the normal curve.

Formula

The z score formula is:

z = (x – μ) / σ

Where:

  • x = the raw score you are standardizing (same unit as the data)
  • μ (mu) = the mean of the population (same unit)
  • σ (sigma) = the standard deviation of the population (same unit)
  • z = the z score (dimensionless, expressed in standard deviations)

The cumulative probability shown by the calculator is the area under the standard normal curve to the left of that z score. It uses the error function (erf) and gives the same result as a printed z table.

Worked Example

Using the default values from the calculator: x = 85, μ = 70, σ = 10.

  1. Subtract the mean from the raw score: 85 – 70 = 15
  2. Divide by the standard deviation: 15 ÷ 10 = 1.5
  3. So the z score is 1.50.

The cumulative probability for z = 1.50 is approximately 0.9332 (93.32%). That means a score of 85 is higher than about 93.3% of the population if the data follows a normal distribution.

What a Z Score Actually Tells You

A z score is a way to put different measurements on the same scale. For example, if one test has a mean of 70 and a standard deviation of 10, a score of 85 gives z = 1.5. On another test with mean 50 and standard deviation 5, a score of 57.5 also gives z = 1.5. Even though the raw scores are different, they represent the same relative position within their own distributions.

Z scores are used to:

  • Compare scores from different normal distributions
  • Find percentiles and probabilities (e.g., “what percentage of students scored lower?â€�)
  • Detect outliers (values with |z| > 3 are often considered unusual)
  • Standardize data before applying other statistical methods

Remember that the probability interpretation only holds if the data is approximately normally distributed. The z score itself can be calculated for any distribution, but the area under the curve is only meaningful for normal data.

How to Choose the Right Z Score Formula

There are two common situations, and they use the same formula but different inputs:

  • Population z score: Use when you have the true population mean and standard deviation. This is the classic formula: z = (x – μ) / σ.
  • Sample z score (standardized sample value): If you only have a sample, you use the sample mean (xÌ„) and sample standard deviation (s) to standardize a value: z = (x – xÌ„) / s. This is sometimes called a “standard scoreâ€� and is used in data analysis, but it is not the same as the z statistic used in hypothesis testing.

For hypothesis tests about a sample mean, you need the standard error (σ/√n) instead of σ, and the result is a z statistic, not a z score for an individual value. Many online calculators mix these up, so check what you are actually trying to compute.

Common Mistakes and Misconceptions

One frequent error is using the sample standard deviation when the population standard deviation is known, or vice versa. The formula is the same, but the interpretation changes. Another mistake is ignoring the assumption of normality when converting z to a percentile. If the data is skewed, the percentile from the normal curve will be wrong.

Also, be careful with negative z scores. A negative z simply means the raw score is below the mean. The absolute value tells you how far below. For example, z = -1.5 means the score is 1.5 standard deviations below the mean. The cumulative probability for z = -1.5 is about 0.0668, meaning only 6.68% of the population scores lower.

Rounding can also cause small discrepancies. Z scores are usually rounded to two decimal places, but if you use a rounded z to look up a probability, you might get a slightly different value than if you used the exact z. For most purposes, two decimal places is fine.

Limitations of the Z Score Calculator

The calculator only works with numeric inputs and assumes you already know the population parameters. In real research, you often have to estimate μ and σ from a sample, which introduces uncertainty. The z score also does not tell you anything about the shape of the distribution beyond the mean and standard deviation. For non-normal data, the percentile interpretation is invalid.

Additionally, the cumulative probability output is based on the standard normal distribution. If your data is not normal, the probability will not reflect the actual proportion of values below your score. Use the z score for standardization and comparison, but do not overinterpret the probability unless normality is reasonable.

Alternatives to the Z Score

When the population standard deviation is unknown and you have a sample, the t-score is a better choice for hypothesis testing. The t distribution accounts for the extra uncertainty from estimating σ. For skewed data, percentiles or quantiles are more robust. For comparing values across different units, the coefficient of variation (CV) can be useful, but it does not give a standardized score.

If you need to find the probability of a range (e.g., between two scores), you can calculate the z for each and subtract the cumulative probabilities. Many calculators also offer an inverse z calculator that finds the raw score given a percentile.

Frequently Asked Questions

What is a good z score?

There is no universal “good� z score. It depends on context. In education, a z of 0 is average, +1 is one standard deviation above average, and +2 is above about 97.7% of the population. In quality control, a z of 3 or higher might indicate a defect. Always interpret relative to your field.

Can z scores be negative?

Yes. A negative z score means the raw score is below the mean. The sign indicates direction, and the magnitude indicates distance in standard deviations. Negative z scores are perfectly normal and expected for any value below the average.

What is the difference between z score and z statistic?

A z score standardizes an individual data point using the population mean and standard deviation. A z statistic is used in hypothesis testing for a sample mean, calculated as (x̄ – μ) / (σ/√n). The z statistic uses the standard error, not the standard deviation, and is used to test hypotheses about the population mean.

How do I find the probability from a z score?

You look up the cumulative probability in a standard normal table, or use a calculator like this one. The cumulative probability is the area under the normal curve to the left of the z score. For z = 1.5, that area is about 0.9332, so there is a 93.32% chance a random value is below that score.

Is the z score the same as a percentile?

No. A z score is the number of standard deviations from the mean. A percentile is the percentage of values below a given score. They are related only when the data is normally distributed. For example, z = 1.5 corresponds to the 93.32nd percentile in a normal distribution, but in a skewed distribution the percentile could be different.

What if my data is not normally distributed?

You can still calculate a z score, but the probability interpretation is not valid. The z score just tells you how many standard deviations the value is from the mean, which can be useful for standardization. For probabilities, use non-parametric methods or transform the data.

Related

Formula used
in x | Raw score | - | 85 | 0
in mu | Population mean | - | 70 | 0
in sigma | Population standard deviation | - | 10 | 0
out z | Z score | - | (x - mu) / sigma | 2
out p | Cumulative probability (left tail) | - | 0.5 * (1 + erf(z / sqrt(2))) | 4

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.