The basic formula
To calculate the result of a trade, you need to know the entry price, exit price, quantity, and whether the position is a buy or a sell. Profit or loss for a buy = (Exit price − Entry price) × Quantity. For a sell, we reverse the subtraction: (Entry price − Exit price) × Quantity. If the result is positive, it is a theoretical profit; if negative, it is a theoretical loss. Use the same quote currency for both prices so that the comparison is correct.
Quantity in forex = Lot size × 100,000 units, and in gold = Lot size × 100 ounces assuming the contract used here; check your broker's specifications. In crypto, the quantity is the number of units you bought or sold. The calculator above helps you determine the size based on risk and stop loss; it does not calculate the exit result automatically, and the price difference alone is not enough without the quantity. The following examples are for assets priced in dollars, not a fixed rule for every currency pair.
Practical example for EUR/USD
Assume a buy trade of 0.05 lot, which is 5,000 units, at an entry price of 1.0850 and exit of 1.0880. The price difference is 0.0030, which is 30 pips because the pip here is 0.0001. Multiply 0.0030 × 5,000: the theoretical profit is 15 dollars, which is 1.5% of a 1,000 dollar account balance. The pip value for this size is half a dollar, and multiplying 30 pips by half a dollar gives you the same result.
If you exited at a stop loss of 1.0830 instead, the difference is −0.0020, which is −20 pips, and the result is −10 dollars: a 10 dollar loss before costs. In a sell trade of the same size from 1.0850 to 1.0820, subtract the exit from the entry: 0.0030 × 5,000, and the profit is also 15 dollars. Changing the trade direction changes the subtraction order, not the unit size. Do not confuse profit as a percentage of the balance with the percentage of the price movement itself; these are two different measurements.
Gold, crypto, and costs
In the gold example, 0.01 lot equals one ounce assuming 100 ounces per lot. A buy from 2650 and exit at 2665 means a difference of 15 dollars per ounce, so the theoretical profit is 15 dollars. In crypto, buying 0.005 units from 95,000 and exiting at 97,000 means a difference of 2,000 dollars per unit; multiply by 0.005 to get a 10 dollar result. These prices are examples for illustration and are not current prices, nor a recommendation to open a trade.
This number is a theoretical estimate before expenses. The spread, commission, swap, and slippage reduce the profit or increase the actual loss, so review your trade execution statement and recorded costs instead of relying on the example alone. Also, check the contract size and your account currency; if the result currency is different, you will need to convert at the appropriate rate. Stop loss is not a guarantee of execution at the written price, especially during gaps and low liquidity. Educational content, not financial advice. Trading can lose you money.
FAQ
- Is profit calculated the same way for buying and selling?
- The equation is the same but the sign is reversed: in a buy, you subtract the entry price from the exit price, and in a sell, you subtract the exit price from the entry price, then multiply by the quantity.