AI Gantt chart generator
AI Gantt chart generator for project plans. Describe phases and dates, get a Mermaid gantt chart you can edit.
By MermaidViewer editorsPublished Updated
Example prompts for a gantt chart
- “Mobile app MVP plan over 8 weeks”
- “Conference organisation timeline”
- “Data migration project with testing phases”
What a Mermaid gantt chart looks like
Example gantt chart
gantt
title Website Launch Plan
dateFormat YYYY-MM-DD
axisFormat %b %d
section Design
Research :done, r1, 2026-01-05, 5d
Wireframes :done, w1, after r1, 4d
Visual design :active, v1, after w1, 6d
section Build
Frontend : f1, after v1, 10d
Backend API : b1, after w1, 12d
QA :crit, q1, after f1, 4d
section Launch
Go live :milestone, m1, after q1, 0dWant to write it by hand? See the full Mermaid gantt chart syntax and examples, or browse templates.
A bar with no start date is a wish, and an ai gantt chart generator turns wishes into a schedule only when you hand it a date, durations, and what waits on what. A kitchen remodel, a conference, a data cutover: the reader needs to see which bar starts after which. The widget above writes Mermaid gantt source. The notes below cover the drafts that slip, and the edits that fix a date without spending another generation.
Schedules the model can draft
Sections come through when you name phases: demo, build, rehearsal. Tasks you listed appear as bars, and a duration like "4 days" or "2 weeks" usually becomes 4d or 14d. The after keyword shows up when you say "wireframes start when research finishes" and you gave the first task an id in spirit, even if you did not write the id yourself. Milestones appear when you call something a milestone or a launch moment rather than a week of work.
dateFormat is often correct if you write the start as 2026-04-06. Weekday skipping appears when you say "working days" or "skip weekends." The status tags done, active, and crit show up when you mark a task finished, in progress, or on the critical path. That is enough for a roadmap someone can paste into a doc.
The Gantt syntax page is the legend: dateFormat, axisFormat, excludes, after, milestone, and crit. Read durations in the source, not only the picture. A bar that looks short may be 10d excluding weekends, which is two weeks on the wall.
How a generated plan goes bad
The date format and the dates disagree. The header says YYYY-MM-DD and a task says 6 Apr 2026. The chart errors, or it silently treats the token as a duration and every later bar slides. Another failure: the axis title talks about Q3 while the tasks start in January, because the model kept a sample title from training and your dates from the prompt.
Milestones become long bars. "Beta" lasts two weeks because the model thought every task needs a duration. Dependencies are missing, so design, build, and QA all start on Monday and the picture says the team is triple-booked. Or the opposite: everything is after the previous task, including work you said could run in parallel, and the launch slips by a month that nobody planned.
crit on every row makes the critical path meaningless. excludes weekends forgotten means a "10 working day" task is drawn as ten calendar days and includes Saturday. Task ids with spaces break the after chain. A title with a colon can also break the header line.
What to say so the dates survive
A Gantt prompt is a schedule, not a vibe.
- A title that matches the work.
- The calendar start date, written
YYYY-MM-DD. - Whether durations are calendar days or working days (
excludes weekends). - Sections.
- Each task's name, duration, and whether it starts on a date or after another named task.
- Which tasks may overlap.
- Milestones as zero-length events, with the task they follow.
- One task on the critical path, if you want
critat all.
The project roadmap Gantt template is a three-month product plan with discovery, design, build, test, and launch, plus milestones. Generate when the work is a remodel or a migration. Use the template when you are publishing a product roadmap and only the start date should move. The prompt guide covers editor actions. Here, parallel versus sequential is the fact the model will guess wrong.
Three prompts
- Gantt chart titled Kitchen remodel. dateFormat YYYY-MM-DD. excludes weekends. Start 2026-04-06. Section Demo: measure the room, 3 working days. Section Order: cabinets after measure, 10 working days, and they can overlap a 4 day countertop template that also starts after measure. Section Install: demo day is a milestone after cabinets, then install 5 working days, then punch list 2 working days. Do not mark every task crit. Crit only the install.
- Gantt chart for a one-day community conference on 2026-09-12. Sections: program, venue, day-of. CFP close is a milestone on 2026-06-01. Speaker confirmations run 15 days after the CFP milestone. Venue walkthrough is 2 days in the week of 2026-09-07. Print programs after speaker confirmations, 3 days. Day-of setup is 1 day on 2026-09-11. The talks themselves are a milestone on 2026-09-12. Skip weekends.
- Gantt chart of a database cutover. Title Customer table move. Start 2026-05-04. excludes weekends. Section Prep: inventory queries 3d, then dual-write spike 5d after inventory. Section Rehearse: shadow reads 4d after the spike, and a rollback drill 2d that starts the same day as shadow reads. Section Cut: freeze writes milestone after both rehearsal tasks, then copy 1d, then verify 1d marked crit. No task starts before inventory.
A plan with a real dependency
The remodel keeps cabinets and the countertop template in parallel after measuring, and only the install is critical. That is the kind of argument a Gantt is for.
gantt
title Kitchen remodel
dateFormat YYYY-MM-DD
excludes weekends
section Demo
Measure room :m1, 2026-04-06, 3d
section Order
Cabinets :c1, after m1, 10d
Countertop template :t1, after m1, 4d
section Install
Demo day :milestone, after c1, 0d
Install :crit, i1, after c1, 5d
Punch list :p1, after i1, 2dOpen the editor and change 3d to 5d if the surveyor slipped. Because later tasks say after m1 or after c1, the install moves with the measurement. That is the point of ids. A picture of floating bars will not do it.
Changing a bad chart
Use an AI edit when the dependency structure is wrong. "Run the countertop template in parallel with cabinets, both after measure. Make demo day a milestone with 0d. Mark only install as crit. excludes weekends." One note fixes a plan that serialized the whole kitchen. Use it when several after chains are tangled and you do not want to rename ids by hand.
Edit the text when a single date or duration is wrong. Change 10d to 15d. Fix 6 Apr to 2026-04-06. Add milestone and 0d on a launch that rendered as a week. Remove crit from a row. Hand editing stays free. Gantt lines are self-contained, so one bad task should not cost a generation.
If nothing renders, the header is the first place to look. dateFormat YYYY-MM-DD must match every literal date. Task ids cannot contain spaces. A milestone with a missing duration confuses the parser. Add , 0d and check the preview in the editor. Leave the section names alone while you chase a parse error.
The five free diagrams, counted once
Five free AI uses is the whole complimentary set. They are not refilled each day. The account, the IP address, and a device cookie share the count. A schedule with dependencies often takes two: the first draft stacks every task on one Monday, the second hears "parallel." Do that second pass if the overlaps are wrong. Change a duration with your keyboard after that.
Pricing lists Starter at $6.99 a month, with 500 AI conversations included each month, and Pro at $11.99 a month, with unlimited AI under fair use. Fair use means people working, not a cron job. Hand editing stays free on every plan, including after the five are gone. You can keep the Gantt in the repo and nudge dates forever without another prompt.
A timeline is the better picture when you have eras and no durations. Pick one from the AI diagram generator list. Stay with this Gantt generator when a start date and a "starts after" relationship are the facts you need on the page.
Frequently asked questions
How do I generate a gantt chart with AI?
Describe the gantt chart you need in the box above and click Generate. The AI writes valid Mermaid gantt chart code that renders instantly, and you can open it in the editor to refine it.
Is the AI gantt chart generator free?
You can try it free: 5 AI generations in total, not per day, with no sign-up. Starter includes 500 AI conversations a month and Pro is unlimited. Manual editing stays available, and every plan can still download a PNG. JPG, SVG and PDF are on Pro.
Can I edit the generated gantt chart?
Absolutely. The output is plain Mermaid code — edit it by hand in the live editor, or ask the AI for changes in natural language.