Gantt Chart: What Is It and How Do You Build One?

Charts & pivot tables · Updated December 5, 2026

A Gantt chart is a horizontal bar chart that visualizes a project schedule by showing start dates, end dates, and dependencies for every task. It maps the project timeline on the X-axis and the list of tasks on the Y-axis, allowing you to see exactly what needs to happen and when.

How Does a Gantt Chart Organize a Project?

A Gantt chart transforms a written list of tasks into a visual map to prevent scheduling conflicts and resource gaps. Each task is represented by a bar; the position of the bar shows the start date, and the length of the bar represents the duration of the work. This layout allows you to identify the critical path, which is the longest sequence of dependent tasks that determines the earliest possible completion date for the entire project.

You will typically see several key elements on a standard chart. The task list on the left side defines the scope of work, while the calendar header at the top provides the time scale. Milestones are often marked as diamonds instead of bars to signify a major achievement or a deadline that has zero duration. Dependencies are shown as arrows connecting the end of one bar to the start of another, indicating that Task B cannot begin until Task A is finished.

To use a Gantt chart effectively, you must first define your Work Breakdown Structure. This means breaking a large goal into smaller, manageable tasks. For example, if you are building a house, you cannot list “Build House” as a single task. You must break it into “Pour Foundation,” “Frame Walls,” and “Install Roofing.” Each of these sub-tasks is assigned a specific duration, such as 5 days for the foundation and 10 days for framing, which then dictates the length of the bars on your chart.

How Do You Build a Gantt Chart in Excel?

While dedicated project software exists, you can build a functional Gantt chart in Microsoft 365 for Windows using a stacked bar chart. This method relies on calculating the start date and the duration of each task to position the bars correctly on a timeline. Labels may differ slightly by version, but the core charting engine remains the same.

Start by setting up your data table. With task names in A2:A6, start dates in B2:B6, and durations (in days) in C2:C6, your table should look like this: Task A starts on 2026-12-01 with a duration of 5; Task B starts on 2026-12-06 with a duration of 3. To create the chart, select your data and go to Insert > Insert Column or Bar Chart > Stacked Bar.

The chart will initially look wrong because it plots the start dates as the first series. To fix this, right-click the blue bars (the start date series) and select Format Data Series. Under the Fill bucket icon, select No fill and No line. This makes the start date bars invisible, leaving only the duration bars floating in the correct positions on the timeline. To ensure the dates appear in the correct chronological order, right-click the vertical axis (the task names), select Format Axis, and check the box for Categories in reverse order.

If your dates are too far to the right, leaving a large gap of empty space on the left, you must adjust the axis minimum. Excel stores dates as serial numbers. To find the number for your start date, type your start date into a cell and change the format to General. If your project starts on 2026-12-01, the number might be 46386. Right-click the horizontal axis, select Format Axis, and enter that number into the Minimum Bound field. This shifts the chart so the first task begins at the left edge of the grid.

Which Dependencies Should You Map?

Mapping dependencies is the most critical part of a Gantt chart because it prevents “dead air” where team members are waiting for work that isn’t ready. There are four primary types of dependencies you need to decide between based on the nature of the work.

Finish-to-Start (FS)

This is the most common dependency. Task B cannot start until Task A is finished. An example is “Paint Walls” (Task B) which cannot start until “Drywall Installation” (Task A) is complete. In your chart, the arrow connects the end of the first bar to the start of the second.

Start-to-Start (SS)

Task B can start as soon as Task A starts. These tasks run in parallel. For example, “Write User Manual” (Task B) can begin as soon as “Develop Software Feature” (Task A) begins. You do not need to wait for the software to be finished to start documenting how it works.

Finish-to-Finish (FF)

Task B cannot finish until Task A finishes. This is often used for quality assurance. For example, “Final Project Review” (Task B) cannot be marked as finished until the “Final Bug Fixes” (Task A) are finished. The two tasks may overlap, but the completion of the second is tied to the completion of the first.

Start-to-Finish (SF)

Task B cannot finish until Task A starts. This is rare but used in shift handovers or security. For example, a “Night Shift Guard” (Task B) cannot finish their shift until the “Day Shift Guard” (Task A) starts their shift. The handover ensures there is never a gap in coverage.

Where Do Project Schedules Usually Fail?

The most frequent failure in Gantt charts is the “optimism bias,” where durations are estimated based on the best-case scenario rather than reality. If you estimate a task will take 3 days but it typically takes 5, every single dependent task following it will shift by 2 days. This creates a domino effect that pushes the final deadline back without any single task appearing to be the primary cause of the delay.

Another common error is failing to account for non-working days. A task that takes 5 working days starting on a Friday will actually span 7 calendar days because of the weekend. If you simply add 5 to the start date in a spreadsheet, your chart will show the task ending on Wednesday, but in reality, it ends on the following Tuesday. To fix this in Excel, use the =WORKDAY(start_date, days) function instead of simple addition. For example, with a start date in B2 and duration in C2, the formula =WORKDAY(B2, C2) will automatically skip Saturdays and Sundays.

Over-detailing is also a risk. When a Gantt chart contains hundreds of tiny tasks (e.g., “Open Email,” “Send Draft”), the visual utility is lost. This is called “micro-scheduling.” A chart becomes unreadable when the bars are too thin to distinguish. To avoid this, group small tasks into “Work Packages.” Instead of listing every email, create a single bar for “Client Communication Phase” and track the internal checklist separately.

How Do You Handle Changes to the Timeline?

Projects rarely go exactly as planned, so you must establish a process for updating the chart. The first step is to record a “Baseline.” A baseline is a snapshot of your original schedule. When the project deviates, you compare the current bars against the baseline bars to see exactly how far behind or ahead you are. Without a baseline, you are simply moving dates forward and lose the ability to analyze why the project is drifting.

When a task is delayed, you must decide if you can “crash the schedule.” Crashing means adding more resources to a task to shorten its duration. For example, if “Data Entry” is taking too long, you might assign two people instead of one to bring the 10-day task down to 5 days. However, you must check if the task is on the critical path. Adding resources to a task that is not on the critical path will not move the final project completion date; it only creates more “float” or slack for that specific task.

Float is the amount of time a task can be delayed without delaying the subsequent task or the project end date. Identifying tasks with high float allows you to move resources away from those tasks and toward the critical path. If a task has zero float, any delay in that task immediately delays the entire project. Regularly reviewing the float helps you prioritize where to focus your management efforts each week.

Related

Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.

More in Charts & pivot tables

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.