How to Create a Gantt Chart in Excel Step by Step
In this article
A Gantt chart in Excel visually maps tasks, timelines, and dependencies so you can track progress and deadlines at a glance. You can build one with a stacked bar chart and a little formatting. Below is a practical, repeatable method that works in Excel for Windows, Mac, and Excel Online.
What You'll Need
- Microsoft Excel (2016 or later recommended; earlier versions may lack the stacked bar chart type)
- A list of tasks, their start dates, durations, and end dates
- Basic familiarity with Excel formulas and chart tools
Step-by-Step
- Set up your data table. Create columns for: Task Name, Start Date, Duration (in days), and End Date. Example:
Use a formula likeTask Name Start Date Duration End Date Design 1-Jan-2025 5 =B2+C2 Development 6-Jan-2025 10 =B3+C3 =B2+C2to auto-calculate the End Date from Start Date + Duration. - Add a “Today” line (optional). Insert a row at the top with a task named “Today” and set its Start Date to today’s date and Duration to 0. This will help you see the current date on the chart.
- Insert a stacked bar chart. Select your entire data range (including headers), then go to Insert > Insert Column or Bar Chart > Stacked Bar. Excel will create the chart with tasks on the vertical axis and dates on the horizontal axis.
- Remove the Start Date series. Click the chart, then click the Chart Elements (plus icon) > Series “Start Date” > Delete. This leaves only the Duration bars, which now start at zero.
- Hide the legend and gridlines. Click the chart, then click the Chart Elements button and uncheck Legend and Gridlines for a cleaner look.
- Format the horizontal axis. Right-click the horizontal (category) axis > Format Axis. Set Minimum to the earliest Start Date in your data (e.g., 1-Jan-2025) and Maximum to the latest End Date. Under Number, choose a short date format.
- Reverse the task order. Right-click the vertical (task) axis > Format Axis > check Categories in reverse order. This puts the first task at the top, as in a classic Gantt chart.
- Add task bars. Click any bar to select the series, then right-click > Format Data Series. Set Fill to a solid color and Border to a contrasting color (e.g., dark outline). Adjust Gap Width to 0% for contiguous bars.
- Add the Start Date back as a hidden baseline. Re-add the Start Date series (Insert > Chart > Stacked Bar, then select the Start Date column). Right-click the new series > Format Data Series > set Fill to No Fill and Border to No Line. This offsets the Duration bars so they start at the correct Start Date.
- Add data labels for tasks. Click the chart, then click the Chart Elements button > Data Labels > Inside End. Right-click the labels > Format Data Labels > set to Series Name and position them inside the bars at the left edge.
- Final touches. Add a chart title, adjust font sizes, and resize the chart to fit your data. Use Insert > Shapes to draw milestone markers or dependency lines if needed.
Common Mistakes
Using a regular bar chart instead of a stacked bar chart, which prevents offsetting the bars by the Start Date.
Forgetting to reverse the task order, so the first task appears at the bottom of the chart.
Not setting the horizontal axis minimum and maximum dates, causing the chart to include empty space or cut off tasks.
Leaving the Start Date series visible, which adds an extra colored bar and clutters the chart.
Using durations as text (e.g., “5 days”) instead of numbers, which breaks the chart’s scaling.
Tips
Use conditional formatting on your data table to highlight overdue tasks or milestones before they appear on the chart.
Freeze the top row of your data table so headers stay visible while you scroll.
Save your Gantt chart as a template by right-clicking the chart > Save as Template for reuse in other workbooks.
For large projects, group tasks by phase or team and use different colors for each group.
If your project spans years, format the horizontal axis to show dates in a compact format (e.g., “Jan-25” instead of “1-Jan-2025”).
Troubleshooting
The bars don’t start at the correct date. Ensure you’ve re-added the Start Date series and set it to No Fill and No Line. If the issue persists, check that your Start Date column contains valid dates (not text) and that the horizontal axis bounds include all dates.
The chart shows extra space before the first task. Adjust the horizontal axis Minimum bound to match your earliest Start Date.
Task labels overlap or are unreadable. Reduce the font size, adjust the bar height, or use shorter task names. Alternatively, place labels outside the bars.
The chart doesn’t update when data changes. Ensure your data range includes all rows and that the chart’s data source is dynamic (select the entire column if new tasks will be added).
Dates appear as numbers on the axis. Right-click the axis > Format Axis > Number > choose a date format.
Frequently Asked Questions
Can I create a Gantt chart in Excel Online?
Yes, the steps are the same, but some formatting options (like axis bounds) may be limited. Use the desktop app for full control.
How do I add dependencies between tasks?
Excel’s built-in Gantt chart doesn’t support automatic dependency lines. Draw them manually with Insert > Shapes > Line or use a dedicated project management tool like Microsoft Project.
Can I color-code tasks by status?
Yes. Add a Status column to your data (e.g., “Not Started,” “In Progress,” “Completed”), then use conditional formatting on the chart bars to change colors based on this column.
How do I show progress on a task?
Add a % Complete column to your data. Create a second stacked bar series for the completed portion (e.g., Duration * % Complete) and format it with a different color.
Why do my bars disappear when I hide the Start Date series?
Hiding the Start Date series removes the offset, causing all bars to start at zero. You must re-add the Start Date series and set it to invisible (No Fill, No Line) to keep the bars aligned.
Can I export my Gantt chart to PowerPoint?
Yes. Copy the chart in Excel, then paste it into PowerPoint as a linked or static object. Use Paste Special to choose the format.