Home › Blog

What Is a CFD? How It Works, What It Costs and the Risks

Updated 2026-12-04 · 6 min read

A CFD (contract for difference) lets you profit or lose from changes in the price of an asset, such as a share, gold or bitcoin, without ever owning it. It is traded on margin with leverage, which magnifies both gains and losses. Here is what a CFD is, what it costs and what can go wrong, with a simple worked example.

What is a CFD, in plain English?

CFD stands for contract for difference. It is an agreement between you and a broker: instead of buying the asset, the two of you exchange the difference between the price when you open the position and the price when you close it.

If the price moves in your favour, the broker pays you the difference. If it moves against you, you pay the broker. You never own the share, the gold or the index. You simply track its price.

CFDs exist on almost everything: individual shares, stock indices, currency pairs (forex), commodities such as gold and oil, and crypto assets such as bitcoin.

How does a CFD work in practice?

Three ideas are worth understanding before you open any position.

1. You can trade rising and falling prices

If you think the price will rise, you open a buy position (going long). If you think it will fall, you open a sell position (going short). That flexibility is part of the appeal, but it also makes it easy to end up on the wrong side of a move.

2. You only put down part of the value: the margin

You do not pay the full value of the position. The broker asks for a deposit, called margin. The rest of the exposure works as if it were borrowed, and that is what creates leverage.

3. Profit and loss are based on the full value

Even though you only deposit the margin, your result is calculated on the full size of the position. This is where the main risk lies: a small price move can represent a large share of the money you put in.

A simple CFD example (hypothetical numbers)

Say a share trades at €100 and you open a buy CFD equivalent to 100 shares. Your exposure is €10,000. With a 20% margin requirement (5:1 leverage), you deposit €2,000.

  • If the share rises to €105: the position is worth €10,500. You make €500, which is 25% on your €2,000 margin, before costs.
  • If the share falls to €95: the position is worth €9,500. You lose €500, also 25% of your margin.
  • If the share falls to €90: you lose €1,000, half of your deposit, from a price drop of only 10%.

Notice the gap between the price move (5% or 10%) and the effect on your account (25% or 50%). That is the essence of a CFD: it magnifies everything, up and down.

CFD vs buying the share: what is the difference?

FeatureBuying the shareCFD on the share
Do you own the asset?YesNo
Capital needed (example)€10,000€2,000 margin
Can you profit from a fall?Not easilyYes
Cost of holdingUsually only custody fees, if anyDaily overnight financing
Voting rightsYesNo
Maximum lossThe amount investedYour account balance
Typical time frameMedium to long termShort term

How much does it cost to trade CFDs?

CFD costs are not always obvious at first glance, but they add up, especially if you trade often.

  • Spread: the gap between the buy and sell price. You pay it every time you open a trade.
  • Commission: some brokers charge a fee per trade, mainly on share CFDs.
  • Overnight financing: if you hold a position past the daily cut-off, you pay (or occasionally receive) interest on the full exposure, not just on your margin.
  • Currency conversion: if the asset is priced in another currency, you may pay FX charges.

Back to the example: at a hypothetical financing rate of 7% a year on €10,000, holding costs come to about €2 a night. That sounds small, but over six months it adds up to roughly €350, more than a sixth of the margin you deposited. This is why CFDs are mostly used over short periods.

What are the risks of CFDs?

CFDs are complex products. In the European Union, brokers must display a warning showing the percentage of retail client accounts that lose money trading them, and that figure is usually high. It is worth reading carefully before you open an account.

Leverage

This is the main risk. The higher the leverage, the smaller the price move needed to wipe out a large part of your margin.

Margin close-out

If losses push your margin below a set level, the broker closes your positions automatically, often at the worst moment. The loss is then locked in, even if the price recovers later.

Price gaps

After unexpected news or at the market open, prices can jump from one level to another without trading in between. A stop loss may be filled well below where you set it.

Broker risk

A CFD is a contract with your broker, not with an exchange. It matters that the broker is authorised and supervised by a national regulator in Europe, such as the CMVM in Portugal.

Costs and overtrading

Because opening and closing trades is so easy, it is tempting to trade too much. Every trade pays the spread, and small costs can quietly eat up any gains.

What protections exist in Europe?

Since 2018, ESMA (the European Securities and Markets Authority) has set rules for CFDs sold to retail investors, which national regulators then adopted:

  • Leverage limits: from 30:1 on major currency pairs down to 2:1 on crypto assets, with levels in between for indices, gold, other commodities and individual shares (5:1).
  • Margin close-out at 50%: when your margin falls to half of the required minimum, positions are closed.
  • Negative balance protection: you cannot lose more than the money in your account.
  • A standard risk warning and a ban on bonuses used to attract clients.

These rules limit extreme losses but do not remove risk: you can still lose your whole balance. Clients who opt to be treated as professionals give up part of these protections.

Are CFDs worth it?

It depends on what you want to achieve. CFDs were designed for short-term trading, for hedging other positions or for taking a view on falling prices. They are generally not the best tool for long-term investing, because daily financing steadily eats into returns.

Before you start, answer a few questions honestly:

  • Do I know exactly how much I lose if the price moves 5% or 10% against me?
  • Is this money I can afford to lose without affecting my bills?
  • Do I have a risk plan, with a stop loss and a maximum loss per trade?
  • Is the broker authorised and supervised in the European Union?

A demo account is a good way to learn the mechanics without risking money, although watching real losses feels very different.

The same applies if you use automated trading software. Cortex Automation, for example, runs with the money kept in the client's own brokerage account, with no monthly or sign-up fee, only a profit share, and publishes its track record including the losing months. Even so, margin, leverage and costs do not go away: no algorithm removes the risks described above.

How are CFD profits taxed?

Tax treatment depends on the country where you are tax resident. In many European countries, CFD gains are taxed as capital gains or as income from derivatives, and losses can sometimes be offset against gains of the same type. In Portugal, for instance, they generally fall under category G of personal income tax at a flat 28% rate, with the option to aggregate. Rules change, so check with a qualified tax adviser.

Summary

A CFD is a contract with a broker that mirrors the price changes of an asset without you owning it. It lets you trade on margin and profit from rises or falls, but leverage magnifies both gains and losses, and financing costs build up over time. Understanding these mechanics before you start is your best protection.

This article is general information and does not constitute financial advice. Past performance does not guarantee future results.

Frequently asked questions

What is a CFD in simple terms?

A contract for difference is an agreement with a broker to exchange the difference between the opening and closing price of a position, without buying the underlying asset.

Can I lose more than I deposit with CFDs?

Retail clients in the European Union have negative balance protection, so losses are capped at the account balance. You can still lose that entire balance.

What is the maximum CFD leverage in Europe?

For retail clients it ranges from 30:1 on major currency pairs to 2:1 on crypto assets. On individual shares the limit is 5:1.

Are CFDs suitable for long-term investing?

Usually not. Holding a position overnight carries a daily financing charge that can weigh heavily on results over several months.

What is the difference between a CFD and buying shares?

When you buy shares you own them and can vote. With a CFD you only track the price, trade on margin, can go short and pay financing while the position is open.

Want to see how an automated system works, with the money in your own account? See results and simulator →

Related articles