Impermanent Loss Calculator — Free & Private

A free edge API by formatho.com, privacy-first developer tools.

Open the full browser tool →

Free, no signup, runs entirely in your browser — your data never leaves your device.

🔓 Free🔒 Zero tracking🚫 No data collection⚡ Edge-fast

Usage

curl "https://impermanent-loss-formatho.filesformatho.workers.dev/api?amount_a=1&amount_b=4000&p1=8000"

curl -X POST https://impermanent-loss-formatho.filesformatho.workers.dev/api -H 'Content-Type: application/json' \
  -d '{"price_change":100,"amount_a":1,"amount_b":4000}'

Constant-product AMM (Uniswap V2-style, x·y=k) impermanent loss: give your deposit as amount_a/amount_b (token A priced in token B) plus the exit price p1, or just two prices p0/p1, or a price_change percent. Returns LP exit balances vs HODL, the loss in percent and token-B units, the fee yield needed to break even, and a scenario table from −75% to +300%.

Pure math at the edge — nothing is logged or stored.

Full parameter reference: /api endpoint.

Privacy-first: calculations run in-memory at the edge; no logs, no storage, no telemetry.

Full browser tool

Model with a full UI: Impermanent Loss Calculator on formatho.com. Also see the APY Calculator.

All Formatho edge APIs

Browse every free Formatho Worker tool on the Formatho Tools index.