Markets and instrumentsRisk & Execution

Contract for difference (CFD)

On this page

In brief

A contract that settles the difference between an opening and closing reference price. It provides price exposure without transferring ownership of the underlying asset.

How is profit and loss calculated on a CFD?

A CFD’s price-based result depends on the contract’s reference price and the direction taken. For a simulated long, multiply the closing-minus-opening difference by the units per contract and number of contracts. Reverse the price difference for a short. If P&L is in another currency, log the exchange rate and valuation timestamp.

For gold exposure, a spot holding involves an asset purchase and a CFD settles price changes with its provider. A futures contract follows exchange specifications for size, expiry and settlement. The FCA classifies CFDs as complex, high-risk derivatives. List the relevant parties and charges for each instrument before comparing a simulation.

Why record margin and exposure separately?

Suppose a simulated contract has notional exposure of 5,000 and uses 500 in opening margin. A 2% adverse move costs a long position 100, one fifth of its posted margin. The portfolio’s percentage loss also depends on total equity and other positions. When recording leverage, name the denominator.

Calculate net P&L from simulated fills and apply the modelled commission, overnight financing and any other charges. If entry and exit already use the correct ask and bid, their spread is embedded in the fills. A simulated margin close-out can determine exit timing. Keep the scenario rule and event sequence alongside the P&L.

Account for costs throughout the holding period

Costs can arise throughout a CFD position, including financing and contract-specific dividend or rollover adjustments. Record timing, direction and calculation basis from the actual terms. The teaching assumptions here are not any provider’s quoted fees.

In an invented example, a gross gain of 80 less commissions of 12 and three financing charges of 4 leaves 56. Extending the holding period can alter the outcome without a price move. Use comparable cost assumptions across strategies.

Include contract features in stress scenarios

Test an adverse jump, wider spread and higher margin requirement together. Calculate equity and required margin at each step to find when new orders are rejected or positions reduced. The event sequence affects the fills.

Equal opposing positions may offset directional exposure while retaining spread, financing or other charges under the terms. Compare their net cash flow with closing the position, and identify what research purpose keeping both positions serves.

Build a contract reading card

Create a paper contract card covering provider, symbol, currency, multiplier, hours, adjustments and closeout rules. Apply the same price path to one and ten contracts to expose quantity or currency mistakes.

List unresolved conditions, such as available quotes in a shock, delay handling or dispute procedures. Preserve them as limits on the experiment. The purpose is to understand how contract rules affect results, not infer suitability from a price chart.

The GUTL perspective

Identify the contract before the chart. A CFD, spot asset and futures contract on the same underlying can differ in financing, leverage and settlement.

Everyday example

Two classmates agree to settle the change in a used bicycle’s valuation while its owner keeps the bike. This illustrates exposure versus ownership.

Simulation example

A simulated long gold CFD covers three units. A quote move from 2,300 to 2,307 produces a gross simulated gain of 21 before costs.

Which CFD costs matter alongside the price move?

CFD net results can include the bid–ask spread, commission and overnight funding. Charge timing, contract units and funding rules follow the product terms. Keep those conventions visible when comparing simulated performance.

Simulation practice

Open the chart in TradingView

Student comments

Further reading

3 articles