Audited ·Last updated 26 Jul 2026·8 citations·Tier 1·0 uses

Z-Score Calculator

Free z-score calculator: enter value, mean, and standard deviation to get z, percentile, and a two-sided p-value with the full Abramowitz-Stegun normal CDF.

Z-Score Calculator

The raw observation you want to standardise. Can be a test score, a measurement, a daily return, a height, anything on the same scale as the mean and standard deviation below.
The centre of the distribution the observation is drawn from. For IQ this is 100 by construction; for the standard normal it is 0; for a stock's daily returns it is typically near zero.
The population standard deviation. Must be strictly greater than zero — a distribution with σ = 0 has no spread and the z-score is undefined.
Z-score (z)
2
The standardised score, z = (x − μ) / σ. Reads directly as 'how many standard deviations the observation sits above (positive) or below (negative) the mean.' A z of 0 is exactly at the mean, ±1 is one standard deviation away, ±1.96 marks the 2.5%/97.5% percentile cutoffs used in a 95% confidence interval, and ±3 is the three-sigma threshold beyond which a value is considered unusually extreme.
Percentile (Φ(z) × 100)
97.72
Two-sided tail probability (p)
0.0455
Raw deviation (x − μ)
30

Background.

The Quanta z-score calculator turns any raw observation into a standard score in a single click: enter the value x, the population mean μ, and the population standard deviation σ, and the tool returns z = (x − μ) / σ along with the matching percentile under the standard normal curve and a two-sided p-value. Standardisation is the most important idea in elementary statistics — it strips the units out of a measurement and replaces them with a single dimensionless number that says, in the universal language of standard deviations, exactly how unusual the observation is. A test score of 130, a stock daily return of 4%, a baby weighing 4.1 kg at birth, and a six-sigma manufacturing defect rate are all completely incomparable on their native scales, but their z-scores live on the same number line and can be ranked, averaged, plotted, and fed into the same hypothesis tests without any further bookkeeping.

The standard normal distribution N(0, 1) is the destination of that transformation. It is bell-shaped, symmetric about zero, and characterised by a probability density φ(z) = (1/√(2π)) exp(−z²/2) and a cumulative distribution Φ(z) that has no closed-form elementary expression but is tabulated in every statistics textbook and computed numerically in every spreadsheet. The empirical rule (also called the 68-95-99.7 rule) reads directly off Φ: about 68.27% of a normal population sits within ±1σ of the mean, about 95.45% within ±2σ, and about 99.73% within ±3σ. The slightly different number every student memorises — z = 1.96 for a 95% confidence interval — is what you get when you ask for the exact two-sided 95%, not 95.45%: Φ(1.96) − Φ(−1.96) = 0.95000, so 1.96 is the precise critical value that leaves 2.5% in each tail. The 1.645 you also remember is the one-sided 95% critical value (Φ(1.645) = 0.95).

These two numbers, 1.96 and 1.645, anchor a huge fraction of all applied statistics: every textbook confidence interval of the form x̄ ± z·σ/√n, every introductory hypothesis test against a normal null, every quality-control chart with control limits at ±3σ, and every Cohen's d effect size all live or die by them.

Z-scores are not just classroom abstractions; they drive consequential decisions in the wild. The Stanford-Binet and Wechsler IQ tests are by construction normed to N(100, 15), so an IQ of 130 is exactly z = 2 and the Mensa cutoff at the 98th percentile is a hair under z = 2.05. Pediatric growth charts published by the CDC and the WHO report a child's height-for-age, weight-for-age, and BMI-for-age as z-scores so that paediatricians can compare a four-month-old in Nairobi to a four-month-old in Boston without first converting kilograms to pounds. Finance uses z-scores to compute Sharpe ratios — the excess return of a portfolio divided by its standard deviation is a z-score in disguise — and credit scoring tools such as Altman's Z-Score combine several financial ratios into a single distress-prediction score that bankruptcy judges have admitted into evidence. Six Sigma manufacturing, the discipline that made General Electric in the 1990s, is named for the goal of holding defect rates to fewer than 3.4 per million opportunities, which corresponds to a process capability of roughly z = 6 on the relevant tolerance band.

Behind every one of those applications is the same three-line calculation: subtract the mean, divide by the standard deviation, look up the tail probability. This calculator handles all three steps with the Abramowitz-Stegun §26.2.17 rational approximation to the normal CDF, accurate to better than 7.5 × 10⁻⁸ across the whole real line — the same approximation Excel, R, and most pocket calculators use under the hood — so the percentile and p-value you see here will match any statistics package or textbook table to four decimal places and usually to six. The explainer below covers when to use a z-score versus a t-statistic, how to read one-tailed and two-tailed p-values without falling into the classic 'doubled p' trap, why z = 1.96 and not z = 2 anchors the 95% confidence interval, and how the empirical rule lets you ballpark percentile estimates in your head without ever opening a table.

What is z-score calculator?

A z-score, also called a standard score or z-value, is the number of standard deviations a single observation lies above or below the mean of its distribution. Formally, for an observation x drawn from a population with known mean μ and known standard deviation σ, the z-score is z = (x − μ) / σ. The transformation has two simultaneous effects: it shifts the distribution so its mean is zero, and it scales it so its standard deviation is one. After standardisation the observation lives in the standard normal distribution N(0, 1) regardless of the original units, provided the parent distribution was normal to begin with. A positive z indicates the observation is above the mean, a negative z that it is below the mean, and z = 0 that it sits exactly at the mean. The magnitude of z is a unitless measure of how unusual the observation is: roughly 68% of a normal population has |z| ≤ 1, roughly 95% has |z| ≤ 1.96, and roughly 99.7% has |z| ≤ 3. Z-scores are most useful when (a) the parent distribution is approximately normal and (b) σ is known, not estimated from a small sample. When σ is unknown and must be estimated from the data via the sample standard deviation s, the z-score is replaced by a t-statistic t = (x̄ − μ) / (s/√n), which follows a Student's t-distribution with n−1 degrees of freedom rather than a standard normal — the t-distribution has fatter tails to compensate for the extra uncertainty introduced by estimating σ. For samples larger than about 30, the t-distribution converges on the standard normal and the two procedures give nearly identical answers, which is why introductory texts often blur the distinction. The percentile associated with a z-score is the cumulative probability Φ(z) = P(Z ≤ z) where Z is a standard normal random variable. Φ has no closed-form elementary expression — it is defined as an integral of the normal PDF from −∞ to z — so values are obtained either from tabulated z-tables, from numerical approximations such as Abramowitz & Stegun §26.2.17 (used here), or from rational/Chebyshev approximations built into statistical software. The two-sided tail probability, 2·(1 − Φ(|z|)), is the p-value for testing the null hypothesis that the observation was drawn from N(μ, σ²) against the alternative that it was drawn from some distribution with a different mean.

How to use this calculator.

  1. Enter the raw observation x in the first field. This is the value you want to standardise — a test score, a measurement, a return, a height. The number can be positive, negative, or zero, and any units are fine as long as the mean and standard deviation below are in those same units.
  2. Enter the population mean μ. For standardised tests like the SAT or the Wechsler IQ test the mean is set by the test designers (500 and 100 respectively); for a real-world measurement you usually plug in either a known population mean or a sample mean x̄ that you have computed elsewhere.
  3. Enter the population standard deviation σ. This must be strictly greater than zero — a distribution with σ = 0 collapses to a single point and z is undefined. If you only have a sample standard deviation s from a small dataset (n < 30) you should be using a t-statistic and the Quanta t-test calculator instead; for n ≥ 30 the s ≈ σ approximation is fine in practice.
  4. Read the z-score directly. A z of 2 means the observation is two standard deviations above the mean; a z of −1.5 means one and a half below. Use the 68-95-99.7 rule for a quick reality check: |z| > 2 is rare (about one in twenty observations) and |z| > 3 is genuinely unusual (about three per thousand).
  5. Read the percentile to translate the z-score into a population ranking. A percentile of 97.72% means the observation sits at or above 97.72% of the population, equivalently in the top 2.28%. Percentiles are the form non-statisticians find easiest to digest — say 'top 2%' rather than 'two sigma above the mean' in any audience that does not eat distributions for breakfast.
  6. Use the two-sided p-value when you are running a hypothesis test against H₀: μ = μ₀ with a two-sided alternative. Compare it to your significance level α (typically 0.05 or 0.01); reject H₀ if p < α. If your alternative is one-sided you want half of this number — divide it by two, since the symmetric normal puts equal probability in each tail.

The formula.

z = (x − μ) ⁄ σ

The z-score itself is one of the cleanest formulas in statistics:

z = (x − μ) / σ

where x is the observation, μ is the population mean, and σ > 0 is the population standard deviation. The numerator (x − μ) is the raw deviation in the original units; the division by σ rescales that deviation so that one full unit of z always corresponds to one full standard deviation of the parent distribution. The transformation is linear, so it preserves the shape of the distribution — if the parent is normal, the result is the standard normal N(0, 1); if the parent is right-skewed, the standardised distribution is still right-skewed, just centred at zero with unit variance.

The percentile and the two-sided p-value require the cumulative distribution function Φ(z) of the standard normal:

Φ(z) = (1/√(2π)) · ∫_{−∞}^{z} exp(−t²/2) dt

This integral has no closed-form elementary expression, so it is computed numerically. This calculator uses the rational approximation from Abramowitz & Stegun §26.2.17, the same approximation that ships inside Microsoft Excel, the GNU Scientific Library, and most statistical packages:

For z ≥ 0: k = 1 / (1 + 0.2316419·z) P(k) = a₁·k + a₂·k² + a₃·k³ + a₄·k⁴ + a₅·k⁵ Φ(z) ≈ 1 − φ(z)·P(k)

For z < 0: Φ(z) = 1 − Φ(−z)

where φ(z) = (1/√(2π))·exp(−z²/2) is the standard normal PDF and the coefficients are a₁ = 0.319381530, a₂ = −0.356563782, a₃ = 1.781477937, a₄ = −1.821255978, a₅ = 1.330274429. Abramowitz & Stegun report a worst-case absolute error of |ε(z)| ≤ 7.5 × 10⁻⁸ across the entire real line, which is overkill for any percentile reported to four decimal places.

The percentile is then

percentile = Φ(z) × 100

and the two-sided tail probability is

p = 2·(1 − Φ(|z|))

The absolute value in |z| folds the negative-z half of the curve onto the positive half by symmetry; the factor of 2 then accounts for the equally extreme observation in the opposite tail. For a one-sided test, take p/2 directly.

The widely-memorised critical values fall straight out of this machinery. Solving Φ(z) = 0.975 gives z = 1.95996 — rounded to 1.96, the two-sided 95% critical value that anchors every introductory confidence interval of the form x̄ ± 1.96·σ/√n. Solving Φ(z) = 0.95 gives z = 1.64485 — the one-sided 95% critical value. The 68-95-99.7 rule is just Φ(1) − Φ(−1) ≈ 0.6827, Φ(2) − Φ(−2) ≈ 0.9545, and Φ(3) − Φ(−3) ≈ 0.9973 rounded to one significant figure.

A worked example.

Example

The Wechsler Adult Intelligence Scale (WAIS) is normed so that scores in the general population are approximately normal with mean μ = 100 and standard deviation σ = 15. A reported full-scale IQ of 130 is the qualifying cutoff for many gifted programmes and is close to the threshold for Mensa. To standardise it, compute the deviation x − μ = 130 − 100 = 30, then divide by σ: z = 30 / 15 = 2.000. So an IQ of 130 sits exactly two standard deviations above the mean. Plugging z = 2 into the Abramowitz-Stegun approximation gives Φ(2) ≈ 0.97725, so the percentile is 97.72% — an IQ of 130 ranks at or above 97.72% of the population, equivalently in the top 2.28%. The two-sided tail probability is 2·(1 − 0.97725) = 0.04550, a hair under the conventional 0.05 threshold. The raw deviation, 30 IQ points, is what you would quote to a non-statistical audience; the z-score is what you would quote to compare this child to a six-year-old who scored 142 on a test normed to a different mean and standard deviation. The same z = 2 transformation is what underpins the empirical rule's '95% within two sigma' figure — strictly Φ(2) − Φ(−2) = 0.9545 — and why the Mensa cutoff at the 98th percentile lives just past z = 2.05.

mean100
value130
standard Deviation15

Frequently asked questions.

What is the difference between a z-score and a t-statistic?
A z-score uses the known population standard deviation σ in the denominator; a t-statistic uses the sample standard deviation s, computed from the data itself. Because s is itself estimated rather than known, the t-statistic carries extra uncertainty and follows Student's t-distribution with n−1 degrees of freedom rather than the standard normal. The t-distribution has fatter tails than the normal — for small samples, |t| has to be substantially larger than |z| to clear the same significance threshold. As the sample size grows, the t-distribution converges on N(0, 1) and the two tests agree; the rule of thumb is that for n ≥ 30 the difference is small enough that introductory courses freely substitute z for t. Use a z-score when σ is known by design (standardised tests, manufacturing tolerances) or when n is large; use a t-statistic when you are estimating σ from a small sample.
When should I use a z-score versus a t-statistic in practice?
Use z when one of the following is true: (a) the population standard deviation σ is known a priori, as in standardised tests, IQ measurements, six-sigma quality control, or any application where σ has been fixed by design or by a regulatory body; (b) the sample size is large (n ≥ 30) and the central limit theorem has done its work, so the sample standard deviation s is a precise enough estimate of σ that the difference between z and t is negligible. Use t when σ is unknown and is being estimated from a small sample (n < 30), particularly when the population is approximately normal but you have only a handful of observations — psychology experiments, clinical pilot studies, agricultural plot trials. In doubt, use t; it is always at least as conservative as z.
How do I interpret the percentile from a z-score?
The percentile is the cumulative probability under the standard normal curve to the left of z, multiplied by 100. A percentile of 97.72% (corresponding to z = 2) means that 97.72% of a normally distributed population sits at or below this value — equivalently, only 2.28% scores higher. A percentile of 50% means the observation is exactly at the median, which for a normal distribution coincides with the mean. Negative z-scores produce percentiles below 50%: z = −1 corresponds to the 15.87th percentile, z = −2 to the 2.28th. Percentiles are the form non-statisticians find most digestible — say 'top 2%' or 'below the 10th percentile' rather than 'z = 2.05' or 'z = −1.28' for any audience that does not work with distributions daily.
What is the difference between a one-tailed and a two-tailed p-value?
A one-tailed (or one-sided) p-value asks the probability of observing a result at least as extreme as yours in one specific direction, typically the direction your hypothesis predicts. A two-tailed p-value asks the probability of observing a result at least as extreme in either direction, regardless of sign. Because the standard normal is symmetric, the two are simply related: two-tailed p = 2 × one-tailed p. The calculator above reports the two-tailed value; halve it if your alternative hypothesis was one-sided. Use one-tailed when you have a strong a-priori reason to predict the direction of the effect — testing whether a new drug lowers blood pressure (not 'changes' it). Use two-tailed by default for exploratory work, regulatory filings, and any context where a surprising effect in the opposite direction would also be of interest.
What is the 68-95-99.7 rule and how does it relate to z-scores?
The 68-95-99.7 rule (also called the empirical rule) states that for any approximately normal distribution, about 68% of observations fall within one standard deviation of the mean, about 95% within two, and about 99.7% within three. In z-score language: |z| ≤ 1 captures 68.27% of the distribution, |z| ≤ 2 captures 95.45%, and |z| ≤ 3 captures 99.73%. The rule is a fast mental shortcut for translating a z-score into a percentile without a table — z = 1 is the 84th percentile, z = 2 is the 97.7th, z = 3 is the 99.85th — and it explains why three-sigma events are called rare (about 0.27% probability) and six-sigma processes are called effectively defect-free (about two parts per billion outside the band). The exact 95% confidence interval uses z = 1.96, not z = 2, because Φ(1.96) − Φ(−1.96) = 0.95000 exactly while Φ(2) − Φ(−2) ≈ 0.9545.
Why is z = 1.96 used for a 95% confidence interval and not z = 2?
Because the question being asked is 'what z-value cuts off exactly 2.5% in each tail of the standard normal?' and the answer is z = 1.95996, conventionally rounded to 1.96 — not 2. Solving Φ(z) = 0.975 returns 1.95996 to five decimal places. The empirical rule's '95% within two sigma' is an approximation: the exact value of Φ(2) − Φ(−2) is 0.9545, so two sigmas captures 95.45% of the curve, not the round 95%. If you want the symmetric 95% interval exactly, you use 1.96. Statistics teachers introduce z = 2 as a mnemonic and then upgrade students to 1.96 when they need the exact answer; the difference matters when constructing confidence intervals to be reported in journals or filed with regulators. The corresponding one-tailed 95% value is z = 1.645 (because Φ(1.645) = 0.95).
Can a z-score be negative or greater than 3?
Yes to both. A z-score is just (x − μ) / σ; it is negative whenever the observation is below the mean and can in principle take any real value. Negative z-scores are interpreted symmetrically — z = −1.5 means one and a half standard deviations below the mean, percentile about 6.7%. Z-scores larger than 3 in absolute value are rare under the normal model (about 0.27% probability of |z| > 3, 0.0063% probability of |z| > 4, 6 × 10⁻⁷ of |z| > 5), so seeing one is either evidence that the observation is genuinely extreme or evidence that the distribution is not normal — heavy-tailed financial returns, for example, produce |z| > 5 events far more often than the normal model predicts, which is why the 2008 financial crisis was sometimes described as 'a 25-sigma event' by risk managers using normal assumptions, a sign not of cosmic improbability but of model misspecification.
How does this calculator compute the normal distribution percentile?
It uses the rational approximation from Abramowitz & Stegun, Handbook of Mathematical Functions (Dover, 1972), formula §26.2.17. The approximation expresses Φ(z) for z ≥ 0 as 1 − φ(z) × P(k) where k = 1 / (1 + 0.2316419 z) and P(k) is a fifth-degree polynomial in k with five tabulated coefficients (a₁ = 0.31938..., …, a₅ = 1.33027...). For z < 0 the symmetry Φ(z) = 1 − Φ(−z) is used. Abramowitz and Stegun report a maximum absolute error of 7.5 × 10⁻⁸ across the entire real line, which is more accuracy than any printed z-table can deliver and matches the values returned by Excel's NORM.S.DIST and R's pnorm to four decimal places, usually to six. The two-sided tail probability is then 2·(1 − Φ(|z|)) computed from the same approximation.
What is a z-score in finance and how does it relate to the Sharpe ratio?
Two different things travel under the 'z-score' name in finance. The first is the literal standardisation of returns: if a stock has mean daily return μ and standard deviation σ (its volatility), then a single-day return r has z-score (r − μ)/σ, and risk managers track |z| > 3 events as candidates for fat-tail risk. The second is Altman's Z-Score, introduced by Edward Altman in 1968, which is a weighted sum of five financial ratios that predicts corporate bankruptcy within two years — values below 1.81 are 'distressed', above 2.99 are 'safe'. The Sharpe ratio (Sharpe 1966) is a close cousin of the first kind: it is the excess return of a portfolio over the risk-free rate, divided by the standard deviation of that excess return — exactly a z-score with the risk-free rate playing the role of μ and the portfolio's volatility playing the role of σ. A Sharpe ratio of 1 means the strategy delivers one standard deviation of excess return per unit of risk; Sharpes above 2 are exceptional and rare on long histories.
How are z-scores used in paediatric growth charts?
The WHO Child Growth Standards (2006) and the CDC growth charts both report a child's height-for-age, weight-for-age, weight-for-height, and BMI-for-age as z-scores against a reference population. A z-score of 0 is exactly on the median curve, +1 is one standard deviation above, −1 is one below. The WHO flags z < −2 as 'moderately stunted/wasted/underweight' and z < −3 as 'severely stunted/wasted/underweight', thresholds that map to roughly the 2.3rd and 0.1st percentiles of the reference population. Reporting in z-scores rather than raw centimetres lets paediatricians compare children across ages, sexes, and reference populations on a single scale, and it lets researchers aggregate undernutrition statistics across countries — a four-month-old with weight-for-age z = −2.5 in Nairobi is on the same scale as a four-month-old with the same z-score in São Paulo. The same logic underpins the Centers for Disease Control's BMI-for-age z-scores used to flag childhood obesity.

References& sources.

  1. [1]Abramowitz, M., & Stegun, I. A. (Eds.). (1972). Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables (Dover, 9th printing). §26.2.17 — rational approximation to the normal CDF Φ(x) with maximum absolute error 7.5 × 10⁻⁸.
  2. [2]NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.6.6.1 — Normal Distribution. National Institute of Standards and Technology.
  3. [3]Casella, G., & Berger, R. L. (2002). Statistical Inference (2nd ed., Duxbury). Chapter 3 — Common families of distributions, including the standard normal and the derivation of Φ.
  4. [4]Pearson, K. (1894). Contributions to the Mathematical Theory of Evolution. Philosophical Transactions of the Royal Society of London A, 185, 71–110 — origin of the term 'standard deviation' and early treatment of the normal distribution.
  5. [5]Zwillinger, D. (Ed.). (2018). CRC Standard Mathematical Tables and Formulas (33rd ed., CRC Press). Standard reference tables for the normal CDF Φ(z) and inverse Φ⁻¹(p).
  6. [6]WHO Multicentre Growth Reference Study Group. (2006). WHO Child Growth Standards: Length/height-for-age, weight-for-age, weight-for-length, weight-for-height and body mass index-for-age — methods and development. World Health Organization, Geneva.
  7. [7]Altman, E. I. (1968). Financial Ratios, Discriminant Analysis and the Prediction of Corporate Bankruptcy. The Journal of Finance, 23(4), 589–609 — original Altman Z-Score paper.
  8. [8]Sharpe, W. F. (1966). Mutual Fund Performance. The Journal of Business, 39(1), 119–138 — introduces the Sharpe ratio as a z-score-style reward-to-variability measure.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon