What a data flow diagram is
A data flow diagram follows information, not people or steps. It shows who gives the system data, which processes change it, where it is kept and who receives the result. It does not show order, timing or decisions; that is the job of a flowchart.
The four DFD symbols
| Symbol | Drawn as | Means | Example |
|---|---|---|---|
| External entity | A rectangle | A person or system outside yours that sends or receives data | Customer, Bank |
| Process | A circle or rounded box | Something that changes data | Take order |
| Data store | A cylinder or open box | Where data is kept | Orders database |
| Data flow | An arrow with a label | Data moving between the others | Order details |
Two simple rules catch most mistakes:
- Every process needs data in and data out. A process with only inputs is a black hole; one with only outputs is a miracle.
- Data cannot flow straight between two stores or two entities. It has to pass through a process.
Level 0: the context diagram
A context diagram shows the whole system as one process with the outside world around it. It answers "who does this system talk to, and what do they exchange?"
To keep the picture readable, this sketch shows only the flows into the shop's partners. The full context diagram also has the flows coming back: a receipt to the customer and a payment result from the bank.
Level 1: opening up the system
A level 1 diagram breaks the one process into its main processes and adds the data stores. The external entities and flows must match the context diagram, so the two levels never disagree.
If a level 1 process is still complex, you can draw a level 2 diagram for it the same way.
How to draw a DFD in five steps
- Name the system and draw it as one process in the middle.
- Add the external entities around it: customers, staff, other systems.
- Draw the flows in and out and label each with the data, as a noun: "Order details", not "Send order".
- Open the process into level 1: three to seven processes, numbered, each with a verb name.
- Add the data stores and check the rules: every process has inputs and outputs, and nothing skips a process.
Drawing it from text
The diagrams above are flowcharts with three shapes: [Name] for entities, ((Name)) for processes and [(Name)] for stores. Write them in the flowchart text and the layout is done for you:
flowchart LR
cust[Customer] -->|Order details| take((1 Take order))
take -->|New order| orders[(Orders)]
A free tool for data flow diagrams
Chalkline draws data flow diagrams in a hand drawn style for early ideas or a clean style for reports, with one click to switch. Use Diagram as text to type the flows, or draw shapes by hand. It works offline, needs no account, and exports to PNG, SVG, vector PDF or editable PowerPoint. For the database behind the data stores, see ER diagram symbols.
Common questions
What is a DFD? DFD stands for data flow diagram: a picture of where information comes from, which processes change it, where it is stored and who receives it.
What are the four symbols of a data flow diagram? External entities (rectangles), processes (circles or rounded boxes), data stores (open boxes or cylinders) and data flows (labelled arrows).
What is the difference between a level 0 and a level 1 DFD? Level 0, the context diagram, shows the whole system as one process with the outside world around it. Level 1 opens that process into its main sub processes and adds the data stores.
What is the difference between a DFD and a flowchart? A flowchart shows the order of steps and decisions. A DFD shows how data moves, with no order, timing or decisions.