Spaghetti Diagram
The spaghetti diagram traces on a floor plan the actual path of a product, a document or a person through a process. The term spaghetti chart comes from the Lean Enterprise Institute (LEI). The method of recording and measuring comes from the work study manual of the International Labour Organization (ILO). The length of the line gives the distance travelled. Overlapping lines show the most frequent trips. The diagram measures two of the eight wastes: transport and unnecessary movement.
Goal
The spaghetti diagram puts a figure in metres on the movement that the layout of a site imposes on an object or a person. According to the LEI, the name comes from the look of the line: in mass production the product's route often resembles a plate of spaghetti.
A process model shows the planned sequence of steps. It says neither where the workstations are nor how many metres separate them. The diagram adds the geometry: the length of each trip, the round trips, the segments walked ten times a day.
The diagram supports a decision on layout or sequence: move a workstation, bring two steps closer together, change the order of tasks. The deliverable comprises the current-state plan, a log of the trips with their distances and the proposed-state plan. This second plan follows the same log at the same scale and states the distance saved.
Usage
When to use it
- A file or a product that changes rooms: the route crosses several offices, floors or buildings and nobody knows its length.
- A move or a refit: compare layouts on the plan before the first piece of furniture moves.
- Round trips noted during a gemba walk: the diagram measures in metres the round trips that the walk observed.
- A survey of the eight wastes: measure transport and unnecessary movement instead of estimating them.
- A person who serves several points: a storeroom, a kitchen, an inspection laboratory, an operator who runs several machines. The ILO cites these situations.
- A change that people must accept: a plan before and a plan after make the difference visible to management and to the team.
When not to use it
- Fully digital work: there is no trip to draw; process mining reads the route of the file in the system logs.
- Lead time dominated by waiting: the line does not show time; measure the queues with value stream mapping.
- Many trips between many points: the lines blur into one another; the ILO then recommends the travel chart.
Description
The LEI spaghetti chart and the ILO diagrams
The LEI defines the spaghetti chart as the path that a product takes through the steps of a value stream.
The ILO manual Introduction to Work Study (Kanawaty, 1992) places the drawing on a plan within method study. Method study records the facts, examines them critically and then develops an improved method. Among the diagrams indicating movement, the manual lists the flow diagram, the string diagram and the travel chart. These diagrams follow workers, materials or equipment. To follow a person or a document, the analyst therefore relies on the ILO method.
The process chart comes from Frank and Lillian Gilbreth, who founded motion study. In 1921 they presented it to the American Society of Mechanical Engineers (ASME) as "a device for visualizing a process as a means of improving it". Their chart has a symbol for transport. Their example follows a document: an order for blank forms. The chart records the delays of the messenger.
| Form | What it follows | Scale | What it measures | Source |
|---|---|---|---|---|
| Spaghetti chart | The product along the value stream | Not specified | The path and its detours | LEI |
| Flow diagram | Workers, materials or equipment; each activity of the flow process chart appears on the diagram as its symbol | Approximate | The path and the location of each activity | ILO (chapter 7) |
| String diagram | Mostly workers, sometimes materials or equipment | Exact | The distance travelled, from the length of the thread | ILO (chapter 8) |
| Travel chart | The same, without a plan | None: a grid of starting points and points of arrival | The number of trips between each pair of points | ILO (chapter 8) |
For materials a flow diagram is usually enough and takes less time to prepare than a string diagram. In practice the name "spaghetti diagram" covers both forms drawn on a plan.
What the line measures
Among the eight wastes, the line of an object measures transport: the part, the parcel or the file moves. The line of a person measures unnecessary movement: the person walks to the printer, fetches a binder, comes back to ask for a signature.
The total length gives the distance per cycle. The number of lines on a segment gives its frequency: the ILO notes that the paths walked most often carry the greatest number of strings. Repeated round trips between a workstation and a distant point show that the point is in the wrong place. A return to a point already left, with no reason for it, shows a task order that does not follow the layout.
The line shows neither time nor cause. A two-day wait outside an office does not add a centimetre to the line. The ILO therefore pairs the diagram with the flow process chart. This chart records each activity in order: operation, inspection, transport, delay, storage. According to the ILO, the diagram shows movement more clearly than the chart. In its example on receiving aircraft parts, the diagram reveals a long and roundabout path that the chart alone did not show. The chart summarises the activities in a way that the diagram does not allow.
Drawing the diagram
- Decide what to follow. One object (a file, a batch, a trolley) or one person over a defined sequence: an invoice from its arrival to its filing or the morning round of a storekeeper. An object and a person make two lines.
- Record on site. The analyst follows the object or the person and notes each stop in order. On a long trip the analyst also notes the time of departure and the time of arrival. The analyst codes the points with letters or numbers to keep the notes short. The ILO movement study sheet carries the columns time of departure, time of arrival, time elapsed, move to and notes.
- Observe for long enough. A few hours, a day or longer: the analyst must see each trip often enough to know its frequency. The analyst then goes through the log with the person observed. That person points out the actions they usually perform that the analyst did not see.
- Draw the plan to scale. It shows the workstations, the furniture, the stocks and every stopping point. It also shows the doors, pillars and partitions that divert the paths. The CAD plan from the buildings department gives the scale. On an evacuation plan the analyst checks the dimensions with a laser distance meter.
- Draw and measure. One line per trip, in the order of the log, through the points every path must pass: doors, corridor corners. One colour per person or per object. According to the ILO manual, the analyst leads a thread around pins driven in at each stop: the length of thread gives the distance to scale. Drawing software gives the length of a polyline. A laser distance meter checks the distances on site.
- Read the line. Find the segments crowded with lines, the returns to the same point and the long trips between two consecutive steps. Multiply the distance per cycle by the number of cycles per day or per year. Convert the distance into time with a walking speed that the analyst chooses and notes in the log, for example 1 m/s.
- Examine and propose. The ILO questions each activity in a fixed order: purpose, place, sequence, person and means. For a long or repeated trip the analyst asks why the two points are far apart and whether they could sit side by side. On the plan the analyst moves each workstation that nothing holds in place. The fixed points stay where they are: a water supply, a fire door, a department that is not moving.
- Redraw and compare. The analyst redraws the same log on the new plan from the same starting point and in the same order. The difference in length is the distance saved. The ILO repeats the trial until it reaches the layout that uses the least thread. In its tile-storage example the new arrangement of the bins cuts the distance from 520 m to 340 m: 35% less.
- Present both plans. Side by side, at the same scale. According to the ILO, the contrast helps management, supervisors and workers accept the change. The people observed discover how far they walk.
Pitfalls
Drawing the planned path. A line drawn from memory or from the procedure reproduces the process model. The detours appear only under observation: the photocopier that has broken down, the signature fetched twice.
Comparing two lines that do not follow the same log. If the starting point, the order of the stops or the period observed changes between before and after, the difference in length no longer measures the layout.
Reading length as time. A short trip can come just before the longest wait on the route. The flow process chart or value stream mapping measures that wait.
Shortening one person's trip at another's expense. Moving the printer closer to the accountant may move it away from the secretariat. The analyst draws each person in their own colour. The sum of everyone's distances gives the net gain.
Studying the person instead of the layout. The log follows someone for hours. The analyst announces the study and explains that it concerns the premises. The analyst goes through the log with the person observed.
Keeping a line nobody can read. The ILO notes that when many movements follow complex paths, the diagram may end up looking like "a forbidding maze of criss-crossing lines". The travel chart then counts the trips in a square grid: the starting points in columns, the points of arrival in rows. The ILO example follows a messenger who delivers papers to the ten workstations of an office.
Boundaries with neighbouring techniques
Workplace layout analysis examines the whole layout of a site: the workstations, the fixed points and the wastes that the layout imposes. The spaghetti diagram is its recording instrument.
The gemba walk observes the work on site and questions the people who do it. It spots the round trips. The diagram measures them.
Value stream mapping measures the processing time and the waiting at each step of a value stream. The diagram measures the distance between these steps.
AI considerations
An assistant writes up the log. It transcribes handwritten or spoken notes into a list of trips with one starting point and one point of arrival per line. The analyst checks each line against the notes: an added or merged trip distorts the distance.
From the distances and the number of trips between each pair of points, a solver or an assistant computes the total distance of several layouts. It proposes those that bring the most connected points closer together. It knows only the points and the distances it receives. The fire door, the discretion that a counter needs and the department that is not moving remain the analyst's concern.
A vision model reads the photo of an annotated plan and extracts the segments. It often confuses overlapping lines, which mark the most frequent trips. The analyst counts the crowded segments again.
Location badges, the wireless network and cameras record trips without an observer present. They track people. Art. 26 of Ordinance 3 to the Employment Act (OLT 3) prohibits surveillance or monitoring systems intended to monitor the behaviour of workers at their workplace. Its para. 2 requires that a system needed for other reasons be designed and arranged so that it preserves their health and their freedom of movement. The analyst follows the object (a trolley, a marked batch) or observes the people in person after informing them. The recorded trips of an identifiable person are personal data within the meaning of art. 5 let. a of the Federal Act on Data Protection (FADP).
Examples
The administration of a municipality in the canton of Vaud follows the daily batch of supplier invoices from the mail room to the archives. The accountant carries the batch from one step to the next.
- 118 m
- 226 m
- 326 m
- 434 m
- 534 m
- 622 m
- 722 m
- 816 m
- 118 m
- 20 m
- 30 m
- 434 m
- 534 m
- 68 m
- 78 m
- 816 m
| No. | From | To | Purpose | Before (m) | After (m) |
|---|---|---|---|---|---|
| 1 | A Mail room | B Accounting | Arrival of the batch | 18 | 18 |
| 2 | B Accounting | C Copier-scanner | Scanning | 26 | 0 |
| 3 | C Copier-scanner | B Accounting | Return | 26 | 0 |
| 4 | B Accounting | D Technical services | Approval by the head of department | 34 | 34 |
| 5 | D Technical services | B Accounting | Return | 34 | 34 |
| 6 | B Accounting | E Finance | Approval for payment | 22 | 8 |
| 7 | E Finance | B Accounting | Return | 22 | 8 |
| 8 | B Accounting | F Archives | Filing | 16 | 16 |
| Total per batch | 198 | 118 | |||
On the current plan six lines overlap in the corridor between accounting and finance. On the proposed plan two remain beyond finance. Both plans follow the same log: the same points in the same order. The scanner installed in accounting removes trips 2 and 3. Finance takes over the meeting room next to accounting. The meeting room moves into the former finance office. Trips 4 and 5 remain because technical services is not moving. Over 250 working days the batch travels 29.5 km instead of 49.5 km. At 1 m/s the 80 m saved per batch come to 80 seconds, that is about 5.6 hours a year.
Visualisations
The two plans of the invoice batch show the same log at the same scale before and after the refit. The table of forms places the LEI spaghetti chart among the ILO diagrams indicating movement. The trip log gives the distance of each trip and the total per batch.
Cost
| Phase | Level | Justification |
|---|---|---|
| Preparation | Low | Choosing the object or the person to follow, obtaining a scale plan from the buildings department, announcing the study to the staff. |
| Execution | Medium | A few hours to a day of observation for each person or object followed, then drawing and measuring each trip. |
| Documentation | Low | Two plans at the same scale and a log of the trips with their distances. |
Tools
A printed scale plan, coloured pencils and a clipboard are enough for the recording. A laser distance meter or a measuring wheel checks the distances when the plan carries no dimensions.
A spreadsheet holds the trip log and totals the distances. It also holds the travel chart when the points multiply. Drawing software such as Visio or diagrams.net produces a clean plan and measures the length of the polylines.
For a route that is partly digital, a process mining tool reads the steps of the file in the system logs. It sees no physical trip.
Sources
The term comes from lean. The method of recording and measuring comes from work study.
- Lean Enterprise Institute, Spaghetti Chart, Lean Lexicon: the definition of the diagram for the product along the value stream and the origin of its name.
- Kanawaty, George (ed.) (1992), Introduction to Work Study, fourth (revised) edition, International Labour Office, Geneva. Chapter 7 "Record, examine, develop": method study, the diagrams indicating movement and the flow diagram paired with the flow process chart. Chapter 8 "Movement of workers in the working area": the string diagram with its procedure and its measurement, the tile-storage example and the travel chart.
- Gilbreth, Frank B. and Gilbreth, Lillian M. (1921), Process Charts, American Society of Mechanical Engineers: the process chart with its transport symbol and its example of the route of a document.
- Swiss Confederation, Ordinance 3 to the Employment Act (OLT 3), SR 822.113, art. 26: in para. 1 the prohibition of systems intended to monitor the behaviour of workers at their workplace; in para. 2 the requirements for systems needed for other reasons.
- Swiss Confederation, Federal Act on Data Protection (FADP), SR 235.1, art. 5 let. a: the recorded trips of an identifiable person as personal data.

