A Gantt chart is only as good as the decisions behind it. You decide the order of the work and how long each task takes. You also decide which tasks depend on others. If those decisions are right, almost any tool draws a useful chart. If they are wrong, a polished chart still shows a plan that cannot work.
The process has seven steps. It does not depend on a tool.
Step 1: List the tasks
First, write down everything the project involves. Do not worry about order or dates yet. Put all the work on the page. The trap here is to go too coarse or too fine. "Build the website" is a whole project and too big for one task. "Name the CSS variable for the header" is noise. Aim for items that take between half a day and two weeks each.
A structured way to make this list is a work breakdown structure (WBS). Split the whole deliverable into parts. Then split each part until the pieces are small enough to estimate and assign. A rough WBS is better than a random list of ideas. It shows you the branches of work that you forgot. Group related tasks into phases as you go. A chart with five collapsible phases is easier to read than a chart with forty loose rows.

Step 2: Estimate how long each task takes
Now give every task a duration. People rush this step, but it decides whether your end date is believable. Estimate effort and duration separately. A task can need four hours of work and still take three days, because the person has other commitments. The bars on a Gantt chart show duration, which is elapsed calendar time. They do not show effort.
How to estimate task durations covers the method. The short version is to base estimates on past work where you can. Do not add padding in secret. Distrust round numbers that nobody measured. If you do not know, say so. Schedule a small test task to find out, and do not invent a number that looks sure.

Step 3: Sequence the work and add dependencies
Now decide what must happen before what. This is where a list becomes a schedule. Draw a link wherever one task needs the output of another. You cannot paint until the plaster is dry. These links are task dependencies. Most of them are the simple finish-to-start kind, where A must finish before B can start.
Do not chain every task in a neat line. If two tasks can run in either order, leave them unlinked. A false dependency makes the plan look more rigid and more fragile than it is. Use this step to find the real constraints. Do not add links only to make the chart look tidy.
For every link you draw, finish this sentence: "B cannot start until A is done because…". If you cannot finish it, the link is probably not a real dependency. It is a habit or a guess about who is free, and it does not belong in the dependencies.

Step 4: Add milestones
Milestones are the moments that matter but take no time. Examples are a sign-off, a launch, a delivery and a hard external deadline. A diamond marks a milestone on the chart, because it has a date and no duration. Milestones vs tasks explains the difference in detail. If it has length, it is a task. If it happens at one moment, it is a milestone.
Good milestones give the plan a clear structure. Add one at the end of each phase and wherever someone outside the team expects something. You also report against them. "We reached the design sign-off on the 14th" is a clearer status than "design is about 80% done."

Step 5: Place everything on the timeline
Now the chart appears. Set a start date for the project. The dependencies from step 3 place most of the other tasks. Each task starts after the tasks that it waits on. Pin a fixed date on only a few tasks, the ones that an outside limit controls. An example is "the venue is only free from the 9th."
The timeline now gives you an end date. It is rarely the date that you hoped for. It is better to learn this now than two weeks before the deadline. If the date is not acceptable, change the inputs, which are the scope, the sequence and the resources. A change to the picture alone does not help.

Step 6: Find the critical path
Trace the longest chain of dependent tasks from start to finish. That chain is the critical path. It sets the earliest date on which the project can end. Every task on it has zero slack. If one task slips a day, the project slips a day. Tasks off the critical path have some float. They can move and the finish date stays the same.
Once you know which tasks are critical, you manage differently. Give those tasks your attention, your best people and your contingency. Many tools highlight this chain when dependencies are in place. If your tool does not, you can find it by hand in about ten minutes.
Step 7: Add progress and a today line, then keep the chart updated
A plan is only the start. As work proceeds, shade each bar to show how far along it is. Make sure the chart shows a today line, a vertical marker on the current date. Together these two show whether you are ahead or behind. A bar whose shaded part has not reached the today line is late.
Many Gantt charts fail at this last step. A plan that nobody revisits does not help anyone manage the project. Update the chart on a fixed schedule. Weekly is enough for most projects. When reality differs from the plan, change the plan. Do not ignore the difference. A chart that always looks fine has usually become untrue.

Three ways to build one, and their trade-offs
You can build a Gantt chart in three ways. The right choice depends on how much the plan will change.
A spreadsheet
A spreadsheet is free, available and familiar. You can imitate a Gantt chart with a grid of cells, conditional formatting or a stacked bar chart. For a tiny one-off plan, that is fine. The cost appears when the plan changes. Dependencies do not recalculate, so when one task slips you move every later bar by hand. There is no real today line and no automatic critical path. The sheet also becomes fragile as it grows. A spreadsheet Gantt chart is a drawing of a plan. It is not a model of the plan.
A dedicated tool
An app built for the job, such as this one, takes care of the parts that make a spreadsheet painful. When you drag a bar later, the tasks that depend on it move later too. The today line shows by default, and one switch marks the critical path. The cost is one more tool to learn, and a good tool takes about a minute to start. Every plan changes at least once after you draw it, and that is where the time pays off. The comparison of free Gantt tools goes through the options.
Paper or a whiteboard
Paper and a whiteboard work well for early ideas. Sketch the bars with a few colleagues. This is a fast way to agree the sequence and the dependencies before anyone enters them in software. Nobody manages a real project on paper for long, because paper is hard to update and share. As a first draft that you draw together, it is often the most valuable version that you make.
A realistic first chart
Do not aim for a perfect chart on the first pass. Enter the tasks and the main dependencies, set a start date and look at the end date. Then react to what you see and improve the chart. A Gantt chart is a model that you refine as the project moves. Update it each week and keep it close to the truth.
Questions
How long does it take to make a first Gantt chart?
A small project of fifteen to thirty tasks needs about an hour of thought. Most of that time goes to the task list and the dependencies. The drawing is the small part. In a dedicated tool the drawing takes minutes. In a spreadsheet it takes longer, because you position every bar by hand.
Do I add dependencies or dates first?
Add dependencies first, where they exist. Let the links position most tasks, then pin hard dates on the few tasks that the outside world constrains. A pinned date on every task removes the schedule logic that makes the chart useful.
How much detail does a task need?
Do not make a task shorter than the smallest unit that you track. If you review the plan every week, tasks of less than a day add noise and give no extra control. Aim for items of about half a day to two weeks, and put fine detail under collapsible phases.
Do I need to know the critical path to make a useful chart?
No, but it helps to find it. A chart without an explicit critical path still shows timing and overlap. The longest chain of dependent tasks shows which tasks drive the end date, so you know where to focus.