What Is Balancer and Weighted Liquidity Pools
Learn what Balancer is and how weighted liquidity pools work. This beginner guide provides a clear explanation with math and a practical crypto index example.

What Is Balancer and Weighted Liquidity Pools
Balancer is a decentralized automated market maker that introduced weighted liquidity pools, enabling users to create pools with multiple tokens in customizable ratios. Unlike traditional constant product AMMs that force a 50/50 split, Balancer allows liquidity providers to set any weight distribution, such as 80/20 or 60/20/20. This flexibility opens up new possibilities for passive portfolio management and efficient trading.

How Balancer Weighted Pools Work
At the core of Balancer is a weighted constant product formula. For a pool with two tokens, the invariant is:
(Balance of Token A ^ Weight A) * (Balance of Token B ^ Weight B) = Constant
This formula ensures that no matter how many trades happen, the product of each token’s balance raised to its weight remains the same. When a user swaps Token A for Token B, the pool’s balances adjust, and the constant holds true.
Consider a simple example: a pool with Token A (weight 0.8) and Token B (weight 0.2). Initially, the pool holds 100 units of A and 50 units of B. The constant is (100^0.8) * (50^0.2). If a trader sends 10 units of A into the pool, the pool must remove enough B to keep the constant unchanged. Because A’s weight is higher, the price impact for trading A is lower than for trading B, and the pool automatically rebalances.
The table below illustrates how balances change after a trade:
| Token | Weight | Initial Balance | After Trade (Incoming 10 A) |
|---|---|---|---|
| A | 0.8 | 100 | 110 |
| B | 0.2 | 50 | 45.2 (approximate) |
The exact amount of B removed is calculated by solving the invariant. This mechanism allows pools with asymmetric weight distributions to function efficiently.
Why Use Balancer’s Weighted Liquidity Pools?

Balancer’s weighted pools offer several advantages over fixed-ratio AMMs:
- Customizable portfolio allocation: You decide exactly how much of each token you want to hold. For example, a conservative investor might create a pool with 90% stablecoin and 10% ETH.
- Reduced impermanent loss for certain weights: When a token has a very high weight, price divergence affects the pool less compared to a 50/50 split. This can be beneficial if you expect one asset to outperform.
- Passive rebalancing: As prices change, arbitrageurs trade against the pool to restore the invariant. This automatically sells overvalued assets and buys undervalued ones, effectively rebalancing your portfolio without any active management.
- Multi-token pools: You can include up to eight tokens in a single pool, making it simple to create a custom index fund in one liquidity position.
Additionally, Balancer charges trading fees on every swap. These fees are distributed proportionally to liquidity providers, offering a potential income stream while you maintain your desired asset allocation.
Practical Example: Building a Balanced Crypto Index with Balancer
Imagine you want to hold a diversified portfolio of three cryptocurrencies: Bitcoin (BTC), Ethereum (ETH), and Chainlink (LINK). You decide on a target allocation of 50% BTC, 30% ETH, and 20% LINK.
Instead of buying each token separately and manually rebalancing whenever prices shift, you can create a Balancer weighted liquidity pool with those exact weights. Here’s how it works:
- Create the pool: You deposit 50 BTC, 30 ETH, and 20 LINK (or any proportional amounts) into a new Balancer pool with weights 0.5, 0.3, and 0.2 respectively.
- Liquidity provision: Your deposited tokens become the pool’s initial liquidity. You receive Balancer Pool Tokens (BPT) representing your share.
- Automatic rebalancing: Suppose the price of ETH rises significantly. Traders will swap ETH for other tokens in the pool until the invariant is restored. This means the pool sells some of its overvalued ETH and buys more of the undervalued assets (BTC and LINK), automatically bringing the portfolio back toward your target weights.
- Earning fees: Every trade against your pool generates fees, which accumulate in the pool and increase the value of your BPT over time.
The table below shows a simplified before-and-after scenario after a price change:
| Token | Weight | Initial Amount | After ETH Price Rise (Approximate) |
|---|---|---|---|
| BTC | 0.5 | 50 | 52 |
| ETH | 0.3 | 30 | 28 |
| LINK | 0.2 | 20 | 21 |
Notice that the pool sold some ETH and bought more BTC and LINK. You have effectively rebalanced without paying any additional transaction fees yourself. This is the power of Balancer’s weighted pools.
Conclusion
Balancer revolutionized DeFi by introducing weighted liquidity pools, giving users unprecedented control over their asset allocations. Whether you want to build a custom index fund, reduce impermanent loss, or simply earn fees while holding a diversified portfolio, Balancer provides the tools to do so. The weighted constant product formula ensures trades are executed fairly, while the platform’s flexibility makes it a cornerstone of decentralized finance.