What is Uniswap? A Complete Guide
The Uniswap Protocol is the largest decentralized exchange for swapping cryptocurrency tokens on Ethereum and other popular blockchains.
Launched in 2018, it is one of the world's largest and most popular decentralized exchanges, with over $3.9 trillion in trading volume and 1.8 trillion swaps.
The Uniswap Protocol is the one of the largest decentralized applications on Ethereum with billions in total value locked (TVL) combined across all versions of the protocol.
The protocol consistently processes billions in weekly trading volume and is one of most popular decentralized exchanges by volume on Ethereum mainnet, Arbitrum, Avalanche, Base, Blast, BNB Smart Chain, Celo, Optimism, Polygon, Soneium, World Chain, ZKsync, and Zora.
Hayden Adams created the Uniswap Protocol in 2018 and later founded Uniswap Labs, which has built the largest marketplace for onchain digital assets such as cryptocurrency tokens and NFTs. Uniswap Lab's suite of tools includes:
- Uniswap Web App: The most popular way to swap on the Uniswap Protocol
- Uniswap Wallet: A self-custody wallet to interact with onchain apps and swap, send, or receive crypto across 14+ networks — available as a mobile app on iOS and Android or as a browser extension on Chrome
No single entity or company controls the Uniswap Protocol. It is governed by UNI token holders and stewarded by the Uniswap Foundation.
What is the Uniswap Protocol? The decentralized exchange built on Ethereum
The Uniswap Protocol is a decentralized marketplace for swapping cryptocurrencies on the Ethereum blockchain. It exists as a set of persistent, non-upgradable smart contracts, meaning that no one controls or can alter the codebase.
The Uniswap Protocol will continue to run as long as Ethereum itself is functional, even if Uniswap Labs were to disappear. Because the code is open source, anyone can deploy the Uniswap Protocol’s contracts on any compatible blockchain.
People use the Uniswap Protocol primarily for two reasons:
Swapping
The Uniswap Protocol is a decentralized exchange (DEX). Unlike traditional exchanges, decentralized exchanges are unique because they allow users to swap tokens without third parties facilitating the transaction or taking control of funds.
Swapping on the Uniswap Protocol is completely self-custodial, which means you always retain control of your assets — and no third party can take or misuse your funds.
Providing Liquidity
Liquidity refers to how much of an asset is available to trade. The Uniswap Protocol relies on third parties to supply liquidity. These liquidity providers (LPs) are users who deposit tokens into a liquidity pool to provide liquidity for a particular token pair that swappers can trade with.
In return for providing liquidity, LPs typically earn trading fees generated by the pool. Anyone can become a liquidity provider, a transformative change to participating in financial markets.
How does Uniswap work? Understanding automated market makers (AMM)
Unlike traditional order book exchanges where a buy order is matched to a sell order, Uniswap uses an automated market maker (AMM) system.
AMMs use a mathematical algorithm to determine the price based on the supply of the asset, which removes the friction of having centralized middlemen and allows for an efficient way to buy and sell digital assets. There is no bidding or order book, just the price based on how much liquidity is available. When users want to make a swap, they input the amount of cryptocurrency they want to swap in and receive a number of tokens in exchange. All of this is done on the blockchain.
The Uniswap Protocol uses a constant product formula to determine the price of an asset. When a token is withdrawn (bought) from a pool, a proportional amount must be deposited (sold) to maintain the constant. The ratio of tokens in the pool, in combination with the constant product formula, ultimately determines the price of a token.
The constant product formula that the Uniswap Protocol uses is:
Where
- X = Reserve of the first token
- Y = Reserve of the second token
The total amount of both tokens should always balance out so that K experiences no change.
For example, if a liquidity pool has 10 ETH and 1000 USDC, the product of the two balances would be 10,000. If a user buys 1 ETH from the pool with USDC, the new balance would be 9 ETH and 1111.11 USDC, keeping the product of the two balances constant at 10,000.
The constant product market maker algorithm uses this formula to determine the price of each token in the pool based on the ratio of the two token balances. The price of a token in the pool is simply the ratio of the two token balances. In the above example, the price of ETH in terms of USDC would be 111.11 USDC after the swap.

Visit the Uniswap Docs site for a closer look into How Uniswap Works.
How many versions of the Uniswap Protocol exist?
The Uniswap Protocol has four versions:
- Uniswap V1 was the first version of the Uniswap decentralized exchange protocol, launched in November 2018. It was a revolutionary concept in decentralized exchanges, quickly gaining popularity in the cryptocurrency community. Uniswap v1 was the first DEX to natively pair tokens against ETH, the native token for Ethereum, letting users swap against the most popular token.
- Uniswap v2 launched in May 2020 and brought many upgrades to the Uniswap Protocol. Users could now trade any Ethererum-based (or ERC-20) token for any other ERC-20 token rather than just trading against ETH. Uniswap v2 greatly increased the protocol's flexibility and allowed for a broader range of trades.
- Uniswap v3 was released in May 2021. It introduced concentrated liquidity, allowing liquidity providers to choose specific price ranges rather than providing liquidity across the entire price range. This meant that LPs could concentrate their capital on a specific price range, allocating their capital more efficiently.
- Uniswap v4 is the current version of the protocol. Released in January 2025, v4 was built in public with contributions from the broader Uniswap community. The goal with v4 is to make liquidity pools more customizable with the introduction of hooks, and to lower gas costs.
For more info and lore from the early days, you can read an account of Uniswap's development, as explained by Hayden Adams, creator of the Uniswap Protocol.
The benefits of Uniswap: decentralization, liquidity, and accessibility
Decentralized exchanges (DEXs) like the Uniswap Protocol offer several benefits over traditional centralized exchanges (CEXs), including:
-
Decentralization and self-custody: One of the Uniswap Protocol's main benefits is that it is decentralized. Unlike centralized entities that operate CEXs, the Uniswap Protocol operates on a decentralized network, with no single entity controlling the exchange. Decentralization has two main advantages. (1) The smart contracts that make the Uniswap Protocol cannot be changed once deployed, meaning no one can change the rules. (2) Funds are completely self-custodial. You always remain in control of your assets. No third party can take or misuse them.
-
Transparency: DEXs are significantly more transparent than other exchanges. Not only is all the code open source and publicly available, but the Uniswap Protocol operates on public blockchains where all transactions and smart contract interactions are recorded on a transparent and immutable ledger. Anyone can access and verify these transactions, ensuring transparency and accountability.
-
Improved liquidity for cheaper swaps: The Uniswap Protocol can offer improved liquidity over CEXs. By allowing anyone to create and provide liquidity to a pool, the Uniswap Protocol can tap into liquidity from retail users without relying on traditional market makers or order books, making swaps cheaper.
-
Greater accessibility: Another benefit of the Uniswap Protocol is greater accessibility. Anyone can trade any token or create a market for any token. In this way, DEXs are more accessible to a wider range of users, including those who may not have access to traditional banking services.
How to swap on the Uniswap Protocol
Anyone can swap on the Uniswap Protocol. One of the easiest ways to do this is to use apps such ason the Uniswap web app, which is hosted and maintained by Uniswap Labs.
Step 1: Go to the Uniswap Web App
Navigate to app.uniswap.org from any web browser.
Step 2: Connect your wallet
To start using Uniswap on the Uniswap Web App, you'll need to connect your crypto wallet to the platform. Uniswap supports a range of wallets, including the Uniswap Wallet, Metamask, Coinbase Wallet, and WalletConnect.
If you don't have a crypto wallet, you can download the Uniswap Wallet for iOS and Android, or read our guide on how to get a crypto wallet.
Step 3: Choose the tokens you want to trade
After connecting your wallet, select the tokens you want to trade and the network you’d like to use, whether that’s Ethereum mainnet, Unichain, Base, Arbitrum, or another supported chain.
You can explore tokens from the token details page or search directly in the swap interface.

To select a token, click “Select a token” and browse the list, or search by token name or contract address. As always, do your own research when trading tokens.

Step 4: Enter the amount you want to trade
Once you've chosen the tokens you want to trade, you can enter the amount you want to trade. You can buy or sell one token for another based on the current exchange rate.
Additionally, you'll see a network cost, which is the gas fee you can expect to pay to perform the swap.

Step 5: Review and confirm your swap
After you've entered the amount you want to trade, the Uniswap auto router finds the current price and automatically calculates the amount of the other token you'll receive.
You'll then need to click "Review," then confirm the trade by clicking "Swap" and approving the Ethereum wallet transaction.

If this is your wallet's first time trading this token with the Uniswap Protocol, you need to approve the token first. This additional approval transaction is an extra layer of security to protect your funds.
Step 6: Wait for the transaction to be processed
After confirming your trade, you'll need to wait for the network to process the transaction. Swaps are often completed within seconds but can take longer if the network is busy.
That's it! The Uniswap Web App makes it easy to swap on the Uniswap Protocol, anytime, anywhere.
Frequently Asked Questions About Uniswap
What is Uniswap Labs?
Uniswap Labs is a company that develops software products that work on top of the Uniswap Protocol. Uniswap Labs was founded by Hayden Adams, who developed the Uniswap Protocol. Uniswap Labs builds and maintains products like the Uniswap Web App and Uniswap Wallet. Visit Uniswap Docs to understand the differences between Uniswap Labs and Uniswap Foundation.
What is the UNI token?
The UNI token is the Uniswap Protocol's governance token. The Uniswap Protocol is not controlled by a single entity, but rather a community of individuals and organizations is responsible for stewarding the world's biggest AMM protocol. Users and organizations that hold UNI can use it to vote on decisions related to the Protocol.
Is Uniswap safe?
The Uniswap Protocol is one of crypto's safest and most secure protocols. The protocol has processed over $3.3 trillion in trading volume over 1.8 trillion swaps without incident. All contracts have been audited by world-class professional security teams.
Does Uniswap charge fees?
Uniswap Labs charges a flat fee of 0.25% to sustainably fund our operations.
How to get started with Uniswap
We have several resources to help you get started with the Uniswap Protocol.
- Swap on the Uniswap Web App
- Follow up on Twitter
- Discuss on Farcaster
- Explore our Help Center
- Chat with customer support
- Ask questions in our Discord community
- Dig into the code
- Read the docs



