Z-Score Calculator
Math Calculators
Calculate the z-score (standard score) from a value, mean, and standard deviation. Also converts z-scores to percentile rank.
Paste your raw observations into the Statistics Calculator, then copy its Mean result into this field. Keep the observations in the same units used here.
Paste your raw observations into the Statistics Calculator and copy Std Dev. Choose sample when the data is a sample, or population when it is the complete population.
Z-Score: 0.5000
Left-tail area / percentile, P(Z ≤ z): 69.15%
Right-tail area, P(Z ≥ z): 0.3085
Two-tailed p-value: 0.6171
This value is 0.50 standard deviations above the mean.
These are standard-normal reference areas. A formal test also requires a prespecified alternative and appropriate sampling and null-model assumptions; the left-tail area is a one-sided p-value only for a lower-tail alternative, and the right-tail area only for an upper-tail alternative.
How to use this tool
- Enter the value (x), population mean (μ), and standard deviation (σ).
- Read the z-score, left-tail percentile, right-tail area, and two-tailed p-value. Interpret p-values only when the test direction and assumptions fit.
What is a z-score?
A z-score (also called a standard score) measures how many standard deviations a data point is from the mean of its distribution. A z-score of 0 means exactly at the mean; +1.0 means one standard deviation above the mean; −2.0 means two standard deviations below.
Formula: z = (x − μ) / σ
Where x is the observed value, μ is the population mean, and σ is the standard deviation.
The standard normal distribution
The standard normal distribution (mean = 0, standard deviation = 1) is a bell-shaped curve symmetric around zero. The z-score tells you where your observation falls on this curve. The area under the curve to the left of your z-score is the cumulative probability or percentile under this reference distribution. It is not automatically a p-value:
- z = −1.96 -> 2.5th percentile (bottom 2.5% of the distribution)
- z = 0 -> 50th percentile (exactly at the mean)
- z = +1.96 -> 97.5th percentile (top 2.5%)
The region between z = −1.96 and z = +1.96 captures 95% of the normal distribution - the basis of 95% confidence intervals and two-tailed hypothesis tests.
The 68-95-99.7 rule (empirical rule)
| Range | Data within range |
|---|---|
| μ ± 1σ (z = −1 to +1) | ~68.3% of observations |
| μ ± 2σ (z = −2 to +2) | ~95.4% of observations |
| μ ± 3σ (z = −3 to +3) | ~99.7% of observations |
Common uses
- Standardized testing: SAT/ACT scores, IQ scores, and other standardized tests convert raw scores to z-scores for comparison across different test versions.
- Finance: the Altman Z-score is a classic bankruptcy prediction model. Portfolio risk uses z-scores to identify outlier returns.
- Medical research: clinical lab values are often reported as z-scores compared to a reference population.
- Quality control: in Six Sigma manufacturing, a process is “Six Sigma” quality if defects fall beyond ±6σ from the mean - approximately 3.4 defects per million opportunities.
p-value from z-score
This calculator shows the left-tail area Φ(z), the right-tail area 1 − Φ(z), and the combined two-tailed area 2 × min(Φ(z), 1 − Φ(z)). The left-tail area is a one-sided p-value only for a prespecified lower-tail alternative; the right-tail area applies to a prespecified upper-tail alternative. A two-tailed p-value combines equally extreme outcomes in either direction. A formal test also requires appropriate sampling and null-model assumptions, along with an alternative chosen before looking at the result.
- One-tailed p-value: the probability of observing a value at least as extreme as your z-score in the prespecified direction. For z = +1.645, the right-tail area is approximately 0.05; for a lower-tail test, use the left-tail area instead.
- Two-tailed p-value: the probability in both tails combined. For z = ±1.96, the two-tailed p-value is approximately 0.05, a commonly used significance threshold in many fields (α = 0.05). This is why ±1.96 appears so frequently in confidence intervals and hypothesis tests.
A two-tailed test is appropriate when asking whether a result differs in either direction. A one-tailed test is appropriate for a directional hypothesis, such as asking whether a result is greater than the mean. Tail areas are reference probabilities; they are p-values only when the test's direction and assumptions match that interpretation.
Practical examples
- Standardising a test score: a class has a mean of 70 and a standard deviation of 10. A student scores 85. z = (85 − 70) / 10 = +1.5. The student scored 1.5 standard deviations above the mean - approximately the 93rd percentile.
- Comparing across distributions: a runner finishes a 5K in 22 minutes (population mean 25 min, SD 3 min) and a 10K in 48 minutes (mean 55 min, SD 6 min). 5K z-score = (22 − 25) / 3 = −1.0; 10K z-score = (48 − 55) / 6 ≈ −1.17. The runner performed slightly better relative to peers in the 10K.
- Outlier detection: a common threshold is |z| > 3. Any data point more than 3 standard deviations from the mean occurs in fewer than 0.3% of a normal distribution and warrants investigation as a potential outlier or data error.
- Normalising for machine learning: z-score normalisation (standardisation) scales features to have mean = 0 and SD = 1. This prevents features with large ranges (e.g., income in dollars) from dominating features with small ranges (e.g., age in years) in distance-based algorithms like k-nearest neighbours and SVM.
Related distributions
The z-score assumes a known population standard deviation and a large sample size. When these assumptions don't hold, related distributions are used:
- t-distribution: used when the population SD is unknown and the sample is small. Has heavier tails than the normal distribution, reflecting additional uncertainty. Converges to the normal distribution as sample size increases (n > 30 is often cited as the practical threshold).
- Chi-squared distribution (χ²): used for categorical data tests (goodness of fit, independence in contingency tables). A chi-squared statistic is the sum of squared z-scores, so it is directly related to the normal distribution.
- F-distribution: used in ANOVA (analysis of variance) to compare the variance between groups to the variance within groups. An F-statistic is a ratio of two chi-squared variables, making it an extension of the same family.
Frequently asked questions
What is a z-score?
A z-score measures how many standard deviations a value is from the mean. A z-score of 0 means the value equals the mean; ±1 is one standard deviation away.
Related tools
- StatisticsProduce the mean and standard deviation inputs from a raw dataset.
- Distribution CalculatorUse the standardized value in a normal distribution PDF or CDF calculation.
- Confidence IntervalMove from one standardized observation to an interval around a sample mean.
- Probability CalculatorCombine the resulting tail or percentile probability with another event.