Content from MERGE

The institutional conference on crypto and Web3 connecting Europe and Latin America.

5.000+ Attendees
250+ Speakers
2x per year
What is DeFi? A Complete Guide to Decentralized Finance

What is DeFi? A Complete Guide to Decentralized Finance

06 Nov 2026
22 min read

DeFi (decentralized finance) is a set of financial services, including trading, lending, and borrowing, rebuilt on public blockchains and run by smart contracts instead of banks or brokers. It matters because real money sits in it: as of November 1, 2026, total DeFi TVL across all chains is around $85 billion, according to DefiLlama. That said, DeFi remains a small slice of the wider market, with regulators still deciding how much of it the law can actually reach.

This guide explains how DeFi works, what it is used for, how large it has become, what can go wrong, and where regulation stands in 2026. It is written for readers moving from beginner to intermediate: no prior coding knowledge is assumed, and every jargon term is explained once.

DeFi sits at the intersection of banking, regulation, and blockchain infrastructure, the same ground institutions work through at MERGE and in MERGE Institute's practitioner-led modules. Get a free class →

1. What Is DeFi? Defining Decentralized Finance

The Simple Definition

DeFi is financial infrastructure rebuilt on public blockchains so that services run without a centralized intermediary. Three words carry the meaning. "Decentralized" means no single company holds the assets or approves the transactions. "Finance" means the familiar functions: exchanging, lending, saving, hedging. "Permissionless" means anyone with a wallet and an internet connection can interact with the protocol directly.

The one-sentence contrast: in traditional banking, a company's staff and systems decide whether your transaction clears; in DeFi, self-executing code decides, and it applies the same rules to everyone.

Why DeFi Was Created

Traditional finance excludes people through gatekeeping, geographic barriers, opaque balance sheets, and slow settlement. The 2008 financial crisis sharpened the appetite for systems that do not depend on trusting a single institution. Bitcoin introduced decentralized money in 2009, Ethereum added programmable smart contracts in 2015, and the surge known as "DeFi Summer" in 2020 brought lending, trading, and yield protocols into the mainstream. The underlying philosophy is financial sovereignty: open access and user-controlled assets.

What Counts as DeFi (and What Doesn't)

Genuine DeFi is non-custodial (you hold your own assets), on-chain (logic executes on a public blockchain), and governed by code rather than a management team. Centralized crypto exchanges, custodial wallets, and centralized lending platforms are not DeFi, even though they deal in crypto-assets, because a company controls the funds and the rules. There are grey areas: many "decentralized" protocols still have identifiable teams that control upgrades, governance, or fee switches. That gap between branding and reality is exactly what regulators are now scrutinizing.

2. The Core Technology Stack Behind DeFi

Blockchain as the Foundation

A public blockchain is a shared, append-only ledger that no single party can quietly rewrite. That immutability is what makes trustless systems possible: participants do not have to trust each other, only the verifiable record. Ethereum remains the dominant venue for DeFi, with other networks including Solana, Avalanche, and BNB Chain, plus Ethereum Layer 2 networks such as Arbitrum and Base that batch transactions to cut costs. Most of these networks secure themselves through proof-of-stake (PoS) consensus, where validators lock up tokens to confirm transactions, a lower-energy alternative to Bitcoin's proof-of-work (PoW).

Smart Contracts: The Engine of DeFi

A smart contract is self-executing code deployed on a blockchain that enforces its rules automatically when conditions are met. It can replace the roles that lawyers, banks, and clearinghouses play in a traditional agreement, because the terms are written in code and settle on-chain without a middleman. A concrete example: a lending contract can hold a borrower's collateral and automatically sell it (a "liquidation") the instant its value falls below a set threshold, with no loan officer involved.

The limitation is blunt: code is law. If a contract contains a bug, the flaw executes exactly as written, and on an immutable ledger the loss can be permanent.

Decentralized Applications (dApps)

A decentralized application, or dApp, is the user-facing product built on top of smart contracts. Users interact with dApps through Web3 wallets such as MetaMask or Coinbase Wallet, which sign transactions on their behalf. An important distinction: the front end (the website and interface) can be hosted on ordinary servers and may even be taken offline, while the protocol logic continues to live on-chain. Many dApps are steered by governance tokens held in decentralized autonomous organizations (DAOs), where token holders vote on upgrades and parameters.

3. How DeFi Works: Mechanics of Trustless Finance

The Permissionless Transaction Flow

The basic flow is the same across most protocols. A user connects a wallet to a dApp, reviews and signs a transaction, the smart contract executes the logic, and settlement is recorded on-chain. There is no account approval, credit check, or jurisdictional gate at the protocol layer. The one unavoidable cost is the "gas fee," a payment to the network's validators for processing and securing the transaction; gas rises when the network is busy.

Liquidity Pools: The Fuel of DeFi

A liquidity pool is a shared reserve of two or more tokens locked in a smart contract that traders draw on. Instead of matching buyers and sellers through an order book, an automated market maker (AMM) uses the pool to quote prices algorithmically. The classic model uses a constant-product formula, written as x·y=k, where the product of the two token balances stays fixed, so each trade shifts the price along a curve. The people who deposit tokens into these pools are liquidity providers (LPs), and they earn a share of the trading fees in return.

Oracles: Connecting DeFi to the Real World

Smart contracts cannot natively see off-chain information such as the market price of an asset. Oracles bridge that gap by feeding external data on-chain, with Chainlink the most widely used oracle network. Oracles are also a weak point: if an attacker can distort the price an oracle reports, they can trick a protocol into mispricing collateral or trades, a technique revisited in the risks section below.

Composability: "Money Legos"

Because DeFi protocols are open and interoperable, they stack on top of one another like building blocks, a property called composability. A single strategy might deposit ETH to receive a liquid-staking token, post that token as collateral, borrow a stablecoin against it, and deposit the stablecoin into a yield strategy, all in a few transactions. Composability accelerates innovation because builders reuse each other's work, but it also concentrates risk: if one protocol in the stack fails, everything built on top of it can unwind at once.

4. DeFi vs. Traditional Finance (CeFi): Key Differences

Structural Comparison

Dimension DeFi CeFi (centralized finance)
Custody User holds assets (self-custody) Company holds assets
Intermediary Smart contracts Bank, broker, or exchange
Access Permissionless, global Account approval, KYC
Transparency Public, on-chain, auditable Internal, periodic disclosure
Speed Near-instant settlement Hours to days
Regulation Limited, evolving Established, licensed
Consumer protection Minimal at protocol layer Deposit insurance, recourse

DeFi vs. CeFi in Practice

Centralized crypto platforms such as Coinbase and Nexo feel familiar: an account, a password, customer support, and a company that custodies your funds. DeFi protocols such as Uniswap, Aave, and Compound are more demanding, but the user keeps control of their assets throughout. The collapse of the centralized exchange FTX in 2022 was the hard lesson in counterparty risk: customers who had handed over custody discovered that the company's internal books did not match what it owed them.

When Each Model Makes Sense

CeFi tends to suit beginners, fiat on- and off-ramps, and situations where regulatory clarity and recourse matter. DeFi tends to suit advanced users who prioritize self-custody and want access to novel financial products. Hybrid approaches are emerging, including regulated front-ends and permissioned liquidity pools with identity checks. The convergence of these two worlds, how banks and brokers plug into on-chain markets, is one of the six tracks at MERGE Madrid, where the "Banks, Brokers & Institutional Crypto" program brings these questions into one room.

5. Major DeFi Use Cases and Applications

Decentralised Exchanges (DEXs)

A decentralized exchange lets users swap tokens directly from their wallets, without handing assets to a company. The dominant design is the AMM, used by Uniswap, Curve, and PancakeSwap, which prices trades against liquidity pools. A second design keeps a traditional order book on-chain or near-chain, used by platforms such as dYdX and Hyperliquid. One telling trend: DEX trading volume has climbed as a share of total crypto trading, a sign that on-chain venues are taking real market share from centralized ones.

Crypto Lending and Borrowing

DeFi lending is typically over-collateralized: to borrow, you must lock up more value than you take out. Aave, Compound, and MakerDAO are the best-known venues. Borrowers use them to get liquidity without selling an asset, to add leverage, or to manage the timing of a taxable sale. Interest rates are set algorithmically by supply and demand in each pool rather than by a committee. A specialized primitive is the flash loan: an uncollateralized loan that must be borrowed and repaid within a single transaction. It has legitimate uses, such as arbitrage and collateral swaps, but it has also been the tool of choice in several protocol exploits.

Stablecoins in DeFi

Stablecoins, crypto-assets designed to hold a steady value against a reference such as the US dollar, are the "dollar layer" that DeFi runs on. They come in three broad types: fiat-backed (USDC, USDT), crypto-backed and over-collateralized (DAI), and algorithmic. The algorithmic category carries particular risk, as the 2022 failure of TerraUSD showed. Stablecoins sit at the center of trading pairs, lending markets, and yield strategies, which is why they anchor the Digital Money, Payments & Stablecoins theme at the heart of institutional digital-asset conversations. (For a deeper primer, see MERGE's explainers on what a stablecoin is and stablecoin use cases.)

Yield Farming and Liquidity Mining

Yield farming means earning rewards by putting capital to work in a protocol, for example by providing liquidity or staking tokens. The headline annual percentage yield (APY) usually combines two sources: a share of trading fees plus newly issued governance tokens (the "liquidity mining" incentive). The risks are real: impermanent loss (the opportunity cost an LP suffers when pooled token prices diverge), token inflation that dilutes rewards, and outright protocol insolvency. A useful distinction is between "real-yield" protocols, which pay from genuine fee revenue, and inflationary models that mainly pay in freshly minted tokens.

Staking and Liquid Staking

In proof-of-stake networks, staking means locking tokens to help validate transactions in exchange for rewards. Liquid staking solves the lock-up problem: platforms such as Lido (issuing stETH) and Rocket Pool (issuing rETH) give you a tradable token representing your staked position, so you stay liquid while earning. A newer primitive, restaking (associated with EigenLayer), lets staked assets be reused to help secure additional services, adding yield but also layering on risk.

Derivatives and Prediction Markets

On-chain derivatives let users hedge and speculate without a broker. Perpetual futures (contracts with no expiry) trade on dYdX, GMX, and Synthetix; on-chain options are offered by protocols such as Lyra and Dopex. Prediction markets, where users trade on the outcome of real-world events, have found an audience through Polymarket. Beyond speculation, these markets matter for price discovery and for letting holders hedge exposure on-chain.

6. The Size and Growth of the DeFi Market

Total Value Locked (TVL) Explained

Total Value Locked, or TVL, is the US-dollar value of assets deposited in DeFi smart contracts. It is the industry's default health gauge, but an imperfect one: it moves with token prices, and it can double-count the same assets when capital is re-deposited across composable protocols. Read it as a directional signal, not a precise balance sheet. As of November 1, 2026, total DeFi TVL across all chains is about $85 billion, with roughly $296 billion in stablecoins and about $5 billion in 24-hour DEX volume.

The arc is one of booms and sharp drawdowns. DeFi Summer 2020 kicked off rapid growth, and the 2021 bull market pushed TVL to its all-time high. The 2022 bear market, punctuated by the Terra and Celsius failures, erased much of it. The following years brought a partial, choppier recovery alongside growing institutional interest. Even 2026 has been volatile: TVL opened the year around $127 billion, fell to roughly $68 billion by July, and recovered to about $96 billion by late September, per DefiLlama, before easing again toward the $85 billion level in early November.

Chain Ecosystem Overview

Ethereum still dominates DeFi by a wide margin. Ethereum held about 56% of total DeFi TVL in late September 2026, roughly $52.7 billion, far ahead of any other chain. Solana, Base, and a growing set of application-specific chains have taken share, and cross-chain bridges knit this multi-chain landscape together, though, as later sections show, those bridges are also among the sector's most dangerous attack surfaces.

To see what more than 3,000 attendees and 200+ speakers at MERGE Madrid 2026 explored across six tracks, and get updates (plus 20% off a future ticket), the newsletter is the simplest starting point. Sign up for the newsletter (20% off your ticket) →

7. Benefits of DeFi

Financial Inclusion and Permissionless Access

The gap DeFi aims at is enormous. The World Bank's Global Findex 2025 found that 79% of adults now have a financial account, yet about 1.3 billion adults still remain outside the formal financial system, down from the 1.4 billion unbanked recorded in the 2021 Findex. In principle, anyone with a smartphone and an internet connection can use a DeFi protocol, with no credit score, branch visit, or opening hours.

Transparency and Auditability

Every transaction is recorded on a public blockchain, and most protocols publish open-source code that anyone can inspect. That stands in sharp contrast to the opacity of traditional bank balance sheets, where outsiders see only periodic, summarized disclosures.

Self-Custody: True Ownership of Assets

The phrase "not your keys, not your coins" captures the core of self-custody: whoever holds the private keys controls the assets. Self-custody tools range from software wallets to hardware wallets, with the user responsible for safeguarding the seed phrase that can restore them. Self-custody removes counterparty risk (no company can freeze or lose your funds), but it transfers full responsibility to you: lose the keys, and no one can recover the assets.

Composability and Innovation Speed

Because protocols are open and interoperable, builders combine them rapidly. New financial primitives can ship in weeks, where a comparable product in traditional finance might take years of legal and operational work. Governance tokens let communities propose and vote on upgrades directly.

Censorship Resistance

At the protocol layer, no single entity can block or reverse a user's transaction. That property has real value for people living under authoritarian regimes or facing arbitrary account freezes, though it also raises legitimate questions about sanctions and illicit use that regulators are actively weighing.

8. DeFi Risks and Disadvantages

Crypto-asset values can be highly volatile and can lose value quickly; nothing in this section is investment advice. For a general risk notice, see mmerge.io/riesgos.

Smart Contract Vulnerabilities

Code is the main attack surface. Exploits include re-entrancy attacks (where a contract is tricked into repeating a withdrawal), logic errors, and oracle manipulation. The industry-wide numbers are sobering: crypto losses reached about $3.4 billion in 2025, the highest since 2022, with just three incidents, led by the $1.4 billion Bybit hack, accounting for 69% of the total. There is a hopeful counter-trend, though: Chainalysis reported that despite higher TVL, DeFi hack losses stayed suppressed in 2024–2025, suggesting that improved security practices are making a meaningful difference. Audits help, but they do not guarantee safety; several audited protocols have still been exploited.

Market Volatility and Liquidation Risk

Because DeFi loans are collateralized in volatile crypto-assets, a sharp price drop can trigger automatic liquidations faster than borrowers can react. In extreme conditions, liquidations cascade, as they did during the March 2020 "Black Thursday" crash. Liquidity providers face a subtler cost: impermanent loss, the shortfall versus simply holding the tokens that occurs when the pooled assets' relative prices move apart.

Rug Pulls and Exit Scams

Some projects are built to defraud. In a "rug pull," an anonymous team launches a token or protocol, attracts deposits, then drains the funds and disappears. Red flags include unaudited code, liquidity that is not locked, and founders who cannot be identified. The Squid Game token and the Frosties NFT project are among the widely cited examples of this pattern.

User Error and No Consumer Protection

DeFi transactions are irreversible: send funds to the wrong address and they are typically gone for good. Phishing attacks increasingly target wallet "approvals," tricking users into granting a malicious contract access to their tokens. There is no deposit insurance, no chargeback, and no customer service line. The complexity of the interfaces is itself a safety risk, because a single mis-signed transaction can be costly.

Systemic and Contagion Risk

Composability cuts both ways. The 2022 collapse of TerraUSD and LUNA is the defining case: the collapse wiped out almost $45 billion of market capitalization in a single week, and the fallout spread across lenders and funds well beyond Terra itself. Cross-chain bridges concentrate risk too: the Ronin Bridge hack of March 23, 2022, in which attackers compromised five of nine validator keys, drained about $625 million, one of the largest DeFi-related thefts on record.

9. DeFi Regulation: Where Does It Stand?

The Regulatory Challenge of Decentralisation

The central puzzle is simple to state and hard to solve: who do you regulate when there is no central party? In the United States, that has produced a long jurisdictional contest between the SEC and the CFTC, and debate over whether a given token is a security under the Howey Test or a "sufficiently decentralized" asset that falls outside it.

United States

US policy has shifted markedly. The SEC's investigation into Uniswap Labs, which had escalated to a Wells notice in April 2024, was closed in February 2025 with no enforcement action, part of a broader retreat from enforcement-led crypto policy. On the legislative side, the CLARITY Act, a comprehensive market-structure bill, passed the US House of Representatives by 294-134 on July 17, 2025. It then stalled: on September 15, 2026, the Senate voted 49–50 on cloture to proceed with the bill, short of the 60 votes required, so it did not advance. Stablecoins did get a dedicated law, however: the GENIUS Act became Public Law 119-27 when it was signed on July 18, 2025.

European Union

In the EU, the Markets in Crypto-Assets Regulation (MiCA) has applied since December 2024, but it deliberately leaves a gap for DeFi. Recital 22 of MiCA exempts services provided in a fully decentralised manner without any intermediary, and a joint EBA/ESMA report in January 2025 found that very few DeFi systems are truly fully decentralised. The direction of travel is toward closing that gap: in its response to the European Commission's MiCA review, published on 30 September 2026, ESMA called for a clear legal definition of DeFi, a narrowly drawn exemption, and a new regulated service covering firms that act as a gateway to DeFi protocols on clients' behalf. ESMA framed the wider concern as "decentralisation washing," where an identifiable operator uses DeFi language to dodge the rules. To put the sector in context, an EBA-ESMA report in 2025 estimated DeFi at roughly 4% of the overall crypto-asset market, with decentralized exchanges handling around 10% of global crypto trading volume.

United Kingdom

The UK runs a crypto-asset registration regime through the FCA and has consulted, via HM Treasury, on how to classify DeFi activities such as staking and lending. The government's stated ambition to be a "crypto hub" sits in tension with a cautious, consumer-protection-first regulatory posture.

What Regulation Means for DeFi Users

The practical result is a layered future: KYC checks appearing at regulated front-ends and gateways, compliance-friendly pools emerging alongside open ones, while the underlying protocols stay permissionless. Regulatory clarity is a double-edged sword, buying legitimacy and institutional capital at the cost of some of DeFi's original openness. MERGE's "Regulation, Compliance & Legal Frameworks" track exists for exactly this debate, and the question is explored directly in the MERGE podcast episode Will regulation kill DeFi?.

10. DeFi Taxation: What You Need to Know

General Principles (Jurisdiction-Agnostic)

DeFi is not tax-free. Most jurisdictions treat on-chain activity as taxable and sort it into two broad buckets: capital gains events (disposing of an asset) and income events (receiving new value). Because every swap, reward, and transfer can matter, record-keeping is essential.

What Triggers a Taxable Event in DeFi

In most jurisdictions, swapping one token for another on a DEX is a disposal that can trigger a capital gain or loss. Earning yield farming or liquidity mining rewards, and receiving staking rewards, is generally treated as income at the time of receipt. Borrowing is usually not a taxable event in itself, though a forced liquidation of collateral can be. The treatment of bridging tokens across chains varies by jurisdiction and is often unsettled.

Jurisdiction Highlights

In the United States, the IRS treats crypto-assets as property, and new broker reporting rules (Form 1099-DA) have been phasing in, though how they apply to DeFi protocols remains contested. In the United Kingdom, HMRC has issued DeFi-specific guidance under which lending and staking returns can be income or capital depending on the arrangement. In the EU, MiCA harmonizes market conduct but not tax, so treatment still varies by member state. None of this is tax advice: rules change frequently, so use dedicated crypto-tax software and consult a qualified adviser for your situation.

11. Is DeFi Still Worth It? An Honest Assessment

Who DeFi Is Right For

DeFi fits tech-comfortable users who understand self-custody, those seeking yield structures unavailable in traditional savings, people in underbanked regions without reliable credit access, and developers exploring new financial primitives.

Who Should Approach with Caution

It is a poor starting point for beginners who have not mastered wallet security, for anyone deploying money they cannot afford to lose, and for users in jurisdictions with aggressive enforcement where legal exposure is unclear.

The Maturity Question

DeFi is no longer a fringe experiment, but it is not yet mature, bank-grade infrastructure either. The clearest sign of legitimacy is institutional entry: BlackRock's tokenized money market fund, BUIDL, launched in March 2024, grew to roughly $2.85 billion in assets by late October 2026, and Franklin Templeton's BENJI token now spans nine chains including Stellar, Polygon, Ethereum, Base, Solana, and BNB Smart Chain. Interfaces are improving and lowering the barrier to entry. The net assessment is straightforward: high potential, non-trivial risk, and education as the prerequisite before any capital is at stake. Tokenization and capital markets are themselves one of the six MERGE Madrid tracks, where asset managers and infrastructure providers compare what is actually live on-chain.

Key Takeaways

  • DeFi rebuilds financial services (trading, lending, derivatives) on public blockchains using smart contracts, with no central intermediary and user-held custody.
  • The market is sizable but volatile: total DeFi TVL was about $85 billion across all chains on November 1, 2026, with Ethereum holding the majority share.
  • The benefits (open access, transparency, self-custody, fast innovation) come with serious risks, including smart contract exploits, liquidation cascades, scams, and systemic contagion such as the Terra and Ronin failures of 2022.
  • Regulation is tightening at the edges: MiCA has applied since December 2024 and exempts only fully decentralized services, while ESMA now wants that exemption narrowed and DeFi gateways regulated.
  • DeFi suits informed, self-custody-comfortable users; education should come before capital.

To go deeper with practitioners from banks, protocols, and market infrastructure, the MERGE Institute program is the natural next step.

DeFi rewards people who understand the mechanics before they commit capital. MERGE Institute's modules are taught by practitioners from across banking and blockchain. View program →

Frequently Asked Questions About DeFi

What is the difference between DeFi and CeFi?

DeFi is non-custodial and governed by smart contracts, so you keep control of your assets. CeFi (centralized finance) involves a company that holds your funds and makes decisions on your behalf. The key difference is custody: in DeFi you hold your own keys, in CeFi a third party does. The 2022 FTX collapse is the cautionary tale for CeFi counterparty risk.

Are DeFi platforms safe to use?

Safety varies widely by protocol. The main risks are smart contract bugs, market volatility and liquidation, and phishing scams targeting wallet approvals. Reasonable best practices include using well-audited protocols, starting with small amounts, using a hardware wallet, and periodically revoking token approvals you no longer need. Audits reduce risk but do not eliminate it.

How do liquidity pools and yield farming work?

Liquidity providers deposit a pair of tokens into a pool and earn a share of the trading fees generated by that pool. Yield farming adds a second layer of rewards, usually newly issued governance tokens. Returns can look high but vary enormously and carry impermanent loss, the cost that arises when the pooled tokens' prices diverge.

Do I have to pay tax on DeFi earnings?

In most countries, yes. Swapping tokens, receiving yield farming rewards, and earning staking income are typically taxable events, though the exact treatment differs across the US, UK, and EU. Borrowing is generally not taxable in itself. Because rules change and vary by jurisdiction, always consult a qualified tax professional.

What does TVL mean in DeFi?

TVL stands for Total Value Locked, the US-dollar value of all assets deposited in DeFi protocols. It is a widely used proxy for ecosystem size and user confidence, but it is imperfect: it can be inflated by double-counting across composable protocols and it swings with token prices.

Can I use DeFi without knowing how to code?

Yes. User-friendly interfaces and wallets make DeFi accessible with no coding knowledge. What is essential is understanding exactly what you are signing and approving, because a single mistaken transaction or malicious approval can be costly and irreversible.

Conclusion: The Future of Decentralised Finance

DeFi is, at its core, a programmable, open, permissionless financial system built on blockchains and smart contracts. It offers genuine innovation, including global access, radical transparency, composability, and true self-custody, alongside genuine risks, from code exploits to systemic contagion. The ecosystem is clearly maturing: regulators are moving from silence to structured rules, major institutions are putting real assets on-chain, and the user experience is steadily improving. The useful question is no longer whether DeFi will persist, but how much of traditional finance will migrate on-chain, and under what rules. That convergence of banks, regulators, and protocols is precisely the ground MERGE and MERGE Institute are built to help professionals navigate.

This is MERGE

Where banks, regulators and the crypto ecosystem sit at the same table.

Twice a year, MERGE brings together 5,000+ attendees and 250+ speakers. A private Institutional Summit at the Madrid Stock Exchange, two days at the Palacio de Cibeles, and the networking that moves the industry.

Next edition → MADRID
October 27–29, 2026 Institutional summit · Main conference · Palacio de Cibeles
MERGE Madrid 2026
MERGE Madrid 2026
MERGE Madrid 2026
MERGE Madrid 2026
Web3 | Metaverse | NFTs | Crypto | Digital Assets | Blockchain | Extended Reality