Excel Normal Distribution Curve: Step-by-Step Guide
In this article
Creating a normal distribution curve in Excel allows you to visualize the "bell curve" of a dataset, helping you identify the mean, variance, and the probability of specific values occurring. This is achieved by calculating the probability density function for a range of values using the NORM.DIST function and plotting those results on a Scatter chart with smooth lines.
What You'll Need
- Microsoft Excel (any modern version)
- A set of raw data (if you are modeling real-world data) or a target mean and standard deviation (if you are creating a theoretical model)
Step-by-Step
- Calculate the Mean: If you have a raw dataset, you first need the average. In an empty cell, type
=AVERAGE(range), where "range" is the group of cells containing your data. Label this cell "Mean". - Calculate the Standard Deviation: In another cell, type
=STDEV.P(range)for a whole population or=STDEV.S(range)for a sample. Label this cell "Standard Deviation". - Create the X-Axis Data: To get a smooth curve, you need a sequence of numbers that span the range of your data.
- Find your minimum value (Mean minus 3 times the Standard Deviation).
- Find your maximum value (Mean plus 3 times the Standard Deviation).
- In a new column (e.g., Column A), create a list of numbers starting from your minimum and increasing by small increments (e.g., 0.1 or 1) until you reach your maximum. The smaller the increment, the smoother the curve.
- Apply the NORM.DIST Function: In the column next to your X-axis values (e.g., Column B), enter the formula to calculate the probability density. The syntax is:
=NORM.DIST(x, mean, standard_dev, cumulative).- x: Click the cell in Column A.
- mean: Click the cell where you calculated the mean (use an absolute reference like $B$1 so it doesn't shift).
- standard_dev: Click the cell where you calculated the standard deviation (use an absolute reference like $B$2).
- cumulative: Type
FALSE. This ensures you get the probability density (the height of the curve) rather than the cumulative area.
- Fill the Formula: Hover over the bottom-right corner of the cell containing the NORM.DIST formula and double-click or drag the fill handle down to the end of your X-axis data.
- Insert the Chart:
- Highlight both the X-axis column and the NORM.DIST results column.
- Go to the Insert tab.
- In the Charts group, select Insert Scatter (X, Y) or Bubble Chart.
- Choose Scatter with Smooth Lines.
- Format the Graph: Click on the chart elements to add a Chart Title and Axis Titles (via the "+" button on the chart or the Chart Design tab) to clearly label your X-axis as the variable and the Y-axis as the Probability Density.
Common Mistakes
- Using TRUE instead of FALSE: Setting the cumulative argument to TRUE creates an S-shaped curve (cumulative distribution) instead of the bell-shaped curve. Always use FALSE for a normal distribution curve.
- Insufficient X-Axis Points: If you only use 5 or 10 points for your X-axis, the curve will look jagged or like a triangle. Use at least 50 to 100 points for a professional, smooth look.
- Incorrect Range for X-Axis: If your X-axis doesn't cover at least 3 standard deviations on either side of the mean, the curve will appear "cut off" and won't return to the baseline.
- Relative vs. Absolute References: Forgetting the dollar signs (e.g., using B1 instead of $B$1) when referencing the mean and standard deviation will cause the formula to break as you drag it down.
Tips
- Dynamic Inputs: Instead of typing numbers directly into the NORM.DIST formula, always reference cells. This allows you to change the mean or standard deviation and see the curve update instantly.
- Customizing the Look: Right-click the line on the chart and select Format Data Series. Here you can change the line color, increase the width, or add a marker for specific data points.
- Adding a Histogram: To see how your actual data fits the theoretical curve, create a histogram of your raw data first, then add the normal distribution curve as a secondary axis line chart.
Troubleshooting
- The curve is a flat line: This usually happens if your X-axis increments are too large or if your standard deviation is extremely high relative to the range of your X-axis. Try smaller increments in your X-axis column.
- The chart is blank: Check that your NORM.DIST formula is not returning errors (like #VALUE!). Ensure the mean and standard deviation cells contain numbers and not text.
- The curve is shifted to one side: Ensure your X-axis values are centered around the mean. If your mean is 100 but your X-axis starts at 0 and ends at 110, the peak of the bell will be at the very edge of the graph.
- #NUM! Error: This occurs if the standard deviation is entered as 0 or a negative number. Standard deviation must always be a positive value.
Frequently Asked Questions
What is the difference between NORM.DIST and NORM.S.DIST?
NORM.DIST is used for any normal distribution where you provide the mean and standard deviation. NORM.S.DIST is a specialized version for the "Standard Normal Distribution," where the mean is always 0 and the standard deviation is always 1.
Why does my curve look like a staircase?
This happens when you use a Line Chart instead of a Scatter Chart with Smooth Lines. Line charts treat the X-axis as text labels rather than numerical values. Switch to a Scatter chart to fix the spacing.
How many standard deviations should I plot?
Plotting from -3 to +3 standard deviations is the standard practice because 99.7% of all data in a normal distribution falls within this range.
Can I create this curve without raw data?
Yes. You only need a theoretical mean and a theoretical standard deviation. You can then create the X-axis sequence manually to visualize what that specific distribution would look like.
How do I change the smoothness of the curve?
The smoothness is determined by the number of rows in your X-axis data. To make it smoother, decrease the increment between your X values (e.g., change increments from 1.0 to 0.1), which increases the number of plotted points.