What Is DeFi and How Does It Work?
Decentralised finance recreates lending, trading, and saving using smart contracts instead of banks. Here is how it works — and the risks you need to weigh.
DeFi, short for decentralised finance, is a set of financial services — lending, borrowing, trading, and saving — that run on public blockchains through smart contracts instead of banks or brokers. Rather than trusting a company to hold your money and settle transactions, you interact directly with open-source code, keeping custody of your assets in your own wallet the whole time. That openness is DeFi's biggest strength and, when the code fails, its biggest risk.
How is DeFi different from traditional finance?
In traditional finance, an intermediary sits between you and the service: a bank holds your deposit, an exchange matches your trades, a broker approves your account. In DeFi, those intermediaries are replaced by smart contracts — programs that execute automatically when conditions are met. Anyone with a wallet can use them, they run around the clock, and the rules are visible on-chain. There is no branch to call, no account manager, and usually no way to reverse a transaction once it is confirmed.
What are the main building blocks of DeFi?
Most DeFi activity falls into a handful of categories that stack together like Lego bricks. Understanding these makes the wider ecosystem far easier to read.
- Decentralised exchanges (DEXs) let you swap tokens directly from your wallet using liquidity pools instead of an order book.
- Lending protocols let you deposit assets to earn interest or borrow against collateral you post.
- Stablecoins provide a price-stable unit of account so users can move value without constant volatility.
- Liquidity provision and yield farming reward users who supply capital to pools, though returns vary and are never guaranteed.
- Bridges and restaking move assets and security between networks, expanding what is possible but adding new points of failure.
How do you actually use a DeFi app?
You start with a self-custody wallet, fund it with crypto (often on Ethereum or a layer-2 network to keep fees low), and then connect it to an app. From there you might swap one token for another, deposit into a lending market, or add liquidity to a pool. Every action requires you to approve a transaction and pay a network gas fee. Because you sign each step yourself, you should read what you are approving — a malicious contract can request permission to move far more than you intend.
How do people earn yield in DeFi?
Yield comes from real economic activity: borrowers pay interest to lenders, traders pay fees to liquidity providers, and some protocols distribute their own tokens as incentives. Headline rates can look attractive, sometimes far above a savings account, but higher advertised yields usually signal higher risk. Token-incentive rewards can also fall sharply once early emissions dry up, so a 20% rate today may be a fraction of that next month.
What are the risks of DeFi?
DeFi removes the middleman, but it also removes the safety net. Smart-contract bugs can be exploited to drain funds, and there is rarely any compensation. Other hazards include impermanent loss for liquidity providers, oracle manipulation, governance attacks, and outright scams dressed up as protocols. Because you hold your own keys, a single mistaken approval or phishing signature can empty your wallet. Stick to audited, established protocols, start with small amounts, and never deposit money you cannot afford to lose.
Is DeFi safe for beginners?
DeFi is accessible to anyone, but 'accessible' is not the same as 'safe'. Newcomers are best served by learning the mechanics with small sums, using well-known protocols, and treating eye-catching yields with suspicion. If you are still setting up self-custody, our self-custody guide and our best DeFi wallets ranking are sensible starting points before you connect to any app.
Frequently asked
Do I need Ethereum to use DeFi?
Not exclusively. Ethereum hosts the most DeFi activity, but many protocols run on layer-2 networks and other blockchains with lower fees. You will need that network's native token to pay gas.
Can I lose money in DeFi even without trading?
Yes. Smart-contract exploits, failed protocols, and impermanent loss can all reduce your balance even if you simply deposit funds. There is usually no insurance to recover losses.
Is DeFi regulated?
Regulation is uneven and evolving. Some jurisdictions are drafting rules, but many DeFi protocols operate without oversight, which means fewer protections if something goes wrong.
What is the difference between DeFi and a crypto exchange?
A centralised exchange holds your funds and matches trades for you. A DeFi app lets you trade or lend directly from your own wallet using smart contracts, so you keep custody but also carry more responsibility.