New: Wallet recovery made easy with Ledger Recover, provided by Coincover

Get started

Up your Web3 game

Ledger Academy Quests

  • Test your knowledge
  • Earn POK NFTs
Play now See all quests

Flash Loan Meaning

Jan 1, 2023 | Updated Feb 5, 2024
Flash loans allow you to borrow crypto assets without collateral or borrowing limits within the DeFi space. The lending condition is that you pay back the loan within the same blockchain transaction.

What is a Flash Loan in Crypto?

A flash loan is an unsecured loan available on some DeFi protocols. No collateral is needed, because the loan is paid back instantly, within the same transaction.

As a loan that doesn’t require collateral, flash loans work differently than loans in the traditional finance sector. First, they are part of the DeFi ecosystem, so they are entirely decentralized and not run through a bank. 

Flash loans are executed incredibly fast: the borrowing and repayment of a flash loan happen on the same transaction. Whereas traditional loans can last for decades, a flash loan requires repayment in minutes. Typically, a smart contract executes the loan and immediately repays it with interest. 

It usually takes seconds to a few minutes to validate/ mine a block containing proposed details of the flash loan. During this period, the network must agree that a transaction is valid for it to be stored permanently on the blockchain. If the network rejects a transaction, it becomes void, and there is no record of it on the blockchain. 

The network rejects and cancels the transaction if a user can’t repay the loan before a block is completed. In this case, the asset is returned to the lender as if the transaction never happened. This is possible because the blockchain didn’t reassign the tokens to the borrower in the first place. 

How Do Flash Loan Work Differently Than Traditional Loans?

Typically, you can’t think of flash loans in terms of traditional loans; they are unsecured and decentralized. 

Unsecured Loan

Flash loans are unsecured: you don’t need collateral to get one. Instead, smart contracts on the blockchain enforce the loan. If you can’t pay back the loan immediately, the blockchain doesn’t confirm the transaction. The loan doesn’t go ahead.

Smart Contracts

Smart contracts are code that run on a blockchain, executed when its predetermined conditions are met. Flash loans are executed by smart contracts, which execute the loan only on the condition that the borrower can immediately pay back with interest.

Flash Loan and Arbitrage Use Cases

The most popular use of flash loans is arbitrage trading. In this case, users take advantage of the difference in the price of cryptocurrencies across trading platforms. 

For example:

  • Say a token trades for $1 on DEX A but for $1.50 on DEX B. If a user buys 100,000 tokens on A and immediately sells them on B, they would earn a profit of $50,000. 
  • To take advantage of that, an arbitrage trader borrows $100,000 flash loan to buy from DEX A and resell on DEX B. The smart contract sets up the buying and reselling, takes back $150,000, and returns $100,000 with fees to protocol A. The rest of that profit is for the arbitrage trader. 

Read more about them in the full Ledger Academy article on what flash loans are.

Seed Phrase

A seed phrase is a collection of randomly generated words that represent all private keys associated with a given crypto wallet; the phrase enables the contents of a crypto wallet to be restored, even if…

Full definition

Wormhole

The Solana Wormhole is a communication bridge that links Solana to decentralized finance (DeFi) platforms.

Full definition

Technical Analysis

Technical analysis is the study of past market activities, such as price movement and volume data, to estimate an asset’s price direction.

Full definition