What is DeFi, and how does decentralised finance actually work?
Decentralised finance rebuilds lending, trading and saving out of smart contracts on public blockchains. The plumbing is new; many of the risks are old ones in new clothes.

The short answer
DeFi, short for decentralised finance, is a set of financial services such as lending, borrowing and trading that run on smart contracts on public blockchains instead of through banks or brokers. Regulators note that most DeFi products mimic traditional finance and that people usually still control them.
Key takeaways
- DeFi uses smart contracts on blockchains such as Ethereum to offer lending, borrowing, trading and stablecoins without a traditional intermediary holding your account.
- Decentralised exchanges often use liquidity pools, where depositors pool tokens for others to swap against and receive a token representing their share.
- DeFi loans are usually over-collateralised because there are no credit checks, and some apps offer flash loans that must be repaid within one transaction.
- IOSCO says DeFi is rarely fully automated or leaderless: there is usually a person or group that controls or strongly influences the service.
- Main risks include code exploits, oracle and bridge failures, opaque governance, leverage and the absence of familiar consumer protections.
What is DeFi?
DeFi stands for decentralised finance. The International Organization of Securities Commissions (IOSCO), the global body for securities regulators, describes it as financial products, services and arrangements that use blockchain technology, including self-executing code known as smart contracts3. The U.S. Treasury uses similar words, adding that these services purport to allow automated peer-to-peer transactions2.
The community that builds DeFi on Ethereum describes it as financial services open to anyone with an internet connection who can use Ethereum1. Instead of opening an account with a bank, you connect a self-custody wallet to an app and interact directly with contracts that hold pooled funds and follow fixed rules.
Figure · The DeFi stack
- L4Applicationsthe websites and wallets you use
- L3Protocolssmart contracts for lending, swaps
- L2AssetsETH and other tokens
- L1BlockchainEthereum's ledger and state
The tokens moving through this stack mostly follow shared formats such as ERC-20, a standard interface that lets any compliant token be reused by wallets and decentralised exchanges5. Our guide to token standards explains why that matters.
What can you do with DeFi?
IOSCO's central finding is that most DeFi products mimic or resemble services from traditional finance3. The table maps the main ones, drawing on IOSCO's descriptions3 and Ethereum's own overview1.
Common DeFi services and their traditional counterparts
| DeFi service | How it works | Closest traditional equivalent |
|---|---|---|
| Lending pools | Deposit tokens into a contract to earn a variable or fixed return while others borrow them | Savings account and secured loan |
| Decentralised exchanges | Swap one token for another against a pool of deposited tokens | Currency exchange or brokerage |
| Stablecoins | Tokens designed to track a currency such as the US dollar | Electronic money |
| Flash loans | Borrow with no collateral if repaid in the same transaction | No real equivalent |
| Derivatives and leverage | Contracts that amplify exposure to price moves | Futures and margin trading |
Flash loans are the most unusual item. A borrower can take funds without collateral as long as the loan is repaid within the same blockchain transaction; if it is not, the whole transaction is reversed as if it never happened1. Our explainer on stablecoins covers the dollar-pegged tokens that much DeFi activity runs on.
How does a decentralised exchange work?
A traditional exchange matches buyers with sellers in an order book. Many decentralised exchanges work differently, using an automated market maker (AMM). Developers deploy a set of smart contracts where participants deposit two or more tokens into a liquidity pool, and other users swap one token for another against that pool3.
Life of a liquidity pool
- 1
Depositors add tokens
Liquidity providers place pairs of tokens into the pool contract3.
- 2
They receive LP tokens
In return they get a liquidity provider token representing their proportional share of the pool, redeemable for their slice3.
- 3
Traders swap
A trader sends one token to the pool and receives the other from it, on terms set by the pool contract's rules3.
- 4
Providers withdraw
Returning LP tokens redeems the provider's slice of the pool as it stands at that moment3.
Swapping against a pool rather than a queue of orders is the key difference from a traditional venue. How much a large trade costs still depends on how much sits in the pool, the theme of our page on liquidity and slippage.
How does borrowing work without a bank?
In a DeFi lending protocol, holders deposit tokens into a lending pool to earn a return, and other users borrow from the same pool3. Because the protocols are pseudonymous, there are no credit checks, so loans are generally required to be over-collateralised: you must lock up tokens worth more than you borrow3.
Figure · A bank loan and a DeFi loan
Bank loan
- Lender checks identity and credit
- Loan can be unsecured
- Human staff handle problems
- Rules set by regulated lender
DeFi loan
- No credit check; wallet-based
- Collateral worth more than loan
- Contract code enforces terms
- Price data comes from oracles
Protocols set parameters such as loan-to-value ratios, liquidation ratios and liquidation penalties that vary with the collateral used3. The contract learns what your collateral is worth from a price feed supplied by a blockchain oracle6. If that value falls past the liquidation ratio, the collateral can be liquidated to cover the loan, so a sharp price drop or a faulty feed can cost borrowers their deposit.
Is DeFi really decentralised?
Often less than the name suggests. IOSCO calls it a common misperception that DeFi products run fully automatically with no human involvement3. Whatever the governance structure, it says there is usually a responsible person or group that controls, or sufficiently influences, the service3. Many projects are run as DAOs (decentralised autonomous organisations), governed by holders of governance tokens who vote on changes3, and IOSCO describes these structures as often opaque, experimental and easy to manipulate3.
Regulators look at what a service does, not what it calls itself. The Treasury states that a DeFi service that functions as a financial institution must meet anti-money-laundering obligations, and that claiming to be fully decentralised does not change that status2. In December 2023 IOSCO published nine policy recommendations aimed at investor protection and market integrity in DeFi4.
What are the main risks of DeFi?
IOSCO lists weak points across blockchains, smart contracts, governance, oracles and cross-chain bridges3. The Treasury groups attacks into three types: breaches using phishing or social engineering, exploits of bugs in smart contract code, and flash loan attacks that manipulate asset prices2. On top of that, DeFi offers leveraged strategies, and shocks elsewhere in crypto tend to spill into it3. Moving tokens between chains adds the risks covered in our page on cross-chain bridges.
Common beginner mistakes
Treating a yield like a bank interest rate
A DeFi return can change by the hour and depends on borrowers, incentives and the protocol continuing to work. It is not a bank deposit.
Believing "audited" means safe
An audit reviews code at one point in time. Exploiting bugs in smart contract code is one of the main attack types the Treasury describes2.
Ignoring who controls the protocol
Check whether admin keys or a small group of token holders can change the rules or move funds.
Approving unlimited token spending
Token standards let you approve an app to spend your tokens up to an allowance5. A large allowance stays in place until you change it, so a compromised app could use it.
Borrowing close to the limit
A small price move can push your collateral past the protocol's liquidation ratio3. Leave a wide buffer, or avoid leverage.
Risk warning
No safety net
DeFi services may lack the investor protections of regulated finance, and losses from hacks or bad code may never be recovered. Crypto-assets are highly volatile. Never put in money you cannot afford to lose, and read our risk disclosure.
Frequently asked questions
Do I need permission to use DeFi?
Most apps do not ask for an application or account approval; anyone with a compatible wallet can connect1. That openness also means there is often nobody to call if something goes wrong.
Is DeFi legal?
It depends on the country and the activity. Regulators apply existing rules to what a service does: in the U.S., the Treasury says a DeFi service acting as a financial institution has anti-money-laundering duties regardless of its structure2.
What is a governance token?
It is a token that gives holders voting rights over a protocol or DAO, such as changes to fees or rules3. Voting power usually tracks how many tokens someone holds, so large holders can dominate.
Why would anyone use a flash loan?
Is DeFi the same as crypto?
No. Crypto-assets are the tokens; DeFi is a set of services built with smart contracts that use those tokens for lending, trading and other financial activities3.
The bottom line
DeFi rebuilds familiar financial services out of smart contracts, pooled tokens and price oracles. That makes some things faster and more open, but it does not remove the need for trust: users rely on code, data feeds and the people who usually still control these protocols. Understanding the mechanics, and the absence of a safety net, comes before using any of it.
Sources
- What is decentralized finance (DeFi)? — ethereum.org (Ethereum Foundation) Primary source
- Illicit Finance Risk Assessment of Decentralized Finance — U.S. Department of the Treasury, 2023 Primary source
- Final Report with Policy Recommendations for Decentralized Finance (DeFi) — International Organization of Securities Commissions (IOSCO), 2023 Primary source
- IOSCO Finalises its Policy Recommendations for Decentralized Finance (DeFi) (media release, 19 December 2023) — International Organization of Securities Commissions (IOSCO), 2023 Primary source
- ERC-20: Token Standard (EIP-20) — Ethereum Improvement Proposals, 2015 Primary source
- Oracles — ethereum.org developer documentation Primary source
How we checked this page: every figure above links to the numbered source it came from. Spotted an error? Tell the desk — see our editorial policy.
Read next
Tech · ExplainerWhat is a smart contract, and what can go wrong with one?A smart contract is a program that lives on a blockchain and runs exactly as written. That makes it powerful, and it is also why a single bug can be so costly.
Tech · ExplainerWhat is a blockchain oracle, and why do smart contracts need one?A smart contract can only see what is already on its blockchain. Oracles are the bridge to everything else, and they are often the weakest link in the chain.
Finance · ExplainerWhat is a stablecoin, and how does it stay at one dollar?Stablecoins are crypto tokens built to stay boring: one token, one dollar. Whether they manage it depends on what backs them, who can redeem them and what the law requires.
Markets · ExplainerWhat are liquidity and slippage, and why do they change the price you pay?The price on the screen is a quote, not a promise. How close your fill lands to that quote depends on how much is waiting to trade on the other side.
Fintech · ExplainerWhat are KYC and AML, and why does every financial app want your ID?Uploading a passport photo to open an account can feel intrusive. It is the visible end of a global rulebook designed to stop criminals from moving money through the financial system.
Policy · ExplainerHow do you check whether a financial or crypto firm is regulated?A licence number in a website footer proves nothing until you check it yourself. Official registers are free, public and take a few minutes. Here is which one to use and what to look for.