← All posts
24 AUGUST 2026 · 12 MIN READ · XRPL AMM MATH

XRPL AMM Slippage Calculator: Trade Size vs Pool Depth

By XORA · Published

In a balanced $1 million constant product pool, a $10,000 trade creates 2.000% curve impact; a 0.30% AMM fee lifts the modeled execution premium to 2.3009%, before the separate XRPL ledger cost. The same trade costs 20.3009% in a $100,000 pool but 0.5009% in a $10 million pool. Pool depth, not the nominal fee, is the dominant variable once a trade becomes large relative to reserves.

Calculate XRP yield → Model LP risk →

The calculator in one equation

The official XLS 30 specification defines the XRPL AMM as an equal weight geometric mean market maker. With 0.5 weights, it behaves like the familiar constant product curve. If a trader sends asset B into the pool to receive asset A, the specification's swap equation simplifies to:

output A = reserve A × [input B × (1 − fee)]
÷ [reserve B + input B × (1 − fee)]

This article uses a balanced XRP and stable unit pool at a starting mid price of one stable unit per XRP. “Total pool depth” means the combined starting value of both reserves. A $1 million pool therefore has 500,000 XRP on one side and 500,000 stable units on the other. The trader inputs stable units and receives XRP.

The assumptions make every result reproducible: 0.30% normal AMM fee, no issuer transfer fee, no order book liquidity, no competing transactions, no rounding adjustment, a stable asset that holds its unit value, and one isolated swap. These are scenarios, not live quotes or forecasts.

Nine trades across three pool depths

The table applies the same formula to three inputs and three balanced pools. “Curve impact” excludes the AMM fee. “Total premium” compares the fee-inclusive average execution price with the starting mid price. Output is denominated in XRP because the starting scenario values one XRP at one stable unit.

Total pool depthStable inputXRP outputCurve impactAMM fee amountTotal premium
$100,000$1,000977.50852.000%$32.3009%
$100,000$10,0008,312.489620.000%$3020.3009%
$100,000$50,00024,962.4437100.000%$150100.3009%
$1,000,000$1,000995.01590.200%$30.5009%
$1,000,000$10,0009,775.08482.000%$302.3009%
$1,000,000$50,00045,330.544710.000%$15010.3009%
$10,000,000$1,000996.80120.020%$30.3209%
$10,000,000$10,0009,950.15940.200%$300.5009%
$10,000,000$50,00049,357.90171.000%$1501.3009%

The central result is scale invariant. A $1,000 trade against a $100,000 pool and a $10,000 trade against a $1 million pool each consume 2% of the input-side reserve, so both have 2% curve impact. Multiplying both the trade and reserves by ten does not change the percentage economics.

Execution premium for a 10,000 dollar trade across three XRPL AMM pool depths Bars show a total execution premium of 20.3009 percent in a 100,000 dollar pool, 2.3009 percent in a 1 million dollar pool, and 0.5009 percent in a 10 million dollar pool, assuming a 0.30 percent trading fee. 0% 10% 20% 20.3009% 2.3009% 0.5009% $100k pool$1m pool$10m pool Fixed input: $10,000 · AMM fee: 0.30%
Increasing balanced pool depth from $100,000 to $10 million cuts the modeled premium on a $10,000 swap from 20.3009% to 0.5009%.

Price impact, AMM fee, and ledger cost are different

Trading interfaces often compress three costs into one slippage number. A better calculator keeps them separate.

  1. Constant product price impact comes from moving the reserve ratio. In this balanced scenario, curve impact equals input divided by the input-side reserve. A $10,000 input against 500,000 stable units is exactly 2%.
  2. AMM trading fee belongs to the pool. Official XRPL documentation says LP holders vote for the normal fee from 0% to 1% in 0.001% increments. At 0.30%, the nominal fee on $10,000 is $30.
  3. XRPL transaction cost is XRP destroyed to submit the transaction. The official transaction cost page gives 10 drops, or 0.00001 XRP, as the current typical minimum for a standard transaction. Network load can raise the required amount.

There is a small but important denominator effect. A 0.30% input fee adds 0.300903%, not exactly 0.300000%, to the fee-inclusive effective price when expressed relative to the no-fee mid price. For this equal-price setup:

curve impact = input ÷ input-side reserve
fee surcharge in effective-price terms = fee ÷ (1 − fee)
total pool premium = curve impact + fee ÷ (1 − fee)

The ledger burn is then added separately in XRP or converted into the trader's chosen unit at a contemporaneous XRP price. It should not be presented as liquidity slippage. Likewise, issuer transfer fees, wallet or exchange charges, and trust line reserve requirements are separate variables if they apply.

How much depth does a $10,000 trade need?

The equation can be reversed. If the trader has a maximum total pool premium, subtract the 0.300903% fee surcharge, then divide the input by the remaining curve-impact budget. Double the required one-side reserve to get balanced total pool depth at parity.

minimum total depth = 2 × input
÷ [cost target − fee ÷ (1 − fee)]

For a $10,000 trade at a 0.30% fee, staying below 2% needs about $1.177 million of balanced total depth. Staying below 1% needs $2.861 million. Reaching 0.5% needs $10.045 million. A target at or below 0.300903% is impossible in this isolated pool model because the fee alone consumes the budget.

Minimum balanced pool depth for a 10,000 dollar XRPL AMM trade at three cost targets At a 0.30 percent fee, a 10,000 dollar trade needs 1.177 million dollars total pool depth for a 2 percent premium target, 2.861 million for a 1 percent target, and 10.045 million for a 0.5 percent target. $0$5m$10m $1.177m$2.861m$10.045m 2.0% target1.0% target0.5% target Fixed input: $10,000 · AMM fee: 0.30%
Cost targets become disproportionately expensive in liquidity terms as they approach the 0.300903% fee floor.

Why the live XRPL quote can be better or worse

The isolated calculation is useful for screening, but XRPL execution is not restricted to one pool. The XRPL AMM documentation says a transaction may use order book offers, AMM liquidity, or a mixture, depending on the cheaper rate. For two issued tokens, autobridging can also synthesize a route through XRP when that route is cheaper. OfferCreate uses autobridging automatically; Payment transactions require pathfinding to find equivalent paths.

That routing can improve the realized rate relative to consuming only one pool. It can also make a hand calculation stale. Offers may disappear, another transaction may change reserves, the LP-voted fee may change, or the paired token may have a transfer fee. The amm_info method provides current pool balances and trading fee data. A production calculator should read validated state, inspect relevant offers and paths, set an explicit maximum input or minimum output, and recheck immediately before signing.

Risk note: this is educational scenario analysis, not financial advice or an execution guarantee. XRP and issued tokens can be volatile, stable assets can lose their peg, issuers can introduce counterparty and control risks, and crypto losses can be total.

Practical trade size rules

For LP economics after trades rebalance a pool, use our XRP AMM impermanent loss model. For the mechanics of combined liquidity, see the XRPL DEX guide. The wider network context is covered in our analyses of XRP tokenomics, supply, escrow, and burn and XRPL validator economics and decentralization. If you are comparing AMM management with other ways to deploy XRP, read how to earn yield on XRP and model compounding with the XRP yield calculator.

FAQ

How do you calculate slippage on an XRPL AMM?

Apply the XLS 30 swap formula using current reserves, input, and fee. Divide input by output to get the effective price, then compare it with the pre-trade mid price. Always state whether your slippage figure includes the trading fee.

What is the price impact of a $10,000 trade in a $1 million pool?

In this balanced parity scenario, the input-side reserve is $500,000, so curve impact is 2.000%. With a 0.30% AMM fee, total modeled execution premium is 2.3009%, and output is about 9,775.0848 XRP.

Is the XRPL transaction fee part of AMM slippage?

No. The ledger cost pays for transaction processing and is destroyed. It is separate from the AMM's trading fee and pool price impact. The typical minimum for a standard transaction is currently 10 drops, or 0.00001 XRP, but load can increase it.

Does a deeper XRPL pool reduce the trading fee?

No. Depth reduces curve impact for a fixed trade. The voted fee rate is a separate pool setting, allowed from 0% to 1% in 0.001% increments.

Will an XRPL trade always use only the AMM?

No. XRPL's native DEX integrates pools and order books. Depending on the transaction and available rates, execution can use an AMM, offers, or both. Two-token markets can also route through XRP when autobridging or payment pathfinding makes that cheaper.

Sources checked

Official technical sources were checked on 24 August 2026. All dollar amounts, pool depths, outputs, and cost targets are transparent calculations from the stated assumptions, not observed pool liquidity or promised execution.

Put XRP to work without hiding the tradeoffs

AMM trading can be efficient when depth is sufficient and execution bounds are strict, but it is not passive or guaranteed. If active pool and route management is not your preferred approach, XORA offers up to 22% APY value (15% native XRP yield, treasury-subsidised during a disclosed bootstrap, plus estimated XORA reward value). It is never guaranteed, reward value can change, and custody, liquidity, treasury, and market risks remain.

Put your XRP to work for up to 22% instead of leaving it idle on an exchange. Review the security and custody model, calculate scenarios first, and use only an amount appropriate for your risk tolerance.

Open Xora → Put XRP to work