What Is DeFi? Decentralized Finance Explained

Wiki

What Is DeFi? Decentralized Finance Explained

Crypto DeskUpdated Nov 10, 2026

Decentralized finance (DeFi) is a set of financial services, such as trading, lending, borrowing and earning interest, that run on public blockchains through software programs called smart contracts instead of through banks, brokers or exchanges acting as intermediaries. Users connect directly to that code with a crypto wallet. They keep control of their assets through private keys, and the rules for each transaction are executed automatically and recorded on a public ledger.

What decentralized finance means

The word “decentralized” describes who controls the system. In traditional finance, a bank holds your deposit, decides whether to approve your loan, sets the interest rate and keeps the record of who owns what, under rules set by regulators such as the Federal Reserve and the Securities and Exchange Commission (SEC).

DeFi moves those functions onto a shared network. No single company keeps the ledger, and no loan officer approves the transaction. Instead, a published program defines the terms (for example, how much collateral a borrower must post) and enforces them for every user in the same way.

DeFi is not one product or one company. The term covers the whole ecosystem of blockchains, protocols and applications that let people transact directly using cryptocurrency. A DeFi protocol is the set of smart contracts that performs a service, such as a lending market. A DeFi app (or dapp, for decentralized application) is the interface people use to reach that protocol. A DeFi platform usually means a protocol together with its interface.

How DeFi works

Four layers make a DeFi transaction possible: the blockchain, smart contracts, wallets and the application interface.

The blockchain layer

A blockchain is a distributed ledger copied across many computers. Transactions are grouped into blocks, verified by the network and linked in sequence, so changing an old record would mean changing every block after it. For DeFi, the blockchain does two jobs. It records who owns which tokens, and it runs the smart contracts that hold and move those tokens. Ethereum was the first widely used blockchain designed for general-purpose smart contracts, and many DeFi protocols were built on it. Other blockchains also host DeFi applications.

Smart contracts

A smart contract is a program stored on a blockchain that executes automatically when its conditions are met. A lending contract, for example, might say: accept collateral, allow a loan up to a set percentage of that collateral’s value, charge interest at a rate determined by supply and demand, and sell the collateral if its value falls too far.

Because the code is published on the blockchain, anyone can review the terms. Because it runs on the network rather than on a company server, it can operate around the clock without a clerk approving each step. The same feature creates risk: if the code contains a flaw, the flaw executes just as faithfully as the intended rules.

Wallets and private keys

Users reach DeFi through a wallet, an application that stores private keys and sends signed instructions to a blockchain. A private key works like a password that proves control over the tokens tied to a wallet address. When you “send” tokens, you sign a transaction with that key, and the network updates the ledger.

Most DeFi activity uses self-custody wallets, meaning the user, not a company, holds the keys. If the keys are lost or stolen, there is generally no help desk that can restore access, and a confirmed blockchain transaction cannot be reversed.

The application interface

DeFi apps, accessed through a browser or a mobile app, present the protocol’s functions as buttons and forms: swap this token for that one, deposit into this pool, borrow against this collateral. When you confirm, the app asks your wallet to sign a transaction, and the smart contract does the rest.

The interface and the protocol are separate: a company may run the website that displays a lending market, while the lending contracts live on the blockchain. Some DeFi services also depend on centralized pieces, such as price feeds or administrator keys that can upgrade the code. “Decentralized” describes a spectrum, not a guarantee.

Worked examples: how DeFi services calculate outcomes

The examples below are hypothetical and simplified. They show the mechanics, not the terms of any specific protocol.

Example 1: an overcollateralized loan

DeFi lending markets usually do not check credit scores. Instead, they require borrowers to post collateral worth more than the loan.

Assumptions (hypothetical): a lending protocol lets you borrow up to 75% of your collateral’s value (the loan-to-value limit) and liquidates collateral if the loan reaches 80% of the collateral’s value (the liquidation threshold). Interest and fees are ignored for simplicity.

  1. You deposit tokens worth $10,000 as collateral.
  2. Maximum borrowing: $10,000 × 75% = $7,500. You borrow $6,000 in a stablecoin pegged to the dollar.
  3. Your current ratio is $6,000 ÷ $10,000 = 60%.
  4. Liquidation happens when the loan equals 80% of collateral value: $6,000 ÷ 0.80 = $7,500. If your collateral falls from $10,000 to $7,500, a 25% drop, the protocol can sell part or all of it to repay the loan, often with a penalty.

Why borrow this way? A user might want cash without selling a token they expect to hold, or might use the borrowed funds for other DeFi activity. The cost is that a sharp market move can trigger liquidation automatically, with no margin call and no grace period beyond what the code allows.

Example 2: a swap on an automated market maker

Many decentralized exchanges use an automated market maker (AMM) instead of an order book. Users called liquidity providers deposit two tokens into a pool, and traders swap against that pool. A widely used design is the constant product formula:

x × y = k

Here x and y are the quantities of the two tokens in the pool and k stays constant during a trade (before fees).

Assumptions (hypothetical): a pool holds 100 units of Token A and 200,000 units of Token B, so k = 100 × 200,000 = 20,000,000. The pool price is 2,000 Token B per Token A. Fees are ignored.

  • A trader adds 10,000 Token B to buy Token A. The pool now holds 210,000 Token B.
  • To keep k constant, Token A must fall to 20,000,000 ÷ 210,000 ≈ 95.24.
  • The trader receives about 100 − 95.24 = 4.76 Token A, an average price of roughly 2,100 Token B each, not 2,000.

That difference is price impact: the larger a trade relative to the pool, the worse the average price. It is one reason pool size matters. Liquidity providers earn a share of trading fees in return for supplying the tokens, but they also face impermanent loss, the shortfall that can occur when the pool’s token prices move compared with simply holding the same tokens outside the pool.

What DeFi is used for

DeFi was first pitched as a way to bring loans and banking-type services to people without access to them. It has since grown into several distinct sectors.

  • Decentralized exchanges (DEXs): Apps such as Uniswap and PancakeSwap let users swap tokens directly from their wallets, without depositing funds with an exchange operator.
  • Liquidity pools: Users deposit tokens into pools that make DEX trading possible, earning a share of fees.
  • Lending and borrowing: Protocols pool deposits from lenders and lend them to borrowers who post collateral. Aave is a well-known example: users supply assets to earn interest from borrowers, or borrow against their own deposits.
  • Yield farming: Users move funds between pools and protocols to collect interest, fees and reward tokens. Returns can come from several sources at once, and so can risks.
  • Flash loans: Some platforms offer uncollateralized loans that must be borrowed and repaid within a single blockchain transaction; if repayment fails, the whole transaction is reversed. These are tools for advanced users and have also been used in attacks on poorly designed protocols.
  • Stablecoins: Tokens designed to track a currency such as the US dollar give DeFi a unit of account that does not swing like other crypto assets, which is why loans and trading pairs are often denominated in them.
  • Prediction markets and gambling: Platforms such as Polymarket let users bet on the outcomes of real-world events, and a range of crypto gambling apps also operate on blockchains.
  • NFTs: Non-fungible tokens sit at the edge of DeFi. Some protocols let holders trade them or use them as loan collateral.

The DAO (decentralized autonomous organization) model is also closely tied to DeFi: many protocols are governed by token holders who vote on changes to fees, collateral rules or code upgrades.

The goals behind DeFi

DeFi’s supporters describe several aims:

  • Accessibility: Anyone with an internet connection and a wallet can take part, regardless of location or banking relationship.
  • Peer-to-peer exchange: Two parties can trade, lend or pay each other without a bank or broker in the middle.
  • Composability: Protocols can plug into one another, so a token earned in one app can be used as collateral in another.
  • Market-set costs: Without intermediaries taking a cut, rates can be set by supply and demand.

These are goals, not guarantees. Users still pay network transaction fees (often called gas) and protocol fees, which can be high when a blockchain is congested, and interest still applies to loans. What changes is that the lender can be anyone in the world, often a pool of many depositors.

How to start using DeFi

Using DeFi requires internet access and funds to buy cryptocurrency. A typical path looks like this:

  1. Pick the activity. Decide whether to swap, lend, borrow or provide liquidity, and learn how that activity can lose money.
  2. Set up a self-custody wallet that supports the blockchain your chosen app runs on. Write the recovery phrase down offline and never share it.
  3. Buy cryptocurrency on a reputable exchange, including the blockchain’s native token to pay transaction fees. Our comparison of crypto exchanges and apps covers on-ramp options.
  4. Withdraw to your wallet, confirming the correct network.
  5. Connect to the app and check what each approval allows before signing. Token approvals can grant a contract permission to move your funds.
  6. Start small to learn the fees, confirmation times and interface before larger sums are at stake.

Risks and limitations

Code risk, hacks and scams

Smart contracts are only as safe as their code. Bugs, flawed economic design and manipulated price feeds have let attackers drain protocols, and weaknesses in DeFi applications are one of the main ways crypto gets stolen. Scams are also widespread: fake apps, malicious token approvals, and projects whose developers abandon them after collecting deposits. Because blockchain transfers are final, stolen funds are rarely recovered.

Volatility and liquidation

Crypto prices can move sharply, and DeFi amplifies those moves through leverage and automatic liquidation, as the lending example shows. Long downturns, known as crypto winters, hit DeFi hard. In the one that ran from 2022 into 2023, market instability, the collapse of major crypto companies and rising regulatory scrutiny pushed prices down, and the market lost billions of dollars in value.

Regulation and accountability

Financial law is built around national jurisdictions with their own regulators, while DeFi transactions cross borders and protocols in a single step. That leaves open who investigates and enforces the rules when a crime spans several countries. In practice, the deposit insurance and consumer protections attached to bank accounts generally do not apply to DeFi positions.

Centralized failures are a separate risk

Some of the largest crypto losses involved centralized companies, not smart contracts. In 2023, FTX founder Sam Bankman-Fried was convicted of fraud and conspiracy over the theft of about $8 billion from customers, and Binance and its CEO Changpeng Zhao pleaded guilty to federal charges that included failing to prevent money laundering. These cases show the risk of handing assets to a custodian, which DeFi aims to avoid, and how much of crypto still runs through centralized firms.

Privacy is limited

DeFi is pseudonymous, not anonymous. Wallet addresses do not carry names, but every transaction is public and can be traced by anyone with the right tools, including law enforcement. Once an address is linked to a person, for example through an exchange account, its history is visible.

  • DeFi vs. traditional finance: Banks and brokers hold your assets, verify your identity, approve transactions and can reverse errors. DeFi protocols hold assets in smart contracts, accept any transaction that meets the code’s rules, and cannot reverse a confirmed transaction.
  • DeFi vs. centralized crypto exchanges (CeFi): A centralized exchange is a company that takes custody of your coins and matches trades in its own system. A DEX lets you trade from your own wallet against smart contracts, without trusting a company with your funds.
  • DeFi vs. cryptocurrency and Bitcoin: Cryptocurrencies such as Bitcoin are the assets. DeFi is the system of applications built to lend, trade and do other financial things with them. Bitcoin can be used within DeFi, often in tokenized form on other blockchains, but owning it is not the same as using DeFi.
  • DeFi vs. fintech: Fintech apps make traditional finance digital, but a company still sits in the middle. DeFi tries to remove that company from the transaction itself.

Can you make money with DeFi, and is it worth it?

Yes, there are ways to earn with DeFi: interest from lending, trading fees from providing liquidity, reward tokens from yield farming, and gains from token prices. Each of those returns comes with a matching risk, from liquidation and impermanent loss to contract failure and token price collapse. Advertised yields can change quickly and can be paid in tokens that lose value.

Crypto remains a small share of the global financial system, and most people still bank and invest through traditional institutions. For long-term goals such as retirement savings, DeFi is at most a high-risk, low-priority allocation. For money you can afford to lose, it offers direct access to financial tools without a middleman, along with full responsibility for every key, approval and transaction.

Editorial credits

Written byCrypto Desk

Know what's moving crypto.

About this page

Written by Crypto Desk

The Crypto Desk covers crypto exchanges, coins, market data pages and crypto guides.

Published
Last updated

Spotted an error? Tell the editors. This page is general information, not financial advice.