← All posts
13 JULY 2026 · 11 MIN READ · XRP AMM MATH

XRP AMM Yield Math: When Trading Fees Beat Impermanent Loss

By XORA · Published

For an equal value XRP and stable asset pool, trading fees beat impermanent loss only when fee value exceeds the gap between the LP position and simply holding both assets. If XRP rises 50%, the no fee LP trails holding by 2.0204%; measured against the ending LP value, fees must add 2.0621%. At a 0.3% normal fee, that needs 6.874 times pool turnover, or 8.382 times if 20% of AMM volume receives the XRPL auction discount.

Calculate XRP yield → Compare XRP yield methods →

What the XRPL AMM actually does

The XRP Ledger AMM holds two assets and issues LP tokens representing proportional ownership. Official XRPL documentation states that the design uses a geometric mean with equal 0.5 weights, so it behaves like a constant product market maker. At most one pooled asset can be XRP. A pool can therefore pair XRP with an issued stable asset, subject to the token rules and issuer settings.

Liquidity providers do not receive a fixed interest rate. Traders pay the pool fee when the AMM supplies liquidity, fees remain in the pool, and an LP token can later redeem a share of those assets. LP return therefore depends on three moving inputs: XRP price relative to the stable asset, fee paying volume that actually reaches the AMM, and the provider's share of LP tokens.

XRPL LP holders vote on the normal trading fee from 0% to 1% in increments of 0.001%. The order book and AMM are integrated, so an order or payment can use offers, the AMM, or both according to the available rate. Pair volume is not automatically AMM volume, and a high voted fee can redirect trades toward the order book.

Every figure below is a transparent scenario, not a live pool APY or forecast. It assumes an equal value deposit, a constant product pool, a stable asset that holds one stable unit, no issuer transfer fee, and no additional deposits or withdrawals.

A worked XRP and stable asset position

Start with 10,000 XRP plus 10,000 stable units when one XRP equals one stable unit. The position and the hold benchmark both start at 20,000 stable units. Ignore fees first so the rebalancing effect is visible.

Let r equal the ending XRP price divided by its starting price. With a constant product pool, arbitrage moves the asset quantities until the pool price matches the external price. The resulting quantities are 10,000 divided by the square root of r XRP, plus 10,000 multiplied by the square root of r stable units.

Pool XRP = 10,000 ÷ √r
Pool stable = 10,000 × √r
No fee LP value = 20,000 × √r
Hold value = 10,000 × (1 + r)

If XRP rises 50%, r is 1.5. The pool ends with about 8,164.97 XRP and 12,247.45 stable units. At 1.5 stable units per XRP, those assets are worth 24,494.90 stable units. Holding the original 10,000 XRP and 10,000 stable units would be worth 25,000, leaving a 505.10 stable unit gap before fees.

Holding value compared with a no fee XRP AMM position after several XRP price moves Grouped bars show holding and no fee LP values from a 10,000 XRP plus 10,000 stable unit starting position. At half price the values are 15,000 and 14,142.14. At unchanged price both are 20,000. At one and a half times price they are 25,000 and 24,494.90. At double price they are 30,000 and 28,284.27. 0 15,000 30,000 15,000 14,142 20,000 20,000 25,000 24,495 30,000 28,284 0.5 times 1.0 times 1.5 times 2.0 times Gray: hold value · Green: no fee LP value
The LP position rebalances into less XRP as XRP rises and more XRP as it falls. The green no fee LP series trails the original asset mix whenever the relative price changes.

Impermanent loss is a benchmark gap

Impermanent loss does not mean the LP position always loses stable value. In the 50% rise example, the position grows from 20,000 to 24,494.90 stable units. The loss is relative to the 25,000 value of holding the original asset quantities.

For an equal value constant product pool, the percentage gap relative to holding is:

Impermanent loss = 1 − [2√r ÷ (1 + r)]

Equal percentage moves up and down are not symmetric. A fall from 1.0 to 0.5 is reciprocal to a rise from 1.0 to 2.0, and both produce 5.7191% impermanent loss. A rise to 1.5 is paired symmetrically with a fall to about 0.6667, not a fall to 0.5.

Impermanent loss for an equal value XRP and stable asset constant product pool A line chart labels impermanent loss at an XRP price ratio of 0.5 as 5.7191%, 0.75 as 1.0257%, 1.0 as 0%, 1.25 as 0.6192%, 1.5 as 2.0204%, 2.0 as 5.7191%, and 3.0 as 13.3975%. 0% 5% 10% 15% 5.7191% 1.0257% 0% 0.6192% 2.0204% 5.7191% 13.3975% 0.5 0.75 1.0 1.25 1.5 2.0 3.0 Ending XRP price divided by starting XRP price
Price movement has a nonlinear effect. A 25% XRP rise produces only 0.6192% impermanent loss, while a tripling produces 13.3975%, before fees.

The unique break even fee calculation

A common shortcut says fee yield must exceed the impermanent loss percentage. That is directionally right but can mix denominators. Impermanent loss is measured against the hold value. Pool fee return is usually discussed against liquidity value. For an exact comparison, convert the hold gap to the no fee LP base:

Fee return needed on LP value = Hold value ÷ no fee LP value − 1
= (1 + r) ÷ (2√r) − 1

At r equal to 1.5, the hold based impermanent loss is 2.0204%, but the required fee return on the smaller LP base is 2.0621%. That is the true break even figure when fee return uses ending LP value as its denominator.

Next connect fees to AMM turnover. Let C be cumulative AMM trading volume divided by average pool liquidity during the measurement period, and let t be the normal voted fee. In a simplified gross model, fee return is approximately C multiplied by t. The turnover needed at a 0.3% fee is therefore 2.0621% divided by 0.3%, or 6.874 times.

XRPL adds an important adjustment. The auction slot holder and up to four named accounts pay one tenth of the normal fee for 24 hours. If 20% of AMM volume receives that discount, the effective fee factor is 1 minus 0.9 multiplied by 20%, or 0.82. Break even turnover becomes 2.0621% divided by 0.3% divided by 0.82, or 8.382 times. Alternatively, if turnover is fixed at 8 times, the normal fee needed is about 0.3143%.

XRP price ratioLoss vs holdFee needed on LPTurnover at 0.3%Turnover with 20% discount volume
0.75 times1.0257%1.0363%3.454 times4.213 times
0.90 times0.1386%0.1388%0.463 times0.564 times
1.10 times0.1134%0.1136%0.379 times0.462 times
1.25 times0.6192%0.6231%2.077 times2.533 times
1.50 times2.0204%2.0621%6.874 times8.382 times
2.00 times5.7191%6.0660%20.220 times24.659 times
Normal XRPL AMM fee needed to offset a 50% XRP rise at different turnover levels Bars show the required normal fee when XRP rises 50% and 20% of volume receives the auction discount. Required fees are 1.2574% at two times turnover, 0.6287% at four times, 0.3143% at eight times, 0.2515% at ten times, and 0.1572% at sixteen times. The XRPL maximum normal fee is 1%. XRPL maximum normal fee: 1% 1.2574% 0.6287% 0.3143% 0.2515% 0.1572% 2 times 4 times 8 times 10 times 16 times Cumulative AMM volume divided by average liquidity
For a 50% XRP rise and 20% discounted volume, two times turnover cannot break even because the required 1.2574% exceeds the XRPL fee maximum. At eight times turnover, about 0.3143% is required.

Three worked fee scenarios

Quiet price, modest volume: XRP rises 10%, creating a 0.1136% fee requirement on LP value. At 0.3% normal fee and 0.5 times turnover with no discounted trades, approximate gross fee return is 0.15%. Fees exceed the modeled gap by about 0.0364 percentage points.

Large move, insufficient volume: XRP rises 50%, while the pool processes 5 times turnover at a 0.3% normal fee. Gross fee return is about 1.5% before any discount adjustment, below the 2.0621% requirement. The position still trails holding.

Large move, stronger volume: XRP rises 50%, turnover reaches 10 times, and 20% of volume receives the auction discount. Approximate gross fee return is 0.3% multiplied by 10 and 0.82, or 2.46%. That exceeds the 2.0621% requirement by about 0.3979 percentage points before transaction costs, issuer charges, tax, bid effects, and execution differences.

These scenarios show why a displayed fee is not an APY. Turnover is cumulative over the holding period. A pool reaching 8 times turnover in one month has a very different annual pace from one reaching it in one year. Price path also matters because volume, pool value, and rebalancing occur throughout the period, not only at the ending price.

XRPL details that change the result

How to evaluate a real XRP AMM position

  1. Record starting XRP price, both deposited quantities, LP token share, and the exact stable token issuer.
  2. Read the pool's current voted fee rather than assuming a common fee from another network.
  3. Measure volume that actually executed against the AMM, plus auction discounted volume if available.
  4. Calculate the hold benchmark from the original quantities at the same ending prices.
  5. Value the LP redemption amounts after proportional or single asset exit costs.
  6. Compare the full LP result with holding, then separately assess custody, issuer, liquidity, peg, tax, and XRP price risks.

For a broader comparison with custodial and other yield structures, read how to earn yield on XRP. Use the XRP yield calculator for deposit growth scenarios, and review XORA's security and custody model before depositing.

For related protocol math, see how XRP transaction fees reduce supply and why some XRP remains in wallet reserve.

FAQ

How is impermanent loss calculated for an XRP AMM?

For an equal value constant product pool, define r as ending XRP price divided by starting price. Impermanent loss relative to holding is one minus two times the square root of r divided by one plus r. A 50% XRP rise gives about 2.0204% before fees.

What fee income is needed to offset XRP impermanent loss?

When fee return is measured against ending no fee LP value, use one plus r divided by two times the square root of r, then subtract one. At a 50% XRP rise, the required fee return is about 2.0621%.

Does an XRPL AMM pay trading fees directly to my wallet?

No. Fees are paid into the AMM. LP holders benefit because their LP tokens redeem for a proportional share of the pool assets, including collected fees.

Does pairing XRP with a stable asset remove impermanent loss?

No. The stable asset gives a convenient reference, but XRP price changes still rebalance the pool and create a gap versus holding. The stable token adds issuer, freeze, liquidity, and peg risks.

Can impermanent loss become permanent?

Yes. The comparison moves while prices move, but withdrawing realizes the current pool composition. A later reversal could reduce the gap, but that reversal is not assured.

Sources checked

Official technical sources and calculations were checked on 13 July 2026. All scenario outputs were recomputed from the formulas shown above. Rounding to four decimal places can create small display differences.

Put XRP to work with the tradeoff understood

AMM yield is fee income minus the economic effect of rebalancing, not a fixed rate. A rational comparison uses executed AMM turnover, the voted fee, auction discounts, the hold benchmark, exit mode, and token issuer risk. Crypto assets can lose value, stable assets can lose their peg, and LP positions can underperform holding.

Readers can put XRP to work for up to 22% APY value, never guaranteed, rather than leave it idle on an exchange. XORA's headline comprises 15% native XRP yield, treasury subsidised during a disclosed bootstrap, plus estimated XORA reward value. It is variable, the reward value is not native XRP, and custody and market risks remain.

Open Xora → Put your XRP to work