First in, first out: the oldest trade closes first.

First in, first out: the oldest trade closes first.

The FIFO rule ("first in, first out") requires US forex brokers to close a customer's positions in the same currency pair in the order they were opened, oldest first, and stops them from holding opposite positions in the same pair in one account. It comes from NFA Compliance Rule 2-43(b), which says that forex dealer members "may not carry offsetting positions in a customer account but must offset them on a first-in, first-out basis". It applies to retail forex accounts with firms regulated by the US National Futures Association (NFA). Most brokers regulated elsewhere do not have the same rule.

What the rule says, in plain English

The rule has two effects, and they are easiest to understand separately.

  • No hedging in one account. If you are long one lot of EUR/USD and you sell one lot of EUR/USD, the broker must treat the sale as closing your long position, not as opening a new short alongside it.
  • Oldest trade closes first. If you have several positions in the same pair and direction, a closing order closes the oldest one first.

There is one exception written into the rule. At the customer's request, the broker may close a trade of the same size even if there are older trades of a different size, but it must close the oldest trade of that size.

According to an NFA notice from 2009, the ban on holding offsetting positions applied to positions opened after 15 May 2009, and the first-in, first-out part took effect on 31 July 2009. NFA's stated concern was that holding both sides of the same pair offered customers little economic benefit while adding costs.

How FIFO works: a worked example

Say you build a long EUR/USD position in three steps, each on a different day. EUR/USD is now at 1.0980, and each standard lot is worth about $10 a pip.

TradeOpenedSizeEntryOpen profit at 1.0980
#1 (oldest)Monday1.0 lot1.1000−20 pips = −$200
#2Tuesday0.5 lot1.0950+30 pips = +$150
#3 (newest)Wednesday1.0 lot1.0900+80 pips = +$800

Your total open profit is +$750. Now you want to take some profit off the table.

What a 1-lot sell order closes under FIFOThree long EUR/USD trades, price 1.0980#1Closed firstOldest 1-lot trade, opened at1.1000. Realised: −$200.#2Stays open0.5 lot from 1.0950, still+$150.#3Stays openNewest 1-lot trade, still +$800even though you wanted to closeit.Source: NFA Rule 2-43(b); FX Recap example at about $10 a pipfxrecap.com
FIFO decides which trade closes, not how much you have made in total.

Without FIFO, you might choose to close trade #3 and bank $800. Under FIFO, a 1-lot sell closes trade #1 and realises a $200 loss, while #3 stays open. Your total profit on the whole position is unchanged at +$750, but the profit and loss you have realised is different, and your remaining position now has a better average entry.

If you sell 0.5 lots instead, strict FIFO would close half of trade #1. Using the same-size exception, you can ask the broker to close trade #2 instead, because it is the oldest 0.5-lot trade.

FIFO does not make you lose money by itself. Your overall exposure and total profit are the same either way. What changes is which individual trade is closed, which matters for record-keeping, for some tax reporting and for strategies that manage each trade separately.

Why hedging is not allowed under the rule

Outside the US, many platforms let you open a buy and a sell on the same pair in one account, a practice usually called hedging. Under NFA's rule, the second order simply closes the first.

Hedging account vs FIFO accountSame orders, different resultsHedging allowedUS FIFO accountBuy 1 lot, then sell 1 lot: two opentradesBuy 1 lot, then sell 1 lot: positionclosedNet exposure is zeroNet exposure is zeroPays spread on both tradesProfit or loss is realised nowOvernight swaps on both legsNo swaps on a closed positionEach trade can be closed in any orderSame-pair trades close oldest firstSource: NFA Rule 2-43(b); FX Recap summaryfxrecap.com
Both accounts end up flat; only the hedging account keeps paying to stay there.

A buy and an equal sell in the same pair cancel each other out: whatever one gains, the other loses. The only real effect of holding both is paying two spreads and, overnight, two sets of swap charges. That is why NFA saw little value in it for customers. If you want to be flat, a FIFO account makes you close the trade.

Who the FIFO rule applies to

  • Applies: retail forex accounts with firms that are NFA members acting as forex dealer members, which in practice means US-regulated forex brokers.
  • Usually does not apply: accounts with brokers regulated in the UK, EU, Australia, South Africa, Kenya and most other jurisdictions, where hedging is commonly allowed by the platform.
  • Check your platform: some brokers outside the US also offer a netting mode in which positions in the same pair are combined, which works in a similar way.

US retail forex accounts also face other limits set by the CFTC and NFA, most notably maximum leverage of 50:1 on major currency pairs and 20:1 on others. Together with FIFO, these rules make US accounts more restrictive than many offshore offers, and that is by design.

How to trade well under FIFO

  1. Think in one net position per pair. Instead of several separate trades, treat each pair as one position with an average entry.
  2. Scale out on purpose. When taking partial profits, expect the oldest piece to close first, and plan stops and targets around the whole position.
  3. Use different sizes deliberately. The same-size exception lets you close a specific trade if it is the oldest of its size.
  4. Use one-cancels-other orders carefully. Some stop and target combinations behave differently when positions are netted; test them on a demo first.
  5. Use a separate account if your broker offers one. Some US brokers let customers hold more than one account; check their rules before relying on it.
Illustrative case, not a real client

A US trader used to run a short-term sell on EUR/USD while keeping a longer-term buy open in the same account at a non-US broker. After moving to a US broker, her sell orders kept closing her long trade. She switched to trading one net position: when she expected a short-term dip she reduced the long by half and added it back later. Her exposure was the same as before, and she stopped paying two spreads and two swaps on positions that cancelled out.

Is FIFO good or bad for traders?

For most traders, FIFO is a mild inconvenience rather than a real handicap. It removes a practice, holding both sides of the same pair, that rarely makes economic sense, and it forces clearer thinking about total exposure. Traders who rely on managing many individual trades in one pair, or on grid-style systems, will find it more restrictive. If you trade with a US broker, build your plan around one net position per pair, and use the position size calculator on the whole position, not on each piece.

Want to compare rules across countries? Our guide to whether forex trading is legal in your country links to each regulator.

Forex trading carries a high risk of losing money quickly because of leverage. Rules can change; check your broker's terms and the NFA rulebook. This guide is education, not legal or financial advice.

Frequently asked

What is the FIFO rule in forex?

It is NFA Compliance Rule 2-43(b). US forex dealers must close a customer's positions in the same pair oldest first, and may not hold offsetting (buy and sell) positions in the same pair in one customer account.

When did the FIFO rule start?

NFA's 2009 notices set the hedging ban for positions opened after 15 May 2009 and the first-in, first-out requirement from 31 July 2009.

Does the FIFO rule apply outside the US?

No. It applies to NFA-regulated forex dealers. Most brokers regulated in other countries allow hedging, although some offer a netting mode that works in a similar way.

Can I hedge forex in the US?

Not in the same pair in the same account. A sell order against an open buy of the same size closes the buy instead of opening a new short.

Is there any exception to FIFO?

Yes. At the customer's request, a broker may close a trade of the same size even if older trades of a different size exist, but it must close the oldest trade of that size.