English edition
QTFX.NET

The gold, forex & index CFD desk for the QTFX Markets app

Markets

What Is CFD Trading? How Contracts for Difference Work

CFD trading lets you speculate on the price of gold, currencies, shares, indices or oil without ever owning the asset itself. A contract for difference simply settles the change in price between when you open and close the position. This page explains what CFD trading is, how the maths works, what it costs and why leverage cuts both ways.

Updated: 5 min readQTFX Desk
CFD trading concept: green and red arrows showing long and short positions
CFD trading concept: green and red arrows showing long and short positions

Key takeaways

  • A CFD is an agreement to exchange the difference in an asset’s price between opening and closing a trade.
  • You can go long to profit from rising prices or short to profit from falling prices.
  • Profit or loss equals the price change multiplied by your position size, minus trading costs.
  • Costs include the spread, overnight financing on positions held past the daily cut-off and sometimes commission.
  • CFDs use leverage, which magnifies losses as much as gains.

01What Is CFD Trading? The Core Idea

Imagine you and a counterparty agree on a simple deal: if the price of an asset goes up after you open the agreement, they pay you the difference; if it goes down, you pay them. That is essentially a contract for difference, and it is the whole basis of CFD trading. No shares, ounces of gold or barrels of oil change hands. Only cash settles the price movement.

Because you never take delivery, CFDs make it practical to trade markets that would otherwise be awkward for individuals, such as stock indices or crude oil. It also means you have none of the rights of ownership, such as voting on company resolutions or holding physical metal you can collect.

02How Profit and Loss Is Calculated

The formula in plain words is: (closing price − opening price) × position size for a long trade, with the sign reversed for a short trade. Trading costs are then subtracted.

Hypothetical example: a long index CFD

All numbers are invented for illustration. You buy 2 contracts on a US index at 18,000, where each contract is worth $1 per index point. The index climbs to 18,150. Your gross profit is (18,150 − 18,000) × 2 × $1 = $300.

Hypothetical example: a short share CFD

You sell 50 share CFDs on a company at $120, expecting weak earnings. The share price rises to $126 instead. Your loss is (126 − 120) × 50 = $300. Being short means rising prices work against you.

The same logic applies to every market. For gold, the size is measured in ounces; for currencies, in units of the base currency, which our lot size and pip calculator converts for you.

Buy and sell panel with green and red buttons above a candlestick chart
Buy and sell panel with green and red buttons above a candlestick chart

03Going Long and Going Short

One of the main attractions of CFD trading is the ability to trade in either direction with the same tools:

  • Long (buy): used when you expect the price to rise. You buy at the ask price and later sell at the bid.
  • Short (sell): used when you expect the price to fall. You sell at the bid and later buy back at the ask.

Short selling can also be used to hedge. A long-term holder of physical gold, for instance, might open a short gold CFD to offset a temporary price dip, although this adds its own costs and complexity. For a full walkthrough of gold specifically, see our guide on how to trade gold.

See exactly how a CFD position gains or loses value with virtual funds: download QTFX Markets on Google Play and practise on a demo account first.

Get it on Google Play

04Leverage: Why It Magnifies Both Sides

CFDs are traded on margin, meaning you deposit only a fraction of the position’s full value. That fraction is set by the leverage available, which depends on the instrument, the provider and the rules in your region.

Hypothetical example: with a 5% margin requirement, a $10,000 position needs $500 of margin. A 2% move in your favour earns $200, which is 40% of the margin. A 2% move against you loses the same $200, or 40% of the margin. If the market keeps moving against you, the losses grow while the margin stays the same.

This is why leverage is best thought of as a risk multiplier rather than a source of extra buying power. Read our guides to leverage in trading and margin and margin calls before opening any leveraged position. CFDs are complex instruments and carry a high risk of rapid losses; losses can exceed what you expect, so only trade money you can afford to lose.

05What CFD Trading Costs

  • Spread: the difference between the bid and ask. You effectively start every trade slightly negative by this amount.
  • Overnight financing (swap): a charge or, occasionally, a credit applied when a position is held past the daily cut-off, reflecting the cost of the leveraged exposure.
  • Commission: some account types or instruments, such as share CFDs, may charge a commission per trade.
  • Slippage: in fast markets, an order can fill at a different price from the one requested.

None of these CFD trading costs is fixed across all providers, so check them on the instrument screen before trading. Our article on spread and swap costs shows how to estimate their impact on a trade.

Two arrows racing in opposite directions, like rising and falling price bets
Two arrows racing in opposite directions, like rising and falling price bets

06CFDs vs Owning the Asset

FeatureCFDOwning the asset
OwnershipNo ownership; cash-settled price exposureDirect ownership of shares, metal or units
DirectionLong or shortMainly long
Capital requiredMargin, a fraction of position valueUsually full value
Holding costsOvernight financing on leveraged positionsStorage, custody or account fees, depending on asset
Dividends and rightsDividend adjustments may apply; no voting rightsDividends and shareholder rights
Best suited toShorter-term speculation and hedgingLonger-term investing

Neither is “better”; they serve different purposes. Many people invest for the long term through ownership and use CFDs, if at all, for short-term views with small sizes.

07Trying CFDs Without Real Money

The QTFX Markets app offers CFDs on gold, forex, stocks, indices and commodities, with demo accounts for practice. On demo you can place market, limit and stop orders, attach risk-management levels and watch real-time profit and loss change as prices move, all with virtual funds. It is the clearest way to feel how a leveraged position behaves before committing money. Product availability varies by region and local law, so check what applies where you live.

Questions readers ask

What does CFD stand for?

CFD stands for contract for difference. It is an agreement between a trader and a provider to exchange the difference in an asset’s price from the moment a position is opened to the moment it is closed. The trader never owns the underlying asset, and settlement is made in cash rather than by delivering shares or commodities.

Is CFD trading the same as investing?

Not quite. Investing usually means buying and owning an asset for the long term, collecting dividends or benefiting from growth. CFD trading is speculation on price changes, often over shorter periods, using leverage. Because leveraged positions incur overnight costs and can lose money quickly, CFDs are generally less suited to long-term buy-and-hold strategies.

Can I lose more than my deposit with CFDs?

Leverage means a modest price move can produce losses that are large relative to your margin. In fast markets or price gaps, stop orders may fill at worse prices than expected. Whether your account balance can fall below zero depends on the protections that apply in your region and account terms, so check them carefully before trading.

Why are CFDs restricted in some countries?

Regulators in some jurisdictions restrict or ban CFDs for retail clients because leverage and complexity can lead to rapid losses. Rules may limit leverage, require risk warnings or prohibit certain products entirely. That is why available instruments and conditions vary by region. Always confirm that CFD trading is legal for you before opening an account.