What Is Looping in DeFi Lending? Explained
What is looping in DeFi lending? How recursive borrowing amplifies yield — and liquidation risk — explained for beginners.
Looping in DeFi lending is a strategy where a user repeatedly deposits an asset as collateral, borrows against it, and redeposits the borrowed amount as more collateral — amplifying both yield exposure and borrowing risk with each cycle. It's a form of on-chain leverage built entirely from DeFi lending primitives, without needing a separate margin or derivatives product.
How a loop actually works
Say a user deposits an asset that earns a yield — a liquid staking token, for instance — into a lending market. They then borrow against that deposit, using the loan-to-value ratio the protocol allows, and use the borrowed funds to buy or acquire more of the same yield-bearing asset, which gets deposited again as collateral for another round of borrowing. Repeating this several times increases the total exposure to the underlying yield-bearing asset well beyond the original deposit amount, funded entirely by borrowed capital.
Some protocols and vaults automate this entire process in one transaction using flash loans, executing what would otherwise be many separate deposit-borrow-redeposit steps atomically, saving gas and avoiding the risk of the position sitting incomplete partway through.
Why looping is attractive
The appeal is straightforward: if the yield-bearing collateral earns more than the interest rate on the borrowed asset, looping multiplies that yield spread. This is especially popular with liquid staking tokens borrowed against ETH or stablecoin-against-stablecoin pairs, where price correlation is high and Aave-style eMode-type settings allow much higher loan-to-value ratios, making multiple loop cycles both cheaper and safer than looping uncorrelated assets.
The core risk: amplified liquidation exposure
Every loop cycle increases leverage, and leverage cuts both ways. If the collateral asset's price falls relative to the borrowed asset — even a small amount, in a supposedly "correlated" pair — the position's health factor can drop quickly, since a small price move now applies to a much larger borrowed position than before looping.
If the health factor drops below the protocol's threshold, the position gets liquidated: collateral is seized and sold (usually at a discount to the liquidator) to repay the debt, and the borrower loses the liquidation penalty on top of the underlying price move. The more loops, the smaller the price move needed to trigger this outcome.
Depeg risk for "correlated" pairs
Looping strategies are often built on the assumption that two assets stay tightly correlated — for example, a liquid staking token maintaining its peg to the underlying asset, discussed in our piece on how Lido's stETH maintains its peg. Correlated doesn't mean identical: even a brief, partial depeg during a period of market stress can be enough to trigger cascading liquidations across many looped positions simultaneously, since they were all sized assuming the correlation would hold.
Looping vs simple leverage products
| Aspect | Manual looping via lending market | Dedicated leverage/margin product |
|---|---|---|
| Execution | Multiple deposit/borrow cycles (or one flash-loan transaction) | Single transaction via specialized contract |
| Underlying mechanism | Standard lending market LTV | Often the same lending market, wrapped |
| Gas cost | Higher if done manually, cycle by cycle | Usually lower, optimized |
| Risk transparency | Requires understanding compounding leverage yourself | Sometimes displayed as a single "leverage" number |
| Liquidation risk | Same core risk, easy to underestimate cycle by cycle | Same core risk, but often clearer upfront |
Costs that erode the strategy
Looping isn't free even before considering risk: gas costs for each cycle (unless automated via flash loan), borrowing interest that rises as utilization in the lending market increases, and the spread between supply and borrow rates all eat into the net yield. In periods when borrowing demand spikes, borrow rates can climb enough to make a previously profitable loop unprofitable, forcing an unwind at an inconvenient time.
Managing the risk
Anyone considering looping should size positions so that a health factor buffer survives a realistic price shock, not just typical daily volatility, and should understand that automated looping vaults are making these leverage and rebalancing decisions on the user's behalf — meaning the vault's rules matter as much as the underlying lending market's. This strategy sits at the higher-risk end of the strategies covered in our DeFi vault strategies overview, and it should be approached with the same risk framework as any leveraged position: know your liquidation price, not just your expected yield.
Bottom line
Looping turns a lending market into a leverage tool by cycling deposits and borrows to multiply yield exposure, but it multiplies liquidation risk at the same rate. It works best — and is safest — with genuinely correlated asset pairs and conservative loop counts, and it can unravel quickly if a correlation assumption breaks or borrow rates spike. Treat the amplified yield number and the amplified liquidation risk as two sides of the same decision.
Related articles
This article is for educational purposes only and is not financial advice. DeFi involves significant risk, including total loss of funds. Always do your own research.