Google Sheets Phi Function: How to Calculate Normal Distribution
In this article
Google Sheets does not have a single function named "PHI," but you can achieve the Phi function—which represents the cumulative distribution function (CDF) of the standard normal distribution—using the NORMSDIST function. To calculate the probability that a random variable is less than or equal to a specific z-score, simply use =NORMSDIST(z), where z is your value. This is essential for statistical analysis, calculating p-values, and determining confidence intervals in data sets.
What You'll Need
- A Google account with access to Google Sheets.
- A dataset or a specific z-score (the number of standard deviations a data point is from the mean).
- Basic understanding of the normal distribution curve.
Step-by-Step
- Prepare Your Data: Open a new or existing Google Sheet. If you are calculating the Phi value for a specific number, type that number (your z-score) into a cell. For example, enter
1.96into cellA2. - Select the Output Cell: Click on the cell where you want the result of the Phi function to appear (e.g., cell
B2). - Enter the Formula: Type
=NORMSDIST(A2)into the formula bar. TheNORMSDISTfunction specifically calculates the area under the standard normal curve from negative infinity to the z-score provided. - Execute the Calculation: Press Enter. Google Sheets will return a decimal value between 0 and 1. For a z-score of 1.96, the result will be approximately
0.975. This means that 97.5% of the data in a standard normal distribution falls below 1.96 standard deviations above the mean. - Handling Non-Standard Distributions: If your data is not already standardized (meaning it has a mean other than 0 and a standard deviation other than 1), you have two choices. You can manually calculate the z-score using the formula
(x - mean) / standard_deviationand then applyNORMSDISTto that result. Alternatively, use theNORM.DISTfunction. - Using NORM.DIST for Custom Means: To calculate the Phi value for a specific distribution without manual standardization, use the syntax
=NORM.DIST(x, mean, standard_deviation, cumulative). For example, if your value is 110, your mean is 100, and your standard deviation is 15, enter=NORM.DIST(110, 100, 15, TRUE). The "TRUE" argument tells Google Sheets to calculate the cumulative distribution (the Phi function) rather than the probability density function. - Applying the Formula to a Column: If you have a list of z-scores in column A, click the small blue square (fill handle) at the bottom-right corner of your first result cell (B2) and drag it down to apply the function to all rows in your dataset.
Common Mistakes
One of the most frequent errors is confusing the Probability Density Function (PDF) with the Cumulative Distribution Function (CDF). The Phi function is the CDF. If you use NORM.DIST and set the final argument to FALSE, you are calculating the height of the curve at that point, not the area under the curve. This will result in a very small number that does not represent the probability of a value occurring below your threshold.
Another common mistake is entering a percentage instead of a decimal for the z-score. The function expects a raw number representing standard deviations. If you enter 95% instead of 1.645, the formula will treat the input as 0.95, leading to an incorrect probability output.
Users also frequently forget to standardize their data before using NORMSDIST. Because NORMSDIST is hard-coded for a mean of 0 and a standard deviation of 1, applying it to raw data (like heights or test scores) will produce mathematically incorrect results. Always use NORM.DIST for raw data or convert your data to z-scores first.
Tips
To find the "upper tail" (the probability that a value is greater than your z-score), subtract the result of the Phi function from 1. The formula would look like =1 - NORMSDIST(A2). This is critical for calculating one-tailed p-values in hypothesis testing.
If you need to do the reverse—finding the z-score when you already know the probability (the inverse Phi function)—use =NORMSINV(probability). For example, =NORMSINV(0.95) will give you the z-score associated with the 95th percentile.
For better organization, create a small reference table in your sheet with the mean and standard deviation in named cells. This allows you to update the entire sheet's calculations by changing just two numbers rather than editing every single NORM.DIST formula.
Troubleshooting
If you encounter a #NUM! error, check your input values. This usually happens if you provide an invalid argument to NORM.DIST, such as a negative number for the standard deviation. Standard deviation must always be a positive value.
If the result seems wildly incorrect (e.g., you expect 0.95 but get 0.02), verify that you haven't swapped the x value and the mean value in the NORM.DIST formula. The value you are testing must always come first.
If the formula is not calculating at all and simply showing as text, ensure that you started the cell with an equals sign (=). Also, check that the cell format is set to "Automatic" or "Number" and not "Plain Text" via the Format menu > Number.
Frequently Asked Questions
What is the difference between NORMSDIST and NORM.DIST?
NORMSDIST is a specialized version of the function that assumes a standard normal distribution (mean = 0, standard deviation = 1). NORM.DIST is more flexible and allows you to specify any mean and standard deviation you require.
How do I calculate a two-tailed probability?
For a two-tailed test, calculate the Phi value for your z-score, find the area of the tail by subtracting from 1, and then multiply that result by 2. Example: =(1 - NORMSDIST(z)) * 2.
Can I use this for non-normal distributions?
No. The Phi function and these Google Sheets functions are strictly for normal (Gaussian) distributions. If your data follows a T-distribution, Poisson, or Binomial distribution, you must use different functions such as T.DIST.
Why does my result have so many decimal places?
Google Sheets provides high precision by default. You can reduce the number of decimals by using the "Decrease decimal places" button in the toolbar or by wrapping your formula in the ROUND function, like =ROUND(NORMSDIST(A2), 4).
Is NORMSDIST deprecated in newer versions of Sheets?
While NORMSDIST still works for backward compatibility, Google recommends using NORM.S.DIST(z, TRUE) in newer spreadsheets to align with modern Excel and Sheets standards. It functions identically to the original Phi calculation.