Data Flow Diagrams (DFD)
A data flow diagram (DFD) is a business analysis technique for showing how information moves through a system: where data comes from, which processes transform it, where it is stored and where it goes. A data flow diagram shows no sequence, timing or decisions, which distinguishes it from a process model.
Quick facts
- Type
- Modelling technique (data and information)
- Origin
- Structured analysis of the 1970s: first proposed by Larry Constantine, then popularized by Yourdon, DeMarco (1978) and Gane & Sarson (1979)
- Used when
- You need to see where data comes from, how it is transformed and where it ends up
- Variants
- Context diagram, first-level diagram and lower levels (numbering varies by author); Yourdon/DeMarco and Gane & Sarson symbols
- Related techniques
- Data modelling, data dictionary, scope modelling, interface analysis
- Reference
- BABOK® Guide v3, §10.13 (Data Flow Diagrams)
- Exam relevance
- Not named in the ECBA™ blueprint; relevant to CCBA®/CBAP® (Requirements Analysis and Design Definition)
At a glance
- Draw the context diagram — one process, external entities, main flows
- Break into main processes — level 1: each named verb plus object
- Add stores and flows — name every flow by the data it carries
- Check balancing — child inputs and outputs match the parent
- Check the rules — no flow skips a process; no black holes
- Walk through with data owners — trace real records end to end
What are the elements of a data flow diagram?
A data flow diagram uses only four kinds of element:
| Element | What it represents | Example at Northgate Insurance |
|---|---|---|
| External entity | A person, organization or system outside the scope that sends or receives data | Policyholder, repair garage, payment provider |
| Process | Work that transforms incoming data into outgoing data | Register claim, assess claim, pay claim |
| Data store | Data held for later use | Claims, policies, payments |
| Data flow | Data moving between the other elements, named by its content | Claim form, assessment result, payment instruction |
Two symbol sets are common. In the Yourdon and DeMarco notation, processes are circles ("bubbles"); in the Gane and Sarson notation, they are rounded rectangles and data stores are open-ended boxes. The meaning is the same, so a team simply picks one and uses it throughout.
With only four elements, a data flow diagram can be read by most stakeholders after a short explanation.
What are the levels of a data flow diagram?
Data flow diagrams are drawn in levels, each one decomposing the processes of the level above:
- Context diagram: the whole system as a single process, with the external entities and the data flowing in and out. It is a compact way to show scope. Many authors call it level 0, while others give that number to the first decomposition ("diagram 0").
- Level 1: the main processes inside the system, with the data stores between them.
- Level 2 and below: one level 1 process decomposed in turn, used only where the detail is needed.
Each lower-level diagram must be balanced with its parent: the data flowing in and out of the child diagram must match the flows of the process it decomposes. Balancing is what keeps a set of diagrams consistent as the detail grows.
The levels let a data flow diagram serve sponsors at the top and solution teams lower down, without losing consistency between them.
What rules should a data flow diagram follow?
A few rules catch most errors in data flow diagrams:
- Every data flow starts or ends at a process. Data does not move directly between two external entities, between two data stores, or between an external entity and a data store.
- Every process has at least one input and one output. A process with inputs but no output is often called a "black hole"; one with outputs but no input, a "miracle".
- Outputs must be derivable from inputs. A process cannot produce data it never received or retrieved, sometimes called a "gray hole".
- Every flow is named by its content, such as "approved claim", not by an action such as "send".
- Data stores are read and written by processes, and a store nobody reads is a sign of missing requirements or a store that is not needed.
At Northgate Insurance, applying these rules showed that the fraud check produced a "risk score" without any flow from the policy store, which revealed a missing data requirement.
These rules make a data flow diagram a practical tool for finding gaps, not just a picture.
When should you use a data flow diagram?
Data flow diagrams fit situations where the movement and transformation of information matters more than the order of work:
- Scoping: a context diagram shows quickly which external parties and systems exchange data with the solution.
- Integration and interfaces: the flows between processes and external entities are candidates for interfaces.
- Data protection and compliance: the diagram shows where personal data enters, where it is stored and where it is sent.
- Legacy analysis: it summarizes what an old system does with data before it is replaced.
They fit poorly where sequence, timing, roles or decisions are the point; a process model is the better tool there.
A data flow diagram is the right choice when the question is "where does this data come from and where does it go?".
What are the limitations of data flow diagrams?
Data flow diagrams have lasting strengths: a small, simple notation, a clean way to show scope, and rules that expose missing or unused data. Their limits come from what they leave out:
- No sequence or timing. A reader cannot tell what happens first or how long anything takes.
- No decisions or roles. Who performs a process, and under which conditions, is not shown.
- No data structure. Flows and stores are named, but their content needs a data dictionary or data model.
- Less familiar today. Teams used to process and UML diagrams may need an introduction to the notation.
- Maintenance across levels. Keeping several levels balanced takes discipline as requirements change.
Data flow diagrams are most useful alongside a data model for structure and a process model for sequence and responsibility.
Data flow diagram vs. process model: what is the difference?
| Data flow diagram | Process model | |
|---|---|---|
| Focus | How data moves and is transformed | How work flows and who does it |
| Sequence and timing | Not shown | Shown |
| Decisions | Not shown | Shown as branches with conditions |
| Who performs the work | Not shown | Shown, typically with swimlanes |
| Data stores | Explicit element | Optional, shown as data objects or stores |
A data flow diagram answers where data comes from and where it goes; a process model answers who does what, in what order. Analysts often use both for the same scope.
FAQ
What is a data flow diagram?
A data flow diagram is a model that shows how information moves through a system using four elements: external entities, processes, data stores and data flows. It shows where data comes from, how it is transformed and where it is stored or sent, but not the sequence of steps or who performs them.
What is the difference between a context diagram and a level 1 DFD?
A context diagram shows the whole system as one process with the external entities and the data flowing in and out, which makes it useful for scope. A level 1 diagram opens that single process into its main processes and the data stores between them.
What is the difference between Gane and Sarson and Yourdon DeMarco notation?
Both notations show the same four elements. Yourdon and DeMarco draw processes as circles and data stores as parallel lines, while Gane and Sarson draw processes as rounded rectangles and data stores as open-ended rectangles. The choice is a matter of team convention.
Can data flow directly between two external entities in a DFD?
No. Every data flow in a data flow diagram must start or end at a process. Data exchanged directly between two external entities is outside the scope of the system, and data moving between stores or between an entity and a store always passes through a process.
Are data flow diagrams still used?
Yes, though less than in the era of structured analysis. Context diagrams remain common for scoping, and data flow diagrams are widely used for integration, legacy analysis and data protection work, where tracing personal data from collection to storage and disclosure matters.
Sources
- DeMarco, T. (1978). Structured Analysis and System Specification. Yourdon Press (Prentice-Hall edition 1979).
- Gane, C. & Sarson, T. (1979). Structured Systems Analysis: Tools and Techniques. Prentice-Hall.
- Yourdon, E. (1989). Modern Structured Analysis. Yourdon Press / Prentice-Hall.
- IIBA® (2015). A Guide to the Business Analysis Body of Knowledge® (BABOK® Guide) v3, §10.13 Data Flow Diagrams.
- Last reviewed