Z-Score Calculator
Converts a raw value into a z-score, the number of standard deviations it lies above or below the mean: z = (X − μ) ÷ σ. Enter the value, the mean and the standard deviation, or work backwards from a z-score to the raw value. You also get the probabilities from the standard normal distribution: the left-tailed (percentile), right-tailed and two-tailed p-values and the probability of falling within ±z of the mean, which you can use for hypothesis tests or to compare scores from different scales.
- Probabilities use the standard normal distribution; with small samples a t-distribution may be more appropriate.
Formula
z = (X − μ) ÷ σ; X = μ + z × σ; left-tailed p = Φ(z), right-tailed = 1 − Φ(z), two-tailed = 2 × (1 − Φ(|z|))
- Φ is the cumulative distribution function of the standard normal distribution, Φ(z) = ½ erfc(−z ÷ √2).
- The probabilities assume the data are normally distributed.
- z-scores are shown to 4 decimal places and probabilities to 6.
A score of 85 when the mean is 70 and σ = 10
Inputs
- Calculate: z
- Value (X): 85
- Z-score (z): 1.5
- Mean (μ): 70
- Standard deviation (σ): 10
z = (85 − 70) ÷ 10 = 1.5. Φ(1.5) = 0.933193, so the score is at about the 93.32nd percentile; 6.68% of values are higher, and the two-tailed p-value is 0.133614.
Sources & references
Frequently asked questions
What does a z-score tell you?
How unusual a value is relative to the mean. z = 0 is exactly average, z = 1 is one standard deviation above, and z = −2 is two below. About 95% of normally distributed values have |z| < 1.96.
How do I convert a z-score to a percentile?
Look up the left-tailed probability Φ(z) and multiply by 100. A z-score of 1 is at the 84.13th percentile.
Which p-value should I use in a hypothesis test?
Use the two-tailed p-value when you test for a difference in either direction, and a one-tailed (left or right) p-value only when your hypothesis specifies the direction in advance.
Related calculators
Standard Deviation Calculator Calculates the standard deviation of a list of numbers, the most common measure of how spread out data are around their mean. Paste or type your values separated by commas, spaces or new lines, and choose whether they are a sample from a larger group (dividing by n − 1) or the whole population (dividing by n). You also get the variance, mean, count, sum, sum of squared deviations, standard error of the mean, minimum, maximum and range. Confidence Interval Calculator Calculates a confidence interval for a population mean or a population proportion from sample data. For a mean, enter the sample mean, the standard deviation (or the standard error) and the sample size; for a proportion, the number of successes or the sample proportion and the sample size. Choose the confidence level, such as 90%, 95% or 99%, to get the critical z-value, the standard error, the margin of error and the lower and upper bounds of the interval. Average Calculator Finds the average (arithmetic mean) of a list of numbers, together with the count, sum, median, geometric mean, smallest and largest value and the range. Paste or type the numbers separated by commas, spaces or semicolons, in any mix. Anything that is not a number is skipped and listed, so you can see exactly which values went into the result. Useful for test scores, prices, measurements or any other set of data.