Gas Gauge Chart Excel: How to Create a Speedometer
In this article
A gas gauge chart in Excel—often called a speedometer or gauge chart—is a visual representation of a single data point plotted against a scale, typically used to show Key Performance Indicators (KPIs) like sales targets, project completion percentages, or budget utilization. Because Excel does not have a native "Gauge" chart type, this is achieved by layering a Doughnut chart (to create the colored background scale) and a Pie chart (to create the moving needle). This combination allows you to transform a static number into a dynamic visual that immediately communicates whether a value is in the "red," "yellow," or "green" zone.
What You'll Need
- Microsoft Excel (Desktop version recommended for advanced formatting).
- A specific data value you wish to track (e.g., 75% of a goal).
- A defined scale for your gauge (e.g., 0% to 100%).
- Basic familiarity with the Insert Chart menu and the Format Data Series pane.
Step-by-Step
- Set Up the Gauge Background Data: You must first create a table that defines the colored segments of your gauge. Since a doughnut chart is a full circle (360 degrees) and a gas gauge is a half-circle (180 degrees), you need to account for the bottom half of the circle. Create a small table with the following values: Low (25), Medium (25), High (25), and Bottom Half (50). The sum of these must be 150 if you want a perfect semi-circle, or 200 if you use 50/50/50/50. For a standard 0-100% gauge, use: Red (25), Yellow (25), Green (50), and Bottom (100). The "Bottom" value must always equal the sum of the other three combined to ensure the gauge is a perfect semi-circle.
- Create the Doughnut Chart: Highlight the data for the background segments (Red, Yellow, Green, and Bottom). Go to the Insert tab, select the Pie Chart dropdown, and choose Doughnut. This will create a full circle with four colored slices.
- Rotate the Doughnut: The doughnut currently starts at the top. To make it a gauge, you need the "Bottom" slice to be at the bottom. Right-click any slice of the chart and select Format Data Series. In the pane that appears, look for Angle of first slice. Change this value to 270 degrees. The largest slice (the Bottom half) will now be at the bottom of the chart.
- Hide the Bottom Half: To make it look like a gas gauge, you must make the bottom half invisible. Click once on the doughnut to select the whole series, then click again specifically on the bottom slice to select only that segment. Right-click the slice, select Format Data Point, and under Fill, choose No fill. Under Border, choose No line. Now you have a semi-circle gauge.
- Prepare the Needle Data: In a separate area of your spreadsheet, set up the data for the needle. You need three cells:
- Value: The actual number you are tracking (e.g., 75).
- Needle Width: A very small constant, usually 1 or 2, to give the needle thickness.
- Remainder: A formula that calculates the rest of the circle. If your total gauge scale is 200 (the sum of the background slices), the formula is
=200 - Value - Needle Width.
- Add the Needle as a Pie Chart: Right-click the existing doughnut chart and choose Select Data. Click Add under Legend Entries (Series). For the Series Name, type "Needle". For the Series Values, select the three cells you just created (Value, Needle Width, and Remainder). Click OK. Your chart will now look like a strange, layered doughnut.
- Convert the Needle to a Pie Chart: Right-click the new outer ring (the needle series) and select Change Series Chart Type. In the dialog box, find the "Needle" series and change its chart type from Doughnut to Pie. Ensure the "Plot Series on Secondary Axis" checkbox is checked for the Needle series. Click OK.
- Format the Needle: Your needle is currently a full pie chart covering the gauge. Click the pie chart to select it. Click again to select the large "Remainder" slice. Set the Fill to No fill and Border to No line. Select the large "Value" slice and also set it to No fill. Finally, select the tiny "Needle Width" slice and fill it with a solid black or dark grey color.
- Align the Needle: If the needle isn't pointing correctly, right-click the Pie chart and select Format Data Series. Adjust the Angle of first slice to 270 degrees, matching the doughnut chart. The needle will now point exactly to the value represented in your data.
- Final Polishing: Remove the chart title, legend, and any background gridlines to clean up the visual. You can add a text box in the center of the gauge that links to the "Value" cell so the actual number is displayed inside the gauge.
Common Mistakes
The most frequent error occurs during the data setup phase. Users often forget that the "Bottom Half" of the doughnut must be exactly equal to the sum of the top segments. If your top segments are 25, 25, and 50 (totaling 100), and your bottom segment is only 50, the chart will not be a semi-circle; it will be an uneven oval. Always ensure the total sum of the background data is exactly double the value of the visible gauge arc.
Another common mistake is failing to move the Needle series to the Secondary Axis. If the needle remains on the primary axis, Excel will try to render it as another doughnut ring rather than a pie slice, making it impossible to create a thin, pointing needle. Always verify that the Pie chart is on the secondary axis during the "Change Series Chart Type" step.
Lastly, many users forget to set the Angle of first slice to 270 degrees for both the doughnut and the pie chart. If you only do it for one, the background scale will be a semi-circle, but the needle will be rotating from the wrong starting point, leading to completely inaccurate data visualization.
Tips
To make your gauge look professional, use a gradient fill for the background segments. Instead of a flat red, yellow, and green, apply a subtle linear gradient to give the gauge a 3D, curved effect. This mimics the look of a physical dashboard instrument.
For dynamic dashboards, use Conditional Formatting on the cell that feeds the needle value. While the gauge shows the position, having the number change color (e.g., turning red when the value is below 20%) provides a double layer of visual communication for the user.
If you need to create multiple gauges on one page, create one perfectly formatted gauge first. Once finished, copy and paste the entire chart. You can then simply change the data source range for the new chart to point to a different set of cells, saving you from repeating the tedious formatting and rotation steps.
Troubleshooting
The needle is too thick or too thin: This is controlled by the "Needle Width" value in your data table. If the needle looks like a chunky wedge, decrease the value from 2 to 1 or even 0.5. If it is invisible, increase it slightly. Remember that this value is relative to the total sum of the pie chart.
The needle points to the wrong value: Check your "Remainder" formula. The needle's position is determined by the size of the first slice (the Value). If the formula =Total - Value - Width is incorrect, the proportions of the pie chart will shift, causing the needle to point to the wrong segment. Ensure the "Total" used in the formula matches the sum of the doughnut segments.
The bottom half of the doughnut is still visible: Double-click the bottom slice specifically. Sometimes a single click selects the entire series, and applying "No Fill" to the series makes the whole gauge disappear. You must ensure only the bottom data point is selected before removing the fill.
The chart looks distorted when resizing: Because this is a combination of two different chart types, dragging the corners of the chart area can sometimes warp the aspect ratio. To fix this, hold the Shift key while resizing to maintain the proportions, or set a specific height and width in the Format Chart Area pane.
Frequently Asked Questions
Can I make a gauge that goes from -100 to 100?
Yes, but you must normalize the data. Since Excel charts cannot handle negative slice sizes, you need to add a constant to your values to make them all positive (e.g., add 100 to every value) and adjust your background segment labels accordingly.
Does this work in Excel for Web?
While you can view these charts in Excel for Web, the advanced formatting options—specifically the "Angle of first slice" and the ability to format individual data points—are much more limited. It is highly recommended to build the chart in the desktop application and then upload it.
How do I add a label to the center of the gauge?
The best method is to go to the Insert tab, select Text Box, and draw it in the center of the gauge. While the text box is selected, click into the Formula Bar, type =, and click the cell containing your value. This creates a dynamic label that updates automatically.
Can I have more than three colors on my gauge?
Yes. Simply add more rows to your background data table (e.g., Very Low, Low, Medium, High, Very High). Just ensure that the "Bottom Half" value is updated to equal the sum of all these new segments combined.
Why is my needle disappearing when the value is 0?
If the value is 0, the first slice of the pie chart has no area. To prevent the needle from vanishing, you can use a MAX formula in your value cell (e.g., =MAX(0.1, A1)) to ensure there is always a tiny sliver of a slice for the needle to exist.