Last updated:
Profit and loss in forex is calculated as P&L = (exit price − entry price) in pips × pip value × number of lots. A long (buy) trade profits when price rises; a short (sell) trade profits when price falls. On a standard lot of a USD-quoted pair, one pip is worth $10, so a 50-pip winning trade returns $500.
Key takeaways
- The forex P&L formula is one line: P&L = (exit − entry in pips) × pip value per lot × number of lots.
- Direction decides the sign. A long position gains when price goes up; a short position gains when price goes down. Flip the subtraction, not the logic.
- Pip value depends on the pair. A standard lot (100,000 units) of a USD-quoted pair is $10 per pip. JPY pairs and cross pairs need a conversion step.
- Gold is different. On XAU/USD, one pip is $0.01, and a standard lot is 100 oz — so $1 per pip per standard lot, not $10.
- Gross is not net. Spread, swap, and commission come out of your result. A trade that shows +$50 gross can be +$42 net after costs.
- Do the pip-value and lot math before you enter, not after. Our five free calculators handle each step; the worked examples below show the arithmetic by hand so you can check them.
The 3 building blocks: pips, lot size, and pip value
Before any formula makes sense, you need three inputs. Get one wrong and the whole calculation is wrong — usually by a factor of 10 or 100.
Pips
A pip (price interest point) is the smallest standard price move on a currency pair: 0.0001 for most pairs (the fourth decimal), or 0.01 for JPY pairs (the second decimal). If EUR/USD moves from 1.0850 to 1.0851 — or USD/JPY from 150.00 to 150.01 — that is one pip. New to this? Our explainer on what a pip is breaks it down further.
Lot size
A lot is the standardised trade size. There are three tiers you will actually use:
- Standard lot = 100,000 units of the base currency
- Mini lot = 10,000 units (0.10 lot)
- Micro lot = 1,000 units (0.01 lot)
Most retail traders on small accounts trade micro and mini lots. If you are not sure what size to trade for a given risk, our lot size calculator works it out from your account balance and stop distance.
Pip value
Pip value is how much one pip is worth in your account currency, for a given lot size. This is the number the whole P&L calculation hinges on.
For a USD-quoted pair (XXX/USD, like EUR/USD or GBP/USD), the math is clean because the pip is already in dollars:
Pip value = lot size in units × pip size = 100,000 × 0.0001 = $10 per pip (standard lot)
Scale that down and you get: $1 per pip on a mini lot, $0.10 per pip on a micro lot. For pairs where USD is not the quote currency, you need a conversion step — covered below. The pip value calculator does this for any pair and account currency instantly.
The forex P&L formula (long and short)
Here is the formula every worked example on this page uses:
P&L = (exit price − entry price) in pips × pip value per lot × number of lots
The only trick is the subtraction. For a long (buy) trade you profit when price rises, so you compute exit minus entry. For a short (sell) trade you profit when price falls, so the winning move is entry minus exit. Either way, count the pip difference, multiply by pip value, multiply by lots.
BUY worked example (EUR/USD long)
You buy 1.00 standard lot of EUR/USD at 1.0850 and close at 1.0900.
Step 1 — count the pips. Price rose from 1.0850 to 1.0900. That is 1.0900 − 1.0850 = 0.0050, and 0.0050 ÷ 0.0001 = 50 pips. You were long and price rose, so this is a gain.
Step 2 — set the pip value. EUR/USD is USD-quoted, so a standard lot is $10 per pip.
Step 3 — apply the formula. P&L = 50 pips × $10 × 1 lot = +$500.
You made $500 gross on this trade. If price had instead fallen to 1.0800, you would be 50 pips offside: 50 × $10 × 1 = −$500.
SELL worked example (EUR/USD short)
You sell (short) 0.50 standard lot of EUR/USD at 1.0900 and close at 1.0850.
Step 1 — count the pips. Price fell from 1.0900 to 1.0850. That is 50 pips. You were short and price fell, so this is a gain. (For a short, the winning direction is entry − exit: 1.0900 − 1.0850 = 50 pips.)
Step 2 — set the pip value for the lot size. A standard lot is $10 per pip, so 0.50 lot is $5 per pip.
Step 3 — apply the formula. P&L = 50 pips × $10 × 0.50 lot = +$250. (Same result as 50 × $5 × 1.)
Short trades feel backwards at first. The rule is simple: a short profits when the number goes down. Our profit-loss calculator handles the direction for you — pick buy or sell and it applies the correct sign.
Calculating pip value on different pairs
The $10-per-pip figure only holds when USD is the quote currency. Here is how the four main cases differ.
USD-quoted pairs (XXX/USD)
For EUR/USD, GBP/USD, AUD/USD, and NZD/USD, the quote currency is already USD, so no conversion is needed. A standard lot is $10 per pip, a mini lot $1, a micro lot $0.10. These are the easiest pairs to calculate P&L on.
JPY pairs (XXX/JPY)
JPY pairs use a pip of 0.01, not 0.0001, and the pip value comes out in yen, so you divide by the exchange rate to get dollars.
Take USD/JPY at a rate of 150.00. Pip value per standard lot in yen = 100,000 × 0.01 = 1,000 JPY per pip. Convert to USD: 1,000 ÷ 150.00 = $6.67 per pip per standard lot.
So a 30-pip winning USD/JPY trade on 1 standard lot = 30 × $6.67 = $200 (gross, rounded). The dollar pip value on JPY pairs moves as the rate moves, which is why a calculator beats memorising a fixed number.
Cross pairs (no USD, e.g. EUR/GBP, AUD/JPY)
Cross pairs — pairs with no USD in them — are the case most guides skip. Here the pip value is denominated in the quote currency, and you convert that currency to your account currency.
For EUR/GBP, a standard lot pip value is 100,000 × 0.0001 = £10 per pip. To express that in dollars, multiply by the GBP/USD rate: at GBP/USD = 1.2700, £10 × 1.2700 = $12.70 per pip. Cross pairs also tend to carry wider spreads, so factor that into net P&L (next section).
Gold (XAU/USD) — the house convention
Gold trips up more traders than any pair. On this site — matching our live calculators — one XAU/USD pip = $0.01, and a standard gold lot is 100 oz, so:
Gold pip value = 100 oz × $0.01 = $1 per pip per standard lot.
That means a $1.00 move in the gold price = 100 pips = $100 per standard lot, and a micro lot (0.01, or 1 oz) is $0.01 per pip. Worked example: you buy 1 standard lot of XAU/USD at 4,000.00 and exit at 4,010.00 — a $10.00 move = 1,000 pips, so P&L = 1,000 × $1 × 1 = +$1,000. Never use the $10-per-pip forex figure on gold — it overstates your P&L by 10×.
Converting P&L to a percentage of your account
Dollars alone do not tell you whether a trade mattered. A $250 win is huge on a $1,000 account and trivial on a $100,000 account. Convert every result to a percentage:
P&L % = (profit or loss ÷ account balance before the trade) × 100
From the SELL example above, a +$250 result on a $5,000 account = 250 ÷ 5,000 × 100 = +5%. The same $250 on a $25,000 account is only +1%. Thinking in percentages keeps your position sizing honest and comparable across accounts. Our gain-loss percentage calculator converts dollars to percent and back.
Factoring in spread, swap, and commission (net vs gross)
Every P&L number above is gross. Three costs stand between gross and what actually lands in your account.
Spread — the gap between the bid and ask price, in pips. You pay it on entry. If EUR/USD has a 1.2-pip spread and you buy 1 standard lot, you start roughly 1.2 pips (about $12) in the red before price moves. A 50-pip gross win becomes ~48.8 pips net on the spread alone.
Swap (rollover) — the interest debited or credited for holding a position overnight, based on the interest-rate differential between the two currencies. Hold for several nights and swap can quietly turn a small winner into a loser, especially on negative-carry pairs.
Commission — some accounts (typically raw-spread accounts) charge a fixed commission per lot per side instead of a wider spread — often around $3.50 per side, so ~$7 round-turn per standard lot. ECN-style accounts trade this way.
Net P&L = gross P&L − spread cost − commission ± swap. Put concretely: a +$500 gross EUR/USD win, minus ~$12 spread, minus ~$7 commission round-turn, with negligible same-day swap, nets around +$481. On tight-target scalps, these costs can eat most of the edge — which is exactly why they belong in the calculation, not an afterthought.
Position sizing before you enter
The smartest way to control P&L is to fix your risk before the trade, not to admire the result after. That means sizing the position so a stop-out costs a set percentage of your account — usually 1%.
The logic runs in reverse of the P&L formula. Decide your dollar risk, decide your stop in pips, then solve for lots:
Lot size = dollar risk ÷ (stop in pips × pip value per standard lot)
Example: a $5,000 account risking 1% ($50) with a 25-pip stop on EUR/USD gives a lot size = $50 ÷ (25 × $10) = $50 ÷ $250 = 0.20 lot. If that stop is hit, you lose exactly $50 — no surprises. Pair this with a target and you can check the trade is worth taking: our risk-reward calculator shows the reward-to-risk ratio before you commit, and position sizing in forex covers the full method. For the broader risk framework, see how to calculate forex risk and reward.
Common P&L calculation mistakes
These are the errors that turn a “winning” trade into a losing account. Each has a specific fix.
- Using $10 per pip on gold. Gold is $1 per pip per standard lot on this site’s convention, not $10. Fix: treat XAU/USD as its own instrument and use the gold pip value.
- Forgetting JPY pairs use 0.01 pips. Counting a USD/JPY move in 0.0001 increments inflates the pip count 100×. Fix: JPY pairs move on the second decimal.
- Confusing long and short direction. Subtracting the wrong way flips a profit into a loss on paper. Fix: long profits when price rises, short when it falls — check the sign against reality.
- Calculating gross and calling it net. Spread, commission, and swap are real. Fix: subtract costs before you judge the trade.
- Skipping the cross-pair conversion. On EUR/GBP the pip value is in pounds, not dollars. Fix: convert the quote currency to your account currency.
- Sizing after the fact. Working out the P&L only once you are in the trade means you never controlled the risk. Fix: size the position before you click, using the formula above.
Frequently asked questions
How do you calculate profit and loss in forex?
Use P&L = (exit price − entry price) in pips × pip value per lot × number of lots. Count the pip difference between your entry and exit, multiply by the pip value for your lot size, and multiply by the number of lots. A long trade profits when price rises; a short trade profits when price falls.
What is the forex profit formula?
The forex profit formula is P&L = pip difference × pip value × number of lots. For a long trade, pip difference = exit − entry; for a short trade, it is entry − exit. On a standard lot of a USD-quoted pair, pip value is $10, so a 50-pip winner returns 50 × $10 × 1 = $500 gross.
How do you calculate pip value?
Multiply the lot size in units by the pip size. For a USD-quoted pair: 100,000 units × 0.0001 = $10 per pip on a standard lot ($1 mini, $0.10 micro). For JPY pairs, use 0.01 and divide the result by the exchange rate. For cross pairs, convert the quote currency to your account currency.
How much is one pip worth on a standard lot?
On a standard lot (100,000 units) of a USD-quoted pair like EUR/USD, one pip is worth $10. A mini lot is $1 per pip and a micro lot is $0.10. JPY pairs are usually around $6–$7 per pip depending on the rate, and gold (XAU/USD) is $1 per pip per standard lot under this site’s convention.
How do you calculate P&L on a short trade?
On a short (sell) trade you profit when price falls, so pip difference = entry − exit. If you short 0.50 lot of EUR/USD at 1.0900 and close at 1.0850, that is 50 pips in your favour: 50 × $10 × 0.50 = +$250 gross. If price had risen instead, the same 50 pips would be a $250 loss.
How do you calculate profit on gold (XAU/USD)?
On XAU/USD, one pip is $0.01 and a standard lot is 100 oz, so pip value is $1 per pip per standard lot. A $1.00 move in the gold price equals 100 pips, or $100 per standard lot. Buying 1 lot at 4,000.00 and selling at 4,010.00 is a $10 move = 1,000 pips = +$1,000 gross.
How do you convert profit to a percentage of your account?
Divide the profit or loss by your account balance before the trade and multiply by 100. A $250 profit on a $5,000 account is 250 ÷ 5,000 × 100 = 5%. The same $250 on a $25,000 account is 1%. Percentages let you compare trades and risk fairly across different account sizes.
Does the spread affect your profit?
Yes. The spread is the bid-ask gap you pay on entry, so you start every trade slightly negative. A 1.2-pip spread on a standard EUR/USD lot costs about $12 before price moves. Add any commission and overnight swap, and your net profit is always lower than the gross P&L the pip math shows.


