Risk warning: CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure
Education5 min read

What is CFD trading? Meaning, long and short, margin, costs and risks

CFD trading meaning in plain words: how a contract for difference works, long or short, margin, spread, commission and swap, and CFDs vs owning the asset.

Man in an office chair pointing a pen at printed price charts, with a laptop showing a chart behind him
On this page
  1. What is a CFD?
  2. How does CFD trading work? Long and short
  3. What is margin in CFD trading?
  4. What does CFD trading cost?
  5. CFD vs owning the asset
  6. What are the risks of CFD trading?
  7. Getting started
  8. FAQ

CFD trading means trading a contract for difference: an agreement with a broker to exchange the difference in an asset’s price between the moment you open the trade and the moment you close it. You never own the gold, index or share itself – you take a position on whether its price will rise or fall, with a small deposit called margin.

This guide explains how CFDs work, going long and short, how margin and leverage apply, what each trade costs, how a CFD differs from buying the asset, and the risks. Worked examples use gold and the Nasdaq 100 with Xellion’s published contract sizes; check any result with the profit calculator.

What is a CFD?

A CFD is a contract that pays the price difference of an underlying asset. If you buy and the price rises, the broker pays you the difference; if it falls, you pay it.

The profit or loss is simply: (closing price − opening price) × position size, with the sign reversed for a sell. CFDs exist on currencies, metals, indices, energy, commodities, crypto and shares – you can browse them on the markets page. The glossary entry on CFD has the short definition.

How does CFD trading work? Long and short

You can open a CFD in either direction. Buying (going long) gains if the price rises; selling (going short) gains if it falls. Shorting needs no borrowing of the asset.

TradeSizePrice moveResult
Buy gold (XAU/USD)0.10 lot = 10 oz$4,000 → $4,020+$200
Buy gold (XAU/USD)0.10 lot = 10 oz$4,000 → $3,980−$200
Sell Nasdaq 1001 lot = $1 per pointFalls 150 points+$150
Sell Nasdaq 1001 lot = $1 per pointRises 150 points−$150
Worked CFD examples with Xellion contract sizes and example prices

Prices are examples, not quotes. Contract sizes are on each market page: gold is 100 troy ounces per lot on the gold price page, and the Nasdaq 100 is one times the index in US dollars per point.

What is margin in CFD trading?

Margin is the deposit the platform sets aside while a CFD is open. It is a fraction of the position’s value set by leverage: at 1:100, a $40,000 gold position needs $400.

Your profit or loss is still worked out on the full $40,000, so a 1% move is $400 – the whole margin. Leverage magnifies losses as well as gains. Xellion offers leverage up to 1:2000, depending on account and country; our guide to leverage in forex shows the effect step by step, and the margin calculator shows the margin for any trade.

What does CFD trading cost?

Three costs apply, depending on the account and how long you hold the position.

  • Spread – the gap between buy and sell price, paid on every trade. See what the spread in forex is.
  • Commission – on Xellion’s Raw Spread ($3.50 per lot per side) and Zero Spread ($5.50 per lot per side) accounts; Standard has none.
  • Swap – an overnight financing charge or credit for positions held past the daily rollover; see swap fees in forex.

Because swap is charged every night, CFDs are usually used for shorter holding periods than buying an asset outright. Live spreads and swap rates for each instrument are shown in MT5.

CFD vs owning the asset

The key difference is ownership. A CFD gives price exposure only; owning gives you the asset, with its rights and its storage or custody.

PointCFDOwning the asset
OwnershipNo – a contract with the brokerYes – shares, coins or metal in your name
Going shortBuilt inUsually not possible for most individuals
LeverageYes – margin a fraction of valueUsually paid in full
Holding costsOvernight swapStorage, custody or demat charges
Shareholder rightsNo voting rightsVoting and other rights
Maximum lossAccount balance (with negative balance protection)The amount invested
CFDs compared with owning the underlying asset

For crypto specifically, see crypto CFDs vs owning crypto. For gold, how to trade gold online covers XAU/USD in detail.

What are the risks of CFD trading?

CFDs are high-risk products, and most of the risk comes from leverage and from holding positions through fast markets.

  • Leverage risk – a small move against a large position can remove your whole margin.
  • Gap and slippage risk – prices can jump past your stop loss after news or over a weekend.
  • Margin call and stop out – the platform can close positions automatically if equity falls too far; see margin call.
  • Counterparty risk – the contract is with the broker, so read who you are contracting with. Xellion clients contract with Xellion Ltd, incorporated in Saint Lucia; see company details.
  • Overnight costs – swaps add up on positions held for weeks.

Every Xellion account includes negative balance protection, so losses cannot exceed the money in your account – but you can still lose all of it.

Getting started

  1. Learn on a free demo: “Try a free demo” opens MT5 in your browser or the MT5 mobile app with virtual funds.
  2. Pick one market and check its contract size and hours on the markets page.
  3. Size trades with the position size calculator, then compare accounts on the accounts page and fund by UPI from $50.

FAQ

What does CFD mean in trading?

CFD stands for contract for difference: an agreement to exchange the difference in an asset’s price between opening and closing a trade, without owning the asset.

Can you lose more than you invest with CFDs?

Not on Xellion, because every account has negative balance protection, so losses cannot exceed your balance. You can still lose your whole balance.

Is forex trading a CFD?

At most online brokers, including Xellion, retail forex trades on MT5 are CFDs: you trade the price difference of a currency pair rather than exchanging the currencies.

What costs do CFDs have?

The spread on every trade, a commission on some account types, and an overnight swap charge or credit on positions held past the daily rollover.

Do I own the shares or gold with a CFD?

No. A CFD gives exposure to the price only. You do not own the shares, gold or coins and have no shareholder voting rights.

Can you go short with CFDs?

Yes. Selling a CFD gains if the price falls and loses if it rises, without borrowing the underlying asset.

This article is general information and education, not investment advice. CFDs are complex instruments and carry a high risk of losing money rapidly due to leverage.

Ready to put it into practice?
Open an account in minutes, or practise on a free demo first.

Risk warning: CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. You should consider whether you understand how CFDs work and whether you can afford to take the high risk of losing your money. Blog articles are general information and education, not investment advice. Risk disclosure