> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jup.ag/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> These docs cover what users see and do on jup.ag, Jupiter Mobile and Jupiter Wallet.
> Universal Deposit, the GUM routes in Bridge & Swap (GUM Universal Bridge, GUM Universal Deposit) and other GUM integrations on jup.ag are built by GUM. For how they work, their full fee rules, security model and APIs, the reference is the GUM docs: start from https://docs.gum.ag/llms.txt.
> When the GUM docs and these docs differ on how a GUM product behaves on jup.ag, describe the jup.ag experience from these docs and the mechanics and fees from the GUM docs.

# Automated market makers for peer-to-pool trading

> How automated market makers (AMMs) work: liquidity pools, liquidity providers and trading fees, impermanent loss, and liquidity on Jupiter.

export const GuideMeta = ({level, minutes, author, avatar, published, updated}) => <div className="jg-meta not-prose">
    <div className="jg-badges">
      <span className={`jg-level jg-level-${level.toLowerCase()}`}>{level}</span>
      {minutes ? <span className="jg-read">About {minutes} min read</span> : null}
    </div>
    <div className="jg-byline">
      <img noZoom className="jg-avatar" src={avatar} alt="" width="32" height="32" />
      <span>
        Written by <span className="jg-author">{author}</span>
        {published ? <span className="jg-origin">
            Originally published on Jupiter Academy, {published}{updated ? " · Updated for Jupiter Docs" : ""}
          </span> : null}
      </span>
    </div>
  </div>;

<GuideMeta level="Advanced" minutes={4} author="Bryan" avatar="/images/guides/authors/bryan.webp" published="February 23, 2026" updated />

<img src="https://mintcdn.com/jupiter-support/p5FdkagPcbEGL8wN/images/guides/automated-market-makers/cover.webp?fit=max&auto=format&n=p5FdkagPcbEGL8wN&q=85&s=d969261b86626416e4ea39031df0d5b9" alt="Two stacks of coins on two platforms, with arrows exchanging between them, the cover of this guide" width="1920" height="1080" data-path="images/guides/automated-market-makers/cover.webp" />

In traditional financial markets, asset exchange runs through an order book, which matches buyers and sellers directly: every trade needs a counterparty willing to trade at the same price at that exact moment.

Automated market makers (AMMs) change this. Instead of waiting for another person, you trade against a "liquidity pool", a giant pile of tokens held by a smart contract on the blockchain. This means you can trade 24/7, instantly, without needing to find a specific buyer or seller.

## How it works: the digital vending machine

Think of an <Tooltip headline="AMM" tip="Automated Market Maker. A smart contract that lets you swap tokens instantly by trading against a liquidity pool of assets rather than waiting for a specific buyer or seller." cta="Open the glossary" href="/user-docs/guides/glossary#amm">AMM</Tooltip> like a sophisticated vending machine.

* The pool: the machine is filled with two different items (for example, <Tooltip headline="SOL" tip="The native coin of the Solana blockchain, used for paying transaction fees and staking." cta="Open the glossary" href="/user-docs/guides/glossary#sol">SOL</Tooltip> and USDC).
* The trade: when you want to buy SOL, you put USDC into the machine and take SOL out.
* The price: the machine automatically changes the price based on what is left inside. If a lot of people are buying SOL and the machine is running low, the price of SOL goes up automatically to encourage people to put some back.

Because this is all handled by code ([smart contracts](/user-docs/guides/basics/smart-contracts)), there is no bank or broker in the middle, and the machine never closes for the weekend.

<Frame caption="The price in the illustration is an example.">
  <img src="https://mintcdn.com/jupiter-support/p5FdkagPcbEGL8wN/images/guides/automated-market-makers/amm-pool.webp?fit=max&auto=format&n=p5FdkagPcbEGL8wN&q=85&s=b2c97c4392fbffd3e92edd63ec0a1ce1" alt="A user sends USDC into a USDC and SOL pool and another receives SOL, with the pool price shown above" width="1920" height="1080" data-path="images/guides/automated-market-makers/amm-pool.webp" />
</Frame>

When you swap on Jupiter, you do not have to pick a machine: Spot scans pools across many AMMs and other liquidity sources, and can split your trade between them. See [Spot](/user-docs/trade/spot).

## Liquidity providers: being the house

The "money in the machine" has to come from somewhere. It comes from users called liquidity providers (LPs).

When you become an LP, you deposit your assets into the machine so that others can trade against them. In a classic pool, you put in an equal value of two tokens (like \$100 of SOL and \$100 of USDC); some pools also accept a single token and compose the pair for you. In return, you get a "receipt", an LP token or, in some pools, a position NFT, which proves you own a share of that pool. When you withdraw, you get your share of the pool back, which may hold a different mix of tokens than the one you put in.

On Jupiter, Smart Vaults on Jupiter Lend let your collateral or debt serve as liquidity for Jupiter AMM and earn trading fees. [JLP](/user-docs/earn/jlp) is a different kind of pool: it acts mainly as the counterparty to traders on the Jupiter Perps markets it backs, which are priced by oracles rather than by a curve.

## How liquidity providers earn fees

Why would you let others trade with your money? Because liquidity providers receive a share of the trading fees.

* Trading fees: every time someone makes a swap using the pool you are in, they pay a trading fee set by the pool.
* Earning your share: that fee, sometimes minus a cut kept by the protocol, is split among everyone who provided money to the pool, in proportion to their share.
* Fees that stay in the pool: in many pools, fees are added back to the pool itself, so over time each share, and your receipt, can be worth more than what you originally put in. On Jupiter, Smart Vault trading fees flow back to your position, shown as Trading APR, and JLP accrues a share of the fees from the Jupiter Perps markets it backs.

## The risks: price changes

The biggest risk for an LP is simply the price of the assets changing.

If you put SOL into a pool and the price of SOL crashes or skyrockets compared to the other token in the pool, the "vending machine" will rebalance your holdings. You might end up with more of the token that is worth less.

This is often called impermanent loss, but the simple version is: if prices move a lot while your money is in the pool, you might have been better off just holding the tokens in your regular wallet. On pairs whose tokens track each other closely, such as two dollar stablecoins, the effect stays small unless one of them loses its peg.

Fee income is not guaranteed either: it depends on trading volume, so a quiet pool earns little, and income can drop or stop. LPs weigh trading volume, price stability and each pool's own risks, and there are many different techniques for different risk profiles and situations.

## Go deeper

<CardGroup cols={2}>
  <Card title="Smart Vaults" icon="vault" href="/user-docs/earn/lend/smart-vaults">
    Let your collateral or debt serve as liquidity for Jupiter AMM, and the composition risk that comes with it.
  </Card>

  <Card title="JLP" icon="water" href="/user-docs/earn/jlp">
    The liquidity pool behind Jupiter Perps, and what gives the JLP token its value.
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.