What Is a Flash Loan? Flash Loans Explained for Australians (2026)

Quick Answer
A flash loan is a loan from a DeFi lending pool that you borrow and repay inside one blockchain transaction, with no collateral. It works because blockchain transactions are atomic: every step either completes or the whole transaction is reversed. A smart contract lends the funds, lets the borrower's code use them, and then checks that the funds plus a small fee came back before the transaction ends. If they did not, the transaction reverts and it is as if the loan never happened. Flash loans are used for arbitrage, liquidations and collateral swaps, and they have also been used to fund attacks on weakly designed protocols. They are an advanced developer tool, not a way to get free money. This guide is education only, not financial advice.
TL;DR - Quick Takeaways
- A flash loan is a no-collateral loan that must be borrowed and repaid within a single transaction
- It works because transactions are atomic: if repayment fails, the whole transaction reverts, including the original borrow
- The borrower pays a small fee (for example Aave V3 documents 0.05% by default) plus network gas, even if the strategy fails
- Typical uses are arbitrage, liquidating loans, swapping collateral and refinancing a position
- Flash loans did not create security bugs, but they let attackers rent huge capital for one transaction to exploit them, as bZx (2020) and Beanstalk (2022) showed
- Using one means writing and auditing a smart contract, so they are mainly for developers, not everyday users
- Anyone selling a "flash loan bot" with guaranteed profits should be treated as a scam warning sign
- Education only, not financial advice. Jittie is in pre-launch — join the waitlist for updates
Table of Contents
What is a flash loan?
A flash loan is a type of loan that only exists inside one blockchain transaction. A borrower's smart contract asks a lending pool for a large amount of a token, uses it for some purpose, and sends it back with a fee, all before the transaction finishes. Coinbase Learn describes flash loans as uncollateralised loans in decentralised finance where assets are borrowed and returned within the same blockchain transaction.
There is no real-world equivalent. A bank cannot lend you money, watch what you do with it, and cancel the whole thing retroactively if you fail to pay it back a few seconds later. A blockchain can, because of how transactions work. Aave's own documentation notes that flash loans have no real-world equivalent and that using them requires a good understanding of the EVM (the Ethereum Virtual Machine) and smart contracts.
Flash loans belong to decentralised finance (DeFi), the category of lending, trading and payment-like apps that run on public blockchains. They are mostly seen on Ethereum and Ethereum-compatible networks, and you do not need to apply, pass a credit check or post collateral. The trade-off is that the rules are enforced by code, and the loan must be repaid within seconds.
Why a flash loan needs no collateral
A normal loan carries a risk that the borrower disappears. Lenders manage that risk with collateral, credit checks and legal rights. A flash loan removes the risk another way: the lender's contract never lets the loan outlive the transaction.
Atomic transactions
On a blockchain such as Ethereum, a transaction can contain many steps, for example borrow, swap, swap again and repay. Those steps are atomic, meaning they all succeed together or all fail together. A failed transaction changes nothing on the ledger apart from the network fee paid to process it. Uniswap's documentation explains the same idea for its flash swaps: because Ethereum transactions are atomic, the entire swap can be rolled back if the contract has not received enough tokens by the end of the transaction.
What the lender actually risks
The lender's worst case is that the transaction reverts and it earns no fee. The pool's funds never leave in a way that can be kept, because the repayment check is part of the same transaction. That is why a pool can lend an enormous amount, sometimes far more than the borrower could ever own, to a stranger with no history.
How a flash loan works, step by step
Using Aave's documented flow as an example, here is what happens inside the one transaction.
| Step | What happens | If something goes wrong |
|---|---|---|
| 1. Request | The borrower's smart contract asks the lending pool for a flash loan of one or more tokens | The pool checks the request and refuses if it does not have enough of the token |
| 2. Transfer | The pool sends the tokens to the borrower's contract | Nothing is final yet |
| 3. Use | The pool calls a function on the borrower's contract, which can do anything its code allows, such as swap, trade or repay another loan | If this code fails, the transaction reverts |
| 4. Repay | The borrower's contract approves the pool to pull back the amount borrowed plus the fee | Missing balance or approval means the transaction reverts |
| 5. Check | The pool confirms it has been repaid and the transaction is recorded | If the check fails, steps 1 to 4 are all undone |
All of this happens in a single block, in seconds. The borrower does not hold the loan from one day to the next, so there is no repayment schedule, no interest accruing over time and no margin call. The cost is a flat fee on the amount borrowed, plus the gas fee for running a complicated transaction.
Why it needs a smart contract
You cannot take out a flash loan by tapping a button in a wallet app. The borrower's logic has to be written into a smart contract so that the use and the repayment can happen in the same transaction. That is why flash loans are described by Investopedia as primarily useful for advanced users, and why bugs in that code can mean lost gas or lost funds.
A worked example with Australian dollars
Here is an illustrative flash loan arbitrage using made-up numbers. These are not real prices, real pools or a recommendation.
Imagine the same stablecoin trades slightly higher in one liquidity pool than another. A stablecoin is a token designed to track a currency, but pool prices can drift apart for short periods.
| Item | Amount (AUD, illustrative) |
|---|---|
| Flash loan borrowed | $1,000,000 |
| Price gap captured between the two pools | 0.30% |
| Gross gain from the gap | $3,000 |
| Flash loan fee at 0.05% | $500 |
| Swap fees and network gas (assumed) | $250 |
| Net result before price movement | $2,250 |
If the price gap had narrowed to 0.04% by the time the transaction was processed, the gross gain would be only $400. That is less than the $500 fee, so the borrower's contract would fail its repayment check and the transaction would revert. The loan would not happen, but the gas fee for the failed attempt would still be paid.
Two details matter. First, the gap is only profitable if it is still there when the transaction lands, and automated searchers compete for the same opportunities, which is why real arbitrage margins are usually much thinner than this example. Second, large trades move prices. Slippage is the difference between the price you expected and the price you got, and on a large swap through a small pool it can wipe out the whole gain.
Where flash loans come from
Flash loans are not offered by one company. Several DeFi protocols include the feature, each with different rules and fees. Always check the current documentation, because fees are set by each protocol and can be changed.
| Protocol | How it works | Documented fee at time of writing |
|---|---|---|
| Aave V3 | Lends from its pools, with the borrower repaying amount plus fee in the same transaction | 0.05% by default, adjustable by governance (Aave V2 charged 0.09%) |
| Balancer V2 | Lends from the tokens held in its vault | Balancer's documentation says flash loan fees are currently 0 |
| Uniswap V2 flash swaps | A pair contract sends tokens first and requires payment or return of tokens plus fee by the end of the transaction | The usual 0.3% liquidity provider fee applies |
CoinDesk reported that flash loans were first released by Aave in January 2020, with bZx following in February of that year. Aave's own documentation lists the flash loan fee as set at 0.05% at deployment and changeable by a governance vote, and Balancer's flash loan documentation describes how repayment is enforced through the vault.
What flash loans are used for
The Chainlink education hub lists the main legitimate uses. In practice, most come down to needing a lot of capital for a moment, without holding it.
- Arbitrage. Borrow, buy a token where it is cheaper, sell where it is dearer, repay and keep the difference. This tends to pull prices on different venues back into line.
- Liquidations. Lending protocols reward third parties who repay unhealthy loans and take discounted collateral. A flash loan lets the liquidator do this without owning the debt amount. Aave notes liquidating borrow positions as a common use.
- Collateral swaps. Close a loan using borrowed funds, then immediately reopen it against a different type of collateral, all in one transaction.
- Refinancing. Move a position from one protocol to another in one step, rather than repaying first and borrowing after.
- Leveraged positions. Some strategies build a larger position than the borrower's own funds would allow, which increases the risk of loss as well as the potential gain.
None of these uses are available to a typical beginner through an app. They are developer and trader tools built into contracts, and each carries the code risks described below. If you are new to lending in DeFi generally, start with our DeFi guide and our guide to yield farming.
Flash loan attacks: two documented cases
Flash loans have a mixed reputation because they have been used in several well-known exploits. The loan itself is not the bug. The bug is in a protocol that can be pushed into an unfair state by someone briefly controlling a lot of capital. Both cases below are described as reported by the sources linked, and loss figures vary between sources.
bZx, February 2020
CoinDesk reported that bZx suffered two attacks within days of flash loans arriving. In the first, an attacker drained about $350,000 worth of ether from the Fulcrum lending platform, and a second attack days later netted about $633,000. According to the bZx post-mortem as summarised by The Block and others, the first attack borrowed 10,000 ETH via a flash loan from dYdX, used it across several protocols, pushed a price on Uniswap far from its normal level, and repaid the loan from the proceeds. The Block's account says this was a logic bug in bZx's code, not simply a bad price feed. The lesson: borrowed capital can move a thin market far enough to trick a protocol that trusts that market.
Beanstalk, April 2022
In April 2022 the stablecoin protocol Beanstalk lost roughly $182 million in a governance attack. Halborn's analysis says the attacker used a flash loan to gain around 79% of the voting power for a moment, passed malicious proposals in the same transaction, and repaid the loan from the stolen assets, keeping about $76 million. Halborn's explanation notes the governance functionality that was exploited had not been audited before release. The lesson: if voting power can be borrowed for one transaction, a protocol's governance can be taken over for one transaction.
The oracle connection
Many flash loan attacks work by moving a price that a protocol reads from a single pool. If you want to understand why, read our guide to the crypto oracle problem, which covers manipulated price feeds in more depth.
Common misunderstandings
- "Flash loans are free money." The fee, the gas and the competition mean most attempts either earn little or fail. Failed transactions still cost gas.
- "A flash loan is a hack." The loan is a normal, intended feature. Attacks use it to exploit a protocol that was built with a weakness.
- "I can take one out in my wallet app." You need a custom smart contract, which is why this is a developer topic.
- "A flash loan can't lose money because it's atomic." The lender is protected, but the borrower can lose gas, and the contract author can lose funds through bugs. Aave warns developers never to keep funds on a flash loan receiver contract, because an attacker could use them.
- "Flash loans make DeFi unsafe to use." They raise the bar for protocol design. Well-built protocols assume attackers can borrow huge amounts and defend accordingly.
How protocols defend against flash loan attacks
Developers cannot stop people from borrowing, so they design around it. Common defences include:
- Better price sources. Using oracles that aggregate many sources or average prices over time, instead of reading one pool's spot price.
- Delays on voting power. Counting votes only from tokens that have been held for a period of time, so borrowed tokens cannot vote in the same transaction.
- Limits and checks. Capping the size of actions per block and reverting when a price moves unexpectedly.
- Audits. Independent code reviews, ideally covering every update. Reviews reduce risk but cannot prove a contract is free of bugs.
- Careful use of tokens. Understanding how a token standard such as ERC-20 can be used inside contracts helps reviewers spot unexpected flows.
Risks to understand
Even if you never touch a flash loan, they affect how you should think about DeFi risk.
- Smart contract risk. A protocol's code may contain a bug that a flash loan makes cheaper to exploit. Read about smart contracts before putting funds in one.
- Price manipulation. A protocol using a thin pool as its price source can be pushed off course for one transaction, which can trigger unfair liquidations.
- Pool and liquidity risk. Funds you supply to a pool can be affected by an exploit. See impermanent loss and the broader DEX guide for how pools can behave.
- Rug pulls and fake projects. A rug pull is where creators drain funds from a project they control, which is a different problem from a flash loan exploit but often discussed alongside them.
- Scams that use the name. Be careful with anyone selling "flash loan software", copy-trading bots or guaranteed profit schemes. Read our crypto scams guide and the Moneysmart page on crypto assets, which warns that most crypto are high-risk and can fluctuate by huge amounts within a short period.
- Wallet and key security. Interacting with unfamiliar contracts means signing transactions. Follow our crypto security best practices and understand how a crypto wallet approves actions.
A checklist before you go further
- Can you explain atomic transactions in your own words? If not, reread the section above.
- Do you understand that a flash loan needs a smart contract and is a developer tool?
- Are you only learning, or are you thinking of putting money in? If you are putting money in, check the protocol's audits, how it gets prices and whether it has been exploited before.
- Do you know how any DeFi protocol you use gets its price data?
- Does a "flash loan" offer promise guaranteed returns or ask for upfront payment? If yes, walk away.
- Are you using a wallet you understand, with a wallet address you have checked, and signing only what you have read?
- Have you checked what ASIC's Moneysmart says about crypto assets for Australian consumers?
To see which networks these contracts run on, read our Ethereum guide and browse the coins list.
Frequently Asked Questions
What is a flash loan in simple terms?
A flash loan is a loan from a DeFi pool that is borrowed and repaid within one blockchain transaction. No collateral is needed because if repayment fails, the whole transaction is reversed as if the loan never happened.
Why do flash loans not need collateral?
Blockchain transactions are atomic, so the pool's smart contract can check repayment at the end of the transaction and reverse everything if it did not get its money back. The lender cannot be left with an unpaid loan.
How much does a flash loan cost?
There is a protocol fee, which differs by provider, plus the network gas fee for the transaction. Aave V3 documents a default fee of 0.05% of the amount borrowed, while Balancer V2 documentation says its flash loan fees are currently zero. Check each protocol's current documentation.
Can a beginner take out a flash loan?
Not easily. You need to write, test and deploy a smart contract, or use a tool that does so. Mistakes can cost gas fees or funds, which is why flash loans are generally treated as an advanced developer tool.
Are flash loans illegal?
Flash loans are a built-in feature of several DeFi protocols. What matters is what someone does with one. Using borrowed capital to manipulate a protocol or steal funds can be unlawful. This is general information, not legal advice, so ask a qualified professional about your own situation.
Why do flash loans appear in so many DeFi hacks?
They let an attacker borrow enough capital to move a price or gain voting power for a single transaction at low cost. The underlying cause is usually a protocol weakness, such as relying on one manipulable price source or on governance that borrowed tokens can swing.
Does Jittie offer flash loans?
No. Jittie is in pre-launch and is building a linked debit card designed to give merchant-funded Bitcoin back on everyday spending. It is not live. You can join the waitlist at learn.jittie.com/waitlist for launch updates.
Jittie is in pre-launch. We're building a linked debit card designed to give merchant-funded Bitcoin back on everyday Australian spending. It is not live yet. Join the waitlist for launch updates.
Eagle BTM Pty Ltd ACN 659 281 820 publishes this education site. Nothing here recommends any platform, exchange, wallet, service or asset or is a recommendation to buy, sell or hold anything. General information only — not financial or legal advice.
Related Guides

Bitcoin Rewards Australia: How Aussies Earn BTC in 2026
How Australians earn BTC through cashback cards, apps, browsers, referrals and exchange programs, plus custody checks and Jittie’s learn-and-earn education.

Crypto Staking Australia: 2026 Education Guide
Crypto staking in Australia explained for 2026: how proof-of-stake rewards work, liquid vs locked vs exchange earn products, and the main risks. Education only.

Crypto Trading Basics for Australian Beginners
Learn crypto trading fundamentals including chart reading, order types, risk management, and proven strategies for Australian traders.
Jittie Editorial Team
Crypto Education Specialists
Our team of crypto experts and financial educators are passionate about making cryptocurrency accessible to all Australians. With backgrounds in blockchain technology, finance, and education, we create clear, accurate guides to help you navigate the crypto world safely.