HomeTradingTrade CFDsCFD calculator

A CFD calculator shows how a hypothetical trade would have performed using historical prices.
Calculator settings might include:
It shows how historical price moves and trade size affected P&L, and how leverage changes margin requirements.
To use the trading calculator below, choose a market, leverage and trade size, then calculate P&L over a selected period.
Note: the Capital.com CFD trading calculator doesn’t include spreads, overnight funding or other applicable charges. These costs can reduce profits or increase losses. It also doesn’t calculate the equity-to-margin ratio, which you would need to monitor if you decide to trade CFDs.
Learn more on our fees page.
Open
Close
Past performance is not a reliable indicator of future results.
The calculator does not account for any overnight funding or spread costs applied to positions. Traders should consider the effect of such costs on potential profits. Visit our Charges and fees page for more information.
The CFD calculator is intended for trading demonstration purposes only. Pricing is based on historical data. Past performance is not a reliable indicator of future results.
Contracts for difference (CFDs) are traded on margin. Leverage amplifies both profits and losses.
The Capital.com CFD trading calculator shows the results of hypothetical trades using historical market data from the previous 30 days.
Follow these steps to use the CFD calculator:
Bear in mind that the Capital.com CFD trading calculator doesn’t include spreads, overnight funding or other charges applied to positions.
The Capital.com CFD calculator includes forex pairs, indices, commodities, shares and ETFs.
A larger quantity increases the deal size, which means the same price move can result in a larger hypothetical profit or loss, depending on its direction.
Maximum leverage varies by market and can differ by country or region.
The opening and closing dates must both fall within the previous 30 days.
The calculator shows three results: deal size, margin required and P&L.
View P&L for the selected period without working through the formulas manually. Trading charges are not included.
See how different trade size settings can affect P&L. Adjust leverage to see how it changes the required margin.
Explore how the same price move affects long and short positions differently.
If you decide to trade CFDs, you can access 5,500+ markets, 100+ technical indicators and 24/7 support from our team through Capital.com’s user-friendly, award-winning* platform.
Here’s how to get started:
Navigate easily between 5,500+ CFD markets, personalised watchlists, 100+ technical indicators and five chart formats on web and mobile.
Build your knowledge with content rated Best in Class for Education at the ForexBrokers.com 2024 Annual Awards.*
Whether it’s about payments, platform features or the markets we offer, we’re on hand to assist whenever you need it.
*Capital.com was named Best CFD Broker at the BrokerChooser Awards 2026 and Best in Class for Commissions & Fees, Ease of Use, Crypto Trading and TradingView Broker at the ForexBrokers.com 2025 Annual Awards. Figures presented relate to Capital Com Group.
A CFD calculator uses historical prices and your chosen market, trade size, leverage, direction and dates to calculate hypothetical P&L and margin. The Capital.com calculator uses market data from the previous 30 days.
A CFD calculator can help illustrate how trade size, leverage and direction affect hypothetical P&L and margin using historical prices. It’s a demonstration tool and doesn’t indicate how a future trade will perform.
Yes. The calculator can show results for long and short positions using the same historical prices. For a long position, a higher closing price results in a profit and a lower closing price results in a loss. For a short position, a lower closing price results in a profit and a higher closing price results in a loss.
The Capital.com CFD calculator applies its formulas to your inputs and historical market data. The result is hypothetical and excludes spreads, overnight funding and other applicable charges, so it may differ from the result of a live trade. Past performance is not a reliable indicator of future results.
CFD P&L depends on the difference between the opening and closing price and the traded quantity.
For a long position:
P&L = (closing price − opening price) × traded quantity
For a short position:
P&L = (opening price − closing price) × traded quantity
This is before spreads, overnight funding and other applicable charges.
Margin is the amount required to open a leveraged position. The calculator works it out by dividing the deal size by the leverage ratio. For example, a $1,000 deal size at 5:1 leverage requires $200 in margin. The calculator does not show the equity-to-margin ratio, which needs to be monitored separately while positions are open.
Leverage changes the margin required for a given trade size, but not its P&L. P&L is calculated on the full deal size. For example, increasing the leverage on the same hypothetical position reduces the margin required, while the calculated P&L remains unchanged.
The Capital.com CFD calculator includes a selection of forex pairs, indices, commodities, shares and ETFs. Examples include EUR/USD, the US 500, gold and Apple shares.
No. You can use the CFD calculator on this page without a Capital.com account.
If you want to practise trading with virtual funds, you can open a demo account.