Interest Rate Model
The formula a lending protocol uses to set rates from utilisation: borrow more of the pool and rates rise.
Basically
A DeFi lending protocol uses a mathematical curve to set what you pay to borrow and what you earn by lending. The rates change with the share of deposited money that is being borrowed.
Key Takeaways
- An interest rate model is the mathematical function that a lending protocol uses to automatically set borrow and supply rates based on how much of the deposited capital is currently being borrowed.
- Most protocols use a two-slope, or kinked, model. Rates rise gently below an optimal utilisation rate, then climb steeply above it, creating a strong incentive to keep pools balanced.
- Key parameters are the base rate, slope 1, slope 2 and optimal utilisation. They differ by asset risk profile and are adjusted through governance proposals, making rate policy a core part of protocol risk management.
What Is an Interest Rate Model?
An interest rate model is a formula embedded in a smart contract that determines how much borrowers pay and how much lenders earn on a DeFi lending protocol. The model makes rates fully algorithmic instead of relying on a central committee or fixed schedule. Rates move up or down each block in response to real-time supply and demand.
The utilisation rate is the model's core input: the ratio of total borrows to total deposits in a given market. Low utilisation means capital is sitting idle, so the protocol lowers rates to attract borrowers. High utilisation can make withdrawals difficult for depositors, so the protocol raises rates to discourage new borrows and incentivise fresh deposits.
Protocols such as Aave and Compound popularised this approach starting in 2020. Nearly every overcollateralised lending protocol now uses some variant of a utilisation-based interest rate model. The specific curve shape and parameters vary significantly across platforms and asset types.
How It Works
The standard interest rate model used by Aave V3 and similar protocols is a piecewise linear function with two segments separated by a kink point. The kink occurs at a target utilisation level called the optimal utilisation (U opt).
The Two-Slope Formula
The borrow rate R at any given utilisation U is calculated with the formula below. The formula uses U opt to split the curve into two parts.
Slope 1 controls the moderate rate increase below the optimal point. Slope 2 takes over above that point, and rates climb rapidly towards the protocol's maximum. The transition at U opt creates the visible "kink" in the rate curve.
Key Parameters
Four governance-controlled parameters define every interest rate model. They are the base rate, slope 1, slope 2 and optimal utilisation.
These parameters are set per reserve, meaning per market. A stablecoin pool might use a 90% optimal utilisation because stablecoin supply and demand are relatively predictable, while a volatile long-tail asset might use 45% to maintain a larger withdrawal buffer.
Supply Rate Derivation
Aave V3 gives lenders a share of the borrow interest in proportion to the current utilisation. A reserve factor reduces that share, and the protocol retains it as revenue. The supply rate is derived as follows:
A borrow rate of 5%, utilisation of 80% and a reserve factor of 10% produce a supply rate of 5% × 0.80 × 0.90 = 3.6% APY. This mechanic aligns lender returns with actual protocol usage.
Compound V3 (Comet) takes a different approach. It defines separate supply-side parameters, including its own base rate, slope and kink, giving governance independent control over what lenders earn versus what borrowers pay.
Solidity Implementation
Contracts typically compute rates per second and scale them by 10 18 for precision. A simplified Solidity implementation of the kinked model looks like this:
The protocol calls this function whenever a borrow, repayment, deposit or withdrawal changes the utilisation. Rates update in real time with every transaction, so there is no lag between market conditions and the rate a borrower pays.
Linear Model
A linear model uses the simplest approach: a single straight line from the base rate at 0% utilisation to a maximum rate at 100%. Linear models are easy to reason about, but they lack the safety mechanism of a steep zone near full utilisation. That makes depositor withdrawals risky during demand spikes.
Kinked (Two-Slope) Model
The kinked model is the industry standard, used by Aave V3, Compound V3 and most forks. Two linear segments joined at the optimal utilisation point create a "kink" that discourages utilisation from exceeding the target. The steep upper slope acts as a built-in circuit breaker: if too much capital is borrowed, rates spike to incentivise repayments and fresh deposits.
Adaptive (Dynamic) Models
Newer protocols experiment with models that automatically adjust their parameters over time rather than relying solely on governance votes. Morpho, for example, adjusts a scaling factor that shifts the entire curve up or down based on whether utilisation is persistently above or below target. Academic research has proposed control-theory approaches, including PID controllers, that could respond more quickly to market shocks. These remain largely experimental, and most major protocols still use the static kinked model with governance-driven parameter updates.
Why Different Assets Need Different Curves
Assets do not all behave the same way. A protocol's risk team calibrates each market's interest rate model to match that asset's risk profile:
Risk teams at organisations like Gauntlet, Chaos Labs and LlamaRisk continuously model these parameters. They submit governance proposals to adjust them as market conditions change.
Overcollateralised Lending
Protocols like Aave, Compound and Spark (MakerDAO) use interest rate models for the primary use case: balancing supply and demand across dozens of asset markets simultaneously. Borrowers post collateral exceeding their loan value, and the interest rate model ensures that depositors are fairly compensated based on how much of their capital is actively deployed. You can see the stablecoin-backed lending platforms analysis for a deeper look at how these protocols compare.
Stablecoin Minting
Some stablecoin issuers, such as MakerDAO with DAI, use interest rate models to set the cost of minting new stablecoins against collateral. The "stability fee" works like a borrow rate and is adjusted to maintain the dollar peg: when demand for DAI is high, the fee rises to slow issuance, and when demand drops, the fee falls to encourage minting. You can learn more about how overcollateralisation supports these systems.
Yield Strategy Optimisation
Yield aggregators and automated vaults monitor interest rate curves across multiple protocols to find the best supply rates. The curve's shape is deterministic and on-chain, so smart contracts can calculate expected returns before committing capital. The model's transparency makes DeFi yield optimisation programmable and composable.
Flash Loan Arbitrage
Arbitrageurs can use flash loans when a rate model pushes borrow costs high on one protocol while rates remain low on another. They can rebalance positions across protocols in a single transaction and profit from the rate differential.
Governance Risk
Governance token voting sets the parameters, so a poorly calibrated proposal could set slope 2 too low and fail to deter excessive borrowing. Setting slope 2 too high could make the protocol uncompetitive. Whale voters or compromised governance processes could manipulate rate parameters for profit.
Liquidity Crunch
Extreme market events can push utilisation to 100% before rates have time to attract new deposits, even with a steep slope 2. During the March 2023 USDC depeg, several lending markets hit near-100% utilisation, temporarily preventing depositor withdrawals. The interest rate model is a soft incentive mechanism, not a hard guarantee of liquidity.
Oracle and Liquidation Interaction
Interest rate models do not operate in isolation. Oracle price feeds can trigger liquidations that force borrowers to repay, rapidly changing utilisation and therefore rates. A sudden cascade of liquidations can cause rates to swing dramatically within a single block. Protocols must design their rate model alongside their health factor and liquidation mechanics to avoid destabilising feedback loops.
Model Rigidity
The static kinked model cannot adapt to changing market conditions without a governance vote, which can take days. DeFi rates may be slow to follow if external lending rates shift rapidly, for example when the Federal Reserve changes its benchmark rate. Adaptive models attempt to solve this, but introduce their own risks: strategic actors could manipulate an automated adjustment mechanism by temporarily pushing utilisation to extreme levels to influence future rate parameters.
Interest Rate Models and Stablecoin Lending
Interest rate models matter greatly for stablecoin markets, where the spread between borrow and supply rates directly affects the cost of dollar-denominated lending. Platforms building on Bitcoin layer 2 networks like Spark need to know how these models price risk to integrate with or compete against Ethereum-based lending markets. The stablecoin yield overview provides a broader view of how rates compare across the ecosystem.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.