Decentralized finance (DeFi) is a set of financial services, such as lending, borrowing, and trading, that run on public blockchains through smart contracts instead of banks, brokers, or centralized exchanges. Anyone with a self-custodial wallet can use DeFi, at any hour, and the rules are written in open code rather than set by a company.
Disclaimer: This guide is for educational purposes only. It's not financial advice, not a solicitation, and not for UK audiences. DeFi carries significant risks, including the loss of all funds, and isn't suitable for all users.
What DeFi means in practice
In traditional finance (TradFi), every service has a middleman. A bank holds deposits and decides who gets a loan. A broker routes trades. A clearinghouse settles them. Each one keeps records in a private database, sets its own hours, and can approve or refuse customers.
DeFi replaces those middlemen with smart contracts. These are programs stored on a blockchain that run automatically when their conditions are met. A lending contract holds pooled deposits and applies fixed rules for collateral and interest. A trading contract swaps one token for another at a price set by a formula. The contract can't decide to close early, freeze one customer, or change its rules without going through whatever upgrade process its code allows.
The result is a financial system where:
Users keep custody: Assets stay in the user's own wallet until they choose to deposit them into a contract, and they can usually withdraw at any time.
Access is open: No account application, credit check, or minimum balance. Anyone with a self-custodial wallet can connect.
Every transaction on public blockchain networks is visible: Every deposit, loan, and trade is recorded on a public blockchain that anyone can inspect.
Everything connects: DeFi protocols are built to work with each other, so a token from one protocol can be used in another. This is called composability. For example, ETH staked with Lido becomes stETH, which can then be deposited on Aave as collateral for a loan while it keeps earning staking rewards.
The main types of DeFi protocols
Type
What it does
Examples
Decentralized exchanges (DEXs)
Swap tokens directly from a wallet, usually through liquidity pools
Uniswap, Curve, and DEX aggregators that route across many DEXs
Lending and borrowing
Deposit assets to earn interest or borrow against collateral
Onchain versions of Treasury bills, stocks, and funds
Tokenized Treasury funds
Decentralized exchanges (DEXs) and liquidity pools
Most DEXs don't match buyers and sellers. Instead, traders swap against a liquidity pool, which is a smart contract holding two or more tokens. People who deposit tokens, called liquidity providers, earn a share of the trading fees. An automated market maker (AMM) sets the price using a formula based on the ratio of tokens in the pool, so each trade moves the price slightly.
Liquidity providers face impermanent loss. If the prices of the pooled tokens move apart, the provider can end up with less value than if they had held the tokens.
DeFi lending and borrowing
DeFi lending markets are usually overcollateralized. Borrowers must deposit more than they borrow. To borrow $1,000 in stablecoins, a borrower might deposit $1,500 or more in ETH. Interest rates adjust automatically. When many people want to borrow an asset, its rate rises, which attracts more lenders.
Borrowers accept this because it lets them get cash without selling an asset, which could trigger tax, or use the borrowed funds for another position.
Liquid staking in DeFi
Staking ETH helps secure Ethereum and earns rewards, but staked ETH can't be freely moved. Liquid staking protocols stake ETH on a user's behalf and give them a token, such as Lido's stETH, that tracks the staked position and can be used elsewhere in DeFi. Liquid staking and lending are two of DeFi's largest categories by deposits, and they've traded places during 2026. As of November 25, 2026, lending protocols held ~43.2 billion in TVL and liquid staking protocols held~ 39.7 billion, according to DefiLlama.
An example of how DeFi works: lending
Taking out a loan on a lending app such as Aave works like this:
Step
What the borrower does
What the contract does
Connect
Connects a self-custodial wallet, such as MetaMask, to a lending app such as Aave
Provides access to loans with no account or approval needed
Deposit
Deposits ETH as collateral
The contract records the deposit and gives the user a token that tracks it
Borrow
Borrows stablecoins against the ETH
The contract allows loans up to the protocol's limit, ~80% of the ETH's value on Aave's main Ethereum market
Accrue
Makes no scheduled payments; interest is added to the amount owed
Adds interest to the amount owed and tracks ETH's price through an oracle, a service that feeds outside prices onto the blockchain
Repay
Repays the loan plus interest
The contract returns the ETH
If ETH’s price falls below the liquidation price, other users or bots can repay part of the loan and take some of the ETH at a discount, known as the liquidation bonus.
No one reviews the application. The user signs each step in their wallet and pays a network fee for each one, and every step is public.
DeFi vs TradFi
Category
DeFi
TradFi
Access
Anyone with a self-custodial wallet
Account approval, ID checks
Custody
User holds assets until deposited
Institution holds assets
Operating hours
24/7
Business hours for many services
Settlement
~12 seconds per Ethereum block, final in ~13 minutes; much faster on other networks like Solana
One business day for US stock trades (T+1)
Rules
Open-source code
Internal policies and regulation
Transparency
All transactions public
Private records
Deposit protection
None
FDIC insurance up to $250,000 per depositor, per bank, in the US
DeFi is open to anyone with a self-custodial wallet, runs 24/7, and settles in minutes, but users hold their own assets and carry the risk, with no deposit insurance if something goes wrong. TradFi adds account checks, set hours, and slower settlement, and in return offers protections such as FDIC insurance and an institution that holds assets for its customers.
A short history of DeFi
Year
2015
Ethereum launches as the first blockchain built for general-purpose smart contracts, which DeFi depends on.
2016
MetaMask launches as a self-custodial wallet on Ethereum that lets users manage their tokens and connect to apps on the network.
2017
MakerDAO launches DAI, a stablecoin backed by crypto collateral and managed by smart contracts. It's often cited as the first major DeFi protocol.
2018
Uniswap launches the automated market maker (AMM) model, letting anyone trade tokens against a pool instead of an order book.
2020
"DeFi summer." Lending protocols start rewarding users with governance tokens, and total value locked (TVL) grows from ~$1 billion in June 2020 to over $10 billion by October 2020, according to DefiLlama.
2021
DeFi TVL peaks at ~$177 billion, according to DefiLlama.
2022
The collapse of Terra's algorithmic stablecoin, UST, and a series of large hacks cut DeFi's size sharply.
2023
Hyperliquid launches, and perpetual futures DEXs start to grow.
Stablecoin supply passed $200 billion, and perpetual futures DEXs hit a record of ~$1.36 trillion in monthly volume in October.
2026
Stablecoin supply reaches ~$300 billion, tokenized Treasury bills grow, prediction market Polymarket handles more than $10 billion in bets in a single month, while perpetual futures DEXs trade hundreds of billions of dollars a month.
How big is DeFi in 2026?
DeFi's size is usually measured as total value locked (TVL), the dollar value of assets deposited in DeFi smart contracts. Here's how TVL stands as of November 25, 2026:
For comparison, stablecoins in circulation across all networks totaled ~$280 billion. That's more than all of DeFi's TVL because most stablecoins are held in wallets and on centralized exchanges, not deposited in DeFi apps.
TVL rises and falls with token prices as well as with deposits, so a falling TVL doesn't always mean people are leaving DeFi. Ethereum has held the largest share since DeFi began, though its lead has narrowed as other networks have grown. The next largest as of November 25, 2026 were Base (~5.0 billion), Solana (~4.5 billion), Tron (~4.4 billion), and BNBChain (~4.2 billion).
How to start using DeFi
Getting started with decentralized finance usually involves these steps:
Step
How it works
Set up a wallet
Setting up an established self-custodial wallet that has built-in security features and storing the Secret Recovery Phrase offline. Anyone with the Secret Recovery Phrase can take everything in the wallet.
Fund it
Funding the wallet with digital assets to trade, lend, send, spend, or invest in, either bought in the wallet through onramp providers or sent from a centralized exchange account. Each transaction needs a network fee, paid in ETH (or, with gas abstraction, a token such as USDC).
Connect safely
Connecting to a DeFi app only through its verified URL, such as a bookmark or the app's official links. Phishing sites copy the look of real apps to trick users into signing malicious transactions.
Check approvals
Reading what each transaction approves before signing it. A token approval can let a contract move tokens from the wallet later.
Track positions
Tracking open positions, especially loans, in the lending app or a dashboard such as MetaMask Portfolio. On Aave, a loan with a health factor below 1 can be liquidated.
Revoke old approvals
Revoking token approvals that are no longer needed, so a hacked or malicious app can’t use them to move tokens later.
Frequently asked questions about DeFi
DeFi stands for decentralized finance, meaning financial services run by smart contracts on public blockchains instead of by banks or other intermediaries. It covers lending, borrowing, trading, and earning interest.
DeFi removes the risk of a bank or broker failing but adds smart contract, hacking, and liquidation risks, plus the risk of user errors. Funds also have no deposit insurance. In 2026, ~$1.19 billion was stolen from DeFi protocols by November 2, according to DefiLlama.
People mainly earn in DeFi by trading on DEXs, lending assets for interest, providing liquidity for trading fees, or staking. Each carries risk, and returns change constantly.
Often the answer is no. Network fees on Ethereum are usually paid in ETH, but with the introduction of gas abstraction, such as MetaMask's gas included transactions, users can often pay the fee in another token, such as USDC, USDT, or DAI, on supported networks.
Total value locked is the value of assets deposited in DeFi smart contracts. It's a rough measure of DeFi's size and rises and falls with token prices.
Yes, in many countries. Rules vary and are changing, and local regulations decide what's allowed.
Centralized finance (CeFi) platforms, such as centralized exchanges, hold users' assets. In DeFi, users keep custody and interact with smart contracts directly.
Subscribe to Alpha for market alpha straight to your inbox
This Article is written by:
MetaMask
MetaMask, formerly Consensys Software Inc, is the world's largest self-custodial financial platform, giving people a single place to hold, spend, save and grow their money across both crypto and traditional assets. The company is building the consumer platform where that happens, bringing payments, savings, investing and digital assets together in one seamless experience. Having grown
from the world's most widely used self-custodial wallet, MetaMask gives users direct control over their money and assets, with reach across approximately 190 countries. MetaMask has played a foundational role in Ethereum's growth since 2016. Today, MetaMask sits at the center of the blockchain economy, building the operating system for Open Money and putting people in full control of their
financial lives.