Stock and Flow Diagrams in System Dynamics
Stock and flow diagrams are a core formal notation within system dynamics, the quantitative modeling discipline developed by Jay W. Forrester at MIT in the 1950s. These diagrams translate the causal structure of a system into a computable mathematical form, distinguishing between quantities that accumulate over time and the rates that change those quantities. They are used across policy analysis, engineering, ecology, and organizational management to simulate behavior that emerges from structure rather than from external events.
Definition and scope
A stock and flow diagram represents a system as a network of two primary variable types: stocks (also called levels or state variables) and flows (also called rates). The System Dynamics Society, the primary professional body for this field, defines stocks as quantities that accumulate or deplete over time and that persist even when all flows are set to zero. Flows are the rates of change that fill or drain stocks — they have units of quantity per unit of time.
Beyond stocks and flows, the notation includes auxiliaries (intermediate variables that carry information), constants (fixed parameters), connectors (arrows indicating causal or informational dependencies), and clouds (boundary symbols representing sources or sinks outside the model scope). Together these elements form a complete representation that can be translated directly into a set of differential or difference equations suitable for numerical simulation.
The scope of a stock and flow diagram is always bounded. System boundaries determine which variables are endogenous (explained inside the model) and which are exogenous (treated as given inputs). This scoping decision is methodologically consequential: a boundary drawn too narrowly omits feedback structures that drive the behavior under study, while one drawn too broadly introduces unmanageable complexity.
How it works
The operational logic of a stock and flow diagram follows a small number of structural rules:
- Accumulation principle: Every stock changes only through its associated flows. The mathematical relationship is integral: the stock at any time equals its initial value plus the integral of net inflow over the elapsed period. In discrete simulation, this becomes: Stock(t) = Stock(t−Δt) + Net Flow × Δt.
- Flow determination: Flows are computed from auxiliary equations that reference stock levels, other auxiliaries, constants, and — critically — other stock levels via connectors. This feedback dependency is what produces nonlinear, dynamic behavior.
- Feedback closure: When a stock's level influences one of its own inflows or outflows through a chain of auxiliaries and connectors, the result is a feedback loop. Positive (reinforcing) loops cause exponential growth or collapse; negative (balancing) loops produce goal-seeking or oscillatory behavior.
- Time step selection: Numerical integration requires a time step (Δt) small enough to preserve accuracy. The standard guideline published in Sterman's Business Dynamics (MIT Press, 2000) is that Δt should not exceed one-half of the smallest time constant in the model.
- Unit consistency: Every equation must be dimensionally consistent. Stock units divided by time units must equal flow units — a requirement that functions as a structural validity test independent of numerical results.
Software platforms that implement this notation include Vensim (Ventana Systems), Stella (isee systems), and AnyLogic, each of which enforces the stock-flow-auxiliary hierarchy and provides built-in unit-checking tools.
Common scenarios
Stock and flow diagrams appear across the modeling domains catalogued in resources such as the MIT System Dynamics Group archive:
- Population and resource systems: A wildlife population stock is filled by a birth flow and drained by a death flow; carrying capacity enters as a stock-dependent auxiliary that modulates both rates. This structure underlies the logistic growth archetype documented by the System Dynamics Society.
- Inventory and supply chains: Manufacturing inventory accumulates through a production flow and depletes through a shipment flow. Mismatches between desired and actual inventory drive ordering decisions, producing the bullwhip effect — a phenomenon formally analyzed in Forrester's 1958 Harvard Business Review paper on industrial dynamics.
- Epidemic modeling: The SIR compartmental model (Susceptible–Infected–Recovered) is a three-stock, two-flow diagram. The infection rate flow connects the Susceptible stock to the Infected stock; the recovery rate flow connects Infected to Recovered. This structure was extended during the COVID-19 pandemic by modelers at the Institute for Health Metrics and Evaluation (IHME) and the CDC's Center for Forecasting and Outbreak Analytics.
- Financial accumulation: Capital stock accumulates through investment flows and depreciates through a fractional outflow. Debt stock fills through borrowing and drains through repayment — structures central to systems theory in economics.
Decision boundaries
Choosing between a stock and flow diagram and alternative representations depends on the modeling objective and the nature of the system:
Stock and flow diagrams vs. causal loop diagrams: Causal loop diagrams show feedback structure qualitatively but cannot be simulated. Stock and flow diagrams add the quantitative machinery needed to generate time-series trajectories. The System Dynamics Society's published methodology guidelines recommend causal loop diagrams for hypothesis formation and stakeholder communication, and stock and flow diagrams for formal simulation and policy testing.
Stock and flow diagrams vs. agent-based models: Agent-based modeling represents individual heterogeneous agents and is appropriate when population-level behavior emerges from micro-level interactions that cannot be aggregated. Stock and flow diagrams assume homogeneous aggregation within each stock, which is computationally efficient and analytically tractable but loses individual-level variation. The Santa Fe Institute has published comparative analyses of these approaches in its working paper series.
Continuous vs. discrete formulation: Standard stock and flow diagrams use continuous differential equations approximated by numerical integration. When events are discrete and timing matters — machine failures, order arrivals — a hybrid or discrete-event formulation is more appropriate.
The systems modeling methods landscape as a whole situates stock and flow diagrams as the instrument of choice when: (a) the problem involves accumulation and depletion, (b) feedback is hypothesized as the source of dynamic behavior, and (c) the modeling goal includes quantitative policy simulation accessible through the broader framework indexed at systemstheoryauthority.com.
References
- System Dynamics Society — professional body defining standards and methodology for system dynamics and stock and flow notation
- MIT System Dynamics Group — originating research group; archive of Forrester's foundational publications
- CDC Center for Forecasting and Outbreak Analytics — federal application of compartmental stock and flow models in public health
- Santa Fe Institute Working Papers — comparative analyses of agent-based and aggregate modeling approaches
- Sterman, J.D. Business Dynamics: Systems Thinking and Modeling for a Complex World. MIT Press, 2000 — canonical reference for stock and flow simulation methodology and time-step guidelines
- Forrester, J.W. "Industrial Dynamics: A Major Breakthrough for Decision Makers." Harvard Business Review, 1958 — foundational paper establishing inventory and supply chain stock and flow structures