Flash Loans: What Are They & How Do They Work?
TokenTax content follows strict guidelines for editorial accuracy and integrity. We do not accept money from third party sites, so we can give you the most unbiased and accurate information possible.
Flash loans are DeFi loans that do not require upfront collateral. You borrow, use, and repay the funds all within a single blockchain transaction. If you do not repay, the transaction is canceled.
Flash loans are mainly used by developers, bots, liquidators, and experienced DeFi users. They are often used for arbitrage, liquidations, collateral swaps, refinancing, and moving positions.
Flash loans can still create a tax record. Keep clear records of swaps, rewards, incentives, gas fees, transaction hashes, and any profit or loss.
Why trust our crypto tax experts
A flash loan is a DeFi crypto loan with a very short fuse: borrow without upfront collateral, use the funds, and repay everything in a single blockchain transaction. The smart contract checks the repayment before the transaction closes. If the funds and fees are not there, the whole thing reverts.
Flash loans are not regular loans. They are mostly used for arbitrage, liquidations, collateral swaps, refinancing, and other DeFi use cases.
Pro tip
Always check the live app, docs, fees, liquidity, and supported chains before using any platform.
What is a flash loan in crypto?
A flash loan in crypto is a collateral-free DeFi loan that must be repaid in the same blockchain transaction. The protocol does not need your credit score or a pile of collateral because the code decides whether the transaction can settle.
Key points:
No upfront collateral: You can borrow liquidity without posting assets first.
One-transaction structure: The borrow, route, and repayment happen in the same transaction.
Code-enforced repayment: If the repayment condition fails, the transaction reverts.
No credit underwriting: The protocol does not check your income, identity, or credit score.
Advanced DeFi use: Flash loans are mostly for builders, crypto trading bots, liquidators, arbitrage traders, and power users.
Pro tip
Using crypto loans, whether flash or otherwise, means you’ll want to understand the tax implications before becoming active. Read more here: Crypto Loans Tax.
How do flash loans work?
Flash loans work because the smart contract forces repayment before the transaction can settle. No repayment, no completed transaction.
Borrow: A contract asks a protocol for liquidity. On Aave, the borrower contract calls the Pool contract and receives the requested reserve asset.
Execute the strategy: The contract runs the route. It might trade across pools, repay an unhealthy loan, change collateral, or refinance a position.
Repay: Before the transaction ends, the contract must make the borrowed amount plus the required fee available to the protocol.
Complete or revert: If repayment works, the transaction settles. If repayment fails, the route is canceled, and the chain does not keep the strategy. Gas can still be lost.
Pro tip
In DeFi, it’s important to know about gas fees. Read more here: Are Ethereum Gas Fees Tax Deductible?
Why do people use flash loans?
People use flash loans to access large amounts of capital for a short time. You can use these funds for a single on-chain strategy without holding the capital yourself. This works only if every step of your plan goes smoothly.
Common uses include:
Arbitrage: A token is cheaper in one pool and higher in another. The flash loan funds the route, but the spread still has to beat gas, DEX fees, slippage, and MEV.
Liquidations: A liquidator repays part of a risky DeFi loan, claims discounted collateral, repays the flash loan, and keeps what is left.
Collateral swaps: A borrower changes the asset backing a position without manually closing the loan, moving funds, and reopening everything.
Debt refinancing: A position moves to a better lending market when the rate or collateral setup makes the extra routing worth it.
Position migration: A user or contract moves a messy DeFi position from one protocol to another in one transaction.
DeFi automation: Several steps are bundled into one route instead of being handled one at a time.
Borrowed funds are not a magic solution. Most easy opportunities are already monitored by bots. A flash loan is only useful if your strategy is more effective than the costs.
Pro tip
Arbitrage profits are taxable. See how the IRS treats crypto arbitrage trading before you run your first route.
Best flash loan platforms (quick comparison)
This table compares widely used flash loan and flash-style tools by use case, fees, and complexity.
Platform | Best For | Fees | Complexity | Winner |
Aave | Standard flash loan development and deep lending liquidity | Initialized at 0.05% per Aave developer docs; governance can change it | High | Best overall |
Equalizer Finance | Dedicated flash loan marketplace users | Verify current vaults, routes, liquidity, and fees before use | Medium to high | Best dedicated marketplace |
Furucombo | Visual DeFi transaction building | Fees depend on the integrated protocols and route used; verify in current Furucombo documentation | Medium | Best visual builder |
Uniswap | Flash swaps and DEX arbitrage | Pool fees, swap math, and repayment rules apply | High | Best DEX flash swap option |
Best flash loan platforms in 2026
Flash loan tools age unevenly. Liquidity moves, fee settings change, docs lag behind live features, and some opportunities stop making sense once crypto trading bots find them. Before you build around any protocol, check the current docs, then check the crypto apps themselves for the latest information.
Aave is the best place to start if you want to understand flash loans at the contract level. It is not the only option, but it is one of the best-documented.
Aave's developer documentation states that the flash loan fee is set to 0.05% and can be changed through governance. Check the current value before building or testing an opportunity. Old fee assumptions can turn a tight strategy into a bad one.
Equalizer Finance is different from Aave. It works more like a flash loan marketplace than a general lending platform. This can be helpful, but it also means you need to be extra careful.
Before using Equalizer Finance, check the current app, active vaults, available liquidity, fees, and supported blockchains.
Furucombo is a visual builder for DeFi transactions. It is not a separate flash loan lender, and that distinction matters. Use it to map an opportunity, not as a shortcut around understanding it.
A visual builder can make the steps easier to see. It cannot make a bad route good. You still need to understand the protocols involved, the liquidity, the fees, and what happens if the transaction fails.
Uniswap is not a typical flash loan platform. It uses flash swaps, where a contract can get tokens from a pool first and then pay back what is owed before the transaction ends.
This setup works well for DEX arbitrage. The pool lets the contract use tokens elsewhere before making the final payment. Uniswap does not judge your trade. If the repayment math works, the transaction goes through. If not, it fails.
Pro tip
If you use Uniswap flash swaps, the tax treatment follows standard DEX swap rules. Our Uniswap taxes guide covers what to track and when a taxable event occurs.
How secure are flash loans?
Flash loans are not automatically unsafe. The real risk comes from how people use the borrowed funds.
A well-planned strategy can succeed, but a poor one can fail right away. Weak protocols are especially at risk because flash loans let attackers use large amounts of funds for a short time.
Use flash loans carefully:
Choose protocols with thorough audits and real users - look for social proof and reviews.
Test on a fork or testnet before mainnet.
Model DEX and crypto gas fees, slippage, and MEV.
Use reliable price feeds.
Avoid relying on one thin DEX pool as a price source.
Keep the contract as small as possible.
Do not run a transaction you cannot explain in plain language.
There are always risks in crypto. Euler is one example. In March 2023, an attacker exploited flash loan liquidity, draining roughly $197 million from the protocol. Most funds were later recovered.
Pro tip
If a flash loan exploit drains a protocol you use, you may be able to claim a loss. Read our guide on whether you can deduct crypto hacks and scams from your taxes.
Why are flash loans important?
Flash loans highlight what makes DeFi unusual. A smart contract can borrow, trade, repay, and settle everything on the blockchain without a bank, underwriter, or credit check.
This gives builders a new financial tool. Markets can be arbitraged faster. Bad debt can be liquidated more quickly. Positions can be refinanced or moved without manual steps.
There is a downside: flash loans can expose weaknesses in protocol design. Bad oracle logic, poor liquidation math, or relying on a single DEX price can cause large public losses.
Pro tip
Choosing the right accounting method affects your cost basis and your final crypto tax bill. See how crypto accounting methods like FIFO and LIFO apply to complex DeFi transactions.
What are the benefits of flash loans?
No upfront collateral: Borrow liquidity without posting collateral, as long as the transaction repays on time.
Capital-efficient arbitrage: Trade price gaps without already holding the full trade size.
Collateral swaps: Change collateral without manually closing and reopening every position.
Liquidation access: Use temporary liquidity to repay unhealthy debt and claim incentives.
No long-term debt: The loan starts and ends inside one transaction.
Pros and cons of a crypto flash loan
This table shows the main pros and cons of crypto flash loans.
Pros | Cons |
Access temporary liquidity without upfront collateral | Requires technical skill or trusted tooling |
Useful for arbitrage, refinancing, liquidations, and collateral swaps | Profit can disappear after gas, fees, slippage, and MEV |
Transaction reverts if repayment fails | Failed transactions can still cost gas |
No long-term interest or repayment schedule | Smart contract bugs can cause large losses |
Helps DeFi markets stay efficient | Flash loans can amplify oracle attacks or contract flaws |
Can bundle several DeFi actions into one transaction | Tax records get messy when swaps, fees, and rewards are involved |
What are the risks of flash loans?
Flash loans are risky because they involve borrowed funds, smart contracts, and real-time market actions. This mix can be hard for beginners to handle.
Key risks include:
Smart contract risk: A bug in your contract or the protocol can break the route.
Oracle risk: Bad or manipulated price data can make the strategy fail or expose a protocol.
Slippage: A large trade can move the pool more than expected.
Gas costs: A failed transaction can still burn gas.
MEV and frontrunning: Crypto trading bots may copy, reorder, sandwich, or outbid a route.
Liquidity changes: A pool can look usable when you model it, then change before execution.
Tax complexity: A single transaction can still include swaps, proceeds, fees, and incentives.
Scam risk: Random offers outside real DeFi protocols are often fake-balance scams.
What happens if I cannot pay back a flash loan?
If your contract cannot repay the loan plus required fees within the same transaction, the transaction reverts. The lender's funds are not released, and your strategy does not continue.
You will still pay gas fees if a transaction fails. If you are testing flash loan strategies, expect some failed transactions as a normal part of learning.
How to make money with flash loans
To profit from flash loans, you need a real advantage. Simply having access to borrowed funds is not enough.
Common approaches include:
Arbitrage: Trade across markets when the spread is wider than gas, fees, slippage, and MEV.
Liquidations: Repay unhealthy debt and claim a liquidation incentive.
Collateral swaps: Improve a borrowing position when asset prices or rates shift.
Debt refinancing: Move to better terms.
Most simple profit opportunities are already monitored by bots. This is why online claims about easy profits from flash loans can be misleading. If a strategy is easy to find, someone else is probably already using it.
Pro tip
Flash loans sit inside the broader DeFi tax picture. Our DeFi tax guide covers how the IRS generally approaches DeFi activity.
How are flash loans taxed?
The IRS has not published flash-loan-specific tax guidance. For US taxpayers, the safer approach is to apply general digital asset tax principles to each part of the transaction. Current guidance derives primarily from IRS Notice 2014-21 and Rev. Rul. 2023-14.
The loan itself is usually not the main tax issue if borrowed and repaid in a single transaction with no income, disposals, or net asset changes.
A flash loan strategy may create taxable events when it includes:
Selling one crypto for another
Swapping tokens through a DEX
Receiving liquidation incentives
Receiving token rewards or protocol incentives
Ending with a different asset than you started with
Realizing profit from a sale, swap, or other disposal
If the strategy creates a gain, that gain may be capital gain or ordinary income, depending on the facts. Rewards or incentives may be ordinary income when received. Token swaps generally require cost basis and proceeds tracking.
Gas fees and protocol fees matter too. Fees paid in connection with a disposal generally reduce your proceeds or increase your cost basis, which lowers your taxable gain. Track them clearly.
Pro tip
Not sure whether gas fees are deductible? Our breakdown of Ethereum gas fees and taxes explains when and how they reduce your taxable gain.
Keep records for:
Token borrowed
Assets swapped or sold
Proceeds
Cost basis
Gas fees paid
Protocol fees paid
Transaction hashes
Wallet addresses
Rewards or incentives received
Net profit or loss
TokenTax’s crypto tax software can help you organize complex DeFi activities, such as swaps, wallet transactions, gas fees, and taxable gains from advanced strategies. Flash loan transactions are fast, but your tax records still need to be accurate.
Pro tip
If the flash loan was part of a broader borrowing strategy, our crypto loans tax guide covers how collateralized and uncollateralized crypto loans are treated for tax purposes.
Flash loans FAQs
How to pay back a flash loan?
Are flash loans illegal?
Can flash loans be used for hacks?
Can I do a flash loan without coding?
What is the difference between a flash loan and a traditional loan?
To stay up to date on the latest, follow TokenTax on Twitter @tokentax.