Profit and Loss Calculator
Estimate trade PnL using entry and exit prices, lot size, contract size, and optional trading costs.
Gross and net PnL
Buy and sell trades
Commission and swap aware
Calculator suite
Plan trades before you click buy or sell.
Compare PnL, margin, position size, and overnight costs with clear assumptions and editable inputs.
Step 1
Trade inputs
Live result
PnL result
Net profit / loss
$643.00
After subtracting commission and swap from gross price movement.
Price move
0.0065
Pips
65
Gross PnL
$650.00
Costs
$7.00
Commission + swap cost
These results are estimates for planning and education. Actual outcomes can vary with spread, slippage, broker execution, conversion rates, and fee schedules.
Formula used
Price move
priceMove = buy ? (exitPrice - entryPrice) : (entryPrice - exitPrice)
Pips
pips = priceMove / pipSize
Gross and net PnL
grossPnL = priceMove × contractSize × lotSize × quoteToAccountRate; netPnL = grossPnL - commission - swapCost
Frequently asked questions
What is the difference between gross and net PnL?
Gross PnL measures only price movement impact. Net PnL subtracts explicit costs such as commission and swap.
Can I use this as a forex profit calculator?
Yes. Set lot size, contract size, pip size, and conversion rate according to your pair and account currency.
Why can my broker result be different?
Broker statements may include spread, markup, execution slippage, and account-currency conversion timing differences.