Skip to content
CFDs are leveraged products. Trading carries a high risk of losing money.Help center
FXBITI

A forex trade produces a profit or loss from the difference between its opening and closing prices. The direction of the calculation depends on whether the trader buys the currency pair first or sells it first. Position size determines how strongly that price difference affects the result.

How forex positions work

A currency pair contains a base currency and a quote currency. In the fictional pair ABC/XYZ, ABC is the base currency and XYZ is the quote currency. A price of 2.0000 means that one unit of ABC is valued at two units of XYZ.

A long position is opened by buying the base currency and selling the quote currency. The trader benefits if the pair rises after entry. A falling price produces a loss.

A short position reverses that logic. The trader sells the base currency and buys the quote currency. The position benefits if the pair falls after entry. A rising price produces a loss.

These descriptions explain direction, not risk. Either type of position can lose money, and losses can grow quickly when the position is large relative to the account.

Core profit and loss formulas

For a long position, calculate the result in the quote currency with this formula:

(Closing price minus opening price) multiplied by position size

For a short position, reverse the price subtraction:

(Opening price minus closing price) multiplied by position size

A positive answer represents a gross profit. A negative answer represents a gross loss. Gross means that spreads, commissions, overnight financing and other applicable costs have not yet been deducted.

The position size must be stated in units of the base currency. If a trade contains 1,000 units of ABC, every price change is applied to those 1,000 units.

Worked hypothetical example

Imagine a purely hypothetical ABC/XYZ market. A trader opens a position of 1,000 ABC at 2.0000 and closes it at 2.0200. These invented figures are used only to show the arithmetic.

Long trade calculation

The trader bought ABC/XYZ, so the long formula applies:

(2.0200 minus 2.0000) multiplied by 1,000 equals 20 XYZ

The price increased by 0.0200 XYZ for each unit of ABC. Across 1,000 units, the gross profit is 20 XYZ.

If the same long position instead closed at 1.9800, the calculation would be:

(1.9800 minus 2.0000) multiplied by 1,000 equals negative 20 XYZ

The negative answer means a gross loss of 20 XYZ.

Short trade calculation

Now imagine that the trader sells 1,000 ABC at 2.0000 and buys it back at 1.9800. The short formula applies:

(2.0000 minus 1.9800) multiplied by 1,000 equals 20 XYZ

The falling price creates a gross profit of 20 XYZ. If the short position instead closes at 2.0200, the result is:

(2.0000 minus 2.0200) multiplied by 1,000 equals negative 20 XYZ

The short position loses because the trader must close it at a higher price than the opening price.

Converting the result into account currency

The first calculation normally gives the result in the pair's quote currency. If the trading account uses another currency, that amount must be converted.

A conversion rate is the exchange rate used to translate an amount from one currency into another. The correct operation depends on how the conversion pair is quoted.

Suppose the hypothetical profit is 20 XYZ and the applicable conversion rate says that two XYZ equal one account-currency unit. Divide the result by two:

20 XYZ divided by 2 equals 10 account-currency units

If one XYZ instead equals two account-currency units, multiply:

20 XYZ multiplied by 2 equals 40 account-currency units

A simple check helps prevent inverted conversions: ask how many account-currency units one unit of the result currency buys. Trading software may perform this conversion automatically, but understanding the method makes account records easier to verify.

Why the final result may differ

The arithmetic above calculates the result from price movement alone. The final account change can differ because opening and closing orders may use different sides of the bid and ask quote. The spread therefore affects the result from the start.

Commission may be charged when the trade opens, closes or at both points. A position held across the applicable rollover time may also receive or pay overnight financing. Price movement during fast or thin trading can cause execution at a different price from the requested one.

A practical net calculation is:

Gross trading result minus spread effect, commissions, financing and other applicable charges

Common calculation mistakes

  • Using the long formula for a short position, which reverses the sign of the result.
  • Multiplying by lots without first checking how many base-currency units each lot represents.
  • Treating the price difference as the complete monetary result without applying position size.
  • Assuming the result is already in the account currency.
  • Multiplying by a conversion rate when division is required, or doing the reverse.
  • Ignoring the bid and ask prices used for entry and exit.
  • Leaving commissions and overnight financing out of the final figure.
  • Rounding each stage too early, which can create small discrepancies.

Pre-trade calculation check

  1. Write down whether the position is long or short.
  2. Confirm the base currency, quote currency and number of base-currency units.
  3. Apply the correct opening and closing price formula.
  4. Identify the currency of the calculated result.
  5. Convert that result into the account currency if necessary.
  6. Subtract estimated trading costs and compare the possible loss with the planned risk limit.

Perform this check before placing an order and repeat it after closing. If the platform result differs, compare the actual execution prices, conversion rate and recorded charges line by line.

Educational content only, not investment advice. Leveraged trading can lose more than you expect.

FXBITI Insights

One email a week, nothing else

New explainers and glossary terms. No promotions.