Spaghetti diagrams explained
A spaghetti diagram is a map of the path a person or part travels through a workspace. This guide shows how to draw one and works through a fabrication cell.
Matt Savas · Reviewed October 2026 · About 4 minutes
What a spaghetti diagram is
A spaghetti diagram is a floor plan with one continuous line drawn on it. The line follows one person or one part through every move during a job. When the layout is poor, the line crosses itself many times and looks like a plate of spaghetti, which is where the name comes from.
You draw it by watching the work where it happens. The length of the line is the distance traveled for one cycle.
Why it matters
Walking and carrying are two of the seven wastes in lean. Motion is people moving more than the work needs. Transport is moving materials between steps. Neither changes the product, and both take time on every cycle.
Most people underestimate how far they walk, because each trip is short. Multiply the distance for one cycle by the day's volume and you get a number for the whole shift. Moving stations closer together lowers that number without changing the work done at each station.

How to draw one
- Pick one subject, either one operator or one part. Several subjects on one diagram make the lines impossible to read.
- Get a floor plan, or sketch one, with every station, rack and machine on it.
- Watch several full cycles where the work happens. Draw every move as one continuous line, in order.
- Measure the line with the plan's scale, or walk it with a measuring wheel. Multiply by the number of cycles in a shift.
- Move stations so that steps done one after another sit next to each other. This often gives a U-shaped cell. Draw and measure again to confirm the path is shorter.
A worked example
A fabrication cell makes one part in seven steps: store, saw, drill, deburr, weld, inspect and pack. The operator then goes back to the store for the next part. The machines sit wherever they fit, so the path crosses the cell several times.
In the starting layout, one part takes 75 meters of walking. At 220 parts a shift, that is about 16.5 km. With the machines in process order, one part takes 36 meters, or 7.9 km a shift. That is 52% less walking for the same work. The layouts are made up for this example.
Press Walk it to trace the path. Drag any station to move it, or press Show a good layout. The cafe and sandwich layouts show the same thing outside a factory.
Common mistakes
- Tracking more than one subject on the same diagram. The lines mix, and you can't measure either path.
- Drawing from memory or from the planned layout. Draw what people actually do, including trips for tools and missing parts.
- Watching too short a time. Trips for material, tools and paperwork often come every few cycles, so one cycle misses them.
- Stopping at the picture. Without a distance, you can't compare the old layout with the new one.
- Moving stations without drawing again. Measure the new layout to confirm the walk got shorter.
Related guides and tools
The free spaghetti diagram tool lets you draw paths on your own floor plan and totals the distance. The seven wastes guide covers motion, transport and the other five. Work element analysis breaks a cycle into steps, which shows how much of the time is walking, and 5S keeps tools where they are used.
Frequently asked questions
- What is a spaghetti diagram?
- A spaghetti diagram is a floor plan with one continuous line that follows the path a person or product takes through a workspace. Long and crossing lines show wasted walking and carrying, so you can change the layout to shorten the path.
- What waste does it reveal?
- Mainly motion, which is people walking, and transport, which is moving materials. Both are among the seven wastes. Long or crossing lines mean the layout makes people travel without adding value. The work at each station stays the same, and the distance between stations is what you change.
- How do you measure the distance?
- Draw the path to scale on a floor plan and add up the segment lengths, or walk it with a measuring wheel. Then multiply by the daily volume. In the worked example, 75 meters a part becomes about 16.5 km over a 220-part shift.
- How do you fix a bad one?
- Move the stations so that steps done one after another sit next to each other. This often gives a U-shaped cell, where material comes in and finished parts leave at the same end. Draw the diagram again after each change to confirm the path is shorter.