Swap Calculator
Estimates what holding a position overnight costs or pays, from the financing rate you enter.
Calculator
- Per night
- $7.64
- Position value
- $110,000.00
This is an estimate from the numbers above, not a quote. How it works
What Does The Swap Calculator Do?
The calculator estimates what holding a position overnight costs, or pays, from a financing rate that you enter. It returns the total for the nights you choose, the charge for one night, and the value of the position.
Who this is for: traders who hold positions past the daily rollover and want to check a swap line on a statement.
A swap is the fee or credit applied when a position is moved to the next trading day, as MetaTrader 5's help describes it. Closing a trade before the daily rollover usually avoids it.
Each night you keep it open, a rate is added to your account or taken from it. A positive result is a charge, and a negative rate gives a credit that the page labels as a financing credit.
The calculator holds no swap rates and takes the rate as an input from your broker. It shows results in the account currency you pick: £, € or $. The sums on this page use pounds.
What Is The Formula?
Position value = lots × contract size × price × quote-to-account rate
Charge per night = position value × yearly rate ÷ 100 ÷ day basis
Total = charge per night × nights
- Yearly rate is the percentage per year that your broker applies to your side of the position, and a negative rate pays you.
- Day basis is 360 or 365, the number of days the year is divided into. Brokers differ, so check the one yours uses.
- Nights is the number of nights the position stays open past the daily rollover.
- Lots, contract size, price and the quote-to-account rate work as in the margin calculator.
The page shows each night's charge and the total rounded to two decimals. The sum is made on the unrounded figure. A total can therefore differ by a penny or more from the rounded nightly figure times the nights. The swap guide shows where the rate comes from.
What Does The Calculator Assume?
The page prints three assumptions, and this explainer repeats them without change.
- Charge = lots x contract size x price x quote-to-account rate x yearly rate / day basis x nights.
- Many brokers charge three nights on one weekday for the weekend. Add those nights yourself.
- The rate is an input. Real swap rates change often and differ by instrument and side.
The defaults are 1 lot, a contract size of 100,000, a price of 1.1, a rate of 1, a yearly rate of 2.5%, one night and a day basis of 360. They are illustrations. The yearly rate accepts −50% to 50%, and nights accept 1 to 365. The triple swap entry explains the weekend charge.
What Does A 12-Night Hold Cost On 0.35 Lot, With A Loss And A Profit?
A long 0.35-lot EUR/GBP position at 4.2% a year pays £3.50 a night and £42.05 over 12 nights. You hold a pound account and buy at an illustrative 0.8700. The quote currency is the pound, which makes the rate 1 and the position 0.35 × 100,000 × 0.87 = £30,450.
The yearly charge is 30,450 × 4.2 ÷ 100 = £1,278.90 on a 365-day basis. Per night that is £1,278.90 ÷ 365 = £3.50. The 12-night total is £42.05 from the unrounded nightly figure (12 × 3.5038), where twelve times the rounded £3.50 would be £42.00.
For the loss case the bid falls 0.6%, which is 0.6% × £30,450 = £182.70. Add the swap of £42.05 and a 1-pip spread of £3.50 (a pip on 0.35 lot is £3.50), and the trade loses £228.25. Of that, £45.55 is cost that arrives whatever the price does.
In the profit case the price rises 0.6%, and you gain £182.70 but pay £42.05 plus £3.50, which leaves £137.15. The swap took 23.0% of the gain (42.05 ÷ 182.70).
For the credit case, say the short side is credited at 0.8% a year. The credit is 30,450 × 0.8 ÷ 100 ÷ 365 = £0.67 a night, or £8.01 over 12 nights. The long and short sides carry separate rates; check both.
If your broker charges three nights on one weekday and your hold crosses it, count two extra nights. Enter 14 instead of 12 and the charge becomes £49.05.
Which Test Cases Can You Redo By Hand?
Enter these inputs and compare, with a contract size of 100,000 in every case.
| Case | Lots | Price | Rate | Yearly rate | Nights | Basis | Position value | Per night | Total |
|---|---|---|---|---|---|---|---|---|---|
| 1. Defaults | 1 | 1.1 | 1 | 2.5% | 1 | 360 | 110,000.00 | 7.64 | 7.64 charge |
| 2. Three nights | 1 | 1.1 | 1 | 2.5% | 3 | 360 | 110,000.00 | 7.64 | 22.92 charge |
| 3. 365-day basis | 1 | 1.1 | 1 | 2.5% | 1 | 365 | 110,000.00 | 7.53 | 7.53 charge |
| 4. Negative rate | 1 | 1.1 | 1 | −1.5% | 1 | 360 | 110,000.00 | −4.58 | 4.58 credit |
| 5. EUR/GBP, pound account | 0.45 | 0.87 | 1 | 3.2% | 6 | 365 | 39,150.00 | 3.43 | 20.59 charge |
To redo case 1: 110,000 × 2.5 ÷ 100 = 2,750 a year, and 2,750 ÷ 360 = 7.6389 a night, shown as 7.64. In case 2, 7.6389 × 3 = 22.9167, shown as 22.92. In case 5, 39,150 × 3.2 ÷ 100 = 1,252.80 and 1,252.80 ÷ 365 = 3.4323 a night. Times six nights it is 20.5940, shown as 20.59.
What Does The Calculator Not Cover?
- Brokers that calculate swap another way, because MetaTrader 5 lets a broker pick a swap type that sets the calculation. A fixed amount per lot will not match this formula.
- Different rates for long and short, which means you must enter the rate for your own side.
- Rates that change from day to day, because the calculator uses one rate for all the nights.
- The weekday that carries the extra nights, which you count yourself and add to the nights field.
- Spread, commission, currency conversion and other fees, none of which the formula includes.
- Whether the broker explains its charges clearly. The Financial Conduct Authority (FCA) published the results of a review of contracts for difference (CFDs) on 13 November 2025. It said it found overnight funding charges that varied without clear justification and often were not adequately disclosed. Read the firm's published rates and ask for the method in writing.
A credit does not make a trade safe, because the price can move further than any credit repays.
How Can You Check The Result At Your Broker?
Find the swap long and swap short figures for the instrument in your platform's market watch, and the swap type. Note the day-count basis and the weekday that carries the extra nights. Hold a small position over one rollover on a demo or live account and compare the charge on your statement with this page. If they differ, ask the broker which formula it uses.
Sources
- MetaTrader 5 Help: Basic Principles (trading operations) (opens in a new tab), read on 2026-11-02. Supports: The swap is applied when a position is moved to the next trading day.
- MetaTrader 5 Help: Market Watch (opens in a new tab), read on 2026-11-02. Supports: Swap long applies to Buy positions and swap short to Sell positions; swap rates are a multiplier for each day of the week; swap type sets the calculation.
- FCA: FCA review finds CFD providers may be failing to deliver fair value to consumers (13 November 2025) (opens in a new tab), read on 2026-11-02. Supports: FCA found overnight funding charges varying without clear justification; the charges often were not adequately disclosed.
Frequently Asked Questions
Why Can The Swap Be A Credit?
The broker sets the rate, and it differs by instrument and by side. A negative rate on your side pays you, and the calculator shows that as a financing credit.
How Is The Weekend Counted?
Many brokers charge three nights on one weekday, but the calculator does not know which day. Add the extra nights to the nights field. In the worked example, two extra nights take 12 nights to 14.
Where Is The Swap Rate Found?
In your broker's swap table or contract specification, where MetaTrader 5 shows swap long and swap short for each instrument. The calculator does not fetch rates; enter the one for your side.