Swap calculator
What holding a position overnight costs or earns — per night and for the whole holding period, long and short, with the weekly triple swap.
XAUUSD now: 3737.86 / 3738.01 (bid / ask, IC Markets, November 18, 2026 at 06:53 PM UTC). 1 pip = 0.01. Profit currency: USD.
- Annual rate on the position value
- -7.13%
Swap is calculated from money-market rates and the broker markup measured on real trades (our backtest engine's model) until the terminal snapshot carries swaps itself.
Build the entry conditions without code and test them on years of history: the result in R, losing streaks, drawdown — before you risk the account.
Run a backtestHow it is calculated
Swap is interest on the position value: (rate of the base currency − rate of the quote currency) for a currency pair, or the financing rate for indices, metals and oil, minus the broker's markup, divided by 360 for one night. The calculator uses the model of our backtest engine: money-market rates plus the markup measured on real trades of the same broker.
Once a week the broker charges three nights at once — on Wednesday for currency pairs and metals, on Friday for indices, energy and shares — because the weekend settles in that rollover. A position held through it pays the triple swap.
Questions
Why can swap be positive?
When you hold the currency with the higher interest rate. After the broker's markup, the credit is usually small, and for exotic currencies brokers often pay no credit at all.
Why is the swap on gold so large?
Gold has no interest rate of its own, so a long position pays the dollar rate plus the markup on the whole position value — at 1 lot that is about 390 ounces' worth of dollars financed every night.
Do swaps matter for a strategy?
For trades held several days, yes: on a stop of 50 pips a triple swap on gold can cost a noticeable share of the risk. A 1nTest backtest deducts swap at every rollover the trade is held through.
Put this calculator on your site
Free, no registration. Copy the code into your page:
<iframe src="https://1ntest.com/en/embed/swap" width="100%" height="760" style="border:0;max-width:960px" loading="lazy" title="1nTest"></iframe>
For education. The figures are measured for one commission-charging broker at the reference date and are not a quote; your broker's conditions may differ.
← All calculators