XRP AMM Yield Math: When Trading Fees Beat Impermanent Loss
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.
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.
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.
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 ratio | Loss vs hold | Fee needed on LP | Turnover at 0.3% | Turnover with 20% discount volume |
|---|---|---|---|---|
| 0.75 times | 1.0257% | 1.0363% | 3.454 times | 4.213 times |
| 0.90 times | 0.1386% | 0.1388% | 0.463 times | 0.564 times |
| 1.10 times | 0.1134% | 0.1136% | 0.379 times | 0.462 times |
| 1.25 times | 0.6192% | 0.6231% | 2.077 times | 2.533 times |
| 1.50 times | 2.0204% | 2.0621% | 6.874 times | 8.382 times |
| 2.00 times | 5.7191% | 6.0660% | 20.220 times | 24.659 times |
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
- Fee voting: The normal fee can change when LP holders vote. Up to eight LP votes are counted, weighted by LP token ownership.
- Route competition: Orders and cross currency payments can use order book offers, the AMM, or a combination. Use AMM executed volume, not total market volume.
- Auction economics: Discounted traders pay one tenth of the normal fee. Auction bids return LP tokens to the AMM, which can benefit remaining LP holders. The simplified calculations above adjust discounted volume but deliberately exclude bid value.
- Entry and exit mode: Proportional deposits and withdrawals of both assets are not subject to an AMM fee. A single asset deposit or withdrawal pays a fee on the implicit conversion portion.
- Stable token risk: A stable label does not remove issuer exposure, liquidity risk, or peg risk. XRPL documentation also notes that a frozen pooled token freezes associated LP tokens. Confirm the exact currency code and issuer.
How to evaluate a real XRP AMM position
- Record starting XRP price, both deposited quantities, LP token share, and the exact stable token issuer.
- Read the pool's current voted fee rather than assuming a common fee from another network.
- Measure volume that actually executed against the AMM, plus auction discounted volume if available.
- Calculate the hold benchmark from the original quantities at the same ending prices.
- Value the LP redemption amounts after proportional or single asset exit costs.
- 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
- XRP Ledger, automated market makers, fee voting, auction discount, LP tokens, and currency risk
- XRP Ledger Standards, XLS 30 geometric mean AMM specification and equal weights
- XRP Ledger, AMMDeposit modes and fee treatment
- XRP Ledger, AMMWithdraw modes and fee treatment
- XRP Ledger, AMM creation tutorial and asset risk guidance
- XORA, yield source and bootstrap disclosure
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.