Gold (XAU/USD) Profit and Loss Calculator for Kenya
Work out exactly what a gold trade made or lost in US dollars and Kenyan shillings, and how far price actually moved in pips.
How it works
Enter your entry price, exit price and lot size, then choose long or short. The calculator converts the price difference into dollars using 100 oz per standard lot, then into pips at 0.01 per pip. Multiply the dollar result by your own KSh rate to see it in shillings, and remember that costs such as spread and any swap sit on top of this raw figure.
Related tools
What the gold profit calculator answers, and when you need it
This calculator answers one question: given where you entered and where you exited gold, what is the trade worth before costs? A Kenya trader needs it at the moment of decision, not after the fact, because gold moves in dollars per ounce while your account, your M-Pesa top-ups and your rent are all in KSh. Seeing the number in both currencies before you click buy or sell keeps the trade honest.
It is most useful when you are sizing a position rather than picking a direction. If you know your entry, your target and your stop, the calculator tells you what each outcome pays in dollars and shillings, so you can judge whether the reward justifies the risk you are carrying. That is the point at which lot size should be decided, not afterwards.
You also need it when reviewing a closed trade. Comparing the raw calculator figure with what actually hit your account shows you the real cost of trading: spread, any swap carried overnight, and currency conversion if your balance is in KSh. That gap is the honest measure of what the trade cost you, and it is worth checking regularly.
The profit formula in plain words
Profit or loss equals the price difference multiplied by the contract size and your lot size. For gold (XAU/USD), one standard lot is 100 oz, so the formula is: (exit price − entry price) × 100 × lots. For a short position the sign flips, so you use (entry price − exit price) instead. The result is in US dollars because XAU/USD is quoted in dollars per ounce.
The inputs are four: entry price, exit price, lot size and direction. Entry and exit are the gold prices in dollars per ounce, for example around 4275.0. Lot size is expressed as a decimal, so 0.10 means one-tenth of a standard lot, or 10 oz. Direction decides whether the difference is positive or negative, and that single choice is where most sign errors happen.
To express the move in pips, divide the price difference by 0.01, because one pip on gold is 0.01 of a dollar per ounce. A move from 4275.0 to 4285.0 is therefore 10.00 dollars, which is 1000 pips. Pips describe distance travelled; dollars describe money made. Keeping the two separate stops you confusing a big pip count with a big profit.
A worked gold example, step by step
Suppose you go long gold at 4275.0 and exit at 4285.0 with 0.10 lots. Step one, the price difference: 4285.0 − 4275.0 = 10.0 dollars per ounce. Step two, apply the contract size: 10.0 × 100 = 1,000 dollars per standard lot. Step three, apply your lot size: 1,000 × 0.10 = 100 dollars. The trade made 100 US dollars before costs.
Now express it in pips. The price difference of 10.0 divided by 0.01 gives 1,000 pips. Because you were long and price rose, the pip move is positive. Had you sold at 4275.0 and bought back at 4285.0, the same 1,000 pips would be negative and the dollar result would be a 100 dollar loss. The distance is identical; only the direction changes the sign.
For margin context, at the applicable cap a 0.10-lot gold position needs about $85.50 margin. That figure tells you what the broker sets aside to hold the position, not what you can lose. Your actual risk is set by your stop, and the calculator is the tool that converts that stop distance into a shilling amount you can weigh against your account.
Common mistakes and how to read the result correctly
The most common mistake is treating the calculator output as your final account change. It is not. The figure is gross: spread, any overnight swap, and the KSh conversion your broker applies all sit outside it. Read the number as the trade's raw value, then subtract costs to reach what you actually keep. If the gross figure is small, costs can erase it entirely.
The second mistake is a direction slip. Entering a short as a long flips the sign and turns a loss into an apparent profit. Before trusting the result, check that the exit price is on the side you expected: for a long, exit should be above entry to show a gain. If the sign looks wrong, the direction setting is almost always the cause.
Finally, do not confuse pips with value. A 1,000-pip move on 0.10 lots is 100 dollars, but the same move on 1.00 lot is 1,000 dollars. Pips measure distance only. Read the dollar figure alongside the pip figure and your lot size, and convert to KSh at a rate you check yourself rather than one you assume.
What the spread on entry and the overnight swap take out of a gold trade
The spread is the gap between the bid and the ask on XAU/USD, and it is charged the moment you open a position, so it is already embedded in your entry price. On a 1 standard lot gold trade (100 oz), a one-cent move is worth $1, so the spread is a real cost measured in dollars per lot. The exact spread you face depends on the broker, the time of day and market conditions, not on a fixed figure you can assume.
The overnight swap is the financing adjustment applied when you hold a gold position past the daily rollover, and it can be a credit or a debit depending on the direction of your trade and the prevailing rates. Swap is not a one-off cost; it accrues for every night the position stays open, so a trade held for a week carries seven swap entries. The size of the swap depends on the broker's financing terms and current interest-rate conditions, so it cannot be known in advance from a single number.
Both costs sit outside the simple price-difference formula, which is why a trade that looks profitable on the chart can end up flat or negative after the fact. To see the true cost, subtract the spread effect at entry and the accumulated swap from the gross result. In Kenya, funding through M-Pesa does not change these costs, but it does mean your account balance and the resulting margin are in the currency you deposited, so keep the cost side in the same currency when you reconcile.
A practical way to handle the cost side is to treat the spread as a fixed deduction per trade and the swap as a daily rate that you multiply by the number of nights held. For a 0.10-lot gold position, the margin at the applicable cap is about $85.50, and the spread cost scales with the lot size, not the margin. Swap depends on whether you are long or short and on the broker's financing schedule, so check the contract specifications rather than guessing.
Gross versus net: what the calculator shows before and after costs
A gross result is the price difference multiplied by the position size, with no costs deducted, while a net result subtracts the spread and any swap to show what actually lands in your account. On gold, with 1 standard lot equal to 100 oz, a $1 move in XAU/USD is $100 gross per lot, but the net will be lower by the spread and, if held overnight, by the swap. The gap between the two is the cost of doing the trade.
The gross figure is useful for checking whether your price direction was right, but it is not the number you should use to judge a strategy. Net result is the only figure that reflects the real outcome, because it includes the entry spread and the financing charge for every night the position was open. If you compare strategies on gross results, you will overstate the edge and underestimate how much trading frequency and holding time cost you.
For a Kenyan trader, the net result should be expressed in the account currency, and if you deposited via M-Pesa the balance is likely in KSh or USD depending on the account type. Costs such as spread and swap are applied by the broker in the instrument's terms, so convert consistently. The worked margin figure of about $85.50 for a 0.10-lot position at the applicable cap is a margin requirement, not a cost, so do not subtract it from profit; it is capital set aside, returned when the position closes.
The difference between gross and net becomes larger the more often you trade and the longer you hold. A strategy that trades frequently pays the spread repeatedly, and one that holds for days accumulates swap. Neither is visible in a gross calculation, which is why the net result is the honest measure. Use the gross number to understand the market move and the net number to decide whether the trade was worth taking.
Expectancy over many trades: why one gold outcome tells you little
Expectancy is the average result you can expect per trade over a large number of trades, and it is calculated by combining your win rate with the average win and average loss, then subtracting costs. A single gold trade, even a large one, is just one sample and says almost nothing about whether your approach works. You need a series of trades, all measured on a net basis, before the average becomes meaningful.
One outcome can be dominated by luck: a news spike or a quiet session can produce a result that is not representative of your process. Expectancy smooths that out by asking what happens on average when the same setup is repeated. For gold, where a 1 standard lot is 100 oz and a one-cent move is $1, the size of individual wins and losses can vary widely, so the average is the only stable figure to rely on.
Costs are part of expectancy, not separate from it. The spread on every entry and the swap on every night held reduce the average, so a strategy with a small edge can be turned negative once costs are included. This is why the net result matters more than the gross. Trading through a broker such as FxPro, which is licensed by the FCA (UK), CySEC and FSCA but not by the CMA of Kenya, does not change the arithmetic; it only sets the cost structure you must include.
To use expectancy, record each trade's net result, calculate the average, and compare it with the number of opportunities you take. A positive expectancy over many trades is the goal, but it does not guarantee any single trade will win. Position sizing, including the margin required at the applicable cap (about $85.50 for a 0.10-lot gold position), determines how much of your capital is exposed per trade, so keep risk per trade small enough that a losing streak does not end your account.
How the spread and swap enter the profit calculator's cost line
The cost line in a gold profit calculator captures the spread paid at entry and the swap charged for each night the position remains open. The spread is applied once per round turn, effectively widening the entry price against you, while swap is a recurring charge that depends on the number of nights and the direction of the trade. Neither is a fixed number you can read from the calculator without knowing the broker's terms.
Because the calculator cannot know your broker's exact spread or swap schedule, it should let you input them or show the result before costs. The gross result is the price move times 100 oz per lot, and the net result is that figure minus the spread cost and the total swap. If you are trading 0.10 lots, the spread cost is one-tenth of the per-lot spread, and the swap is scaled accordingly, so the cost line changes with size.
For Kenyan traders, the cost line should be expressed in the same currency as the profit, and if you funded via M-Pesa, check whether your account is in KSh or USD so the conversion is consistent. The margin figure of about $85.50 for a 0.10-lot position at the applicable cap is separate from the cost line; it is capital, not a fee. Keeping costs and margin distinct prevents you from double-counting when you review the result.
The practical rule is to treat the cost line as the difference between the gross and net outputs. If the calculator does not show it explicitly, subtract the net from the gross to see what you paid. Over many trades, that difference is what turns a gross edge into a net one, so it deserves the same attention as the price forecast itself.
Why the number of nights held changes the net result more than the entry price
The number of nights a gold position is held multiplies the swap charge, so holding time can outweigh a small difference in entry price. A trade held for one night pays one swap; held for ten nights, it pays ten. On a 1 standard lot position, the swap per night may be small relative to the price move, but over time it accumulates and can turn a modest gross gain into a net loss.
Entry price matters, but it is a one-off effect: the spread is paid once when you open the trade. Swap is recurring, so its total depends on duration. This is why two trades with the same entry and exit prices can have different net results if one was held overnight and the other was closed the same day. The calculator should therefore ask for the holding period, not just the entry and exit.
For a Kenyan trader using M-Pesa to fund an account, the swap is applied by the broker in the instrument's terms and does not depend on the funding method. What matters is the number of rollovers. If you plan to hold gold for weeks, include the expected swap in your planning; if you trade intraday, the swap is zero and only the spread applies. The margin requirement, such as about $85.50 for a 0.10-lot position at the applicable cap, is unaffected by holding time but must be maintained throughout.
The takeaway is that the net result is sensitive to duration in a way the gross result is not. Before entering a trade, decide how long you intend to hold and estimate the swap for that period. If the expected price move does not comfortably exceed the spread plus the accumulated swap, the trade is not worth taking on a net basis, regardless of how good the setup looks.
Using expectancy to judge a gold strategy after spread and swap
Expectancy after costs is the average net result per trade, and it is the only figure that tells you whether a gold strategy is viable. Calculate it by taking your average net win, multiplying by the win rate, subtracting the average net loss multiplied by the loss rate, and ensuring both wins and losses already include spread and swap. A positive number means the strategy has an edge over many trades; a negative number means it loses on average.
One trade cannot confirm or refute an expectancy because variance is high. Gold can move sharply on news, and a single large win or loss can distort your perception. To get a reliable estimate, you need a sample large enough that the average stabilises, and you should record every trade, not just the memorable ones. The costs are part of each record, so the expectancy you calculate is net, not gross.
The broker's regulatory status does not change the expectancy calculation, but it does affect the cost inputs. FxPro is licensed by the FCA (UK), CySEC and FSCA, not by the CMA of Kenya, so the applicable leverage cap and financing terms are those of the entity serving Kenya. Use the actual spread and swap from your account, and remember that the margin for a 0.10-lot gold position at the applicable cap is about $85.50, which affects how many trades you can hold at once.
A positive expectancy strategy can still have losing streaks, so size positions so that a run of losses does not exhaust your capital. The margin figure is a guide to capital tied up per trade, not a target. Review expectancy regularly, because spreads and swaps can change, and a strategy that was net positive can become net negative if costs rise. The goal is a repeatable process, not a single winning trade.
Common questions
How much is one pip worth on gold in Kenyan shillings?
It depends on your lot size and the KSh rate you apply. One pip is 0.01 of a dollar per ounce, so on 1 standard lot (100 oz) one pip is 1 US dollar. On 0.10 lots it is 0.10 dollars. Multiply that dollar figure by your own KSh rate to see it in shillings.
Does this calculator include spread and swap costs?
No, it shows the gross result from entry to exit only. Spread is charged when you open and close, and any swap applies if you hold overnight. Subtract those to reach your net figure. The calculator gives you the raw trade value so you can see clearly what the costs are taking.
Why does my short trade show a different sign?
For a short, profit comes from price falling, so the formula reverses to (entry − exit) × 100 × lots. If you sold at 4285.0 and bought back at 4275.0, that is a gain. If the sign looks wrong, check that you selected short and that your exit price is below your entry.
Can I use this to size a position before I trade?
Yes, and that is its best use. Enter your planned entry and your stop, and the calculator shows what the loss would be in dollars. Convert to KSh and compare with your account. If the figure is uncomfortable, reduce the lot size until the risk fits what you are willing to lose.
How do I convert the dollar result to KSh accurately?
Use the rate your broker or bank actually applies to your account, not a headline rate you saw elsewhere. Multiply the dollar result by that rate. If your account is funded in KSh, the broker's conversion at deposit and withdrawal is the rate that matters, and it may differ from the mid-market rate.
Trade gold with FxPro
FxPro gives Kenyan traders MT4, MT5, cTrader and the FxPro app for XAU/USD, with funding through M-Pesa. The entity serving Kenya is licensed by the FCA (UK), CySEC and FSCA, not by the CMA of Kenya, so read the risk terms before you deposit.