Forex Trading
Calculations
Master the essential formulae behind margin, pip value, spread, profit/loss, and swap calculations for Forex and CFD trading.
Margin Calculation
Understand how much capital is required to open and maintain a trading position.
Forex Currency Pairs
Position Margin
Margin = (100,000 EUR) / (400) = 250 EUR
Account Margin
Calculated when the account currency differs from the base currency.
Account Margin = (250 EUR) x (1.1250) = 281.25 USD
Non-Forex Asset CFDs
Position Margin
1 Lot Gold = 100 ounces
Margin = [(100) x (1,500)] / (50) = 3,000 USD
Account Margin
Calculated when the account currency differs from the quote currency.
1 Lot DAX 30 = 10 contracts
Position Margin = [(10) x (9,000)] / (10) = 9,000 EUR
Account Margin = (9,000 EUR) x (1.1250) = 10,125 USD
Pip Value Calculation
Calculate how much you gain or lose for each pip of price movement.
Forex Currency Pairs
4-Decimal Currency Pairs
0.5 Lot = 50,000 EUR
Pip Value = (50,000) / 10,000 = 5 USD per pip
2-Decimal Currency Pairs
0.7 Lot = 70,000 USD
Pip Value = (70,000) / 100 = 700 JPY per pip
Account Pip Value
Pip values are calculated in the quote currency. If your account currency differs, convert using the current exchange rate.
Position Pip Value = (100,000) / 10,000 = 10 CAD
Account Pip Value = (10 CAD) / (1.2500) = 8 USD per pip
Non-Forex Asset CFDs
Position Pip Value
1 Lot = 100 ounces
Pip Value = (100) x (1 USD) = 100 USD per pip
Account Pip Value
Calculated when the asset is traded against a different currency than your account currency.
0.2 Lot = 2 contracts
Position Pip Value = (2) x (1 EUR) = 2 EUR per pip
Account Pip Value = (2 EUR) x (1.1250) = 2.25 USD per pip
Spread Calculation
Learn how to calculate the cost of the bid-ask spread on your trades.
Forex Currency Pairs
Position Spread
0.3 Lot = 30,000 AUD
Pip Value = 30,000 / 10,000 = 3 USD
Spread = (0.7145) - (0.7140) = 5 pips
Spread cost = (5 pips) x (3 USD) = 15 USD
Account Spread
Calculated when the quote currency and account currency are different.
2 Lot = 200,000 EUR
Pip Value = 200,000 / 10,000 = 20 GBP
Spread = (0.8979) - (0.8973) = 6 pips
Spread cost = (6) x (20 GBP) = 120 GBP
GBP/USD rate = 1.2235
Account spread = (120 GBP) x (1.2235) = 146.82 USD
Non-Forex Asset CFDs
Position Spread
0.1 Lot = 10 ounces
Pip Value = (10) x (1 USD) = 10 USD per pip
Spread = (1623.50) - (1616.50) = 7 USD per ounce
Spread cost = (7) x (10 ounces) = 70 USD
Account Spread
0.4 Lot = 4 contracts
Pip Value = (4) x (1 EUR) = 4 EUR per pip
Spread = (9,366) - (9,362) = 4 EUR per contract
Spread cost = (4) x (4 contracts) = 16 EUR
Account spread = (16 EUR) x (1.1250) = 18 USD
Profit/Loss Calculation
Estimate potential returns and risk before entering any trade.
Forex Currency Pairs
Position Profit/Loss
Loss = [(SL Price) - (Entry Price)] x (Pip Value)
Pip Value = (100,000) / 10,000 = 10 USD per pip
Profit = (1.1350 - 1.1320) x 10 = 30 pips x 10 = 300 USD
Loss = (1.1300 - 1.1320) x 10 = -20 pips x 10 = -200 USD
Including Spread
When opening a Buy position, you enter at Ask and close at Bid. With 3 pips spread on EUR/USD:
Net Loss = [(SL) - (Entry) - (Spread)] x (Pip Value)
Net Loss = (-20 pips - 3 pips) x 10 USD = -23 x 10 = -230 USD
Account P/L
Calculated when the quote currency differs from your account currency. If trading EUR/USD with an EUR account:
Account Loss = (230 USD) / (1.1250) = 204.44 EUR
Non-Forex Asset CFDs
Position Profit/Loss
Loss = [(SL Price) - (Entry Price)] x (Pip Value)
Pip Value = (100 ounces) x (1 USD) = 100 USD
Profit = (1,668 - 1,650) x 100 = 1,800 USD
Loss = (1,640 - 1,650) x 100 = -1,000 USD
Including Spread
If Gold has a $2.50 spread:
Net Loss = [(SL) - (Entry) - (Spread)] x (Pip Value)
Net Loss = (-10 - 2.50) x 100 = -12.50 x 100 = -1,250 USD
Account P/L
If your account is in Canadian Dollars, convert using USD/CAD at 1.3325:
Account Loss = (1,250 USD) x (1.3325) = 1,665.63 CAD
Rollover/Swap Calculation
Understand overnight interest charges when holding positions across trading days.
Forex Currency Pairs
Position Swap
EUR rate = 0.25%, USD rate = 0.75%, Broker mark-up = 0.25%
Swap = [(100,000) x (0.25% - 0.75% + 0.25%) / 100] x [(1.1480) / 365]
= [(100,000) x (-0.25%) / 100] x [0.003144]
= (-250) x (0.003144) = -0.79 USD per day (trader pays)
Account Swap
Calculated when the quote currency differs from the account currency.
Account Swap = (-0.79 USD) / (1.1480) = -0.69 EUR per day
Non-Forex Asset CFDs
Position Swap
1 Lot = 100 ounces, Swap rate = -0.0028%
Swap = (100) x (1,550) x (-0.000028) = -4.34 USD per day
Account Swap
Account Swap = (-4.34 USD) x (1.3225) = -5.74 CAD per day
Formula Summary
All five core trading calculations at a glance.
Related Resources
Continue learning with these guides and tools.
Position Size Calculator
Calculate lot sizes, margin, and pip values instantly with our free trading calculators.
Try CalculatorsForex Trading Basics
New to Forex? Start with the fundamentals of currency trading before diving into calculations.
Read GuideWhat is Trading?
Understand the core principles of trading across all major financial markets.
Learn MoreCompare Brokers
Find the best broker for your trading style with our detailed reviews and comparisons.
Compare NowFrequently Asked Questions
What is a lot in Forex trading?
A lot in Forex is the standard unit of trade size, equal to 100,000 units of the base currency. For example, 1 lot of EUR/USD means you are trading 100,000 EUR. Mini lots (0.1 = 10,000 units) and micro lots (0.01 = 1,000 units) are also available at most regulated brokers.
How do I calculate pip value?
For 4-decimal currency pairs (e.g. EUR/USD), divide your position size by 10,000. For 2-decimal pairs (e.g. USD/JPY), divide by 100. For example, a 0.5 lot (50,000 units) EUR/USD position has a pip value of 5 USD. If your account currency differs from the quote currency, convert using the current exchange rate.
What is spread in trading?
Spread is the difference between the Bid (sell) and Ask (buy) price of an asset. It represents the broker's commission and appears as an initial floating loss when you open a position. Spread can be fixed or variable depending on your broker and market conditions. Use our trading calculators to estimate spread costs before entering a trade.
How does swap/rollover work?
Swap is the interest paid or received when a position is held open overnight. In Forex, it's based on the interest rate differential between the two currencies in the pair, plus the broker's mark-up. In long positions, you receive interest if the base currency rate is higher than the quote. Swap accumulates daily and is applied when the position is closed.
What's the difference between position margin and account margin?
Position margin is calculated in the base currency of the instrument using the formula: Position Size / Leverage. Account margin converts that value into your account currency using the current exchange rate. For example, if your position margin is 250 EUR and you have a USD account, the account margin at EUR/USD 1.1250 would be 281.25 USD.
Why do I need to convert pip value to my account currency?
Pip values are initially calculated in the quote currency of the pair you're trading. If your account currency differs from the quote currency, the pip value must be converted so that your profit/loss is reflected accurately. For example, trading USD/CAD with a USD account requires converting the CAD pip value back to USD using the current exchange rate.
matched with AvaTrade
2 minutes ago