Google Sheets Gauss Function: How to Use NORMDIST
In this article
Google Sheets does not have a single function named "GAUSS," but it achieves Gaussian (normal) distribution calculations using the NORMDIST function. This function calculates the probability density or the cumulative distribution of a value given a specific mean and standard deviation, allowing you to determine where a data point falls within a bell curve. To use it, you enter the value you are testing, the average (mean), the standard deviation, and a true/false toggle for whether you want the cumulative distribution.
What You'll Need
- A Google account with access to Google Sheets.
- A dataset or a specific value you wish to analyze.
- The calculated mean (average) of your data set.
- The calculated standard deviation of your data set.
Step-by-Step
- Prepare Your Data: Open your Google Sheet and ensure your data is organized in a column. For example, if you are analyzing test scores, list all scores in Column A.
- Calculate the Mean: You need the average of your data to act as the center of your Gaussian curve. In an empty cell, type
=AVERAGE(A2:A100)(adjusting the range to fit your data). Note this value or the cell reference (e.g., C1). - Calculate the Standard Deviation: This determines the spread of your bell curve. In another empty cell, type
=STDEV(A2:A100). Note this value or the cell reference (e.g., C2). - Select the Target Cell: Click on the cell where you want the Gaussian result to appear.
- Enter the NORMDIST Formula: Type the following formula:
=NORMDIST(x, mean, standard_deviation, cumulative). Replace the placeholders with your specific data: - x: The value you are testing (e.g., a specific score of 85).
- mean: The average you calculated in step 2.
- standard_deviation: The value you calculated in step 3.
- cumulative: Enter
TRUEif you want the area under the curve to the left of x (cumulative distribution). EnterFALSEif you want the height of the curve at that exact point (probability density function). - Example Implementation: If your target value is in cell B1, mean in C1, and standard deviation in C2, your formula would look like:
=NORMDIST(B1, C1, C2, TRUE). - Press Enter: Google Sheets will return a decimal value between 0 and 1. If you used TRUE, this represents the probability that a random variable from this distribution will be less than or equal to x.
- Format as Percentage: To make the result easier to read, select the result cell and click the % icon in the toolbar to convert the decimal to a percentage.
Common Mistakes
One of the most frequent errors is confusing the cumulative argument. Users often select FALSE when they actually want to know the percentile of a value. If you select FALSE, you are getting the probability density, which is the height of the bell curve at that point; this number is often very small and does not represent a percentage of the population. Always use TRUE for calculating the probability of a value occurring within a certain range.
Another common mistake is using the wrong standard deviation formula. Google Sheets offers STDEV, STDEVP, and STDEV.S. If you are working with a sample of a larger population, use STDEV.S. If you have the entire population of data, use STDEVP. Using the sample formula for a full population (or vice versa) will slightly skew your Gaussian results, leading to inaccurate probability calculations.
Users also occasionally swap the mean and the standard deviation in the formula sequence. The syntax must strictly follow (x, mean, stdev, cumulative). Swapping these two will result in a mathematically incorrect curve, often producing results that seem impossible or wildly off-base compared to the visual distribution of the data.
Tips
To visualize the Gaussian distribution, you can create a scatter plot or a line chart. Create a column of X-values that span from three standard deviations below the mean to three standard deviations above the mean. In the adjacent column, use the NORMDIST function with the cumulative argument set to FALSE for each X-value. When you highlight both columns and insert a chart, Google Sheets will render the classic bell curve shape.
If you need to find the value associated with a specific probability (the inverse of the Gauss function), use NORMSINV or NORMINV. For example, if you want to know what score represents the top 10% of your data, you would use NORMINV(0.9, mean, stdev). This allows you to move from a probability back to a raw data value.
For cleaner spreadsheets, use absolute cell references for your mean and standard deviation. Instead of C1, use $C$1. This allows you to drag the NORMDIST formula down a long list of X-values without the mean and standard deviation references shifting downward, saving you from rewriting the formula for every row.
Troubleshooting
If your formula returns a #NUM! error, check your standard deviation value. The standard deviation must be a positive number. If your STDEV calculation resulted in 0 (which happens if all your data points are identical) or a negative number (which is mathematically impossible for standard deviation but can happen via manual entry error), the NORMDIST function will fail because it cannot divide by zero or calculate a curve with no spread.
If the result is 0 or 1 unexpectedly, check the distance between your X-value and the mean. If your X-value is extremely far away from the mean (e.g., more than 5 or 6 standard deviations), the probability becomes so small that Google Sheets may round it to 0 or 1. Verify that your X-value is in the same units as your mean and standard deviation.
If you see a #VALUE! error, ensure that all inputs in the formula are numbers. If your mean or standard deviation cells contain text, hidden spaces, or are formatted as text instead of numbers, the function cannot perform the calculation. Use the =ISNUMBER() function to verify that your inputs are being recognized as numeric values by the system.
Frequently Asked Questions
Is NORMDIST the same as a Gaussian function?
Yes. In statistics, the Gaussian distribution is the same as the Normal distribution. The NORMDIST function in Google Sheets is the tool used to calculate the properties of this specific distribution.
What is the difference between NORMDIST and NORMSDIST?
NORMDIST allows you to specify any mean and standard deviation. NORMSDIST is a specialized version for the "Standard Normal Distribution," where the mean is always 0 and the standard deviation is always 1.
Why is my bell curve looking flat?
This usually happens because your X-axis range is too wide or your standard deviation is very large relative to the range of X-values you are plotting. Try narrowing your X-values to be within three standard deviations of the mean.
Can I use this for non-normal data?
No. The NORMDIST function assumes your data follows a normal (bell-shaped) distribution. If your data is heavily skewed or follows a different distribution (like Poisson or Binomial), the results will be misleading.
How do I find the probability between two values?
To find the probability between value A and value B, calculate the cumulative distribution for both using TRUE and subtract the smaller result from the larger one: =NORMDIST(B, mean, stdev, TRUE) - NORMDIST(A, mean, stdev, TRUE).