Formula & Calculator
Flash Loan Fee
Calculates the fee charged for an uncollateralized flash loan, which must be repaid within the same blockchain transaction.
Interpretation
Fee = Loan Amount × Fee Rate. The fee for a flash loan (a loan borrowed and repaid in the same transaction).
Variables
| Symbol | Quantity | Unit |
|---|---|---|
| Fee | Flash loan fee | currency |
| Loan Amount | Amount borrowed via flash loan | currency |
| Fee Rate | Protocol's flash loan fee rate | % |
What it means
Flash loans are uncollateralised loans that must be repaid in the same block. They typically have a small fee (e.g., 0.09%). This formula calculates the fee. Flash loans are used for arbitrage, collateral swaps, and self‑liquidation. Understanding the fee structure is essential for using flash loans effectively. It is a key innovation in DeFi.
Worked example
Flash Loan Fee – Two Detailed Examples
Real‑World| Parameter | Value |
|---|---|
| Loan Amount | $1,000,000 |
| Fee Rate | 0.09% |
| Parameter | Value |
|---|---|
| Loan | $100,000 |
| Rate | 0.05% |
Common mistakes
- Flash loan fee: A small percentage fee charged on the loan amount.
- Loan amount: The principal borrowed.
- Fee rate: Usually a fraction of a percent (e.g., 0.09%).
- Must be repaid: Flash loans must be repaid within the same transaction.
Applications
Flash loan fee calculates the fee charged for a flash loan, typically a small percentage of the loan amount. This is a unique feature of DeFi, enabling uncollateralised borrowing for arbitrage and other strategies. Traders use it to calculate the net profit after fees. Understanding flash loan fees is essential for executing profitable flash loan strategies.
- Calculating the cost of flash loans for arbitrage
- Evaluating the profitability of flash loan strategies
- Comparing flash loan fees across protocols
- Optimising loan amounts to minimise fee impact
- Educational understanding of flash loan mechanics
Frequently Asked Questions
Fee = Loan Amount × Fee Rate. For example, if you borrow $1,000,000 and the fee rate is 0.09%, the fee is $900. This fee is charged regardless of how quickly you repay, as long as the transaction completes successfully.
Because the loan is risk-free for the lender – it must be repaid in the same transaction, or the entire transaction is reversed. There is no credit risk, so the fee is minimal.
Aave charges 0.09%, dYdX charges 0.05%, and Uniswap used to charge 0.3% but has integrated with flash loan providers. Always check the platform's current fee schedule.
Yes, that is the most common use case. You borrow the funds, execute your arbitrage, repay the loan, and keep the profit. If the arbitrage profit exceeds the fee, you make money.
The entire transaction is reverted. The loan is never actually disbursed, and no funds change hands. This ensures the lender faces zero default risk.
Most platforms have a minimum amount (e.g., a few thousand dollars) and a maximum amount limited by the pool's available liquidity.
Yes, flash loans are often used for self-liquidation to avoid penalties, or to swap collateral assets to avoid liquidation. These are advanced DeFi strategies.
The fee is charged on the total loan amount, not just the profit. So you need to ensure your profit exceeds the fee to make the strategy worthwhile.