Trading concepts

Triangular Arbitrage: The Formula and a Worked Example

The condition under which a dollar, euro and yen loop pays, a hypothetical example worked to the cent in both directions, how spreads, costs and a fraction of a yen of delay erase the gain, and what 18 currency crosses show on our own hourly prices since 2012.

· Founder of PatternsWizard
Checked 11 min read
Loop A of a triangular arbitrage, and the side of each quote: three nodes, USD at the top, EUR at the bottom right and JPY at the bottom left, joined by arrows going clockwise: buy euros with dollars at the EUR/USD ask, sell the euros for yen at the EUR/JPY bid, buy dollars with the yen at the USD/JPY ask. Below: loop A gains only if the EUR/JPY bid is above the EUR/USD ask times the USD/JPY ask; loop B goes the reverse way, on the other side of each quote.
On this page
  1. The triangular arbitrage formula
  2. A worked example, with hypothetical quotes
  3. What spreads and delay do to the profit
  4. How often real gaps appear, and for how long
  5. What our hourly forex data show
  6. How to calculate triangular arbitrage yourself
  7. Frequently asked questions

Every pattern's results on one sheet

The only pattern cheat sheet with tested stats: 152 patterns, what the textbook says and what really happened on 6 markets. Free PDF, sent to your inbox.

The PDF by email, plus our newsletter: new tests and results that change. Unsubscribe anytime. Privacy.

Triangular arbitrage is a set of three currency trades that starts and ends in the same currency and locks in a profit when the three exchange rates do not agree with each other. With euros, dollars and yen, the EUR/JPY rate should match EUR/USD times USD/JPY. When the quoted EUR/JPY is far enough from that implied cross rate to cover the spreads, a trader can go around the triangle, dollars to euros to yen and back to dollars, and end with more dollars than at the start. This page gives the condition, works through a hypothetical example with every quote and every amount, and shows how spreads and a few moments of delay change the result. The dollar, the euro and the yen are all fiat currencies; what that term covers is set out in our page on the fiat money meaning.

The triangular arbitrage formula

Write each rate as the dealer quotes it: a bid, the price at which you sell the first currency of the pair, and an ask, the price at which you buy it. Starting with dollars, there are two ways around the triangle:

  • Loop A, USD to EUR to JPY to USD: buy euros at the EUR/USD ask, sell the euros for yen at the EUR/JPY bid, buy dollars with the yen at the USD/JPY ask. Dollars at the end = dollars at the start × EUR/JPY bid ÷ (EUR/USD ask × USD/JPY ask).
  • Loop B, USD to JPY to EUR to USD: sell dollars for yen at the USD/JPY bid, buy euros with the yen at the EUR/JPY ask, sell the euros at the EUR/USD bid. Dollars at the end = dollars at the start × EUR/USD bid × USD/JPY bid ÷ EUR/JPY ask.

Loop A makes money only if the EUR/JPY bid is above EUR/USD ask × USD/JPY ask. Loop B makes money only if the EUR/JPY ask is below EUR/USD bid × USD/JPY bid. At most one of the two can work at a time, and when the quoted cross sits between the two products, neither does: the spreads absorb the gap.

Loop A of a triangular arbitrage, and the side of each quote

Loop A of a triangular arbitrage, and the side of each quote: three nodes, USD at the top, EUR at the bottom right and JPY at the bottom left, joined by arrows going clockwise: buy euros with dollars at the EUR/USD ask, sell the euros for yen at the EUR/JPY bid, buy dollars with the yen at the USD/JPY ask. Below: loop A gains only if the EUR/JPY bid is above the EUR/USD ask times the USD/JPY ask; loop B goes the reverse way, on the other side of each quote.

A worked example, with hypothetical quotes

The quotes below are invented for the example, with EUR/JPY set deliberately too high. They are not market data.

PairBidAsk
EUR/USD1.085001.08510
USD/JPY150.000150.015
EUR/JPY162.940162.960

The cross rate implied by the first two pairs is 1.08500 × 150.000 = 162.750 on the bid side and 1.08510 × 150.015 = 162.781 on the ask side. The quoted EUR/JPY bid, 162.940, is above 162.781, so loop A works. Starting with 1,000,000 dollars:

StepTradeAmount after the trade
1Buy euros: 1,000,000 ÷ 1.08510921,574.05 EUR
2Sell the euros for yen: 921,574.05 × 162.940150,161,275 JPY
3Buy dollars with the yen: 150,161,275 ÷ 150.0151,000,975.07 USD

The loop returns 975.07 dollars on 1,000,000, or 0.0975%, before any commission. Going the other way, loop B, with the same quotes ends at 998,711.34 dollars, a loss of 1,288.66: the direction matters, and only the formula tells you which one to take.

What spreads and delay do to the profit

The example already pays the spreads, since every trade uses the bid or the ask. The gap that makes money is the distance between the quoted EUR/JPY bid and the break-even, 162.781: 0.159 yen per euro. Two things eat it:

  • Movement between the trades. In the example, if EUR/JPY falls 0.15 yen, to 162.790 bid, between step 1 and step 2, loop A still returns 53.59 dollars instead of 975.07. A fall of 0.16 yen or more turns it into a loss: at 0.16 yen, the loop loses 7.84 dollars; at 0.20 yen, 253.57. The three trades have to be done almost at once, and in practice one of them may fill at a worse price or not at all, leaving an open position in one currency.
  • Costs not in the quotes. Commissions, financing and the price impact of a large order all come out of the 0.0975%. On a 1,000,000 dollar loop, a commission of 50 dollars per trade would take 150 of the 975.

Loop A on 1,000,000 dollars if EUR/JPY falls before the second trade

Loop A on 1,000,000 dollars if EUR/JPY falls before the second trade. No move: 162.940: +$975.07; Falls 0.05 yen: 162.890: +$667.91; Falls 0.10 yen: 162.840: +$360.75; Falls 0.15 yen: 162.790: +$53.59; Falls 0.16 yen: 162.780: −$7.84; Falls 0.20 yen: 162.740: −$253.57. Hypothetical example, computed from the assumptions in the text.
Hypothetical example, computed from the assumptions in the text.Invented quotes of the example above: EUR/USD ask 1.08510, USD/JPY ask 150.015, EUR/JPY bid as shown. Before commissions.

The same arithmetic applies to any three assets that trade against each other, including crypto pairs on one exchange, where trading fees are charged on each of the three legs.

How often real gaps appear, and for how long

Daniel Fenn, Sam Howison, Mark McDonald, Stacy Williams and Neil Johnson measured triangular arbitrage on executable prices, the prices at which a trade could actually be done, instead of indicative quotes. From October 2 to October 27, 2005, they counted 11,367 potential opportunities in the euro, dollar and yen triangle (the figure in the paper’s text; its Table 2 gives 17,314 at a zero threshold) and 10,018 in the euro, dollar and Swiss franc triangle. Their test is the one on this page: the product of the three rates, each on the side you trade, has to be above 1.

How long triangular arbitrage opportunities lasted in 2005

How long triangular arbitrage opportunities lasted in 2005. Lasted 1 second or less: 60%; Lasted 5 seconds or less: 95%. Values as published by the source below.
Values as published by the source below. Source: Fenn, Howison, McDonald, Williams and Johnson, The Mirage of Triangular Arbitrage in the Spot Foreign Exchange Market, International Journal of Theoretical and Applied Finance, 2009.Share of the opportunities found from October 2 to October 27, 2005, for both the yen and the Swiss franc triangles, on executable prices.

The number of opportunities fell from 2003 to 2005, which the authors link to the wider use of electronic trading platforms and trading algorithms. Their trading simulations conclude that a trader “would need to beat other market participants to an unfeasibly large proportion of arbitrage prices to profit from triangular arbitrage over a prolonged period of time.” The paper gives no figures after 2005; what it shows is that, already then, most gaps were gone within a second and almost all within five.

What our hourly forex data show

We ran the same test on our own hourly price data: 18 crosses, every pair of our 25 that does not include the dollar, from January 2, 2012 to October 23, 2026. At each hourly close we computed the rate implied by the cross's two dollar pairs (EUR/JPY from EUR/USD and USD/JPY, EUR/GBP from EUR/USD and GBP/USD, and so on) and measured the gap to the quoted cross in basis points, hundredths of a percent. That makes 1,604,808 cross hours.

Two limits come first. Our hourly prices are bid closes only, the last bid of each hour, and the three last bids are not always from the same second. And an hourly close cannot see a gap that lasts one second, which is what most real opportunities lasted in the 2005 study above. That is the point of the test: a gap still visible at an hourly close is a gap nobody took.

Gap between each cross and its implied rate, hour by hour

Gap between each cross and its implied rate, hour by hour. GBP/JPY: Typical hour (median) 0.1 bp, 1 hour in 100 (99th percentile) 3.4 bp; EUR/JPY: Typical hour (median) 0.1 bp, 1 hour in 100 (99th percentile) 3.5 bp; AUD/JPY: Typical hour (median) 0.1 bp, 1 hour in 100 (99th percentile) 3.6 bp; GBP/CHF: Typical hour (median) 0.2 bp, 1 hour in 100 (99th percentile) 5.3 bp; EUR/CHF: Typical hour (median) 0.2 bp, 1 hour in 100 (99th percentile) 4.3 bp; NZD/JPY: Typical hour (median) 0.2 bp, 1 hour in 100 (99th percentile) 5.2 bp; EUR/GBP: Typical hour (median) 0.4 bp, 1 hour in 100 (99th percentile) 7.5 bp; EUR/AUD: Typical hour (median) 0.4 bp, 1 hour in 100 (99th percentile) 7.1 bp; CAD/JPY: Typical hour (median) 0.5 bp, 1 hour in 100 (99th percentile) 5.8 bp; AUD/NZD: Typical hour (median) 0.7 bp, 1 hour in 100 (99th percentile) 10.8 bp; EUR/NZD: Typical hour (median) 0.7 bp, 1 hour in 100 (99th percentile) 10.9 bp; GBP/NZD: Typical hour (median) 0.8 bp, 1 hour in 100 (99th percentile) 10.9 bp. Our computation; the inputs and the method are in the text.
  • Typical hour (median)
  • 1 hour in 100 (99th percentile)
Our computation; the inputs and the method are in the text.Absolute gap in basis points between the hourly close of each cross and the rate implied by its two dollar pairs at the same hour, 2012-01-02 to 2026-10-23, 89,156 hours; 12 of the 18 crosses shown. All three prices are bid closes. A three-leg loop costs about 4.5 basis points in our cost model.

In a typical hour the cross sat 0.30 basis points from its implied rate; in 95 hours out of 100, within 2.0; in 99 out of 100, within 6.4. In pips, the typical gap was 0.18 pip for EUR/JPY, 0.21 pip for GBP/JPY and 0.31 pip for EUR/GBP. Part of it is not even a mispricing: with bid prices only, the implied rate carries the spreads of the two dollar pairs. That is why GBP/NZD, whose legs have wide spreads, sat 1.2 basis points below its implied rate on average.

A loop pays for three trades. Our cost model, the one used in every test on this site, charges 3 basis points for a round trip in forex, so about 1.5 per one-way trade and 4.5 for the three legs of a loop. Only 1.75% of cross hours had a gap wider than that.

When the wide gaps happen: by New York closing hour

When the wide gaps happen: by New York closing hour. 1 a.m. to 6 a.m.: 0.09%; 7 a.m.: 0.19%; 8 a.m.: 0.08%; 9 a.m.: 0.11%; 10 a.m.: 1.59%; 11 a.m.: 0.08%; 12 p.m.: 0.09%; 1 p.m.: 0.28%; 2 p.m.: 1.49%; 3 p.m.: 0.58%; 4 p.m.: 0.49%; 5 p.m.: 27.79%; 6 p.m.: 7.93%; 7 p.m. to 12 a.m.: 0.16%. Our computation; the inputs and the method are in the text.
Our computation; the inputs and the method are in the text.Share of cross hours with a gap wider than 4.5 basis points, by the New York time at which the hourly bar closes, 2012 to 2026.

Those hours are not where a profit hides. 66.1% of them fell on the hourly close at 5 p.m. New York time, the daily rollover, when dealers widen their quotes and the bid of a cross can drift away from the bids of its legs. At that close, 27.8% of cross hours showed a gap wider than costs; at every other hour, 0.62%. A gap that only exists while spreads are at their widest is the spread itself, not money left on the table.

The few gaps outside the rollover did not wait either: only 13.9% were still wider than costs, in the same direction, at the next hourly close.

Share of cross hours with a gap wider than a three-leg loop costs

Share of cross hours with a gap wider than a three-leg loop costs. 2012: All hours 1.29%, Without the 5 p.m. New York close 0.30%; 2013: All hours 1.24%, Without the 5 p.m. New York close 0.43%; 2014: All hours 1.54%, Without the 5 p.m. New York close 0.26%; 2015: All hours 2.04%, Without the 5 p.m. New York close 0.62%; 2016: All hours 1.87%, Without the 5 p.m. New York close 0.74%; 2017: All hours 1.22%, Without the 5 p.m. New York close 0.53%; 2018: All hours 0.74%, Without the 5 p.m. New York close 0.26%; 2019: All hours 0.82%, Without the 5 p.m. New York close 0.34%; 2020: All hours 1.48%, Without the 5 p.m. New York close 0.68%; 2021: All hours 2.49%, Without the 5 p.m. New York close 0.94%; 2022: All hours 2.45%, Without the 5 p.m. New York close 0.94%; 2023: All hours 1.92%, Without the 5 p.m. New York close 0.73%; 2024: All hours 2.39%, Without the 5 p.m. New York close 0.72%; 2025: All hours 2.67%, Without the 5 p.m. New York close 0.94%; 2026 (to Oct.): All hours 2.48%, Without the 5 p.m. New York close 1.10%. Our computation; the inputs and the method are in the text.
  • All hours
  • Without the 5 p.m. New York close
Our computation; the inputs and the method are in the text.Share of the 18 crosses times hourly closes where the gap to the implied rate exceeds 4.5 basis points. The 5 p.m. New York close is the daily rollover, when dealers widen their spreads.

Year by year, the share outside the rollover went from 0.26% in 2014, the lowest, to 1.10% in 2026, the highest. Even then, each of these is an hour where one bid close stood out, with no proof that the three prices could be traded together, at that size, in that second.

How to calculate triangular arbitrage yourself

  1. Take the bid and the ask of the three pairs at the same moment.
  2. Compute the two products: EUR/USD ask × USD/JPY ask and EUR/USD bid × USD/JPY bid.
  3. If the EUR/JPY bid is above the first product, loop A gains; if the EUR/JPY ask is below the second, loop B gains; otherwise there is nothing to take.
  4. Multiply the gap by the size of the loop and subtract every cost per leg, as in the example above. The trading math guide covers the percentages, and the lot size guide turns amounts into lots.

The same steps work for any currency triangle; replace the pairs and keep track of which currency is bought on each leg. The forex market guide explains how pairs are quoted, and the bid and ask guide explains the spread. More strategies are in trading concepts.

Frequently asked questions

What is triangular arbitrage?

A loop of three currency trades, for example dollars to euros to yen and back to dollars, that earns a profit when the quoted cross rate (EUR/JPY) differs from the rate implied by the other two pairs (EUR/USD × USD/JPY) by more than the spreads.

What is the formula for triangular arbitrage?

For the loop USD to EUR to JPY to USD: dollars at the end = dollars at the start × EUR/JPY bid ÷ (EUR/USD ask × USD/JPY ask). The loop gains only when the EUR/JPY bid is above EUR/USD ask × USD/JPY ask.

Can you still do triangular arbitrage in forex?

Not at a retail speed. On our hourly bid prices since 2012, only 0.62% of cross hours outside the 5 p.m. New York rollover showed a gap wider than the 4.5 basis points of a three-leg loop, and only 13.9% of those were still there an hour later. Real opportunities last seconds and go to the fastest traders.

Is triangular arbitrage risk free?

Only if the three trades fill at the quoted prices at the same moment. If one price moves first, the profit shrinks or turns into a loss: in our hypothetical example, a fall of 0.16 yen in EUR/JPY between two legs removed the whole gain.

Can you do triangular arbitrage with crypto?

The arithmetic is the same with three crypto pairs on one exchange, for example BTC/USDT, ETH/BTC and ETH/USDT. Trading fees are charged on each leg, so the gap has to exceed three fees plus the spreads.

Sources

  1. Daniel J. Fenn, Sam D. Howison, Mark McDonald, Stacy Williams and Neil F. Johnson, The Mirage of Triangular Arbitrage in the Spot Foreign Exchange Market, International Journal of Theoretical and Applied Finance, Vol. 12, Issue 8, 2009
, Founder of PatternsWizard

Passionate about finance, quantitative trading and data analysis. Amaury built the PatternsWizard test bench, which detects each pattern on full price history and measures what happened next against random entries.

PatternsWizard tests chart and candlestick patterns on full market history, against random entries. How we test patterns.

179 patterns testedRandom-walk self-test passed

Related guides

All trading concepts articles