Key Takeaways
A CFD’s gross result comes from the price change and the size and direction of the position. The net result also depends on costs and, when needed, currency conversion.
- For a long position, compare the closing price with the opening price; for a short, reverse the difference.
- Multiply the relevant price movement by the position’s units or value per point.
- Check contract specifications so the units, multiplier, and quote currency are correct.
- Subtract applicable costs, while avoiding counting the spread twice.
- Treat margin as a requirement to hold a position, not as its profit or loss.
Understand what CFD profit and loss measures
Learning how to calculate CFD profit and loss starts with comparing the price at which a position opens with the price at which it closes. The resulting movement is applied to the position size, with the direction determining whether a rise or fall is favorable. That gives a gross figure before costs. A final net result may also depend on charges and currency conversion.
Compare the opening and closing prices
The opening price is the level at which the CFD position begins, and the closing price is the level at which it ends. The difference between them is the price movement used in the calculation. For example, if a share CFD opens at $50 and closes at $53, the market moved $3 in the position’s favor if it was long. The same move would be unfavorable to a short position.
Distinguish gross profit or loss from net results
Gross profit or loss reflects the price movement and position size before trading costs. Net profit or loss is what remains after applicable commissions, financing, and other charges are included. The distinction matters because a position can show a positive gross result but a smaller net gain—or a net loss—once costs are counted. Keep the two figures separate while checking a trade.
See how long and short positions affect the outcome
A long CFD generally benefits when the underlying market rises, while a short CFD generally benefits when it falls. This changes the order of the price subtraction, not the basic idea of multiplying movement by exposure. Direction sets the sign of the result: the same price change and position size can produce a gain for one direction and a loss for the other.
Apply the core CFD profit-and-loss formula
For a straightforward position, calculate the price movement in the direction of the trade, then multiply it by the applicable number of units or value per point. This is the gross calculation; it does not automatically include charges or currency conversion. Contract terms can change how a quoted movement translates into money, so verify the instrument’s specification before using the result. The Dukascopy Forex/CFD calculator provides information on items including pip values, margin requirements, rollover value, and potential profit and loss.
![]()
Calculate price movement multiplied by position size
For a long position, use closing price minus opening price; for a short, use opening price minus closing price. Multiply that signed movement by the quantity or value per point. These simplified examples assume the stated quantity directly reflects the value of each price unit and exclude costs, so they illustrate the arithmetic rather than every contract’s terms.
| Example | Direction and movement | Position size | Gross result |
|---|---|---|---|
| Share CFD | Long, $52 to $55: +$3 | 20 shares | +$60 |
| Share CFD | Short, $80 to $76: +$4 | 10 shares | +$40 |
| Index CFD | Long, 7,200 to 7,215: +15 points | $2 per point | +$30 |
The table shows why the price change alone is not the result: the position size determines how much each unit or point is worth. A negative signed movement would produce a gross loss under the same method. Apply the contract’s actual unit or point value if it differs from these illustrative assumptions.
Interpret units, contracts, and value per point
A CFD position may be described in shares, currency units, or contracts, depending on the instrument and provider. For some instruments, a one-point move is assigned a monetary value per contract; for others, the quantity and price movement determine the result directly. Read the contract specification to identify the multiplier and quote currency, rather than assuming that one contract equals one share or one unit.
Adjust the formula for the instrument being traded
The general principle stays the same across instruments, but the calculation needs the right unit. A share CFD may use the number of shares, while an index CFD may use a stated amount per point. Currency pairs can express movement in pips, whose cash value depends on trade size and contract terms. The formula is therefore best understood as movement multiplied by the instrument-specific exposure, not as a single universal number of units.
Determine position size and price movement
Position size tells you how much exposure each unit of market movement creates. It is not always shown in the same way across different CFDs, so identify whether the platform reports shares, units, contracts, or value per point. The price movement must use the same quote and unit as the position-size calculation. Establishing these details first makes the arithmetic easier to check.
Find the number of shares, units, or contracts
Start with the quantity shown for the open position, then confirm what one unit or contract means for that instrument. When calculating from multiple orders, use the size still open at the time you are measuring the result. A short sequence helps keep the inputs straight:
- Read the position quantity and instrument specification.
- Confirm whether the quantity means shares, units, contracts, or a cash value per point.
- Check any multiplier that converts a contract or point into monetary exposure.
- Record the quote currency used for the result.
With those inputs identified, match the quantity to the correct form of the formula. If the contract specifies a monetary value per point, multiply the point movement by that value; if it specifies units, apply the movement to those units as defined by the contract.
Calculate the difference between entry and exit prices
For a long CFD, subtract the opening price from the closing price. For a short CFD, subtract the closing price from the opening price. Keep the direction in the calculation rather than taking an absolute value: a negative answer indicates that the movement went against the position. Use prices expressed in the same units and quote convention.
Account for partial closes and multiple entries
When part of a position closes earlier than the rest, calculate each closed portion using its own entry and exit prices, then combine the results. For multiple entries, track the size and entry price of each tranche rather than treating every unit as if it opened at one level. A weighted average entry can be useful when the position terms and size are comparable, but retain individual records if different portions close at different times.
Work through long and short position examples
Examples make the sign of the calculation easier to see. In each case, first identify the direction, then calculate the favorable or adverse movement, and finally apply the position size. The figures below are gross amounts before charges and assume the stated unit values. Real contract terms may use a different multiplier or currency.
![]()
Calculate profit on a rising market with a long CFD
Suppose a long share CFD opens at $40 and closes at $44, with a position size of 25 shares. The favorable movement is $44 minus $40, or $4 per share. Multiplying $4 by 25 gives a gross profit of $100 before costs. If the closing price were below $40 instead, the same method would produce a negative result.
Calculate profit on a falling market with a short CFD
Suppose a short CFD opens at $120 and closes at $114, with 10 units. The favorable movement for the short is $120 minus $114, or $6 per unit. Multiplying $6 by 10 gives a gross profit of $60 before costs. The position benefits here because the closing price is lower than the opening price.
Identify how an adverse price move creates a loss
Now consider a long position of 15 units opened at $30 and closed at $28. The signed movement is $28 minus $30, or negative $2 per unit, so the gross result is a loss of $30. For a short, a rise in price creates the adverse movement instead. The calculation does not change in scale; the direction determines which price difference is favorable.
Include trading costs in the net calculation
The gross formula describes price movement against position size, but it may not equal the amount ultimately credited or debited. Costs vary by instrument, provider, and how long a position is held. Work out the gross result first, then account for charges that apply to the specific trade. Be careful to use prices and cost assumptions consistently.
Subtract commissions and dealing charges
If a commission or dealing charge applies, subtract the relevant amount from gross profit, or add it to the loss. Some charges may apply when opening, closing, or both, so check the terms and include each charge once. A useful expression is net result = gross result − commissions − other applicable charges, with losses retaining their negative sign.
Account for spread and overnight financing
The spread is the difference between the buy and sell prices quoted for an instrument. If your calculation uses the actual executable opening and closing prices, the spread effect may already be reflected in those prices; do not subtract it again as a separate cost unless the pricing method requires that adjustment. Overnight financing may apply when a position is held, and the amount and timing depend on the instrument and terms. Include any financing charges or credits that apply to the holding period.
Check whether guaranteed stops or other fees apply
A guaranteed stop or another optional service may have a separate charge, depending on the provider’s terms and whether the feature is used. Check the trade confirmation and applicable fee schedule instead of assuming a standard charge. Add only costs that apply to the position, and distinguish them from the price movement itself so the net figure remains auditable.
Convert and verify the final result
A position’s gross result may be calculated in a currency different from the account’s base currency. Conversion can change the amount shown in the account, and margin is a separate figure from the trade’s gain or loss. Before relying on a final number, confirm the contract, conversion assumptions, and costs used. A Dukascopy Forex/CFD calculator includes account currency among its inputs, while the IG CFD calculator can estimate margin and potential profit and loss before a trade.
Convert profit or loss into the account’s base currency
First establish the currency in which the CFD result is quoted. If it differs from the account’s base currency, apply the provider’s relevant conversion rate to the result, using the rate and timing specified for the account. A positive amount stays positive and a loss stays negative through a normal currency conversion, though the converted amount can differ as exchange rates change.
Separate margin requirements from position profit and loss
Margin is the amount set aside or required to maintain exposure; it is not the amount at risk represented by the profit-and-loss formula and is not itself a trading cost. A position’s result follows price movement and position size, while margin follows the provider’s requirements and the exposure held. The IG CFD calculator can estimate both margin and potential profit and loss, but the two figures answer different questions.
Check signs, units, and assumptions before relying on the figure
A quick review catches many calculation errors. Confirm that the direction matches the subtraction, the quantity matches the contract specification, and all price movements use consistent units. Then verify whether costs are included and whether the result needs conversion. An estimate remains an estimate if prices, charges, or conversion rates change before the position closes.
Conclusion
CFD profit and loss begins with a signed price movement multiplied by the position’s relevant size or value per point. To reach a useful net figure, check the contract terms, include applicable costs without double counting, and convert currencies where needed. Keeping margin separate from the result makes the final calculation easier to understand and verify.
Frequently Asked Questions
What is the basic formula for CFD profit and loss?
Multiply the price movement in the direction of the position by the position’s units or value per point. Then account for applicable costs and any currency conversion to estimate the net result.
How do I calculate profit on a long CFD?
Subtract the opening price from the closing price, then multiply by the position size or value per point. A positive movement is favorable to a long position; a negative movement creates a gross loss.
How do I calculate profit on a short CFD?
Subtract the closing price from the opening price, then multiply by the position size or value per point. A decline is favorable to a short position, while a rise creates an adverse result.
Does the CFD formula include trading costs?
The basic formula gives a gross result. To estimate net profit or loss, include applicable commissions, financing, and other charges, and account for the spread consistently with the prices used.
Is margin the same as CFD profit or loss?
No. Margin is a requirement associated with holding exposure. Profit or loss is determined by the position’s price movement and size, with applicable costs considered separately.
How do I calculate a CFD result after a partial close?
Calculate the result for each portion using that portion’s size, entry price, and closing price. Add the results together, then include costs that apply to the relevant portions or holding periods.
Why can my calculated result differ from the account figure?
The estimate may use different prices, contract assumptions, charges, or currency-conversion rates from those applied to the account. Check the instrument terms and trade records, including whether the spread was already reflected in the prices.