What is a flash loan, and why is it not credit?
A flash loan is borrowed and repaid inside one transaction, so it needs no collateral and is not credit. How it works, its fee, its uses, hacks and scams.
TL;DR. A flash loan is a loan with no collateral that is borrowed and repaid inside one blockchain transaction. If the money is not back by the end of that transaction, the whole transaction is cancelled as if it never happened, so the lender cannot lose. That is why it needs no collateral, and also why it is not credit: the money can never leave the transaction, so it cannot pay rent, a supplier or anything in the outside world. Traders use flash loans for arbitrage and to rearrange their own loans. On Aave the fee is 0.05%. "Flash loan bots" sold in video tutorials are scams.
On this page (12 sections)
- What is a flash loan?
- How can a loan need no collateral?
- How does a flash loan work, step by step?
- What does a flash loan cost?
- What are flash loans used for?
- Who invented flash loans?
- Can you take a flash loan without writing code?
- Why are flash loans linked to hacks?
- Is a "flash loan bot" a way to make money?
- Why is a flash loan not credit?
- What should you use if you need money with no collateral?
- Sources
Disclosure: we build Unlloo, which makes loans with no collateral that last weeks, a different thing from a flash loan. Figures were read on 23 November 2026. General education, not financial advice.
What is a flash loan?
A flash loan lets you borrow an asset with no collateral, provided the amount and a fee are returned before the end of the same transaction. That is how Aave's documentation defines it, and it adds that flash loans have no real-world equivalent. Collateral is an asset a lender can take if the borrower does not repay; every other loan on Aave asks for more of it than the amount borrowed.
A transaction on Ethereum is a bundle of steps that the network runs together. A flash loan is three of those steps in one bundle: take the money, use it, give it back. The loan lasts for the seconds it takes the network to process that one transaction.
How can a loan need no collateral?
It needs none because the lender cannot lose. An Ethereum transaction either completes in full or is undone in full, a property called atomicity. The lending contract checks at the end whether the loan and the fee have come back. If they have not, the transaction reverts: every step is cancelled, including the step that handed out the money.
Regulators describe it the same way. The Financial Stability Board, which coordinates financial regulators worldwide, writes that flash loans are of zero tenor and do not require collateral, tenor being the length of a loan, and that if the loan is not repaid the entire transaction is rejected. The securities regulators' body IOSCO puts it in one line: because flash loans do not involve default risk, borrowers are not required to deposit collateral.
How does a flash loan work, step by step?
A flash loan runs as one transaction that a small program, written or chosen by the borrower, carries out in order.
- Borrow. The program asks a lending pool for, say, 100,000 USDC, and the pool sends it.
- Use. The program does something with the money. In the classic case it buys a token where it is cheap and sells it where it is dear.
- Repay. The program returns 100,000 USDC plus the fee, 50 USDC on Aave.
- Check. The pool confirms it has been repaid. If not, everything above is undone.
If step 2 earned 300 USDC, the borrower keeps 250 after the fee, less the network fee for the transaction. If step 2 lost money, the repayment fails, the transaction is cancelled, and the borrower has lost only the network fee. A failed attempt is not free: the network charges for the work it did before cancelling.
What does a flash loan cost?
On Aave V3 the fee is 0.05% of the amount borrowed, which is $50 on $100,000. Aave's documentation says the fee is set to 0.05% at deployment and can be changed by a governance vote, and the contract on Ethereum returned that value when we read it on 23 November 2026.
Many lenders charge nothing. A Bank of Canada study of flash loans found that 18 of the 93 providers it identified collected no fees, and that the typical fee was close to zero. Balancer's documentation for its second version states that it charges none. The borrower always pays the network fee, and a transaction that does this much work costs more than a simple transfer.
What are flash loans used for?
They are used mostly for arbitrage and for rearranging existing loans, and they are used a great deal: the Bank of Canada study counts more than $2 trillion lent through about 10 million flash loans in 2024.
| Use | What happens inside the transaction |
|---|---|
| Arbitrage | Buy a token on one exchange and sell it on another where the price is higher, without owning the money used. |
| Liquidation | Repay someone's failing loan with borrowed money, receive their collateral at a discount, sell enough of it to repay the flash loan. |
| Collateral swap | Replace the collateral behind your own loan with another asset without first repaying the loan. |
| Repay with collateral | Close your own loan by selling part of the collateral that backs it, in one step. |
| Self-liquidation | Unwind your own position before a liquidator does, and avoid the penalty. |
Many people have used one without knowing. Aave's own contracts for repaying a loan with its collateral, swapping collateral and swapping debt are built on flash loans. Someone who clicks "repay with collateral" is taking a flash loan that lasts one transaction and never sees it.
The last three rows matter to anyone with a loan against their crypto. We explain those loans in borrow against crypto or sell it?
Who invented flash loans?
The idea came from a project called Marble in 2018, and Aave made it work at scale in January 2020. The Bank of Canada study traces it: Marble's developers conceived of lending guaranteed by the all-or-nothing transaction, Aave published its first contract with flash loans on 8 January 2020, and the first flash loan on it was made on 17 January 2020, for $33.10 of the stablecoin DAI, in what looks like an arbitrage trade.
Other protocols followed within months. In November 2020 a common interface for them was written down as the Ethereum standard ERC-3156, so that a program written for one lender works with another.
Can you take a flash loan without writing code?
Only through a tool that has written the code for you. A flash loan is requested by a smart contract, a program on the blockchain, and not by a person pressing a button. Aave's documentation says flash loans require a good understanding of the Ethereum Virtual Machine and smart contracts, and Morpho's says they are primarily meant for developers and advanced users.
The tools fall into two kinds. Lending apps build flash loans into single buttons such as the collateral swap above. Builder tools let a user chain steps together: DeFi Saver's recipe creator lets a user start a sequence of actions with a flash loan from Aave, Morpho and others. Neither kind changes the rule that the money must be back before the transaction ends.
Why are flash loans linked to hacks?
They are linked to hacks because they give an attacker a large sum for a few seconds at almost no cost. The flash loan is the capital. The weakness is in the protocol being attacked, most often a price that can be pushed around by a large trade. The Financial Stability Board notes that flash loans can be used to borrow large amounts and manipulate prices on several platforms at once.
| When | Protocol | Loss | What was exploited |
|---|---|---|---|
| February 2020 | bZx | About $350,000, then about $633,000 days later | Prices the protocol read from exchanges that one large trade could move |
| April 2022 | Beanstalk | About $77 million taken from its pools, by its own account | Voting: the borrowed money bought enough votes to pass a proposal that sent out the funds |
| March 2023 | Euler Finance | About $197 million, later returned | A faulty function in Euler's own accounting |
The first row is from CoinDesk's account of the bZx attacks, which a later academic paper analysed in detail. The second is from Beanstalk's own report. The third is from Chainalysis, which records that the attacker borrowed about $30 million of DAI from Aave to begin and returned the stolen funds weeks later.
Price manipulation is the common pattern. Chainalysis estimates that in 2022 protocols lost $403.2 million in 41 attacks of that kind. Protocols now defend against it by not trusting a price or a vote that can change within one transaction.
Is a "flash loan bot" a way to make money?
No. A video or a message that offers a ready-made flash loan or arbitrage bot is a scam. The victim is told to paste code into a contract, deploy it and send it some ether as "starting capital", and the contract sends that ether to the scammer.
The investigations firm TRM Labs traced one group of nine such video tutorials: between February and August 2026 they took 274.60 ETH, about $517,000, from 224 victims, and the typical victim lost 1 ETH. Two facts from this article are enough to spot one:
- A flash loan needs no money from you beyond the network fee. Anything that asks you to fund a contract first is not a flash loan.
- A flash loan cannot get stuck. It completes or it is cancelled in full. A "bot" that needs more money to release your funds is lying.
Real arbitrage with flash loans exists, and it is a contest between professional programs that react in a fraction of a second. More signs of a fake loan offer are in can you get a crypto loan without collateral?
Why is a flash loan not credit?
A flash loan is not credit because nobody trusts anybody and no time passes. Credit means a lender gives up money today and relies on the borrower to return it later. A flash lender gives up nothing: the money is back before the transaction that took it has finished.
| Flash loan | Collateralized loan | Crowd loan | |
|---|---|---|---|
| Collateral | None | More than the amount borrowed | None |
| How long it lasts | One transaction | Until you repay | Until a due date |
| Can the money leave the blockchain? | No | Yes | Yes |
| What the lender risks | Nothing | A fall in the collateral's price | The whole amount lent |
| What decides who gets it | Nothing: anyone with a program | The collateral | Each lender's judgment of the borrower |
| Typical cost | 0% to 0.05% once | About 4% to 5% a year on Aave in November 2026 | A yearly rate each lender names |
The table shows why "a crypto loan with no collateral" usually turns out to mean one of two very different things. The flash loan removes collateral by removing time. A crowd loan keeps the time and replaces the collateral with a lender's decision to trust a particular borrower.
What should you use if you need money with no collateral?
A flash loan cannot help, because the money has to be back within seconds. If you need to spend the money and repay it later, the choices are narrower:
- If you hold crypto, a collateralized loan lets you borrow against it without selling.
- If you are a company, some protocols lend with little or no collateral after checks made off the blockchain. We compare them in uncollateralized crypto lending protocols compared.
- If you are an individual with nothing to lock, a crowd loan asks people who know you, or who trust your wallet's history, to fund your request. How to borrow on Unlloo explains the steps, and why people repay a loan with no collateral explains what a lender relies on.
The definition of the wider category is in what is an under-collateralized loan?
Sources
- Aave, "Flash Loans" (Aave V3 documentation), undated, opened 23 November 2026. The definition, repayment within the same transaction, the revert, the 0.05% fee, and the uses.
- Aave V3 Pool contract on Ethereum, on Etherscan, read 23 November 2026. FLASHLOAN_PREMIUM_TOTAL returned 5, which is 0.05%.
- Aave, "Swap Contracts" (Aave V3 documentation), undated, opened 23 November 2026. Repay with collateral, collateral swap and debt swap built on flash loans.
- Morpho, "Flash Loans" (documentation), undated, opened 23 November 2026. Uses, and the intended audience.
- Jack Mandin, "Risk-Free Uncollateralized Lending in Decentralized Markets: An Introduction to Flash Loans", Bank of Canada Staff Discussion Paper 2025-6, March 2025. History, volumes in 2024, and fees.
- Financial Stability Board, "The Financial Stability Risks of Decentralised Finance", 16 February 2023, section 1.3.1 and glossary.
- International Organization of Securities Commissions, "IOSCO Decentralized Finance Report", March 2022, page 12.
- Balancer, "Flash Loans" (V2 documentation), undated, opened 23 November 2026.
- Ethereum Improvement Proposals, "ERC-3156: Flash Loans", created 15 November 2020.
- DeFi Saver, "What are flash loans?" (help centre), undated, opened 23 November 2026.
- William Foxley, "Everything You Ever Wanted to Know About the DeFi 'Flash Loan' Attack", CoinDesk, 19 February 2020.
- Kaihua Qin, Liyi Zhou, Benjamin Livshits and Arthur Gervais, "Attacking the DeFi Ecosystem with Flash Loans for Fun and Profit", arXiv 2003.03810, 2020; presented at Financial Cryptography and Data Security 2021.
- Beanstalk Farms, "Beanstalk Governance Exploit", 19 April 2022.
- Chainalysis, "$197 Million Stolen: Euler Finance Flash Loan Attack Explained", 15 March 2023, updated 6 April 2023.
- Chainalysis, on oracle manipulation attacks in 2022, 7 March 2023.
- TRM Labs, "Fake AI Trading Bots Are Getting Victims to Build Their Own Drainers", 14 September 2026.
Borrow on your reputation, or fund someone you trust.
Unlloo crowd loans are reputation-first. No collateral is locked today; optional collateral is planned. Unlloo runs on Ethereum mainnet with USDC, USDT and DAI.