Prices ticker

Loading prices…
Crypto Riche

Tools, staking and crypto guides

Social links

Monday, November 9, 2026

🌐 What Is DeFi? A Beginner's Guide to Decentralized Finance (With Real Examples)


Bar chart comparing the cost of buying 1 ETH from a small liquidity pool and a deep pool


Banks, brokers and payment apps all sit in the middle of your money. DeFi, short for decentralized finance, tries to replace those middlemen with software: you swap, lend, borrow and earn using programs on a blockchain, directly from your own wallet.

It is one of the most talked-about parts of crypto, and also one of the riskiest for beginners. In this guide you will learn what DeFi is, how its main tools work, two worked examples with numbers you can check (a swap in a liquidity pool and a collateralized loan), the main risks, and how to start carefully.

Last updated: November 2026.

What Is DeFi?

DeFi is a collection of financial services built on blockchains using smart contracts. A smart contract is a program that runs automatically when its conditions are met. Anyone with a compatible wallet can use it, without opening an account or asking for permission.

The core ideas are:

  • No central operator: rules are enforced by code instead of a company.
  • Open access: you only need a wallet and some crypto.
  • Transparency: contract code and transactions can usually be checked on a public blockchain.
  • Self-custody: you keep control of your funds until you choose to use them in a contract.

DeFi vs a Traditional Platform

Simplified comparison
Traditional or exchange platformDeFi
Who runs itA companySmart contracts, often governed by a community
AccessAccount, identity checks in most casesA wallet. Rules and restrictions vary by app and by country
Who holds your fundsThe companyYou, until you deposit into a contract
If something goes wrongCustomer support, sometimes insurance or legal protectionUsually no support. Transactions cannot be reversed
Main risksCompany failure, freezing, hacksCode bugs, scams, user mistakes, market crashes

The Main Building Blocks

  • Decentralized exchanges (DEXs): you swap one token for another directly from your wallet, with no order book run by a company. Most use liquidity pools, explained below.
  • Lending and borrowing: you deposit crypto to earn interest, or lock crypto as collateral to borrow another asset.
  • Liquidity providing: you deposit a pair of tokens in a pool so others can trade against it, and you earn a share of the trading fees.
  • Staking and yield products: protocols that pay rewards for locking tokens or providing a service.
  • Stablecoins: tokens meant to hold a steady price, used as the "cash" of DeFi.

Example 1: How a Liquidity Pool Prices a Swap

Many DEXs use an automated market maker (AMM). A common formula keeps the product of the two token amounts in the pool constant: ETH in pool × USDC in pool = k. To keep it simplified, we ignore fees here.

Imagine a pool with 10 ETH and $20,000 USDC. The price is $20,000 ÷ 10 = $2,000 per ETH, and k = 10 × 20,000 = 200,000. You want to buy 1 ETH.

Simplified constant-product pool, no fees
StepCalculationResult
ETH left in the pool10 − 19 ETH
USDC the pool must hold200,000 ÷ 9$22,222.22
USDC you must pay$22,222.22 − $20,000$2,222.22
Price you actually got$2,222.22 ÷ 1 ETH$2,222.22 per ETH
Slippage versus the $2,000 price($2,222.22 ÷ $2,000) − 111.1%

You expected to pay about $2,000 but paid $2,222.22, because your purchase moved the price in the pool. This is called slippage. Now the same trade in a much bigger pool with 1,000 ETH and $2,000,000 USDC (the same $2,000 price) costs $2,002.00, a slippage of only about 0.10%. Deeper pools mean smaller price impact, which is why liquidity matters and why tiny, unknown pools are risky.

People who deposit tokens in a pool earn fees from these trades, but they also face impermanent loss when prices move. You can estimate it with our free Impermanent Loss Calculator.

Example 2: A Collateralized Loan

DeFi lending is usually overcollateralized: you must lock more value than you borrow, because nobody checks your identity or credit and the protocol needs a safety margin.

Say you lock $1,500 worth of ETH and borrow $1,000 in a stablecoin. Your collateral ratio is $1,500 ÷ $1,000 = 150%. Suppose the protocol liquidates the position if the ratio falls to 120%, meaning your collateral would have to be worth $1,200.

Illustrative thresholds. Real protocols use different numbers
QuestionCalculationAnswer
Collateral value at liquidation$1,000 × 120%$1,200
Price drop that triggers it1 − ($1,200 ÷ $1,500)20%

If ETH fell 20% in a short time, the contract would automatically sell part of your collateral to repay the loan, usually with a penalty. Crypto can move that much in days, so borrowers often keep a much higher ratio than the minimum. Borrowing in DeFi adds risk on top of the risk of the coins themselves.

The Main Risks

  • Smart contract bugs and hacks: code can have flaws, and an audit does not guarantee safety.
  • Scams and rug pulls: anyone can create a token or a pool, including fraudulent ones that drain deposits.
  • Liquidation: as the loan example shows, a price drop can force the sale of your collateral.
  • Impermanent loss: liquidity providers can end up with less value than if they had just held the tokens.
  • Dangerous approvals: signing a transaction can give a contract permission to move your tokens. Read what you sign and revoke old approvals.
  • Fees: network fees are often fixed. A $15 fee on a $100 swap is 15% of it, while on a $5,000 swap it is only 0.3%. Small amounts can be eaten by fees.
  • Stablecoin and oracle risks: a stablecoin that loses its peg, or a wrong price feed, can break a protocol.
  • No support and no reversals: a mistaken address or a phishing signature usually cannot be undone.
  • Taxes and rules: in many countries, swaps, rewards and loans can have tax consequences. Keep records.

How to Start Carefully

  1. Learn the basics first: wallets, seed phrases, fees and scams, before you touch any DeFi app.
  2. Start with a small amount you can afford to lose completely, even after your first successful transaction.
  3. Use a separate wallet for experiments, not the one that holds your long-term savings.
  4. Reach apps only from official links, not from ads, messages or search results you did not check.
  5. Check the basics of a protocol: how long it has been running, whether its code was audited, how much value it holds and what happened in past incidents.
  6. Be suspicious of very high yields. If the return looks too large, ask where the money comes from.
  7. Do a small test transaction before moving a larger amount.
  8. Review and revoke approvals from time to time.

Key Takeaways

  • DeFi uses smart contracts instead of companies to offer swaps, lending, borrowing and yield.
  • You keep control of your funds, but you also carry all the responsibility, with no support and no reversals.
  • Pool size matters: the same trade can cost 11% slippage in a small pool and about 0.1% in a deep one.
  • Collateralized loans can be liquidated if prices fall, so borrowing adds risk.
  • Start small, use a separate wallet, use official links and be suspicious of very high yields.

Frequently Asked Questions

Is DeFi safe?

Not by default. It can work as designed, but it depends on code that can have bugs, on markets that can crash and on you avoiding scams and mistakes. There is usually no insurance or support to fall back on.

Do I need a lot of money to use DeFi?

No, but network fees can be high relative to small amounts. Check the fee before every transaction, since a fixed fee hurts small swaps the most.

What is the difference between DeFi and a regular exchange?

On a regular exchange, a company holds your funds and matches orders. In DeFi, you trade from your own wallet through smart contracts. You get more control and more responsibility.

Can I earn passive income with DeFi?

Some protocols pay rewards, but returns come with risks, and yields can change or disappear quickly. You can estimate what a given rate would give you with our free Staking Calculator, but treat the rate as variable, not a promise.

Is DeFi taxable?

In many countries, yes. Swaps, rewards and some loan events can count as taxable events. Rules differ by country, so check yours or ask a tax professional.

Educational content only, not financial, tax or legal advice. DeFi is experimental, runs on code that can contain bugs, and has no customer support or deposit insurance, so you can lose some or all of your money. The numbers in the examples are simplified illustrations, not real market data. Rules and taxes for DeFi activity vary by country.