Home
LearnETRM — Position & PnL

From Position to
Profit & Loss

A step-by-step visual guide to how positions are formed, valued at market, and turned into PnL. Built for anyone moving from beginner to intermediate in ETRM and commodity trading.

PositionNet quantity
MtMValue today
PnLProfit or loss
AttributionWhat moved it
Scroll to explore
Chapter 01 — Foundations
01
Foundations

What is a
position?

A position is your net quantity in a given commodity, product, or contract — at a point in time. It answers: “How much am I long or short?”

You get there by adding and subtracting every trade: buys add to a long position (or reduce a short); sells do the opposite. The result can be long (positive), short (negative), or flat (zero).

Long
Net buyer
Short
Net seller
Flat
Zero net
Slice by
Book, product, date

Positions can be physical or paper — see the next section for how they differ and how they net together.

Position = Net quantity
1Sum all buy quantities
2Subtract all sell quantities
3Result = position (long / short / flat)
ProductDelivery periodBookCounterpartyLocation
01b
Foundations

Physical vs
paper positions

A physical position is a commitment to take or make delivery of the actual commodity — e.g. barrels of crude at Cushing, MWh of power at a node, or gas at a hub. It is settled by delivery and inventory.

A paper position is financial: futures, swaps, options, or other derivatives that are cash-settled or closed before delivery. You are exposed to price, but you do not take or give the physical product unless you convert (e.g. take delivery on a future).

Positions are often reported separately (physical book vs paper book) and then netted together for an overall exposure. For example: long 100k bbl physical + short 100k bbl futures = flat on paper, but you still have basis risk.

Basis risk arises when the price of your physical position and the price of your paper hedge move differently (e.g. local crude vs WTI futures, or day-ahead power vs baseload future). The hedge does not perfectly offset the physical, so PnL can move even when you think you are flat.
Physical
Delivery, storage, location
Paper
Futures, swaps, cash-settle
Net
Physical + paper = total exposure
Basis
Physical vs paper price gap
Physical + paper → net exposure
1Physical: e.g. long 50k bbl at Cushing (you will receive barrels)
2Paper: e.g. short 50k bbl WTI futures (you will pay/receive cash vs WTI)
3Net volume: 50k − 50k = 0, but Cushing price ≠ WTI price → basis risk
4Basis risk = (Pricephysical − Pricepaper) × position
Chapter 02 — Mechanics
02
Mechanics

How positions
are built

Each trade changes your position. A buy increases how much you own (or reduces a short). A sell does the opposite. Positions are usually rolled up by book, product, delivery month, and sometimes location or counterparty.

New trades, amendments, and cancellations all feed into the same net. So the position you see “as of” a given date is the result of every deal that has been entered and not fully reversed.

Buy
+ Long / − Short
Sell
− Long / + Short
Aggregation
Book, product, period
As-of
Point-in-time snapshot
Traders Risk Operations
Interactive: Build a position
Buys (vol)
Sells (vol)
Net position20,000
DirectionLong
Position = Buys − Sells
02b
Mechanics

Why positions are
sliced by dimension

Position and PnL are rarely shown as a single number. They are aggregated along dimensions so that traders, risk, and operations can answer: “What am I long/short, where, when, and with whom?”

Book — Trading strategy or desk (e.g. crude desk, power short-term).
Product — Commodity or instrument (WTI, Brent, base power).
Delivery period — Month, quarter, or strip (e.g. Mar 25, Q2 25).
Location — Delivery or pricing point (Cushing, NWE, NBP).
Counterparty — Who you trade with, for credit and exposure.

Slicing by these dimensions lets you see concentration, hedge effectiveness, and where PnL or risk is coming from. The sample table on the right shows a typical roll-up.

Book
Strategy / desk
Product
Commodity, instrument
Period
Month, quarter
Location
Pricing / delivery point
Counterparty
Credit, exposure
Sample aggregated position table
BookProductPeriodPositionMtM (USD)Unrealized PnL
Crude deskWTIMar 25+50,0003,500,000+80,000
Crude deskWTIApr 25−20,000−1,440,000−15,000
Power STBase NWEQ2 25+100 MWh4,200+200
Gas deskNBPApr 25+20,000 MWh120,000−2,000

Typical columns: book, product, delivery period, location (if applicable), position (quantity), MtM, unrealized/realized PnL, and attribution buckets.

Chapter 03 — Valuation
03
Valuation

Mark-to-
Market

Once you have a position (a quantity), you need to put a value on it. Mark-to-market (MtM) does that: it values your position at today’s market price.

The idea is simple: MtM = Position quantity × Current market price. So if you are long 10,000 bbl and the market is $70/bbl, your position is worth $700,000 at market. MtM is the basis for daily PnL and risk reports.

Formula
Qty × Price
Price
Current market
When
Daily (e.g. EoD)
Use
PnL, risk, limits
Wrong or stale prices make MtM wrong, which flows into PnL and risk. Price checks and reconciliation with your price provider are essential.
Interactive: MtM
Position (vol)
Market price
MtM value$1,360,000
MtM = |Position| × Price (value is magnitude × price)
Chapter 04 — PnL
04
PnL

Profit & loss
in plain terms

PnL is the profit or loss on your position or trades. For a single deal: you locked in a price when you traded; the market has moved. The difference between that trade price and the current (or settlement) price, times quantity, is your PnL.

If you bought: you gain when the market goes up (you could sell higher). If you sold: you gain when the market goes down (you could buy back lower). So: Buy PnL = (Market − Trade) × Qty; Sell PnL = (Trade − Market) × Qty.

Buy gain
Market > Trade
Sell gain
Market < Trade
Unit
Currency (e.g. USD)
Sign
+ Profit, − Loss
Interactive: Single-trade PnL
Trade price
Market price
Quantity
Side
PnL$60,000
Buy: (Mkt − Trade) × Qty  |  Sell: (Trade − Mkt) × Qty
Chapter 05 — PnL types
05
PnL types

Realized vs
unrealized

Unrealized PnL is the profit or loss on positions that are still open — valued at today’s market. It can change every day until you close or deliver.

Realized PnL is the actual profit or loss that has been locked in — e.g. when a trade is closed, delivered, or settled. It no longer depends on future prices. Position PnL reports often show both: unrealized (open position at market) and realized (closed/settled).

Unrealized
Open position, MtM
Realized
Closed/settled
Total PnL
Unrealized + Realized
Cash
Only realized is cash
At settlement, unrealized turns into realized. Until then, daily MtM moves feed into daily unrealized PnL.
Two buckets
AUnrealized: value of open position at current market
BRealized: PnL from trades already closed/settled
CReport total = A + B
UnrealizedRealizedTotal PnLBy bookBy product
Chapter 06 — Attribution
06
Attribution

What moved
the PnL?

PnL attribution breaks down the change in PnL from one day to the next into clear drivers. That way traders and control can see whether the move came from market price, new trades, amendments, quantity changes, FX, or costs.

Typical buckets: flat price (market moved), new trades, amendments/cancels, quantity, pricing date, FX, costs, and other. A good report keeps “other” small.

How each is computed:

  • PPrice: ΔPnL from market move with prior position: Positionprior × (Pricetoday − Priceprior) (long gains when price rises).
  • VVolume: ΔPnL from change in quantity at current price: (Positiontoday − Positionprior) × Pricetoday (or average price).
  • FFX: Revalue positions in reporting currency; ΔPnL from FX rate move on same notional.
  • CCost: Fees, carry, storage, financing — allocated to the period.
Worked example: Prior position long 10,000 bbl at $70; today position still 10,000 bbl, market $72. Price attribution = 10,000 × (72 − 70) = +$20,000. If you had also bought 5,000 bbl at $71 today, volume attribution adds (15,000 − 10,000) × 72 = +$36,000 from the new volume (convention may use trade price for new trades). Total ΔPnL ≈ price effect + volume effect + any FX/cost.
Flat price
Pos × ΔPrice
Volume
ΔPos × Price
FX
Rate move on notional
Cost
Fees, carry, storage
Traders Risk Control
P&L decomposition (formulas)
1Price: Positionprior × (Pricetoday − Priceprior)
2Volume: (Positiontoday − Positionprior) × Pricetoday (or avg price)
3FX: Revalue in reporting CCY; Δ from rate move
4Cost: Fees, carry, storage, financing
5New trades: PnL of deals done in the period
6Other: Unexplained residual (keep small)
ΔTotal PnL ≈ Price + Volume + FX + Cost + New trades + Other
Chapter 07 — The report
07
The report

Position PnL
report

The position PnL report ties everything together: it shows positions (often by book, product, period), their mark-to-market value, and the PnL — both unrealized and realized — with attribution so you can see what drove the change.

It is usually produced as part of the end-of-day run and lands on desks in the morning.

Traders use it to check their risk and PnL; risk and control use it for limits and reconciliation. Correct prices and trade data are critical.

Contains
Position, MtM, PnL
Attribution
Flat, new, amend, etc.
When
After EoD, morning
Sliced by
Book, product, period
Wrong position PnL undermines trust and leads to wrong hedging and risk decisions. Data quality (trades, prices, curves) and a robust EoD process are key.
What you typically see
BookProductPeriodPositionMtMUnrealized PnLRealized PnLFlat priceNew tradesOther
07b
Risk

Position, PnL and
risk metrics

Position and mark-to-market PnL are direct inputs into risk reports. Two of the most common risk metrics that depend on them are Value-at-Risk (VaR) and limit utilisation.

VaR estimates how much you could lose over a given horizon (e.g. one day) at a given confidence level (e.g. 95%). It uses your positions, volatilities, and correlations — flowing from positions → MtM → sensitivities → VaR. Breaches of VaR limits trigger escalation.

Limit utilisation shows how much of your position or exposure limit you have used (e.g. position vs max allowed per book, product, or counterparty).

Position and PnL reports feed into these checks so that risk and control can see when limits are approached or breached.

For a deeper dive on VaR methodology and examples, see the Historical VaR visual. For a broader view of risks in energy and commodity trading (market, credit, operational), see Risks in energy & commodity trading.
VaR
Position → potential loss
Limits
Position vs max allowed
Inputs
Positions, MtM, curves
Output
Risk report, escalation
How position & PnL feed risk
1Trades → positions (by book, product, period)
2Positions × prices → MtM and PnL
3Positions + volatilities/correlations → VaR
4Position vs limit → limit utilisation %
5Risk report: VaR, limits, breaches
VaRLimit utilisationStress testSensitivities
Chapter 08 — Try it
08
Try it

Full flow:
Position → MtM → PnL

Use the panel on the right to play with numbers. Change buys and sells to see the position; then see how that position is valued at market (MtM) and how a single-trade PnL works with buy vs sell.

All three concepts use the same inputs in a real system: trades build positions, positions are marked to market, and PnL is derived from trade price vs market price and quantity.

Recap: Position → MtM → PnL
Buys
Sells
Position40,000
Market $
MtM$2,880,000
Position = Buys − Sells; MtM = |Position| × Price