Skip to content
Menu
Finabase Learn

Glossary

Flash loan

A crypto loan with no collateral that must be borrowed and repaid within a single blockchain transaction, or the whole transaction is reversed.

On this page
  1. How it works
  2. Legitimate uses
  3. Attacks
  4. Limits
  5. Related terms

A flash loan lets anyone borrow almost any amount of a token from a DeFi lending pool with no collateral, on one condition: the loan, and a small fee, must be repaid before the same transaction ends. If it is not, the blockchain cancels every step as if nothing had happened. The lender takes no credit risk. The idea was proposed in 2018, first used on the dYdX exchange in 2019, and made popular by the Aave lending protocol, which launched flash loans in January 2020.

How it works

A single transaction can contain many steps, executed in order:

  1. Borrow the tokens.
  2. Use them: trade, repay another loan, move collateral.
  3. Repay the loan plus a fee, often a fraction of a percent.

Either all steps succeed or none do. This all-or-nothing property is called atomicity.

Legitimate uses

  • Arbitrage between exchanges, which keeps prices aligned.
  • Refinancing: moving a loan from one protocol to another without first raising cash.
  • Self-liquidation: repaying a loan to avoid a costly forced liquidation.

Attacks

Flash loans give anyone temporary access to very large sums. Attackers have used them to push around the price on a small exchange that a lending protocol relied on as its price oracle, borrow against the false price, and leave with the difference. The first widely reported cases came in February 2020. Others have used borrowed tokens to win governance votes in a single transaction.

The loan itself is not the flaw. It removes the need for capital to exploit a weakness that was already there.

Limits

Writing a profitable flash-loan transaction requires programming skill, and competition from automated traders means simple opportunities disappear in moments. See MEV.

Written and fact-checked by Finabase Research. Last reviewed . Spotted an error? Tell us.

Educational content, not investment advice. Finabase Learn explains how markets and tools work. It does not recommend any security or strategy, and examples are for illustration only. Investing involves risk, including the loss of principal. Rules and figures are for the United States unless stated and can change — check the cited source before you act. Data and corrections policy.