Opening a gold account

Gold (XAU/USD) Profit and Loss Calculator for Kenyan Traders

Work out your gold profit or loss in dollars from an entry and exit price, plus the pip move, with the sign flipping automatically for a short.

Profit / Loss
XAU/USD · P/L from entry to exit
Profit / loss
—
Move
—
Position size
—
Contract
100 oz

How it works

Enter your entry price, exit price, lot size and direction, and the calculator returns the dollar result and the pip move. For gold, one pip is 0.01 and one standard lot is 100 oz, so the dollar value of a pip scales with your lot size. A long profits when price rises; a short profits when price falls, so the sign flips.

P/L = (exit − entry) × 100 × lots
xau/usd · one bar, one hourTARGETENTRYSTOP
Profit is the distance between two of these lines, times the size you chose.

What this calculator answers and when you need it

This calculator answers one question: what did a gold trade actually make or lose in dollars, and how far did price move in pips. You need it the moment you close a position, or before you open one to size a trade against a risk limit in KSh.

It is most useful when you are checking a plan rather than guessing. If you intend to risk a set amount, the calculator shows what a given exit price is worth in dollars, which you can then weigh against your account currency and your M-Pesa funding balance.

It also separates two things traders often blur: the price move in pips and the money result. A 50-pip move is not the same money for a 0.10-lot position as for a 1.00-lot position, and the calculator makes that gap visible before you commit.

The formula in plain words

The money result is the price difference multiplied by contract size and lot size. In words: profit or loss = (exit price − entry price) × 100 oz × lots for a long, and the same difference reversed for a short. Every input has a name: entry price, exit price, lot size and direction.

The pip move is simpler: pips = (exit price − entry price) ÷ 0.01. Because one pip on XAU/USD is 0.01, a one-dollar move is 100 pips. Keep the instrument code XAU/USD in mind, since the 0.01 pip and the 100 oz contract are specific to gold.

For a short, both formulas keep the same shape but the sign flips. If the exit is below the entry on a short, the difference is negative before the flip and positive after it, which is exactly what you want: a falling market pays a short seller.

A fully worked example on gold

Suppose you buy 0.10 lots of XAU/USD at 4275.0 and exit at 4285.0. The price difference is 10.0. Multiply by 100 oz and by 0.10 lots: 10.0 × 100 × 0.10 = $100. The pip move is 10.0 ÷ 0.01 = 1,000 pips, and the result is a $100 profit.

Now flip it to a short at the same prices: sell 0.10 lots at 4275.0 and exit at 4285.0. The difference is still 10.0, but the short direction flips the sign, so the result is a $100 loss. The pip move stays 1,000 pips in magnitude, which is why direction must be set correctly.

Margin is a separate figure. At the applicable cap, a 0.10-lot gold position needs about $85.50 margin. That number tells you what is tied up to hold the trade, not what you can lose; the profit and loss above is the part that moves your balance.

Common mistakes and how to read the result correctly

The most common mistake is entering the exit price in the entry field, which inverts the result. Check that the direction matches your actual position, long or short, because the sign flip is applied from that setting and not from the price order alone.

A second mistake is treating the dollar figure as your net outcome. The calculator gives the gross result from the price move; costs such as spread and any swap are not part of this figure and depend on your broker and holding period, so read the result as the move before costs.

A third is confusing pips with money. A 1,000-pip move on 0.10 lots is $100, but the same move on 1.00 lot is $1,000. Read the pip figure as distance and the dollar figure as size, and use both together rather than either alone.

Spread on entry and swap each night: the two costs that sit between your gold result and the calculator figure

The spread on entry is the difference between the price you are quoted and the price at which the broker will take the other side of your gold trade, and it is deducted the moment you open the position. In XAU/USD the spread is measured in the same 0.01 increments as a pip, so a quote that is wider by a few pips directly reduces the profit shown by your calculator. The exact spread depends on the FxPro entity that serves Kenya, the time of day, and market conditions around major data releases, so it is not a fixed number you can lock in.

Swap is the overnight financing charge or credit applied to a gold position held past the daily rollover, and it accrues for every night you keep the trade open. For XAU/USD the swap depends on the applicable interest-rate differential and the broker's own financing adjustment, so it can be positive or negative and it changes over time. A calculator that shows only price movement ignores this cost entirely, which matters most for positions held for days or weeks rather than minutes. The longer the holding period, the larger the cumulative swap effect relative to the original spread.

Both costs are unavoidable parts of trading gold through a broker, and the practical way to handle them is to treat the calculator result as a gross figure before costs. You subtract the spread once at entry and add or subtract the swap for each night held, using the broker's published rates for the day. Because neither the spread nor the swap is a number you can state in advance, the honest approach is to check the live quote and the swap schedule before sizing a trade, then compare that net figure with your target rather than relying on the raw price move alone.

Gross versus net: what your gold calculator shows before and after spread and swap

A gross result is the profit or loss from price movement alone, calculated from your entry price, exit price, lot size and the 100 oz contract size, with no deduction for trading costs. On a 0.10-lot XAU/USD position, a $1.00 move in the gold price is worth $10 gross, because 0.10 lots equals 10 oz and one dollar per ounce multiplied by 10 oz gives $10. That gross figure is what most simple calculators display, and it is a useful starting point but not the amount that reaches your account.

The net result is what remains after the entry spread and any overnight swap are taken out, and it is the only figure that reflects what your trading actually earned. If the spread cost and accumulated swap exceed the gross profit, a trade that looked profitable on price alone becomes a loss. This gap is especially visible on short-term gold trades where the spread is a larger proportion of the move, and on multi-night positions where swap builds up. The net figure is what you should compare against your risk per trade and your account balance in KSh terms.

The difference between gross and net is not a rounding error; it is the cost of doing business, and ignoring it leads to overestimating how often a strategy is actually profitable. A calculator that reports gross profit is still useful for checking your price logic, but you should manually adjust for the spread and swap before deciding whether a setup meets your criteria. In practice, keeping a simple record of gross versus net on each gold trade shows you how much of your edge is being consumed by costs, which is information no price-only calculator can give you.

Expectancy over many trades: why one gold outcome says little about your method

Expectancy is the average result you can expect per trade if you repeat the same setup many times, and it is calculated from your win rate, average win, average loss and costs. A single gold trade can land anywhere within the range of possible outcomes, so one profit or one loss tells you almost nothing about whether your approach works. Expectancy shifts the question from what happened on this trade to what tends to happen across a series, which is the only basis on which a trading method can be judged. It is a statistical average, not a prediction of the next trade.

To estimate expectancy on XAU/USD you need a record of many closed trades with their gross and net results, because costs change the picture materially. If your average win is $30 net and your average loss is $20 net, with a 50 percent win rate, expectancy is positive even though half your trades lose. The same gross numbers with a wider spread or several nights of negative swap can turn that expectancy negative. The number of trades needed for a stable estimate depends on how variable your results are, but a handful of trades is never enough to draw a conclusion.

Expectancy is the reason a calculator is a planning tool rather than a scoreboard, and it is why a losing trade does not by itself mean the method is broken. What matters is whether the net expectancy across a meaningful sample is positive after spread and swap, and whether the position size keeps any single loss within your risk limit. In Kenya, where funding through M-Pesa makes deposits easy, the discipline of tracking net expectancy is what separates a repeatable process from reacting to each individual outcome. One trade is noise; the average is the signal.

Sizing a gold position with margin in mind: how the leverage cap changes the calculator input

The leverage cap that applies to the FxPro entity serving Kenya limits how much gold you can control per dollar of margin, and it is a ceiling rather than a target. At the applicable cap, a 0.10-lot XAU/USD position requires about $85.50 in margin, which gives you a concrete reference for how lot size and required margin scale together. If you double the lot size, the margin requirement doubles; if you halve it, the margin halves. The calculator needs your lot size as an input, and that lot size should be chosen with the margin requirement and your free balance in mind, not with the cap as an aspiration.

Margin is not a cost in the same way as spread or swap; it is capital set aside while the position is open, and it is returned when the trade is closed. But it determines how many positions you can hold at once and how much room you have before a margin call. A trader who uses the full leverage cap on a single gold position leaves no buffer for adverse movement, and a relatively small price move against the position can trigger a close-out. The practical approach is to size from your risk per trade first, then check that the resulting margin fits comfortably within your account balance.

Because the leverage cap is set by the entity that serves Kenya and not by the CMA, it is worth confirming the current cap on the FxPro platform before you calculate margin for a new position. The $85.50 figure for 0.10 lots is a worked reference at that cap, not a permanent constant, and it will move if the cap or the gold price changes. Building your calculator inputs around a lot size that keeps margin well below your available balance gives you room to manage the trade without being forced out by normal gold volatility.

From calculator output to shilling terms: converting a net gold result for Kenyan accounts

Your FxPro account for gold is denominated in a major currency such as USD, so the calculator output is in dollars, but your funding and withdrawals in Kenya go through M-Pesa in shillings. To see what a net result means for your budget, you convert the dollar figure at the prevailing USD/KSh rate, remembering that the rate you get on deposit or withdrawal includes the provider's conversion margin. The calculator does not perform this conversion, so the shilling amount is an extra step you apply after you have subtracted spread and swap from the gross result.

The conversion matters because a result that looks modest in dollars can be meaningful in shillings, and vice versa, depending on the exchange rate at the time. It also matters for record-keeping: if you track your expectancy in dollars but fund in shillings, you need a consistent way to compare results over time. Using the same rate source for each trade record keeps the comparison honest, and noting the rate alongside each closed trade makes it possible to separate trading performance from currency movement when you review your results.

M-Pesa funding is the familiar route for Kenyan traders, and it introduces a timing step between your shilling balance and the dollar margin on the platform. The calculator tells you the trade's net result in dollars; the shilling equivalent depends on the rate and any conversion cost applied by the payment route. For planning, it is enough to know that the net dollar figure is the one to convert, not the gross, and that the shilling amount should be checked against your actual statement rather than assumed from the calculator alone.

When the calculator and the platform disagree: reconciling your gold result with the statement

A difference between your calculator result and your platform statement usually comes from costs or timing that the calculator did not include, not from an error in the formula. The most common causes are the entry spread, swap charged at rollover, and any commission that applies to your account type. On gold, the spread is quoted in the same 0.01 increments as a pip, so a wider spread at entry shows up as a slightly worse fill than the mid-price your calculator may have assumed. The statement is the authoritative record because it reflects the actual prices and charges applied to your trade.

To reconcile, take the gross result from your calculator and subtract the spread cost you can see in the entry and exit prices on the statement, then add or subtract the swap lines for each night held. If a commission applies, subtract that too. The remaining figure should match the net profit or loss on the statement, allowing for any small differences in the prices actually filled versus the prices you entered. If it does not match, the gap is usually a cost line you have not yet accounted for rather than a calculation mistake.

Reconciling regularly turns the calculator from a rough guide into a precise tool, because it shows you which costs are actually biting on your gold trades. Over time you build a realistic picture of the spread you tend to pay and the swap you tend to incur, and you can feed those observations back into how you size and hold positions. The FxPro entity serving Kenya is licensed by the FCA, CySEC and FSCA but not by the CMA of Kenya, so the statement from that entity is the record to reconcile against, and any dispute about charges should be raised with the broker directly.

FAQ

Common questions

How do I calculate gold profit in dollars if I trade from Kenya and fund with M-Pesa?

Use the same formula regardless of funding route: (exit − entry) × 100 × lots, with the sign flipped for a short. The result is in US dollars because XAU/USD is quoted in dollars. Your M-Pesa funding affects your account balance, not the formula, so convert the dollar result to KSh at the rate you actually received.

Why does my short trade show a positive result when the exit price is lower?

Because a short profits when price falls, so the calculator flips the sign. With entry 4275.0 and exit 4265.0 on a short, the raw difference is negative, and the flip turns it into a profit. If your result looks wrong, check the direction field first, then the entry and exit fields.

Is the pip move the same as my profit in dollars?

No. The pip move measures distance only: on gold, one pip is 0.01, so a 10.0 price move is 1,000 pips. The dollar profit depends on lot size as well. A 1,000-pip move is $100 on 0.10 lots and $1,000 on 1.00 lot, so read the two figures as different things.

How much margin does a 0.10-lot gold position need?

At the applicable cap, a 0.10-lot gold position needs about $85.50 margin. That is the amount set aside to hold the position, not the amount at risk. Your actual loss or gain comes from the price move, so keep margin and profit and loss separate when you plan a trade.

Does this calculator include spread, swap or commission?

No. It shows the gross result from the entry and exit prices only. Spread, swap and any commission depend on your broker and how long you hold the position, so they are not part of this figure. Treat the result as the move before costs and allow for them separately.

Ready when your numbers are

Size the trade first, then place it

FxPro gives Kenyan traders MT4, MT5, cTrader and the FxPro app for XAU/USD, with M-Pesa as a familiar funding route. Run your lot size and margin through the calculators here, then take the same numbers to the platform.

Trade gold with FxPro →