HomeStatistics & Probability › Z-Score Calculator

Z-Score Calculator

Standardises a value against a mean and standard deviation (z = (x − μ) / σ) and reports the corresponding percentile and tail probabilities under the normal distribution.

When to use

You need how many standard deviations a value lies from the mean, or the percentile a value corresponds to in a normally distributed population (test scores, measurements, quality control).

Do not use when: You need the probability between two values or the density (use normal-distribution), the data are clearly not normal, or you need the empirical percentile rank within an actual data set (use percentile).

Formula

z = (value − mean) / std_dev; percentile = 100 × Φ(z), where Φ is the standard normal CDF

Φ is evaluated with the Abramowitz & Stegun 7.1.26 erf approximation (absolute error below 1.5·10⁻⁷). The percentile interpretation assumes the reference population is normally distributed.

Inputs

ParameterTypeUnitRequiredDescription
valuenumberyesThe observation to standardise.
meannumberyesMean of the population or reference distribution.
std_devnumberyesStandard deviation of the population or reference distribution. Range: > 0

Outputs

OutputTypeUnitDescription
z_scorenumber(value − mean) / std_dev: distance from the mean in standard deviations.
percentilenumber%Percentage of a normal population with values below x: 100 × Φ(z).
probability_belownumberStandard normal CDF Φ(z).
probability_abovenumber1 − Φ(z).
interpretationstringPlain-language position relative to the mean.

Example

x = 1.96 on the standard normal: {"value":1.96,"mean":0,"std_dev":1}{"z_score":1.96,"percentile":97.5,"probability_below":0.975,"probability_above":0.025}

Score 85, mean 70, SD 10: {"value":85,"mean":70,"std_dev":10}{"z_score":1.5,"percentile":93.32,"probability_below":0.9332,"probability_above":0.0668,"interpretation":"1.5 standard deviations above the mean"}

GET https://tttkmbb.com/api/v1/calculate/z-score?value=1.96&mean=0&std_dev=1

Machine access

Sources

FAQ

Should I use the sample or population standard deviation?

Use the population σ when it is known (e.g. a standardised test). When only a sample is available, the sample s is the usual substitute and the percentile becomes approximate, especially for small samples.

What is a 'significant' z-score?

By convention |z| > 1.96 corresponds to the outer 5 % of a normal distribution (two-sided) and |z| > 2.576 to the outer 1 %; values beyond |z| = 3 are often flagged as outliers.

Related calculators