Impermanent loss

Loading…

All tools › Tokens

Impermanent loss

What providing liquidity costs against simply holding, and why the name is wrong

It runs entirely in this browser tab: what you type is never uploaded, and the tool makes no network request while it works. Open your browser's network panel and try it — nothing leaves the page. There is no sign-up and no account.

What it takes

First token at the start
An amount.
First token now
An amount.
Second token at the start
Optional.
Second token now
Optional.
Deposit
Optional.

An example

first_start = 2000
first_now = 4000
second_start = 1
second_now = 1
deposit = 10000

Settings

Fee yield
What the pool paid in trading fees over the period. It offsets the loss and is the only reason to be in one. A number from 0 to 500.

How to use it

  1. Fill in the boxes above. Anything you leave blank the tool works out.
  2. Adjust the settings beside it until the result is what you wanted.
  3. Copy the result, or save it as a file. The result updates as you type.

Questions

Does this fetch live prices?
No. Every price, rate and return here is one you typed in. Nothing on this page makes a network request, which is also why it cannot be out of date: there is nothing in it to go stale.
Is tax taken into account?
Only the rate you set. Exemptions, holding periods, what may be offset against what and how long a loss may be carried differ by country and by year, and a calculator that guessed would be wrong for almost everybody while looking authoritative.
Is this financial advice?
No. These are calculators: they turn the numbers you give them into other numbers. Every future rate of return is an assumption you made, and the past does not promise it — which each tool that takes one says on its own result.
Is what I type uploaded anywhere?
No. This page carries the whole tool as WebAssembly and runs it on your own device. Nothing you type is sent anywhere, and there is no network request to make while it works.

Other tools for tokens

Crypto profit
What a token trade made once both exchange fees are in it

Staking rewards
What staking pays after the validator's cut, which is not the advertised rate

All twenty-seven tools