Skip to content
Menu

CFD Trading: How Contracts for Difference Work

By Chad Smith, Director of Research & Analysis · Updated

On this page
  1. How a CFD works
  2. What you can trade with CFDs
  3. Cash CFDs and futures-based CFDs
  4. Long and short
  5. Leverage and margin
  6. CFD costs
  7. Regulation and client protection
  8. Counterparty and execution risk
  9. CFDs compared with other products
  10. Trading strategies with CFDs
  11. Risk management with CFDs
  12. How CFD prices are set
  13. Dividends and corporate actions on CFDs
  14. Crypto CFDs
  15. A complete CFD trade
  16. Contract specifications to check
  17. Platforms for CFD trading
  18. Choosing a CFD broker
  19. Tax and record keeping
  20. Psychology and leveraged products
  21. Getting started with CFDs
  22. Common CFD mistakes
  23. Key takeaways

CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. Only trade with money you can afford to lose.

A CFD (contract for difference) is a leveraged contract with a broker that pays out the difference in an asset's price between when you open and close the trade. CFDs let you go long or short on currencies, indices, shares, commodities and more without owning the asset. They are flexible and widely available outside the US, but leverage, financing costs and counterparty risk make them high risk. This guide explains how CFDs work, what they cost, how they are regulated, and how to trade them with controlled risk.

How a CFD works

When you open a CFD, you agree with your broker to exchange the change in an asset's price. If you buy (go long) and the price rises, the broker pays you the difference. If it falls, you pay the broker. If you sell (go short), the reverse applies.

Example: 100 shares at 50 = a 5,000 positionOwn the shareShare CFDMoney up front5,000, full price1,000 margin (5:1)You own the shareYesNo, a contractDividendsPaid to youCash adjustmentVoting rightsYesNoCan go shortNot usuallyYesOvernight costNoneDaily financingLoss can reach5,000 at mostMore than margin
A share CFD tracks the price with a fraction of the money up front, but you never own the share, you pay financing to hold it, and losses can exceed your margin.

Example: You buy 10 CFDs on a share at USD 100. The price rises to USD 106 and you close. Your profit is 10 × USD 6 = USD 60, minus costs. If the price had fallen to USD 96, your loss would be USD 40, plus costs.

You never own the share, so you have no voting rights. For long positions, the broker typically credits an adjustment equal to dividends paid; for short positions, it debits one.

CFDs are over-the-counter (OTC) contracts. The broker is your counterparty, not an exchange. This is why the broker's regulation, financial strength and execution policy matter so much.

What you can trade with CFDs

CFDs are available on most liquid markets:

Asset classExamplesNotes
ForexEUR/USD, GBP/JPYOften the tightest spreads
Stock indicesUS 500, Germany 40, UK 100Popular for day trading
SharesLarge US, UK and European companiesDividend adjustments apply
CommoditiesGold, silver, oil, natural gasSome based on futures prices
BondsGovernment bond futuresLess common at retail brokers
ETFsIndex and sector fundsRange varies by broker
CryptoBitcoin, EtherBanned for retail clients in the UK

Some brokers also offer synthetic indices, which are generated by an algorithm rather than tracking a real market. These behave very differently and carry their own risks.

Cash CFDs and futures-based CFDs

CFDs on indices and commodities come in two forms. Cash (or spot) CFDs track the current price and roll over each night with a financing charge. Futures-based (or forward) CFDs track a futures contract with a fixed expiry date. The financing cost is built into the price rather than charged nightly, but spreads are often wider.

Cash CFDs usually suit short-term trades. Futures-based CFDs can be cheaper for positions held for weeks. Check which type your broker offers on each market. See forward and futures in the glossary.

Long and short

One of the main appeals of CFDs is that going short is as simple as going long. You do not need to borrow shares or find a lender, as you would in a traditional short sale.

ProfitLoss0Long (buy)Short (sell)+50 USD−50 USD+50 USD−50 USD1.09501.1000 entry1.1050Example: 1 mini lot EUR/USD
A long (buy) trade gains when price rises and a short (sell) trade gains when it falls, by the same amount per pip.

This flexibility allows:

  • Profiting from falling prices.
  • Hedging an existing portfolio, for example by shorting an index CFD to offset a fall in a share portfolio.
  • Trading both directions within a range.

Short CFDs on shares may be restricted when a share is hard to borrow, and the financing on short positions can be positive or negative depending on interest rates and the broker's markup.

Leverage and margin

CFDs are leveraged. You deposit a fraction of the position value as margin, and the broker effectively lends the rest. Margin is usually expressed as a percentage: a 5% margin requirement equals 20:1 leverage.

Example: You want exposure of USD 20,000 to a stock index. With a 5% margin requirement, you need USD 1,000 of margin. A 2% move in the index changes your position value by USD 400, which is 40% of the margin.

Leverage magnifies both gains and losses relative to your deposit. That is why regulators restrict it for retail clients. In the UK and the European Union, ESMA leverage limits cap retail leverage at 30:1 on major currency pairs, with lower limits on indices, commodities and shares, and lower still on cryptocurrencies. Australia applies similar limits.

Key terms to know:

Read our leverage explained guide and the lesson Leverage risk. The margin calculator shows the margin for any position.

CFD costs

CFD costs come from several places. The total depends on the asset, the account type and how long you hold.

Spread. The gap between the buy and sell price. Most CFDs have the cost built into the spread. See spread.

Commission. Share CFDs often carry a commission based on trade value. Some forex accounts charge a commission with raw spreads.

Overnight financing. Holding a cash CFD past the daily cut-off incurs a financing charge, based on a benchmark interest rate plus or minus the broker's markup. Long positions usually pay; short positions may pay or receive. See swap and our guide to swap and overnight fees.

Other fees. Currency conversion on trades in a different currency, guaranteed stop premiums, market data fees for some share CFDs, and inactivity fees.

Example: You hold a USD 10,000 long index CFD for 20 nights. The annual financing rate is the benchmark rate plus 2.5%; assume the total is 7.5% a year. The cost is about USD 10,000 × 7.5% × 20/365 ≈ USD 41, plus the spread.

Use the cost of trade calculator and the swap calculator to estimate costs. Our guide to spreads and commissions explains each charge.

Regulation and client protection

CFDs are regulated as financial instruments in most major jurisdictions. Strong regulators impose rules that protect retail clients:

  • Leverage limits for retail clients.
  • Negative balance protection, so you cannot lose more than your account balance.
  • Margin close-out rules, closing positions when equity falls to a set share of required margin.
  • Standard risk warnings, including the share of retail accounts that lose money.
  • Bans or limits on bonuses and incentives.
  • Segregated funds, keeping client money separate from the broker's own money.
  • Compensation schemes if the broker fails, such as the UK FSCS, which protects up to GBP 85,000.

Regulators to look for include the FCA, ASIC, CySEC, BaFin and MAS. Offshore entities often offer higher leverage but fewer protections. Read forex broker regulation explained, offshore vs regulated brokers and negative balance protection and compensation.

Retail and professional clients

Some brokers offer professional client status to traders who meet criteria on trading activity, portfolio size or industry experience. Professional clients can access higher leverage but lose some retail protections, which may include negative balance protection and access to compensation schemes. Most traders should remain retail clients unless they fully understand the trade-off.

Where CFDs are restricted

CFDs are not available to retail traders in the United States. Some countries restrict specific products, such as crypto CFDs for retail clients in the UK. In other places, rules may limit marketing rather than the product itself. Check what applies in your country before opening an account.

Counterparty and execution risk

Because a CFD is a contract with your broker, you rely on the broker to honor it. That brings counterparty risk: if the broker fails, your money depends on segregation rules and any compensation scheme.

There is also execution risk. Your broker decides how to fill orders. A market maker may take the other side of your trade, while an STP or ECN broker may pass it to liquidity providers. Many brokers use a mix, sometimes described as A-book and B-book. Read ECN vs market maker to understand the differences.

CFDs compared with other products

FeatureCFDReal sharesFuturesSpread bet
OwnershipNoYesNoNo
LeverageYesNo (unless margin)YesYes
Short sellingEasyRestrictedEasyEasy
ExpiryUsually noneNoneFixedUsually none
Overnight costFinancingNoneBuilt into priceFinancing
CounterpartyBrokerExchange and custodianExchange clearing houseBroker

CFDs suit short-term trading and hedging. Real shares usually suit long-term investing. Futures offer exchange clearing and transparent pricing but require larger contract sizes in many markets. Spread betting is similar to CFDs but is priced per point and mainly available in the UK and Ireland.

Read our stock trading guide for real shares and our forex trading guide for currencies.

Trading strategies with CFDs

CFDs are a product, not a strategy. Any trading style can use them:

  • Day trading on index and forex CFDs, closing before the financing cut-off.
  • Swing trading on shares, indices and commodities, accepting financing for a few days.
  • Scalping on the most liquid CFDs with the tightest spreads.
  • Hedging a long-term portfolio with short index CFDs during uncertain periods.
  • Event trading around earnings, central bank decisions or economic data, with careful sizing.

For analysis, use the same tools as in any market. Our technical analysis guide and fundamental analysis guide cover them. Reference pages for indicators, candlestick patterns and chart patterns apply to CFDs as they do to the underlying markets.

Hedging example

Example: An investor holds a USD 50,000 portfolio of US shares and expects a volatile month. Rather than selling the shares, they short a US 500 index CFD worth USD 25,000. If the market falls 5%, the portfolio loses about USD 2,500 and the short CFD gains about USD 1,250, halving the loss. If the market rises, the CFD loses and offsets part of the gain. The financing and spread are the cost of this insurance.

A hedge only works if the portfolio moves in line with the index. A portfolio of a few shares may not.

Risk management with CFDs

Risk control is essential with leveraged products. The core rules are:

  1. Size positions from your stop, not from your margin. Risk a small, fixed share of the account per trade. See Position sizing and the position size calculator.
  2. Use a stop-loss on every trade. Remember that ordinary stops can slip in gaps. A guaranteed stop-loss, where available, fills at your price for a premium.
  3. Know the contract specification. Contract size, minimum trade, margin rate, trading hours and financing differ between CFDs.
  4. Watch total exposure. Several positions on related markets, such as three US tech shares and a Nasdaq index CFD, can act as one large position. See Correlation.
  5. Keep a margin buffer. Avoid using most of your free margin, so normal swings do not trigger a margin call.
  6. Plan around gaps. Earnings, weekends and major news can move prices past your stop.

Example: A USD 8,000 account risks 1%, or USD 80. You want to buy a share CFD at USD 40 with a stop at USD 38. Risk per share is USD 2, so you buy 40 CFDs, worth USD 1,600. At a 20% margin rate for shares, that uses USD 320 of margin.

Our risk management guide and Risk Management course explain each principle, including drawdown and risk of ruin.

How CFD prices are set

A CFD price is derived from the underlying market, but the broker sets the final quote you trade on. For share and index CFDs, the broker usually takes the exchange price or the futures price and adds its spread. For forex CFDs, it takes prices from its liquidity providers and may add a markup. For cash index CFDs, the broker often calculates a fair value from the futures price, adjusted for interest and expected dividends.

This means two brokers can quote slightly different prices for the same CFD at the same moment. The differences are usually small in liquid hours but can grow when the underlying market is closed. Many brokers quote index CFDs outside the cash session, based on futures prices, and some quote share CFDs only during exchange hours.

Out-of-hours pricing is useful, but it carries risks. Spreads are often wider, liquidity is lower, and prices can move sharply on news when the main market is closed.

Dividends and corporate actions on CFDs

Share and index CFDs are adjusted for dividends so that holding a CFD mirrors holding the asset. On the ex-dividend date, the share price usually falls by about the dividend. To offset this, long positions receive a cash adjustment, and short positions pay one. The adjustment may be less than the gross dividend for long positions, reflecting withholding tax.

Other corporate actions, such as stock splits, rights issues, mergers and special dividends, are also adjusted. Brokers usually describe their approach in a corporate actions policy. In some cases, such as a takeover or a delisting, the broker may close positions at a set price. If you hold share CFDs for more than a few days, it is worth reading that policy.

Crypto CFDs

Some brokers offer crypto CFDs on assets such as Bitcoin and Ether. They let you go long or short without holding a wallet. They are also among the riskiest CFDs: prices can move very sharply, trading continues on weekends, and financing rates are often higher than on other assets.

Regulators treat crypto CFDs differently. In the UK, they cannot be sold to retail clients. Under ESMA rules, retail leverage on crypto CFDs is capped at 2:1. Offshore brokers may offer much more, which greatly increases the risk of rapid losses.

A complete CFD trade

The following example is illustrative.

A trader with a USD 6,000 account expects a stock index to rise after a pullback to support. The index CFD is quoted at 7,480 / 7,481. One CFD equals USD 1 per index point. The trader's plan risks 1%, or USD 60, with a stop 40 points below entry. Position size is USD 60 ÷ 40 points = 1.5 CFDs, so the trader buys 1.5 at 7,481.

At a 5% margin rate, the position needs about 7,481 × 1.5 × 5% ≈ USD 561 of margin. The trader holds the position for three nights. Each night, the broker charges financing at the benchmark rate plus its markup, adding up to a few dollars. The index rises to 7,561 and the trader closes at the bid. The gain is 80 points × 1.5 = USD 120, minus the spread already paid and the financing.

The trader records the result in R: a gain of about 2R before costs, slightly less after. That figure goes into the journal alongside the setup and the chart.

Contract specifications to check

Before trading any CFD, check its specification on the broker's website or platform:

  • Contract size: what one unit or lot represents.
  • Minimum and maximum trade size.
  • Margin rate: retail and professional, if applicable.
  • Trading hours: including breaks and holiday schedules.
  • Financing rate: long and short, and the daily cut-off time.
  • Expiry and rollover: for futures-based CFDs.
  • Dividend treatment: for share and index CFDs.
  • Guaranteed stop availability and cost.

These details vary between brokers for the same underlying market. A contract size mistake can turn a planned small position into a large one.

Platforms for CFD trading

CFD brokers offer a range of platforms:

  • MetaTrader 4 and MetaTrader 5: widely used for forex and index CFDs, with automated trading.
  • cTrader: a multi-asset platform with depth of market and advanced order types.
  • TradingView: charting with direct trading at many brokers.
  • Proprietary platforms: many large CFD brokers build their own, often with a wider share range.

The Trading Platforms course covers each one. Our guides to MetaTrader 4 vs MetaTrader 5 and cTrader vs MetaTrader compare them.

Choosing a CFD broker

Choose a CFD broker on regulation first, then costs, products and platform. Key checks:

  1. Regulation: a strong regulator and the specific entity you will be with.
  2. Protections: negative balance protection, segregated funds and compensation schemes.
  3. Product range: the CFDs you want, including share coverage and crypto rules in your country.
  4. Costs: spreads, commissions and financing on your main markets.
  5. Execution: the order execution policy and how slippage is handled.
  6. Platform: charting, order types and mobile access.
  7. Funding: deposit and withdrawal methods and fees. See deposits and withdrawals.

Browse the forex and CFD broker directory, lists such as brokers for beginners, or use the comparison tool. Our guide on how to choose a forex broker applies to CFD brokers too.

Tax and record keeping

CFD profits are taxable in most countries, but the treatment varies. They may be taxed as capital gains, as income, or under special rules for derivatives. In some countries, losses can be set against other gains; in others they cannot. In the UK, spread betting is treated differently from CFDs for tax, which is one reason both products exist there.

Whatever the rules, keep complete records: every trade, the financing charged or received, dividend adjustments, commissions and currency conversions. Most brokers provide annual statements, but they may not match the format your tax authority needs. Our trading journal guide suggests a format that also helps at tax time. For anything beyond the basics, ask a qualified tax adviser in your country.

Psychology and leveraged products

Leverage makes every price move feel larger, which amplifies emotional reactions. A position that moves a fraction of a percent can show a meaningful gain or loss on screen within minutes. That encourages checking positions constantly, closing winners too early and holding losers in the hope they recover.

The fix is structural: decide size, stop and target before you enter, and judge your trading by whether you followed the plan. The Trading Psychology course covers the most common traps, including loss aversion and fear and greed.

Getting started with CFDs

  1. Learn how leverage and margin work through the Forex Basics course, especially Leverage and margin.
  2. Read the Risk Management course.
  3. Practice on a demo account, including holding positions overnight to see financing.
  4. Write a trading plan with risk limits.
  5. Choose a regulated broker and open an account.
  6. Start with small positions on one or two markets.
  7. Keep a trading journal.

Common CFD mistakes

  • Sizing positions by available margin instead of by risk.
  • Forgetting financing costs on positions held for weeks.
  • Confusing contract sizes between brokers or instruments.
  • Holding share CFDs through earnings without planning for gaps.
  • Trading with an offshore entity without realizing protections are weaker.
  • Using maximum leverage because it is available.

Key takeaways

  • A CFD pays the difference in an asset's price; you never own the asset.
  • CFDs make going long and short equally simple across many markets.
  • Leverage magnifies gains and losses; regulators cap it for retail clients.
  • Costs include spread, commission, overnight financing and conversion fees.
  • The broker is your counterparty, so regulation and protections matter.
  • Size every position from your stop and check each contract's specification.

Where to practice this

Put this into practice on a demo account first, with no money at risk.

Frequently asked questions

What is a CFD?

A CFD, or contract for difference, is an agreement with a broker to exchange the difference in an asset's price between opening and closing the trade. You never own the underlying asset, but you gain or lose as if you held a position in it.

Can you lose more than you invest with CFDs?

With retail clients of brokers in the UK, EU and Australia, negative balance protection means you cannot lose more than your account balance. Elsewhere, losses beyond your deposit may be possible.

Are CFDs legal in the United States?

No. CFDs are not available to retail traders in the US. US residents trade similar exposure through regulated futures, options or margin accounts instead.

Why do most CFD accounts lose money?

Leverage magnifies losses, costs add up on frequent trades, and many traders lack a tested plan and risk limits. Regulators in several regions require brokers to publish the share of retail accounts that lose money.

Do I pay tax on CFD profits?

In most countries, CFD profits are taxable, often as capital gains or income. In some places, such as the UK, spread betting is treated differently. Check local rules or ask an adviser.

What is the difference between CFDs and spread betting?

Both are leveraged derivatives that track an asset's price. CFDs are priced per contract and are widely available, while spread bets are priced per point and are mainly offered in the UK and Ireland, with different tax treatment.

What markets can I trade with CFDs?

Brokers typically offer CFDs on currency pairs, stock indices, individual shares, commodities, bonds, ETFs and sometimes cryptocurrencies. The range varies by broker and by country.