Swap and Overnight Funding Calculator
By Chad Smith · Updated
On this page
A swap calculator works out the charge or credit for holding a position overnight. For forex this is called the swap or rollover; for index, commodity and share CFDs it is often called overnight funding. Swaps are small per night but add up quickly on trades held for weeks, so they matter most to swing and position traders.
Swap calculator
- Per night
- -USD 6.50
- Nights charged (with triples)
- 7
- Per year (365 nights)
- -USD 2,372.50
Negative = you pay, positive = you receive. Triple swap usually falls on Wednesday night for forex.
How to use it
- Choose the instrument and the direction, long or short.
- Choose a broker and account to load its swap rates, or enter the long and short swap from your platform's symbol details.
- Choose how the swap is quoted: in points, in money per lot, or as an annual percentage.
- Enter the trade size and the number of nights you plan to hold.
- Read the total, including any triple-swap nights.
The formula
Swap quoted in points (common on MetaTrader):
Swap per night = Swap points × Point value per lot × Lots
Swap quoted as an annual percentage (common for CFDs):
Daily funding = Position value × (Benchmark rate ± Markup) ÷ 365
(some brokers divide by 360)
Total over the holding period:
Total = Swap per night × (Nights + 2 × Triple-swap nights)
Worked example
This is an illustrative example with simple numbers.
You hold 0.50 lots of a pair long for 7 nights, including one Wednesday. The long swap is −6.0 points, and one point is worth 1 USD per lot.
Swap per night = −6.0 × 1 × 0.50 = −3.00 USD
Nights charged = 7 + 2 = 9
Total = −3.00 × 9 = −27.00 USD
For a CFD on an index worth 20,000 USD, with a benchmark rate of 5% and a markup of 2.5% on a long position:
Daily funding = 20,000 × 7.5% ÷ 365 = 4.11 USD per night
What the result means
A negative result is a cost that reduces your profit or adds to your loss every night the position stays open. A positive result is a credit. For a day trader who closes before the rollover, swaps do not apply. For someone holding a trade for a month, the swap can be larger than the spread and commission combined.
Swap rates change when central banks move interest rates and when brokers change their markups. They also differ between long and short positions on the same pair. Check them before planning a long hold, and compare current swap rates on each broker's review.
Swaps and the carry trade
The carry trade is a strategy built on swaps: holding a currency with a high interest rate against one with a low rate, to earn the positive swap each night. The calculator shows whether a broker's rates actually leave a positive swap after markup, which is not always the case for retail accounts. Carry trades are also exposed to sharp reversals when market sentiment shifts, which can wipe out months of swap income in a few days, so the swap is only one part of the picture.
Common mistakes
- Forgetting the triple-swap night. A trade held over Wednesday pays three nights at once.
- Assuming long and short swaps are equal and opposite. The broker's markup makes both sides less favorable.
- Reading points as pips. On five-digit quotes, swap points are often pipettes, one tenth of a pip.
- Ignoring swaps on CFDs. Index and commodity CFDs carry funding charges too, often larger than on forex.
- Assuming swap-free means free. Islamic accounts often have admin fees or wider spreads instead.
Related lessons and tools
- Lesson: Central banks and interest rates
- Lesson: Order types
- Glossary: swap, rollover, carry trade, interest rate
- Guide: Swap and overnight fees, Islamic swap-free accounts, Swing trading
- Tools: cost of trade calculator, margin calculator, currency conversion fee calculator, market hours
Frequently asked questions
What is a swap in forex?
A swap is the interest adjustment applied when you hold a position past the daily rollover. It reflects the interest rate difference between the two currencies, plus the broker's markup.
Why is there a triple swap on Wednesday?
Spot forex settles two business days after the trade. A position held over Wednesday night settles across the weekend, so three days of swap are charged at once. Some instruments apply the triple charge on Friday instead.
Can a swap be positive?
Yes. If you hold the currency with the higher interest rate against the lower one, the swap can be credited to you, although the broker's markup often reduces or removes it.
How is overnight funding on index and share CFDs calculated?
It is usually a benchmark interest rate plus or minus a broker markup, applied to the position value and divided by 360 or 365 for a daily charge.
Do swap-free accounts cost nothing to hold overnight?
Swap-free accounts remove the interest charge, but many replace it with a fixed admin fee after a number of days or a wider spread. Check the account terms.