Formula & Calculator

Flash Loan Fee

Calculates the fee charged for an uncollateralized flash loan, which must be repaid within the same blockchain transaction.

CryptoDeFiFlash Loans

Flash Loan Fee Calculator DeFi Arbitrage Cost

Fee = Loan Amount · Fee Rate
Fee = total flash loan cost  ·  Loan Amount = borrowed capital  ·  Fee Rate = protocol fee percentage
⟹ Solve Fee, Loan Amount, Fee Rate
USD
%
USD
Please fix the errors above.
Solve for:
Presets:
Flash Loan Fee
Fee: Loan: Rate:
✓ Copied!
Flash Loan Fee Gauge
Low (< $100) Moderate ($100 – $500) High (> $500)
Fee = Loan Amount · Fee Rate  ·  Fee Rate is applied as a percentage (%) of the loan amount.

Interpretation

Fee = Loan Amount × Fee Rate. The fee for a flash loan (a loan borrowed and repaid in the same transaction).

Fee = Loan Amount * Fee Rate
Flash Loan Fee

Variables

SymbolQuantityUnit
FeeFlash loan feecurrency
Loan AmountAmount borrowed via flash loancurrency
Fee RateProtocol'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
Scenario: A user takes a flash loan of $1,000,000 with a fee rate of 0.09%. Fee = 1,000,000 × 0.0009 = $900. The user must repay the loan plus this fee in the same transaction. Flash loans are used for arbitrage and refinancing; the fee is small relative to potential profits.
ParameterValue
Loan Amount$1,000,000
Fee Rate0.09%
1Fee = 1,000,000 × 0.0009 = $900
Result $900 ✓ Flash loan fee
Scenario: A smaller flash loan of $100,000 at 0.05% fee costs $50. Even with a lower fee, the absolute cost is smaller, making it attractive for smaller arbitrage opportunities. The trader calculates net profit after fee to ensure profitability.
ParameterValue
Loan$100,000
Rate0.05%
1Fee = 100000 × 0.0005 = $50
Result $50 ✓ Small fee
Insight: Flash loans are uncollateralised loans that must be repaid within the same transaction block. The fee is typically small (0.05‑0.09%), but the loan must be used profitably to cover the fee and gas costs.

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

Q01How do I calculate the fee for a flash loan, which is an uncollateralized loan that must be repaid within the same transaction?
A01

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.

Q02Why are flash loan fees so low compared to traditional loans?
A02

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.

Q03What are the typical flash loan fee rates on major DeFi platforms?
A03

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.

Q04Can I use a flash loan for arbitrage without any upfront capital?
A04

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.

Q05What happens if I cannot repay the flash loan in the same transaction?
A05

The entire transaction is reverted. The loan is never actually disbursed, and no funds change hands. This ensures the lender faces zero default risk.

Q06Is there a minimum or maximum loan amount for flash loans?
A06

Most platforms have a minimum amount (e.g., a few thousand dollars) and a maximum amount limited by the pool's available liquidity.

Q07Can I use flash loans for self-liquidation or collateral swaps?
A07

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.

Q08Does the fee apply to the entire loan amount or the profit?
A08

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.