Learn how contracts for difference work, what they cost, and the key risks.

A contract for difference, or CFD, is an agreement between you and a provider to exchange the difference in the price of an asset between the moment you open a position and the moment you close it. You never own the underlying asset itself. Instead, you take a position on whether its price will rise or fall, and your result depends on how far the price moves and in which direction.
CFDs are available on many types of market, including currency pairs (forex), stock indices, commodities such as gold or oil, and in some places cryptocurrencies. Because the same contract structure is used across all of them, a single trading account can often give access to several asset classes.
One feature that sets CFDs apart from simply buying an asset is that you can take a position in either direction:
The ability to go short is often described as an advantage, but it is worth remembering that it simply means there are two ways for a trade to go wrong, depending on which side you chose.
Imagine an index is quoted at 5,000 and you believe it will rise. You buy a CFD equal to 1 unit per point. If the index rises to 5,050 and you close the position, the difference is 50 points, so your gross result is a gain of 50 units of your account currency. If instead the index falls to 4,950 and you close, the difference is 50 points against you, so you lose 50 units. Costs such as the spread, any commission and overnight financing are then deducted from the result.
The numbers here are purely illustrative. Real contract sizes, point values and costs vary by provider and by market, so always check the contract specifications before you place a trade.
CFDs are usually traded on margin. Rather than paying the full value of the position, you deposit a fraction of it, called margin, and the provider effectively lends you the rest. This is known as leverage. It means a relatively small deposit controls a much larger position, so gains and losses are both calculated on the full position size, not on the margin you put up.
Leverage is the main reason CFDs are considered high-risk. A price move that looks small in percentage terms can produce a large change in your account balance, and losses can quickly use up the money you have deposited. Our separate guide to leverage and margin explains this in more detail.
Understanding costs is just as important as understanding price movements, because they affect every trade whether it wins or loses. The main costs to look for are:
Because a CFD tracks an underlying market, its price is driven by whatever moves that market. For currency pairs this can include interest rate decisions, inflation data and economic growth figures. Stock indices react to company earnings, economic news and investor sentiment. Commodities respond to supply and demand, inventories and geopolitical events. Prices can also gap, meaning they jump from one level to another without trading in between, often around major announcements or when markets reopen after a weekend.
CFDs are not suitable for everyone. Before trading, it helps to ask yourself a few honest questions. Do you understand exactly how a CFD works and what you would lose if the market moved against you? Are you trading with money you can genuinely afford to lose? Do you have a plan for position sizing and exits? Many traders start with a demo account, which uses simulated funds, to learn how a platform behaves before risking real money.
Rules on who can trade CFDs, and on how much leverage is allowed, differ from country to country. Check what applies in your jurisdiction before opening an account.
This article is general educational information, not investment advice or a recommendation to trade. CFDs are complex, leveraged products and you can lose your money rapidly. Past performance is not a reliable indicator of future results. Make sure you understand how CFDs work and whether you can afford the risk, and check that trading these products is permitted where you live.