How to Make a Gantt Chart in Excel: Step-by-Step
In this article
You can build a working Gantt chart in Excel using a stacked bar chart and a little formatting—no add-ins required. The trick is to plot each task as a floating bar that starts on its start date and spans its duration, then hide the first (start-date) series so only the duration bars show. This guide walks through the standard method on Excel for Windows and Mac; menu labels can differ slightly by version and region.
What You'll Need
- Excel 2016 or later (Microsoft 365, 2019, 2021) on Windows or Mac. The steps also work in Excel for the web, though chart formatting options are more limited there.
- A task list with at least three columns: Task name, Start date, and Duration (in days). You can add an End date column if you prefer, but Duration is what the chart needs.
- Dates entered as real Excel dates (for example, 3/15/2025), not text. If Excel left-aligns them, they may be stored as text—convert them with Date Value or re-enter them.
Step-by-Step
- Set up your table. In a blank worksheet, put headers in row 1: A1 = Task, B1 = Start, C1 = Duration. Fill in each task on its own row. Duration is the number of days the task runs; a one-day task is 1, a week-long task is 7. If you only know start and end dates, add a helper column with the formula =End-Start and use that as Duration.
- Select the data. Highlight the Task, Start, and Duration columns (A1 through C-last row). Do not include any totals or notes below the table.
- Insert a stacked bar chart. Go to Insert > Charts > Insert Column or Bar Chart > 2-D Bar > Stacked Bar. A chart appears with two series: Start and Duration. The task names should appear along the vertical axis.
- Reverse the task order (optional but recommended). By default Excel plots the first task at the bottom. To read top-down like a project plan, right-click the vertical axis, choose Format Axis, and tick "Categories in reverse order." The horizontal axis then moves to the top; you can set "Horizontal axis crosses" to "At maximum category" to push it back to the bottom.
- Hide the Start series. Click one of the Start bars (the first segment of each bar) and press Delete, or right-click it and choose Format Data Series > Fill > No Fill. The Start series is now invisible, and the Duration bars appear to float from each task's start date—this is the Gantt look.
- Fix the date axis. Right-click the horizontal (date) axis and choose Format Axis. Set Minimum and Maximum to your project's start and end dates (type them as dates). Set Major unit to a sensible interval—7 for weekly ticks, 1 for daily. Under Number, choose a date format such as 3/14 or 14-Mar so the labels stay short.
- Format the bars. Click a Duration bar, then Format Data Series > Fill to pick a color. Add a border if you like. If you want different colors per task, you will need to format each point individually: click once to select the series, then click again on a single bar and change its fill.
- Add gridlines and labels. With the chart selected, use Chart Design > Add Chart Element > Gridlines > Primary Major Vertical to add vertical date lines. Add Axis Titles if you want a date label. Turn off the legend (Chart Design > Add Chart Element > Legend > None) since the Start series is hidden and the legend would be misleading.
- Clean up. Delete the chart title or replace it with your project name. Resize the chart by dragging its handles. If task names are cut off, widen the chart or reduce the font size on the vertical axis.
- Update as the project moves. Because the chart is linked to the table, editing a Start date or Duration updates the bars automatically. If you add new tasks, you must extend the chart's data range: right-click the chart > Select Data, then edit the range to include the new rows.
Common Mistakes
- Using text dates. If Start dates are stored as text, the axis will treat them as categories and the bars will not align to a real timeline. Check that dates right-align in the cell and that the axis shows date values, not task names.
- Deleting the wrong series. Clicking Delete on the Start bars can remove the entire series from the chart rather than hiding it. If that happens, use Select Data to add the series back, then set its fill to No Fill instead.
- Forgetting to reverse the category order. Without it, the first task sits at the bottom, which reads backwards for most project plans.
- Leaving the axis on automatic. Excel may pick a minimum date far from your project start, leaving empty space. Set Minimum and Maximum manually.
- Including blank rows. Blank rows in the selected range create empty categories and odd gaps in the chart. Select only the populated rows.
Tips
- Add a "Today" line by creating a helper series with a single value equal to today's date and plotting it as a line on a secondary axis—or simply draw a vertical line shape over the chart and reposition it when you update.
- Use conditional formatting on the table itself (Home > Conditional Formatting > Data Bars) for a quick visual summary that updates as dates change.
- Keep Duration in whole days. If tasks start and end on the same day, Duration = 1, not 0, or the bar will be invisible.
- For long projects, set the major unit to 7 (weeks) so the axis labels do not crowd.
- Copy the finished chart to a new sheet (right-click > Move Chart > New Sheet) to keep your data table separate from the presentation view.
Troubleshooting
- Bars do not start at the right date. Check that the Start column contains real dates and that the axis Minimum is set to your project start. Also confirm the Start series is the first (bottom) segment in the stack—if the series order is reversed, the bars will shift.
- The chart shows one solid bar per task. The Start series is still visible. Select it and set Fill to No Fill, or delete it via Select Data and re-add it as a hidden series.
- Task names are missing or truncated. Widen the chart, or reduce the font size on the vertical axis. If names are still cut, shorten them in the table.
- New rows do not appear. The chart's data range is fixed. Right-click the chart > Select Data and expand the range to include the new rows.
- The date axis shows numbers like 45000. The axis is formatted as General. Right-click the axis > Format Axis > Number and choose a Date format.
- Excel for the web looks different. Some formatting options (such as per-point colors) are limited in the browser version. Open the file in desktop Excel for full control.
Frequently Asked Questions
Can I make a Gantt chart without a stacked bar chart?
Yes. You can use conditional formatting to shade cells in a date grid, which produces a calendar-style Gantt view. It is more manual to set up but easier to read for day-level plans.
Does Excel have a built-in Gantt chart type?
No. Excel does not include a dedicated Gantt chart type. The stacked bar method described here is the standard workaround, and it is what most templates use.
Why do my bars overlap or stack on top of each other?
Overlapping bars usually mean the Start series is still visible or the series order is wrong. Hide the Start series and confirm Duration is the top segment in the stack.
Can I add milestones?
Yes. Add a row with Duration = 0 and format that point as a marker, or add a separate scatter series with a single point at the milestone date. A zero-duration bar will not show, so a marker or shape is the practical option.
Will the chart update if I change a date?
Yes, as long as the chart's data range covers the row. Editing Start or Duration recalculates the bars immediately. Adding new rows requires expanding the range manually.
Can I share the file with someone who does not have Excel?
They can open it in Excel for the web or a compatible spreadsheet app, but formatting may shift. Exporting to PDF preserves the look for viewing only.