ADAgnivesh Das ← All work
BP · Fuel Margin Waterfall · Margin analytics

From One Margin Number to Every Cent Explained

Fuel margin is reported in cents per gallon, and one cent across hundreds of millions of gallons is millions of dollars. But a single number hides everything behind it. The Fuel Margin Waterfall broke it into the drivers that move it, so pricing and supply teams could see not just what the margin was, but why.

A note on this write-upAll figures, charts and examples on this page are illustrative. Prices, volumes and margins have been replaced with fictitious numbers; no real BP data is shown. Only the headline results are reported outcomes.

The project

A margin waterfall for the US fuel network

Every margin conversation used to start with “let's go and find out why.” I owned the data behind the report end to end: bringing pricing, supply cost, invoice and volume data together, making every component add up, and building the Tableau waterfalls.

The starting point: a number with no story

When margin dropped, the business couldn't quickly tell whether the market had moved, the brand premium had changed, supply terms had worsened, or costs had shifted. Each has a different owner and a different fix.

The monthly question Illustrative
Illustrative month
Standard margin7.5 cpg▼ 1.0 cpg vs. last month · ≈ $5M
  • But why?
  • Did the market move?
  • Did the brand premium change?
  • Did supply terms get worse?
  • Did costs shift?

Without the breakdown, a one-cent drop was a $5 million mystery.

Why it was hard: every driver lived somewhere else

This wasn't a charting problem. Every piece of the margin came from a different system, at a different level of detail.

Where each driver came from Illustrative
Source and grain
SourceGrainUsed for
Market reference pricesterminal × day × gradeBaseline cost
Retail pump pricessite × day × gradeRevenue per gallon
Supply invoicesdeliveryActual cost, invoiced volume
Contract termscontract / siteTerms impact
Delivered volumessite × day × gradeWeighting, volume variance

None of these lined up naturally, and a waterfall only works if every bar adds up exactly to the total.

The method: one grain, volume-weighted

I aligned every input to site × day × grade, and stored each component in dollars rather than cents per gallon. Conversion happens only at the very end, so the parts always sum to the whole.

Why dollars first Illustrative
The rule that makes the waterfall reconcile
Component CPG = Σ component $ ÷ Σ gallons
not the average of each site's CPG

A simple average gives a small site the same weight as a large one. Volume-weighting keeps every bar honest, and each refresh is checked against the finance margin.

Reading the waterfall

Standard margin starts from what anyone could earn at the market's lowest rack price, then adds and subtracts each driver.

Standard margin waterfall Illustrative
One month, network view, cents per gallon
+7.0
+10.0
−8.5
−1.2
+1.3
−0.1
8.5
Market (rack low)Brand valuebp premiumTermsVolume varianceOthersStandard margin
View data
ComponentValue
Market (rack low)+7.0
Brand value+10.0
bp premium−8.5
Terms−1.2
Volume variance+1.3
Others−0.1
Standard margin8.5

At 500 million gallons, 8.5 cents per gallon is $42.5 million of standard margin, and every cent of it is attributed to a driver.

What moved this month?

When margin fell by a cent, the waterfall showed which bar moved.

Change vs. last month, by driver Illustrative
cpg
Market (rack low)+0.2
Brand value0.0
bp premium−1.1
Terms−0.1
Volume variance0.0
Others0.0
Standard margin−1.0
View data
ItemChange
Market (rack low)+0.2
Brand value0.0
bp premium−1.1
Terms−0.1
Volume variance0.0
Others0.0
Standard margin−1.0

Brand value held, so pricing wasn't the problem. The bp premium widened, so the conversation goes to supply, with the size of the gap already on the table.

Three layers of margin

The same approach extends beyond the fuel itself, to what bp's supply chain adds and to environmental and regulatory effects.

Standard → integrated → total margin Illustrative
Illustrative, cents per gallon
+8.5
+1.4
+0.9
10.8
−0.6
+1.1
−0.3
11.0
StandardLogisticsSupply & tradingIntegratedLag effectRINsProgramme costsTotal
View data
ComponentValue
Standard+8.5
Logistics+1.4
Supply & trading+0.9
Integrated10.8
Lag effect−0.6
RINs+1.1
Programme costs−0.3
Total11.0

One view, three layers, and the same breakdown from the whole network down to a single site and grade.

What I built

The margin datasetPricing, supply cost, invoice and volume data aligned to site × day × grade, volume-weighted, decomposed into drivers and reconciled to the total.
The Tableau waterfallsMonthly, year-to-date and year-on-year views, filterable from channel of trade down to individual site and fuel grade.

Results

2×faster root-cause analysis
3margin layers in one view
Every centtraced to a driver
Sitelevel drill-down, every grade

Why this mattered

Changing the question

The waterfall moved every margin conversation from “what was our margin?” to “what moved our margin, and who owns it?” Root causes that used to take an investigation were read straight off the chart, twice as fast, and supply decisions got sharper because the gap was already quantified.

6drivers in standard margin
3layers: standard, integrated, total
site × day× grade: the common grain
3views: monthly, YTD, year-on-year
Agnivesh Das · Portfolio · LinkedIn Illustrative example; figures and details altered.