Z Test Calculator

Z score calculator

=—
—
—
Z-score calculator visualizationNormal curve with dual raw and z axes and a percentile row of 100 people

    The working, step by step

      In plain words

      Assumption check

        What Is a Z-Score?

        A z-score is the number of standard deviations a value sits above or below the mean of its distribution.

        A z-score of 1.5 means the value is 1.5 standard deviations above the mean, and a z-score of −2 means the value is 2 standard deviations below. Z-scores put values from different scales on one common scale, so an exam score out of 100 and a height in centimetres can be compared directly. A z-score describes one value; it does not run a hypothesis test.

        Z-Score Formula

        There are 2 z-score formulas, one for a population and one for a sample.

        Population Z-Score (x − μ) / σ

        z = (x − μ) / σ

        Use the population formula when the mean (μ) and standard deviation (σ) describe the whole population, such as published IQ norms (μ = 100, σ = 15).

        Sample Z-Score (x − x̄) / s

        z = (x − x̄) / s

        Use the sample formula when the mean (x̄) and standard deviation (s) come from your own data set. Statistical software such as R's scale() and SciPy's zscore() apply this version.

        How to Use the Z Score Calculator

        To use the z score calculator, enter 3 values:

        1. The raw score (x).
        2. The mean (μ).
        3. The standard deviation (σ).

        The calculator returns the z-score, the percentile, P(X < x) and P(X > x). The bell curve shades the share of values below x on two axes, raw scores and z-scores, and the row of 100 dots shows how many people out of 100 score lower. Drag across the curve to try other scores.

        How to Calculate a Z-Score by Hand

        To calculate a z-score by hand, follow 3 steps:

        1. Subtract the mean from the raw score: x − μ.
        2. Divide the result by the standard deviation.
        3. Read the sign: positive means above the mean, negative means below.

        For x = 85, μ = 70 and σ = 10: z = (85 − 70) / 10 = 1.5.

        Converting a Z-Score Back to a Raw Score (x = μ + zσ)

        To convert a z-score back to a raw score, use x = μ + zσ. A z-score of 2 on a test with μ = 70 and σ = 10 is x = 70 + 2 × 10 = 90. A z-score of −1.2 is x = 70 − 12 = 58.

        x = μ + z × σ

        How to Interpret a Z-Score

        Read a z-score in 2 ways: by its sign and by its size.

        Positive vs. Negative Z-Scores

        A positive z-score means the value is above the mean, and a negative z-score means the value is below the mean. A z-score of 0 equals the mean. The size of the z-score shows the distance: |z| = 1 is common, |z| = 2 is unusual and |z| = 3 is rare.

        The Empirical Rule (68–95–99.7)

        The empirical rule states that 68% of values in a normal distribution fall within ±1 SD, 95% within ±2 SD and 99.7% within ±3 SD.

        Z-score rangeShare of values insideShare outside
        −1 to +168.27%31.73%
        −2 to +295.45%4.55%
        −3 to +399.73%0.27%

        Z-Score to Percentile

        A z-score's percentile is the share of the normal curve below that z-score, Φ(z). z = 1.5 sits at the 93rd percentile, z = 0 at the 50th and z = −1 at the 16th. Find left, right and two-tailed areas for any z with the z score to p value calculator.

        Z-Score Examples

        There are 2 worked examples below.

        Example 1: Comparing Exam Scores From Two Classes

        Student A scores 82 in a class with μ = 75 and σ = 5. Student B scores 88 in a class with μ = 80 and σ = 8.

        1. Student A
          z = (82 − 75) / 5 = 1.40
        2. Student B
          z = (88 − 80) / 8 = 1.00
        3. Conclusion
          Student A did better relative to the class, with a lower raw score.

        Example 2: Is a Height Unusual?

        Adult male height has μ = 175 cm (68.9 in) and σ = 7 cm (2.8 in). A man is 198 cm (78 in) tall.

        1. Z-score
          z = (198 − 175) / 7 = 3.29
        2. Percentile
          Φ(3.29) = 99.95%
        3. Conclusion
          Only about 1 man in 2,000 is this tall, so the height is very unusual.

        Using Z-Scores to Find Outliers

        A common rule flags values with |z| > 3 as outliers. Under a normal distribution, only 0.27% of values pass ±3, so 1 value in 370 crosses that line by chance. Some analysts use |z| > 2.5 for smaller data sets. Z-scores rely on the mean and SD, which outliers pull toward themselves, so check large data sets with the interquartile-range rule too. Calculate the mean and SD of raw data with the standard deviation calculator.

        FAQs

        What is a good z-score?

        A good z-score depends on whether higher values are better. For exam scores, z = 1 beats 84% of test takers and z = 2 beats 98%. For reaction times or defect counts, a negative z-score is better. A z-score near 0 is average.

        Can a z-score be greater than 3?

        Yes, a z-score can be greater than 3. Values beyond ±3 are rare in normal data, about 3 in 1,000, but they occur in large data sets and in skewed distributions. A z-score of 5 or more usually signals an error or a true outlier.

        What is the difference between a z-score and a t-score?

        A z-score uses the standard normal scale (mean 0, SD 1), while a t-score in testing uses a scale with mean 50 and SD 10. Convert with T = 50 + 10z, so z = 1.5 becomes T = 65. The t statistic of a t-test is a different quantity again.

        How do I calculate a z-score in Excel with STANDARDIZE?

        Use =STANDARDIZE(x, mean, standard_dev) in Excel or Google Sheets. =STANDARDIZE(85,70,10) returns 1.5. Get the percentile with =NORM.S.DIST(1.5,TRUE), which returns 0.9332.

        Is a z-score the same as a z-test?

        No, a z-score describes one value, while a z-test uses a z statistic to test a hypothesis about a population mean or proportion. A z-test divides the gap between a sample mean and a hypothesized mean by the standard error, not by the SD. Run hypothesis tests with the Z Test Calculator, and see any z value on the z test graph.

        Can I use z-scores if my data isn't normal?

        Yes, you can calculate z-scores for any data, but the percentiles and the empirical rule hold only for normal data. For skewed data, z = 2 does not mean the 98th percentile. Use the actual percentile rank instead, or work out normal probabilities between two values with the normal distribution probability calculator.