Overnight cost
Forex Swap & Rollover Cost Calculator
Hold a position past the daily rollover and you pay or earn a swap. Enter your pair, lot size, direction and number of nights to see the total overnight cost.
Indicative charge
Estimate before spread, commission and swap. Live mid-market price from the FXNX feed, indicative, not a dealing quote.
Swap over 7 nights: $−71.56
The formula
The formula, in plain sight.
Every term the calculator uses, written out and defined, so the answer above is never a black box.
What a swap actually is
A swap (also called a rollover or overnight financing fee) is the interest adjustment applied to any forex or CFD position you hold past the broker's daily rollover time — typically 21:00 UTC. Every currency pair is two currencies with two different interest rates. When you hold the pair overnight, you are effectively long one currency's rate and short the other's. The difference between those two rates is settled on your position each night as a credit or a debit.
Because the two sides of a pair have different rates, the swap is directional: a long position and a short position on the same pair carry different numbers. That is why a calculator needs to know which way you are facing — swapRate = long ? swapLong : swapShort. One side is usually a charge and the other a (smaller) credit, with the gap covering the broker's financing margin.
The formula
This tool computes the cost in three steps:
swapRate= direction is long ? swapLong : swapShort // per lot, per nightdaily= lots × swapRate // one night's costtotal= daily × nights // across N nightsswapRate is the per-lot, per-night figure your broker publishes for that symbol (a currency amount or a points/pip value the platform converts to your account currency). A negative total means you pay; a positive total means you are credited. Multiplying by lots scales a per-standard-lot rate to your actual position, and multiplying by nights extends it across the holding period.
The Wednesday triple-swap rule
Spot forex settles T+2 (two business days after the trade). To account for the weekend, when the value date rolls over a weekend the swap is multiplied. In practice the industry convention is that the Wednesday-to-Thursday roll is charged at triple (3×) the normal rate, because it carries Saturday and Sunday's financing forward. So if your holding period includes a Wednesday night, that one night counts as three. This calculator applies the Wednesday triple weighting when counting nights, so a position open across a Wednesday is not under-costed.
Worked example
Worked through, step by step.
The same maths on fixed numbers, so you can check every step by hand.
Say you go long 2.5 lots of a pair whose published long swap is −7 USD per lot, per night, and you plan to hold it for 4 nights, one of which is a Wednesday.
- Direction is long, so
swapRate = swapLong = −7. daily = 2.5 × (−7) = −17.50 USDper ordinary night.- Nights: 3 ordinary nights + 1 Wednesday counted as 3 = 6 effective nights.
total = −17.50 × 6 = −105.00 USD.
You would pay roughly 105 USD in financing over those four calendar nights. Flip to the short side, where the published rate might be only −1.2 USD per lot, and the same hold costs 2.5 × −1.2 × 6 = −18.00 USD — a reminder that direction matters as much as size.
Pitfalls
Where the sum
goes wrong.
The mistakes that quietly change the answer, and how to avoid them.
Positive swaps are not free money. A favourable rate differential can credit your account, but rates move, brokers adjust the financing margin, and a credit on one leg rarely offsets the risk of holding the position. Carry is a strategy, not a guarantee.
Triple-swap days shift on holidays. The 3× roll usually lands on Wednesday, but around market holidays a broker may move the triple charge to another weekday. Check the symbol specification before assuming Wednesday.
Gold and exotics bite hardest. Metals like XAUUSD and high-yield FX pairs often carry large, lopsided swaps. A position that looks profitable on price can leak its edge to overnight financing if you hold it for weeks — exactly the trap covered in our gold carry write-up.
FAQ
Straight answers.
Five questions traders ask about this calculator, answered plainly.
What is a swap fee in forex?
It is the interest adjustment for holding a position past the daily rollover (about 21:00 UTC). It reflects the interest-rate difference between the two currencies in the pair and is charged or credited each night you hold.
Why are long and short swaps different on the same pair?
Each currency in a pair has its own interest rate. Long and short positions face those rates in opposite directions, so one side typically pays a charge while the other receives a smaller credit, with the gap covering financing margin.
What is triple swap on Wednesday?
Spot forex settles two business days forward, so the Wednesday-to-Thursday roll carries the weekend's financing. The swap that night is charged at three times the normal rate; this calculator counts a Wednesday night as three.
Can a swap ever pay me money?
Yes. If you hold the higher-yielding side of a pair, the rate differential can credit your account — this is the basis of the carry trade. But rates and broker financing margins change, so a positive swap is never guaranteed.
How do I avoid paying swap?
Close positions before the daily rollover so none are held overnight, or trade swap-free eligible symbols on an Islamic account. FXNX flags swap-free eligibility per symbol in its instrument table.
In the portal, FXNX AI can run size, margin, pip value and P/L for your own account.
See how FXNX AI worksKeep calculating
Three calculators
that pair with this one.
Each one shows its working, its formula and a worked example.
Worked it out?
Now practice it.
Sign up and a demo opens on your first visit.
Try your numbers on live prices.
Demo balance $10,000.00 Practice funds, not real money.
Prefer no swap? NX Flex has a swap-free switch; positions run up to 14 days.
Calculators give estimates for education. Your trading platform’s figures are final.
CFDs are complex instruments and carry a high risk of losing money rapidly due to leverage.