What is a z-score?
A z-score, also called a standard score, tells you how far a value lies from a mean in units of standard deviation. A positive z-score is above the mean, a negative z-score is below it, and z = 0 means the value is exactly at the mean. Because the original units cancel, z-scores make relative positions easier to compare across different scales.
OpenStax describes the standard normal distribution as a distribution of standardized values and uses the transformation z = (x − μ)/σ. NIST also uses the same standardization structure in measurement-performance applications: the difference between a result and an assigned value is divided by a target standard deviation. The key idea is always the same—express a deviation in standard-deviation units rather than in the original units.
This calculator focuses on the most common task: you already know a raw value, a mean and a standard deviation, and you want the corresponding z-score. It also gives a normal percentile and upper-tail probability, but keeps those probability interpretations clearly separate from the arithmetic standardization.
How to use the Z Score Calculator
- Enter the raw value x. This is the observation or score you want to standardize.
- Enter the mean μ. Use the mean that belongs to the same distribution or reference group as x.
- Enter the standard deviation σ. It must be greater than zero and should use the same units as x.
- Calculate. The blue card shows the z-score—the primary result.
- Read the supporting results. The calculator reports the normal percentile, probability above the value and absolute distance from the mean in standard deviations.
- Check the breakdown. It shows x − μ before division, so you can verify the sign and arithmetic.
Z-score formula
First find the deviation from the mean: x − μ. Then divide that deviation by the standard deviation. If x and μ are measured in points, kilograms, seconds or another unit, the numerator has that unit and σ has the same unit. The units cancel, leaving a dimensionless standard score.
Why divide by the standard deviation?
A raw difference has no context by itself. Being 10 points above the mean could be a very large difference in a tightly clustered distribution or a modest difference in a widely spread distribution. Dividing by σ scales the difference according to the typical spread. If z = 2, the observation is two standard deviations above the mean regardless of the original measurement scale.
Why must the standard deviation be positive?
A standard deviation cannot be negative. If σ = 0, all values in the distribution have no spread around the mean, and the z formula would require division by zero. The calculator therefore rejects zero or negative standard deviations instead of returning a misleading result.
How to interpret a z-score
| Z-score | Position relative to mean | Distance |
|---|---|---|
| z < 0 | Below the mean | |z| standard deviations below |
| z = 0 | Exactly at the mean | 0 standard deviations away |
| z > 0 | Above the mean | z standard deviations above |
The sign gives direction; the absolute value gives distance. A z-score of −1.8 is 1.8 standard deviations below the mean. A z-score of +1.8 is equally far from the mean but on the opposite side. If you only care about distance, compare |z|. If direction matters, keep the sign.
A z-score is not automatically “good” or “bad.” A high z can be desirable for an exam score, but undesirable for a measurement such as defect rate or response time. Interpretation depends on what the variable represents.
Z-score, percentile and probability
When a normal distribution is an appropriate model, the standard normal cumulative distribution function Φ(z) gives the area to the left of z. Multiplying Φ(z) by 100 converts that area to a percentile. The calculator's Normal percentile therefore answers: under a normal model, approximately what percentage of values fall at or below this z-score?
For example, z = 0 corresponds to 50% below and 50% above because it is the center of the standard normal distribution. z = 1 corresponds to about the 84.13th percentile, while z = −1 corresponds to about the 15.87th percentile. These are distribution-based probability statements, not part of the z-score formula itself.
The 68–95–99.7 rule
For a normal distribution, roughly 68% of observations lie within one standard deviation of the mean, roughly 95% within two, and roughly 99.7% within three. This empirical rule is useful for building intuition, but the calculator uses the normal cumulative distribution rather than these rounded mental benchmarks for its percentile output.
Worked z-score examples
x = 85, μ = 70, σ = 10. z = (85 − 70)/10 = 1.5. The score is 1.5 standard deviations above the mean and is about the 93.32nd normal percentile.
x = 64, μ = 70, σ = 3. z = (64 − 70)/3 = −2. The score is two standard deviations below the mean, about the 2.28th normal percentile.
x = 100, μ = 100, σ = 15. z = 0/15 = 0. The value is at the mean and at the 50th percentile under a normal model.
Example with decimals
Suppose a measurement is 12.7, the mean is 11.9 and the standard deviation is 0.4. The deviation is 12.7 − 11.9 = 0.8. Divide by 0.4 to get z = 2. The observation is two standard deviations above the mean. If a normal model is justified, its cumulative percentile is about 97.72%.
Using z-scores to compare values on different scales
One of the most useful features of standardization is that it can compare relative standing when raw scales differ. Suppose a student scores 88 on Test A, whose mean is 80 and standard deviation is 4. The z-score is 2. On Test B the student scores 92, where the mean is 86 and standard deviation is 8. The raw score is higher on Test B, but its z-score is only 0.75. Relative to each test's distribution, the Test A performance is farther above its mean.
This comparison is meaningful only when the reference groups and statistics are appropriate. A z-score does not magically make unrelated quantities equivalent; it standardizes each value relative to the mean and spread you supply.
Population statistics, sample statistics and notation
The classical population notation is z = (x − μ)/σ, where μ and σ are the population mean and population standard deviation. In practice, people sometimes standardize observations using a sample mean x̄ and sample standard deviation s, producing a sample-standardized score with the same arithmetic form. The distinction should be stated when it matters.
Do not confuse standardizing an individual observation with the test statistic for a sample mean. When a sample mean is standardized for inference, its denominator involves a standard error, commonly σ/√n when population σ is known, rather than simply σ. Likewise, inferential problems with an estimated population standard deviation may require a t statistic rather than treating an individual-score z formula as interchangeable.
Z-scores and outliers
Large absolute z-scores flag observations that are far from the mean in standard-deviation units, but a z-score alone does not prove that a data point is erroneous or should be deleted. Context, distribution shape, measurement quality and the analysis plan matter.
NIST notes an important limitation: ordinary z-scores use the mean and standard deviation, both of which can themselves be affected by extreme observations. Robust alternatives such as a modified z-score based on the median and median absolute deviation can be more appropriate for some outlier-screening tasks. Therefore, avoid applying a universal “|z| greater than some number means delete it” rule without a justified statistical procedure.
When normality matters—and when it does not
You can algebraically standardize a value as (x − μ)/σ without first proving the data are normal. The resulting number still describes distance from the mean in standard-deviation units. What changes is the probability interpretation. Statements such as “this is the 97.7th percentile” rely on the standard normal distribution and may be inaccurate for a strongly skewed, heavy-tailed, multimodal or otherwise non-normal population.
If you know the actual distribution or have empirical percentile data, use that information instead of automatically imposing a normal model. This calculator labels its probability outputs as normal percentile and probability for exactly that reason.
Z-score versus t-score
A z-score for an individual observation and a t statistic used in statistical inference are related ideas but not interchangeable tools. In many inference problems, the population standard deviation is unknown and estimated from sample data. The t distribution accounts for that additional uncertainty and depends on degrees of freedom. NIST's statistical guidance distinguishes confidence calculations using a known σ and standard normal variates from calculations using an estimated standard deviation and Student's t.
If your task is simply “how many standard deviations is this observation from this mean?”, this calculator is appropriate. If your task is hypothesis testing or a confidence interval for a population mean, identify the correct test statistic and standard error for that problem.
Common z-score mistakes
- Reversing the subtraction. Use x − μ. Reversing it flips the sign.
- Using variance instead of standard deviation. The denominator is σ, not σ².
- Allowing σ = 0. Division by zero makes the z-score undefined.
- Ignoring the sign. Positive means above the mean; negative means below.
- Calling every z-score a percentile. A z-score is a standardized distance. Percentile requires a distribution model or empirical distribution.
- Assuming normality automatically. Normal-table probabilities are justified only when the normal model is appropriate.
- Confusing σ with the standard error. Standardizing an individual value differs from standardizing a sample mean for inference.
- Using mismatched reference statistics. x, μ and σ should refer to the same variable and relevant reference population.
- Declaring outliers mechanically. Large |z| is a flag, not automatic proof that an observation is invalid.
How to calculate a z-score by hand
Take the raw value and subtract the mean. Keep the sign. Then divide by the standard deviation. For x = 74, μ = 68 and σ = 4:
The result says 74 is 1.5 standard deviations above the mean. If you also need a normal percentile, evaluate Φ(1.5), which is approximately 0.9332, or 93.32% below that point.
Frequently asked questions
What does a z-score of 1 mean?
It means the value is one standard deviation above the mean. Under a normal model, z = 1 is approximately the 84.13th percentile.
What does a negative z-score mean?
It means the raw value is below the mean. For example, z = −1.5 is 1.5 standard deviations below the mean.
Can a z-score be greater than 3?
Yes. Z-scores are not restricted to −3 through +3. Larger magnitudes are possible; they simply represent values farther from the mean in standard-deviation units.
What percentile is z = 0?
For the standard normal distribution, z = 0 is the 50th percentile because half the area lies below the mean and half above it.
Does a z-score have units?
No. The units in x − μ cancel with the same units in σ, leaving a dimensionless standard score.
Do z-scores require normally distributed data?
The arithmetic standardization does not. However, converting a z-score to a standard-normal percentile or tail probability assumes a normal model.
Can standard deviation be negative?
No. Standard deviation is nonnegative, and the z-score formula requires a positive standard deviation. A value of zero makes the division undefined.
Is a z-score the same as a t-score?
No. They are related standardized statistics, but t procedures account for estimating variability in inferential settings and use a t distribution with degrees of freedom.