Create a Gantt chart in Google Sheets using a stacked bar chart and date columns

A Gantt chart is a horizontal bar chart that shows project tasks, their start dates, duration, and progress over time. Google Sheets does not have a built-in Gantt chart tool, but you can build one using a stacked bar chart by setting up task names, start dates, and duration columns, then converting that data into a visual timeline. The process takes about 10 to 15 minutes once you understand the column structure.

The basic approach works like this: you create columns for task name, start date, days before the task starts (blank space), task duration, and optional completion percentage. Then you insert a stacked horizontal bar chart that layers the blank space and duration columns to create the timeline effect. This method works for any project size and updates automatically when you change dates or durations.

Key Takeaways

  • Set up five columns: task name, start date, days until start, duration in days, and optional completion percentage.
  • Use a formula to calculate the gap between a fixed project start date and each task's start date, which creates the blank space in your chart.
  • Insert a stacked horizontal bar chart, place the gap column first, then the duration column, to create the timeline bars.
  • Format the chart by removing the gap column from the legend and adjusting the horizontal axis to match your project timeline.
  • Update any start date or duration in your data, and the chart refreshes automatically.

Set up your data with the right column structure

Start with a new Google Sheet and create five columns: Task Name, Start Date, Days Until Start, Duration (Days), and % Complete. In the first row below your headers, enter your first task name and its start date. For example, if your project begins on January 1, 2024, and your first task "Design mockups" starts on January 1, enter that date in the Start Date column.

In the "Days Until Start" column, use a formula to calculate how many days pass between your project's start date and each task's start date. If your project start date is in cell B2, and the task start date is in C2, the formula is =C2-$B$2. The dollar signs lock the project start date so it does not change when you copy the formula down. This column creates the blank space that pushes each bar to the right on the timeline.

In the "Duration (Days)" column, enter how many days each task takes. The "% Complete" column is optional but useful if you want to show progress. Leave it blank for now if you are planning a future project rather than tracking an active one.

Calculate the gap between project start and task start

The "Days Until Start" column is what makes the Gantt chart work visually. When you create a stacked bar chart, this column becomes invisible space that pushes the duration bar to the right. Without it, all bars would start at the left edge of the chart regardless of their actual start dates.

If you have 10 tasks, copy the formula =C2-$B$2 down through all 10 rows. Each row will automatically calculate the number of days between the project start and that task's start date. If a task starts on day 5 of your project, this column will show 5. If another task starts on day 15, it will show 15. These numbers do not appear in the final chart—they only control where the bars begin.

Insert a stacked horizontal bar chart

Select all your data including headers (columns A through E, all rows with data). Go to Insert > Chart. Google Sheets opens the chart editor. In the Chart Type dropdown, scroll down and select Bar chart, then change the subtype to Stacked. Make sure the orientation is horizontal (bars go left to right, not up and down).

In the Chart Editor, go to the Series tab. You should see three series listed: Days Until Start, Duration (Days), and % Complete. Reorder them so that "Days Until Start" appears first, followed by "Duration (Days)". This order matters because the stacked bar builds from left to right—the gap goes first, then the task duration sits on top of it.

Format the chart to look like a timeline

Remove "Days Until Start" from the legend because it is not a real task—it is just spacing. In the Chart Editor, click on the "Days Until Start" series, then check the box that says Format the series. Under the Format tab, find the color option and set it to white or the same color as your sheet background. This makes the gap invisible while keeping its spacing effect.

Adjust the horizontal axis to match your project timeline. In the Chart Editor, go to Customize > Horizontal axis. Set the minimum to 0 and the maximum to the total length of your project in days. If your project runs 60 days, set the max to 60. This ensures all tasks fit within the same time window and the axis is readable.

Add a title to your chart like "Project Timeline" or "Q1 2024 Roadmap". You can also adjust bar colors by clicking on the "Duration (Days)" series and choosing a color that stands out. If you included a "% Complete" column, format it as a different color to show progress visually.

Update dates and durations to refresh the chart automatically

Once your Gantt chart is built, any change to a start date or duration in your data updates the chart instantly. If you move a task from January 10 to January 15, the bar shifts right automatically. If you extend a task from 5 days to 8 days, the bar grows longer. This makes the chart useful for tracking real project changes without rebuilding it each time.

If you add new tasks, insert them as new rows in your data table, fill in the task name, start date, and duration, and copy the "Days Until Start" formula down to the new row. The chart will include the new task on the next refresh. You do not need to recreate the chart or adjust settings unless you change the total project length.

Common adjustments and limitations

If your bars overlap or look cramped, increase the chart height in the Chart Editor under Customize > Chart & axis titles. A taller chart gives each task bar more breathing room. If the timeline is hard to read, reduce the number of gridlines or adjust the horizontal axis interval so dates appear at clearer intervals (every 5 days, every week, etc.).

One limitation of this method is that Google Sheets does not natively support task dependencies—you cannot draw arrows showing that Task B cannot start until Task A finishes. You can work around this by adding notes or color-coding tasks that depend on each other, but the visual dependency lines require a more advanced tool. For simple timelines and resource planning, the stacked bar method works well and stays within Google Sheets.

Frequently Asked Questions

Can I show task dependencies or milestones in a Google Sheets Gantt chart?

Task dependencies (arrows showing that one task must finish before another starts) are not built into the stacked bar method. You can add a separate "Milestone" row with a short duration and different color to mark key dates, or use conditional formatting to highlight tasks that depend on each other. For complex projects with many dependencies, a dedicated Gantt tool may be more practical.

What if some tasks overlap or run in parallel?

Overlapping tasks work fine in this chart—they simply appear as separate bars at different vertical positions. If Task A runs January 1–10 and Task B runs January 5–15, both bars will show on the timeline with Task B starting before Task A ends. This is actually useful for showing parallel work streams.

How do I add a % complete column to show progress?

Add a "% Complete" column to your data and enter a percentage (0–100) for each task. In the Chart Editor, make sure this series is included and format it as a different color, like green or blue. The stacked bar will then show the completed portion in one color and the remaining work in another, giving a progress view at a glance.

Can I export or share the Gantt chart?

Yes. You can download the chart as an image (right-click the chart, select Download as image) or share the entire Google Sheet with collaborators. Anyone with access to the sheet can see the chart and edit the underlying data. Changes made by any editor update the chart for everyone viewing the sheet.

What happens if I change the project start date?

If you change the project start date in cell B2, all the "Days Until Start" calculations update automatically because the formula references that cell with a dollar sign lock. The bars shift on the timeline to reflect the new dates. This is useful if your project gets delayed or moved to a different quarter.