---
title: "Flash Loan — definition | Nuri Glossary"
description: "A loan with no collateral that must be repaid within the same transaction, used for arbitrage and liquidations."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/flash-loan"
---

# Flash Loan

A loan with no collateral that must be repaid within the same transaction, used for arbitrage and liquidations.

## Basically

A flash loan lets you borrow crypto without collateral, use it for trades such as arbitrage, and repay it in one blockchain transaction. If repayment fails, the whole transaction is cancelled.

## Key Takeaways

- A flash loan lets you borrow any amount of cryptocurrency with zero collateral, provided you repay the full amount plus a small fee in the same blockchain transaction. If repayment fails, the entire transaction reverts as if it never happened.
- Flash loans support DEX arbitrage, collateral swaps and self-liquidation. Attackers have also used them to manipulate price oracles and drain hundreds of millions from DeFi protocols.
- Flash loans need composable smart contracts and atomic rollback. Bitcoin's UTXO-based architecture processes transactions deterministically and cannot revert partway through execution, so flash loans cannot exist on Bitcoin.

## What Is a Flash Loan?

A flash loan is an uncollateralised loan found only in decentralised finance (DeFi). You can borrow any amount from a lending pool, use it across several DeFi protocols, and repay the principal and fee in one atomic blockchain transaction. If you do not repay before the transaction finalises, the blockchain reverses every state change and restores all balances to their previous values.
Marble Protocol first proposed the concept in 2018 as an open-source "flash lending" smart contract on Ethereum. Aave brought flash loans into mainstream use with production support in January 2020 as part of Aave V1, and by mid-2020 it was processing over $100 million per day. As of early 2026, Aave alone has facilitated over $1 trillion in cumulative flash loan volume.
Traditional lending requires collateral to protect the lender against default. Flash loans remove that requirement through atomicity: borrowing, using and repaying the assets all happen in one transaction. The lender cannot lose funds because the loan either succeeds in full or never exists.

## How It Works

Flash loans rely on atomic transaction execution and smart contract composability. A single Ethereum transaction can invoke dozens of smart contracts in sequence, and the entire chain of operations reverts if any step fails.
All five steps run within a single transaction. The blockchain either keeps every state change or none of them. The lender is never exposed to default risk in an intermediate state.

## ERC-3156: The Flash Loan Standard

ERC-3156 is the Ethereum standard for a shared interface between flash loan providers and borrowers. It defines a lender contract using IERC3156FlashLender and a receiver contract using IERC3156FlashBorrower. The lender transfers tokens and then calls onFlashLoan on the receiver through a callback.
The lender transfers tokens to the receiver, calls onFlashLoan, and checks that the tokens and fee have been returned. A failed balance check reverts the entire transaction. The standard API lets any protocol offer flash loans and lets borrowers write contracts that work with multiple lenders.

## Protocol Fees

Flash loan providers charge a small fee on each loan. Fee structures vary across major protocols.
A $10 million flash loan through Aave costs $5,000 in protocol fees. Ethereum gas typically adds $50 to $500, depending on network congestion and transaction complexity.

## Arbitrage

DEX arbitrage is the most common legitimate use of flash loans. You can borrow funds to profit when the same token trades at different prices across exchanges, without holding any capital.
Arbitrage benefits DeFi markets by aligning prices across venues. It is closely related to MEV (maximal extractable value) because arbitrage bots compete for profitable flash loan opportunities within block ordering.

## Collateral Swaps

Flash loans let you swap collateral without closing an active lending position. For example, if you have ETH collateral on Aave and want WBTC instead, you can use a flash loan to make the switch.
Flash loans remove the need for significant upfront capital. You also avoid temporarily closing the position and risking liquidation during the process.

## Self-Liquidation

A borrower normally pays a liquidation penalty, typically 5% to 15%, when a lending position approaches its liquidation threshold. Flash loans let you liquidate your own position at a lower cost.
Aave's flash loan fee is 0.05%, far below the liquidation penalty. Self-liquidation can therefore save you significant capital.

## Flash Loan Attacks

Flash loans enable DeFi exploits that would otherwise require millions in upfront capital. In 2024, they accounted for 83.3% of eligible DeFi exploits, while price oracle manipulation caused over $52 million in losses across 37 incidents.

## Oracle Manipulation

Many DeFi protocols use AMM pool prices as oracles for collateral valuations, lending rates or liquidation thresholds. Flash loans give attackers enough capital to distort these prices within a single transaction.
Polter Finance suffered an attack in which flash loans inflated the BOO token price on SpookySwap, allowing borrowing far beyond the actual collateral value. KiloEx lost $7.5 million in April 2025 when an attacker manipulated oracle prices in both directions to open and close leveraged positions at artificial values.

## Governance Attacks

Some governance systems weight votes by token holdings at the time of a snapshot. An attacker can flash-borrow governance tokens, vote on a proposal or trigger a snapshot, and then return the tokens. The attacker gains outsized influence without any long-term capital commitment.

## Attack Mitigations

The DeFi ecosystem has developed several defences against flash loan attacks. These defences target the attack methods used against protocols.

## Why Flash Loans Cannot Exist on Bitcoin

Flash loans are fundamentally incompatible with Bitcoin's architecture. The reason is structural, not a limit on network capacity or scripting power.
Ethereum uses an account-based model in which one transaction can call several smart contracts in sequence. It can revert every state change if any step fails. Composable execution and atomic rollback make flash loans possible.
Bitcoin uses a UTXO model in which each transaction consumes specific inputs and produces specific outputs. It has no mid-execution callbacks, arbitrary contract calls or transaction-wide rollback. Bitcoin Script can validate spending conditions for a single UTXO, but it cannot coordinate multi-step operations across several contracts in one transaction.
Bitcoin Layer 2 protocols such as Lightning and Spark therefore use different mechanisms for trustless lending and asset movement. Bitcoin-native protocols do not rely on atomic rollbacks within a transaction. They use cryptographic primitives such as HTLCs, timelocks and multi-party signature schemes to enforce conditions across separate transactions.

## Systemic Risk to DeFi

Flash loans reduce the capital needed to exploit vulnerable protocols to effectively zero. Attackers previously needed millions in capital for oracle manipulation or governance attacks. Now anyone with the technical knowledge to write a smart contract can attempt these exploits for the cost of a transaction fee.

## Transaction Complexity and Gas Costs

Flash loan transactions are complex multi-step operations. Gas costs rise with the number of contract calls, and failed transactions still consume gas when repayment conditions are not met. During network congestion, gas fees can wipe out flash loan profits entirely.

## MEV and Front-Running

Profitable flash loan transactions are visible in the mempool before confirmation. Block producers and MEV searchers can front-run arbitrage by copying the transaction logic and submitting it with a higher gas price. The resulting arms race means validators and MEV extractors increasingly capture flash loan profits rather than the original strategist.

## Smart Contract Risk

Flash loan contracts require careful handling of token approvals, callback logic and repayment calculations. Bugs in receiver contracts can cause failed transactions that waste gas, stuck approvals or unintended token transfers. BTC DeFi is developing different security models that avoid these composability risks by design.

## Flash Loans vs. Traditional DeFi Lending

You should treat this glossary entry as information only, not financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
