How to Find a P-Value from a Z-Score in Excel

How to Calculate a P-Value from a Z-Score in Excel

Determining the p-value associated with a test statistic is a fundamental step in statistical analysis. When dealing with large samples or known population standard deviations, the result often involves calculating a z-score. Fortunately, the process of translating this score into a meaningful p-value is highly efficient using spreadsheet software like Excel.

This article provides an expert guide on how to leverage Excel’s built-in statistical functions to accurately compute the required p-value from any calculated z-score. This method is critical for formal hypothesis testing and drawing rigorous conclusions from data.


Most procedures in inferential statistics lead to a calculated z-test statistic. Upon obtaining this statistic, the subsequent and vital step is to determine the corresponding p-value. This value represents the probability of observing data as extreme as, or more extreme than, the data collected, assuming the null hypothesis is true. If this calculated p-value falls below a predefined significance level (often denoted as alpha, such as 0.10, 0.05, or 0.01), we possess sufficient evidence to reject the null_hypothesis and conclude that the observed results are statistically significant.

The NORM.DIST Function: Your P-Value Calculator in Excel

To calculate the p-value in Excel, we rely on the powerful NORM.DIST function. This function returns the normal cumulative distribution for a specified mean and standard deviation. Since the z-score is inherently linked to the standard normal distribution, using NORM.DIST simplifies the calculation significantly. Understanding its arguments is key to successful implementation.

The structure of the NORM.DIST function is as follows:

NORM.DIST(x, mean, standard_dev, cumulative)

Here is a breakdown of the critical parameters required when inputting the z-score:

  • x: This parameter represents the specific value for which you want the distribution, which in our case is the calculated z-score derived from the sample data.
  • mean: Since we are working with a standardized test statistic, we utilize the properties of the standard normal distribution, for which the population mean is always set to “0”.
  • standard_dev: Similarly, for the standard normal distribution, the standard deviation is fixed at “1”.
  • cumulative: This argument must be set to “TRUE”. Setting it to TRUE instructs Excel to return the Cumulative Distribution Function (CDF), which calculates the probability of observing a value less than or equal to x. We use “TRUE” for standard p-value calculations.

To demonstrate the practical application of this function, we will examine two distinct scenarios: a two-tailed hypothesis test and a one-tailed hypothesis test.

Example 1: Finding a P-value from a Z-score (Two-Tailed Test)

Consider a real-world application where a manufacturing company is investigating whether a newly developed battery exhibits a statistically significant difference in average lifespan compared to their existing standard model. The established standard battery has a known mean life of 18 hours. A research team conducted a thorough test on a random sample of 100 of the new batteries and recorded a sample mean life of 19 hours, accompanied by a standard deviation of 4 hours.

The objective is to conduct a formal two-tailed hypothesis test. We will use a conventional significance level (alpha level) of 0.05 to rigorously determine if the average life of the new battery population deviates from the 18-hour benchmark set by the current standard battery.

Step 1: Formulating the Hypotheses

The initial step in any statistical test is the clear articulation of the null and alternative hypotheses, which structure the entire decision-making process.

The null hypothesis (H0): The population mean battery life is 18 hours (μ = 18).

The alternative hypothesis: (Ha): The population mean battery life is not equal to 18 hours (μ ≠ 18). This inequality indicates a two-tailed test.

Step 2: Calculating the Z-Test Statistic

To proceed, we must convert our sample data into a standardized z-test statistic using the appropriate formula for a single sample z-test, which accounts for the sample standard deviation and sample size.

The formula for the test statistic is: z = (x̄ – μ) / (s/√n). Plugging in our values (x̄=19, μ=18, s=4, n=100) yields:

Test statistic z = (19 – 18) / (4 / √100) = 1 / 0.4 = 2.5

Step 3: Determining the P-value using Excel

For a two-tailed test, the calculated p-value must account for the probability in both the upper and lower tails of the distribution. Since our calculated z-score (2.5) is positive, Excel’s NORM.DIST function will provide the area to the left of 2.5. To find the area in the upper tail, we calculate 1 minus the result. Finally, we multiply this value by two to account for the two tails (±2.5).

The formula used in Excel is: =2 * (1 – NORM.DIST(2.5, 0, 1, TRUE))

P value from z score in Excel

Executing this formula yields a two-tailed p-value of approximately 0.0124.

Step 4: Drawing the Conclusion

The final step in the hypothesis test is comparing the calculated p-value against the predefined alpha level. Our calculated p-value (approximately 0.0124) is significantly less than the chosen alpha level of 0.05. When the p-value < alpha, we reject H0. Therefore, we reject the null hypothesis. We have robust statistical evidence to conclude that the average life of the new battery population is statistically and significantly different from the 18-hour average of the current standard battery.

Example 2: Finding a P-value from a Z-score (One-Tailed Test)

For our second scenario, imagine a botanist who hypothesizes that a specific plant species exhibits a mean height of less than 14 inches. To test this theory, she gathers a random sample of 30 plants. Measurements reveal that the sample mean height is 13.5 inches, with a sample standard deviation of 2 inches.

We must perform a one-tailed hypothesis test (specifically, a left-tailed test) using a stringent alpha level of 0.01. The goal is to determine if the collected data provides compelling evidence that the true population mean height of this plant species is actually less than 14 inches.

Step 1: Formulating the Hypotheses for a Left-Tailed Test

The hypotheses are structured to reflect the botanist’s directional claim.

The null hypothesis (H0): The population mean height is greater than or equal to 14 inches (μ ≥ 14).

The alternative hypothesis: (Ha): The population mean height is less than 14 inches (μ < 14). This inequality confirms a one-tailed, left-sided test.

Step 2: Calculating the Z-Test Statistic

Using the same z-test statistic formula, we input the new sample data (x̄=13.5, μ=14, s=2, n=30).

Test statistic z = (x̄ – μ) / (s/√n) = (13.5 – 14) / (2 / √30) ≈ -1.369

Step 3: Determining the P-value using Excel

Since this is a left-tailed test, and the calculated z-score is negative, we are interested in the area to the left of -1.369. The NORM.DIST function, when set to TRUE for cumulative, inherently calculates this left-tail probability.

The formula used in Excel is: =NORM.DIST(-1.369, 0, 1, TRUE)

The result of this calculation provides the one-sided p-value, which is approximately 0.08550.

Step 4: Drawing the Conclusion

We compare the resulting p-value of 0.08550 against the highly conservative alpha level of 0.01. Since 0.08550 is substantially greater than 0.01, we must fail to reject the null hypothesis. The observed difference in the sample mean is not significant enough, given the strict alpha level, to overturn the assumption that the population mean height is 14 inches or more. Consequently, we lack sufficient statistical evidence to support the claim that the average height of this particular plant species is truly less than 14 inches.

Summary of P-Value Calculation Rules in Excel

To ensure accuracy when using Excel for various hypothesis tests, remember these key distinctions based on the alternative hypothesis (Ha):

  • Left-Tailed Test (Ha: μ < value): Use =NORM.DIST(Z, 0, 1, TRUE). This directly calculates the area in the left tail.
  • Right-Tailed Test (Ha: μ > value): Use =1 - NORM.DIST(Z, 0, 1, TRUE). This calculates the area in the right tail.
  • Two-Tailed Test (Ha: μ ≠ value): Use =2 * (1 - NORM.DIST(ABS(Z), 0, 1, TRUE)). This uses the absolute value of Z, finds the upper tail area, and doubles it to include both tails.

Mastering the application of the NORM.DIST function, along with the proper consideration of the test type, enables rapid and reliable statistical inference directly within your spreadsheet environment.

For more extensive resources and advanced statistical tutorials in Excel, be sure to check out our complete list of tools and guides.

Cite this article

stats writer (2025). How to Calculate a P-Value from a Z-Score in Excel. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-to-find-a-p-value-from-a-z-score-in-excel/

stats writer. "How to Calculate a P-Value from a Z-Score in Excel." PSYCHOLOGICAL SCALES, 29 Dec. 2025, https://scales.arabpsychology.com/stats/how-to-find-a-p-value-from-a-z-score-in-excel/.

stats writer. "How to Calculate a P-Value from a Z-Score in Excel." PSYCHOLOGICAL SCALES, 2025. https://scales.arabpsychology.com/stats/how-to-find-a-p-value-from-a-z-score-in-excel/.

stats writer (2025) 'How to Calculate a P-Value from a Z-Score in Excel', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-to-find-a-p-value-from-a-z-score-in-excel/.

[1] stats writer, "How to Calculate a P-Value from a Z-Score in Excel," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, December, 2025.

stats writer. How to Calculate a P-Value from a Z-Score in Excel. PSYCHOLOGICAL SCALES. 2025;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top