What Is a Sankey Diagram? How to Read and Use One
What a Sankey diagram is, how to read its nodes and flows, when it beats a bar or funnel chart, and how to build one, with a live 2025 US energy example.

A Sankey diagram shows where a quantity goes as it moves through a system: energy from fuel to end use, money from revenue to spending, visitors from a landing page to wherever they end up. Every band is drawn as wide as the amount flowing along it, so you see the big flows and the losses at a glance instead of doing the subtraction yourself.
What is a Sankey diagram?
A Sankey diagram is a flow chart in which the width of each arrow or band is proportional to the quantity it carries. Nodes (boxes) mark stages or categories, links (bands) connect them, and what enters a node equals what leaves it. That conservation rule is what lets a narrowing band read as a loss.
Here is a real one. In 2025 the United States consumed about 96 quadrillion Btu (quads) of primary energy. Follow the orange electric power node: of the 33.5 quads burned or captured by power plants, only 13.8 reached customers as electricity. The other 19.7 quads, 59%, were lost in generation and transmission, mostly as waste heat.
The numbers come from the U.S. Energy Information Administration's Monthly Energy Review, tables 2.2 to 2.6 (2025 annual values). Two flows under 0.05 quads, coal to commercial buildings and electricity to transportation, are left out because they would draw as hairlines.
Where the Sankey diagram came from
The chart is named after Matthew Henry Phineas Riall Sankey, an Irish engineer who drew one in 1898 to show the energy efficiency of a steam engine: how much of the fuel's energy became useful work and how much left as heat. For most of the following century the format stayed inside engineering.
Its most famous ancestor is older. Charles Minard's 1869 map of Napoleon's 1812 Russian campaign draws the army as a band whose width is the number of soldiers, shrinking from 422,000 men at the start of the march to about 10,000 at the end. It is a flow diagram laid over a map, and the same idea: width is quantity, and the narrowing is the story.
Today the best-known Sankey diagrams are national energy charts like the one above. EIA publishes its own source-and-sector version, and Lawrence Livermore National Laboratory publishes an annual US energy flow chart that splits every source into useful energy and rejected energy.
How to read a Sankey diagram
Four parts and one habit.
- Nodes are the boxes: stages, categories, accounts or states. Flows split, merge or stop at them. A node's height is the total flowing through it.
- Links (flows) are the bands between nodes. A link's width is the quantity moving along it, and that is the whole encoding. Colour and curvature are decoration unless a legend says otherwise.
- Direction is almost always left to right. It follows the process, not necessarily time.
- Columns group nodes by stage. In the energy chart: sources, then power plants, then end-use sectors and losses.
The habit: find the widest band first, then find where it narrows. Most Sankey diagrams are built to show a loss or a split, and that is where it is.
When to use a Sankey diagram
| Use case | Example | Why a Sankey works |
|---|---|---|
| Energy and material flows | Fuel to electricity to end use | Losses at each step become visible bands |
| Budgets and money | Revenue to cost lines to profit | Answers "where does the money go" in one picture |
| User journeys | Landing page to signup, pricing or exit | Shows where people went, not only how many dropped |
| Migration and trade | Origin country to destination | One band per pair, sized by volume |
| Re-categorisation over time | Customers by plan this year vs last year | Shows who moved between groups |
The common thread is a question of the form "of the X that started here, where did it end up?" A funnel chart tells you that 60% of visitors left; a Sankey shows that half of them went to search and half closed the tab, which are different problems.
When a Sankey diagram is the wrong chart
- More than about four stages. Each extra column multiplies the bands and the crossings. Past four, readers stop tracing paths.
- Flows that loop back. Returns, retries and recycling break the one-direction layout. If circulation between groups is the point, a chord diagram handles it better.
- Precise comparison. Judging the ratio of two band widths at opposite ends of a chart is hard. If the reader needs to know that one flow is 1.4 times another, use a bar chart or a table.
- One flow dwarfs the rest. A dominant band squeezes everything else into hairlines. Group the small flows into "Other" or split the chart.
- Quantities that are not conserved. If inputs and outputs do not balance, the chart misrepresents the system it claims to account for.
For more on matching the chart to the question, see how to choose the right chart for your data.
Common Sankey diagram mistakes
- Widths that do not add up. If the links into a node do not sum to the links out of it, the diagram's central promise is broken. Check the arithmetic before the styling.
- Colour that means nothing. A rainbow of bands looks deliberate and usually is not. Colour by source, by category or by gain versus loss, or use one hue and let width do the work.
- Too many nodes. Charts that get understood usually have fewer than about twenty nodes. Grouping the tail into "Other" is what makes the rest readable.
- No units. Say what the widths measure (dollars, quads, people, tonnes) and give the total.
- Inconsistent names. "Electricity" and "electricity " with a trailing space become two nodes. It is the most common reason a Sankey comes out wrong.
Sankey vs alluvial diagram vs flow map
- A Sankey diagram shows a quantity flowing through a system, conserved at every node.
- An alluvial diagram shows how the same set of items is sorted into different groups at two or more points, such as voters by party in two elections. The structure is nearly identical; the intent differs.
- A flow map puts flows on a map, with bands following real routes. Minard's Napoleon chart is one.
You can build the first two from the same data: a source column, a target column and a value column.
How to make a Sankey diagram
The data is three columns, one row per flow:
| Source | Target | Value |
|---|---|---|
| Natural gas | Electric power | 13.46 |
| Natural gas | Industrial | 11.03 |
| Electric power | Residential | 5.17 |
Nodes are created from the names, so spelling matters. Before you publish, check that every intermediate node balances (what arrives equals what leaves) and order nodes so that bands cross as little as possible.
The Sankey diagram maker takes that table as a CSV, pasted rows or a Google Sheets link and gives you an interactive chart with a tooltip on every flow, plus SVG, PNG or JPG downloads. The step-by-step guide on how to create a Sankey diagram walks through binding the columns and styling the result.
FAQ
What is a Sankey diagram used for?
It shows how a quantity is distributed from sources to destinations: energy from fuels to end uses, budgets from income to spending, or users from an entry page to outcomes. It is most useful when the losses or splits along the way are the point.
What is the difference between a Sankey diagram and a flowchart?
A flowchart shows the steps and decisions in a process with equal-sized arrows. In a Sankey diagram the width of each arrow is proportional to a quantity, so it shows how much flows, not only where.
How many nodes should a Sankey diagram have?
Fewer than about twenty, across no more than four stages, is a good rule. Beyond that, group small categories into "Other" or split the chart into two.
What data do you need for a Sankey diagram?
A table with a source column, a target column and a numeric value column, one row per flow. Each name becomes a node, so spell names identically everywhere they appear.
Why is it called a Sankey diagram?
It is named after Captain Matthew H. P. R. Sankey, who used one in 1898 to show the energy efficiency of a steam engine.


