Skip to content
Trading Articles

What is CFD trading and how does it work?

A contract for difference lets you trade on the price of a share, index, currency or commodity without owning it. This guide walks through a long and a short trade step by step, shows what leverage does to your account, and explains why most retail CFD accounts lose money.

Written by Updated 7 min read

A bare concrete atrium with a staircase climbing towards a skylight

CFD stands for contract for difference. It is a derivative: an agreement between you and a provider to exchange the difference in an asset's price between the time you open a trade and the time you close it. You do not buy the share, barrel of oil or currency itself. You only trade its price movement, in either direction, usually with borrowed exposure known as leverage.

CFDs are offered on shares, stock indices, currency pairs, commodities and, at some providers, cryptocurrencies. They are popular for short-term trading because they are easy to open and close and allow you to bet on falling prices as well as rising ones. They are also complex, leveraged products, and most retail accounts that trade them lose money.

How a CFD works

Every CFD trade has two prices: a lower sell price (the bid) and a higher buy price (the ask). The gap between them is the spread, and it is the first cost you pay. You then choose a direction:

  • Going long (buying) means you expect the price to rise. You open at the ask and close at the bid.
  • Going short (selling) means you expect the price to fall. You open at the bid and close at the ask.

Your profit or loss is the difference between the opening and closing price multiplied by the number of contracts. To open the position you deposit only a fraction of its value as margin. The provider effectively lends you the rest, and charges you for it if you keep the position open overnight.

A worked example

The figures below are made up to show the arithmetic. They are not current prices or the terms of any provider.

A share trades at a bid of $49.95 and an ask of $50.05. You want exposure to 100 shares. For retail clients in the EU and UK the maximum leverage on single shares is 5:1, so the margin is 20% of the position value.

Long trade

  • You buy 100 CFDs at the ask of $50.05. Position value: $5,005.
  • Margin required at 20%: $1,001.
  • You hold the position for five nights. With an assumed financing rate of 7% a year, the cost is about $0.96 a night, so roughly $4.80 in total.
Outcome Closing bid Price result After financing Change on your $1,001 margin
Price rises about 6% $53.00 +$295 about +$290 about +29%
Price falls about 6% $47.00 −$305 about −$310 about −31%

A 6% move in the share produced a gain or loss of around 30% on the money you put up. That is leverage at 5:1. Note also that the loss is larger than the gain for the same size of move, because you paid the spread on the way in and on the way out.

Short trade

Now suppose you expect the share to fall. You sell 100 CFDs at the bid of $49.95, again with $999 of margin.

  • If the price falls and you buy back at an ask of $47.05, you make ($49.95 − $47.05) × 100 = $290, before financing.
  • If the price rises and you buy back at an ask of $53.05, you lose ($53.05 − $49.95) × 100 = $310, before financing.

Short positions on share CFDs are usually charged overnight financing too, although the rate differs from long positions and can depend on interest rates and how hard the share is to borrow. A short position also has no natural ceiling on its loss, because a price can keep rising. Read more in our guide to short selling.

Leverage, margin calls and close-out

Leverage is expressed as a ratio such as 5:1 or 30:1. It tells you how large a position you can open for each unit of margin. In the EU, rules set by the European Securities and Markets Authority (ESMA) cap leverage for retail clients at:

Underlying asset Maximum leverage Minimum margin
Major currency pairs 30:1 3.33%
Non-major currency pairs, gold, major stock indices 20:1 5%
Commodities other than gold, non-major stock indices 10:1 10%
Individual shares and other underlyings 5:1 20%
Cryptocurrencies 2:1 50%

The UK's Financial Conduct Authority makes its own CFD restrictions permanent and sets leverage limits in the same range, from 30:1 down to 2:1. The main differences are that the FCA allows up to 30:1 on CFDs on certain government bonds, where ESMA's limit is 5:1, and that UK retail clients cannot trade crypto derivatives at all. Professional clients can get higher leverage but lose some of the protections described here. The limits above come from ESMA's announcement.

As prices move against you, the equity in your account falls. When it drops below a level set by the provider, you receive a margin call: a warning that you need to add money or reduce your positions. For retail clients, ESMA rules also require the provider to close one or more positions once your equity falls to 50% of the margin required for your open CFDs. In the long trade above, if the account held only the $1,001 margin, a fall of about $5 per share (around 10%) would bring equity down to roughly $500 and trigger a close-out. In a fast market the position may be closed at a worse price than that.

Retail clients in the EU and UK also have negative balance protection. You cannot lose more than the money in your CFD account, but you can lose all of it. Our articles on leverage trading and margin trading go into more detail, and the forex margin calculator lets you check the margin for your own figures.

What CFD trading costs

  • Spread. The difference between bid and ask, paid every time you open and close.
  • Commission. Some providers charge a commission on share CFDs instead of, or as well as, a wider spread.
  • Overnight financing. A daily charge on positions held past the end of the trading day, usually a benchmark interest rate plus the provider's markup. On positions held for weeks or months it can exceed the spread.
  • Currency conversion. If the asset is priced in a different currency from your account, gains, losses and charges are converted, often with a fee.
  • Other charges. These may include fees for guaranteed stop-loss orders, market data or inactive accounts.

Providers must publish these charges. Comparing them before you trade matters more than most beginners expect, because costs are paid whether a trade wins or loses.

The risks of CFD trading

ESMA requires every CFD provider to show retail clients a standard risk warning that states the percentage of its retail accounts that lost money. When ESMA introduced its rules in 2018, national regulators had found that between 74% and 89% of retail CFD accounts typically lost money. The main reasons are:

  • leverage turns small price moves into large changes in your account;
  • prices can gap overnight or around news, so stop-loss orders may be filled at a worse level;
  • costs reduce every result, and financing makes CFDs expensive to hold for long periods;
  • you trade against or through the provider, so its pricing, execution and financial health matter;
  • quick, easy trading on a phone encourages frequent decisions made under pressure.

A CFD also gives you none of the rights of owning the asset. You cannot vote at a shareholder meeting, and dividends on share CFDs are paid or charged as cash adjustments rather than received as an owner.

Where CFDs are and are not available

CFDs are offered to retail clients in the EU, the UK, Australia and many other countries, each with its own rules. They are generally not available to retail clients in the United States: US law treats them as swaps, which retail investors may only trade on a registered exchange, and CFDs are traded over the counter. The SEC's Investor.gov glossary has a short explanation. Some EU countries go further: Belgium, for example, has restricted the sale and marketing of leveraged CFDs to retail clients since 2016.

CFDs compared with buying the asset

Share CFD Buying the share
Ownership No Yes
Money needed to open Margin only (20% for retail in the EU and UK) Full price
Can profit from falling prices Yes, by going short No, unless you use other products
Overnight financing Yes No
Maximum loss (retail, EU and UK) The account balance The amount invested
Suited to Short-term trading by experienced traders Short- and long-term investing

Before you consider trading CFDs

  • Check that the provider is authorised by a regulator such as the FCA, CySEC or BaFin. Our guide on how to choose a broker explains what to look for.
  • Read the provider's key information document, which shows costs and example scenarios, and its published percentage of losing retail accounts.
  • Practise on a demo account first. Demo trading shows how the platform works, but it does not reproduce the pressure of risking real money.
  • Decide in advance how much you can afford to lose, and size your positions so that a single trade cannot wipe out the account.

CFDs can be a flexible way to trade price movements in both directions, but that flexibility comes from leverage, and leverage works against you just as quickly as it works for you.

Frequently asked questions

What is a CFD in simple terms?

A CFD, or contract for difference, is an agreement with a provider to exchange the change in an asset's price between the moment you open the trade and the moment you close it. You never own the asset. If the price moves your way you receive the difference, and if it moves against you, you pay it.

Can you lose more than you invest with CFDs?

Retail clients in the EU and UK have negative balance protection, so their losses are limited to the money in the trading account. You can still lose that whole balance quickly, and professional clients or clients of providers outside these rules may owe more than they deposited.

Why do most people lose money trading CFDs?

Leverage magnifies small price moves, costs such as spreads and overnight financing add up, and short-term price movements are hard to predict. Regulators in Europe found that roughly 74% to 89% of retail CFD accounts lose money, and providers must publish their own figure in a risk warning.

Are CFDs legal in the United States?

CFDs are generally not available to retail clients in the United States. US rules treat them as swaps, which retail investors may only trade on a registered exchange, and CFDs are traded over the counter.

What is the difference between a CFD and buying shares?

When you buy a share you own part of the company, pay the full price and can hold it without financing costs. With a share CFD you only put down margin, can go long or short, pay financing for overnight positions and have no ownership or voting rights.

Written by

Published Updated

General information, not investment advice. Risk disclosure.