Skip to main content
ExplainerData Visualization· Updated · 4 min read· in Data & Analysis

Sankey Diagrams Use Proportional Link Widths to Track Mass and Energy Conservation

Unlike standard flowcharts, Sankey diagrams enforce a strict mathematical rule where the width of every line is proportional to the quantity it represents. This visual conservation of mass and energy allows analysts to instantly identify inefficiencies, dominant pathways, and resource losses across complex systems.

By Logan Price

Share this story

Listen

In short

  • Sankey diagrams differ from standard flowcharts by making the width of every line proportional to the flow's magnitude.
  • The format visually enforces the conservation of mass and energy, ensuring all inputs are accounted for as outputs or losses.
  • Originally designed in 1898 to track steam engine efficiency, the charts are now standard in energy grid analysis.

A standard flowchart maps the sequence of a process, showing where a system moves from one step to the next. A Sankey diagram maps the sequence but adds a strict physical constraint: the width of every line must be exactly proportional to the quantity flowing through it. If a pipeline splits into three smaller branches, the combined width of those three branches must equal the width of the original pipeline. This visual enforcement of the conservation of mass and energy transforms a simple map into a rigorous accounting system.[5][7]

The mechanism relies on nodes and links. Nodes represent states, locations, or stages in a process, while links represent the flow between them. The fundamental rule governing these charts is that the sum of the widths of all incoming links to a node must equal the sum of the widths of all outgoing links, minus any explicitly graphed losses. This ensures that no data is magically created or destroyed within the visualization, a principle first codified in 1898 by Irish engineer Captain Matthew Henry Phineas Riall Sankey.[5][6]

The conservation principle: the sum of outgoing link widths must exactly equal the incoming link width.

Captain Sankey originally developed the diagram to illustrate the thermal efficiency of a real steam engine, visually demonstrating how much heat was converted into useful work and how much was lost to the environment. Today, energy and sustainability analysts rely on this exact framework to map national power grids and exergy flows.

A 2014 framework established standardized methods for using Sankey diagrams to track both energy, which is conserved at 100 percent, and exergy, the useful portion of energy that is consumed, allowing engineers to pinpoint exactly where thermodynamic losses occur in industrial plants.[4][5]

The application has expanded significantly into architecture and building performance simulation. Researchers at Carleton University have investigated how Sankey diagrams can enhance the design process by visualizing heat transfers, HVAC energy consumption, and thermal losses through building envelopes. By mapping these flows proportionally, architects can instantly see whether a building's primary energy drain is poor insulation or inefficient lighting, driving more targeted sustainability interventions during the early phases of a project.[3]

Beyond physical energy, the conservation principle is now being applied to human populations. Clinical researchers use Sankey flow diagrams to track symptom trajectories in older adults with advanced cancer. In this context, the "flow" is the number of patients moving between different states of symptom severity over time. The proportional width of the links allows oncologists to visualize the dominant pathways of disease progression and symptom burden, providing a stark, quantitative picture of patient outcomes that traditional survival curves cannot capture.[1]

The application of flow magnitude visualization has expanded far beyond its origins in thermodynamics.

As datasets grow more complex, the diagrams are evolving to handle higher dimensionality. Hybrid Sankey diagrams developed at the University of Cambridge integrate multidimensional data to better understand resource use. These advanced models allow analysts to overlay additional variables—such as carbon intensity or financial cost—onto the standard flow magnitude, using color gradients or interactive filtering while maintaining the foundational rule of proportional link width.[2]

The evidence supporting the utility of Sankey diagrams is robust across disciplines, but the format has distinct limitations. Because the human eye struggles to accurately compare the areas of curved, diverging paths, Sankey diagrams are highly effective for showing massive disparities but less precise for comparing closely matched values.

Furthermore, if the underlying data contains measurement errors or fails to account for all inputs and outputs, the strict conservation rule forces the diagram builder to either introduce a "dummy" node for unaccounted losses or break the visual integrity of the chart.[6][7]

While the cited academic literature provides rigorous mathematical frameworks, the authors present their findings through technical documentation rather than direct public commentary, leaving the charts to speak for themselves. The enduring power of the Sankey diagram lies in its refusal to let data hide.

By anchoring data visualization to the physical laws of conservation, it forces a complete accounting of the system being measured. Whether tracking the thermal efficiency of a 19th-century steam engine or the symptom progression of modern cancer patients, the proportional width of the links ensures that every input is tracked to its ultimate destination.[1][5][7]

Key terms

Node
A specific state, location, or stage in a process where flows converge or diverge.
Link
The visual connection between two nodes, whose width is strictly proportional to the magnitude of the flow.
Exergy
The portion of total energy that is available to be used for work, which decreases as a system operates due to thermodynamic inefficiencies.
Conservation of Mass
The physical principle that matter cannot be created or destroyed, which Sankey diagrams enforce visually by requiring inputs to equal outputs.

Where opinion splits

Data Visualization Practitioners

Focus on the perceptual accuracy and structural integrity of the chart.

For data visualization experts, the Sankey diagram is a tool of compromise. While it excels at showing the gestalt of a system—instantly highlighting the largest inputs and the most significant losses—it demands a high cognitive load from the reader. The human visual system is highly accurate at comparing the lengths of straight lines aligned on a common baseline, as in a bar chart, but struggles to accurately estimate the area of curved, diverging paths. Consequently, practitioners advise using Sankey diagrams to expose massive structural disparities rather than to facilitate precise numerical comparisons.

Energy & Sustainability Analysts

Value the diagram for its strict adherence to thermodynamic laws.

In the realm of physical engineering, the Sankey diagram is not just a picture; it is a mathematical proof. Because the chart forces the width of incoming links to equal the width of outgoing links, it acts as a visual audit of a system's energy balance. If an industrial plant claims a certain efficiency rate, mapping the exergy flows in a Sankey framework immediately exposes any unaccounted-for thermal losses. This strict conservation rule makes it impossible to hide waste, driving more targeted interventions in building performance and grid management.

Clinical Researchers

Adapt the flow magnitude concept to track human populations and disease progression.

Medical researchers have repurposed the thermodynamic constraints of the Sankey diagram to map the flow of human lives. When tracking older adults with advanced cancer, the nodes represent varying states of symptom severity, and the links represent the volume of patients transitioning between those states over time. Because the total number of patients must be conserved across the timeline, the proportional link widths provide oncologists with a stark, quantitative picture of disease progression, revealing dominant clinical pathways that traditional survival curves obscure.

Energy & Sustainability Analysts 40%Data Visualization Practitioners 30%Clinical Researchers 30%
Energy & Sustainability Analysts
Value the diagram for its strict adherence to thermodynamic laws, using it to expose inefficiencies and exergy losses in physical systems.
Data Visualization Practitioners
Focus on the perceptual accuracy and structural integrity of the chart, emphasizing that humans are better at judging straight lines than curved areas.
Clinical Researchers
Adapt the flow magnitude concept to track human populations, using link width to represent the volume of patients transitioning between health states.

Perspectives this story doesn't cover

  • Software developers who build the rendering engines for these charts
  • Financial auditors who use flow diagrams to track capital allocation

Sources

Source coverage

7 outlets

3 viewpoints surfaced

Energy & Sustainability Analysts 40%Data Visualization Practitioners 30%Clinical Researchers 30%
  1. [1]PMCClinical Researchers

    Overview of Sankey Flow Diagrams: Focusing on Symptom Trajectories in Older Adults with Advanced Cancer

    Read on PMC →
  2. [2]Apollo - University of CambridgeEnergy & Sustainability Analysts

    Hybrid Sankey diagrams: Visual analysis of multidimensional data for understanding resource use

    Read on Apollo - University of Cambridge →
  3. [3]Carleton UniversityEnergy & Sustainability Analysts

    Preliminary Investigation of the Use of Sankey Diagrams to Enhance Building Performance Simulation-Supported Design

    Read on Carleton University →
  4. [4]IDEAS/RePEcEnergy & Sustainability Analysts

    Sankey diagram framework for energy and exergy flows

    Read on IDEAS/RePEc →
  5. [5]WikipediaData Visualization Practitioners

    Sankey diagram

    Read on Wikipedia →
  6. [6]DomoData Visualization Practitioners

    Sankey Diagram Explained: Examples, Uses, and How It Works

    Read on Domo →
  7. [7]Factlen Editorial Team

    Synthesis by Factlen editorial team

    Read on Factlen Editorial Team →
Listen

Comments

Stay informed

Every angle. Every day.

Get Data & Analysis stories with full source coverage and perspective breakdowns, free every day.