Crypto Flash Loan Profit Calculator

Calculate potential profit from DeFi flash loan arbitrage. Enter trade revenue, flash loan fee, and gas costs to determine net flash loan profitability.

$
$
$
%
Revenue: $2,500.00Total Cost: $582.50
FeeGasSlippageProfit
Net Profit
$1,917.50
Profitable - 76.7% margin
Flash Loan Fee
$500.00
0.05% of $1,000,000.00
Gas Cost
$80.00
Ethereum Mainnet
Slippage Cost
$2.50
0.1% of gross revenue
Total Cost
$582.50
Fee 85.8% + Gas 13.7% + Slip 0.4%
ROI on Cost
329.2%
Net profit / total cost
Break-Even Revenue
$580.58
Min revenue to cover all costs
Cost Breakdown
ComponentAmount% of Revenue% of CostBar
Flash Loan Fee$500.0020.00%85.8%
Gas$80.003.20%13.7%
Slippage$2.500.10%0.4%
Total Cost$582.5023.30%100%
Net Profit$1,917.5076.7%
Protocol Fee Comparison
ProtocolFee RateFee AmountNet ProfitViable?
Aave V30.05%$500.00$1,917.50Yes
Aave V20.09%$900.00$1,517.50Yes
dYdX0%$0.00$2,417.50Yes
Uniswap V3 (flash swap)0.3%$3,000.00-$582.50No
Balancer0%$0.00$2,417.50Yes
MakerDAO0%$0.00$2,417.50Yes
Network Gas Cost Comparison
NetworkEst. GasNet ProfitGas % of Revenue
Ethereum Mainnet$80.00$1,917.503.200%
Arbitrum$0.50$1,997.000.020%
Optimism$0.30$1,997.200.012%
Polygon$0.05$1,997.450.002%
Base$0.20$1,997.300.008%
BSC$0.15$1,997.350.006%
Planning notes, formulas, and examples

About the Crypto Flash Loan Profit Calculator

Flash loans let you borrow millions in crypto with zero collateral โ€” as long as you repay within the same transaction. They're used for arbitrage, liquidation, and collateral swaps. The key question: does your trade revenue exceed the flash loan fee plus gas costs?

This Flash Loan Profit Calculator determines the net profit of a flash loan operation. Enter the loan amount, fee percentage, expected revenue, and gas cost to see if the opportunity is profitable.

Flash loan profitability depends on finding price discrepancies large enough to cover fees. This calculator helps you evaluate opportunities before committing to complex smart contract development.

Use the result to map token-release or fee scenarios and revisit the model when market conditions, unlock terms, or portfolio assumptions change.

When This Page Helps

Flash loan opportunities are time-sensitive and thin-margin. This calculator shows whether an opportunity covers fees and gas before you risk execution. No wallet connection or sign-up is needed, and you can re-run calculations as often as market prices and network conditions change.

How to Use the Inputs

  1. Enter the flash loan amount you need to borrow.
  2. Set the flash loan fee percentage (Aave charges 0.09%).
  3. Enter the expected gross revenue from the trade.
  4. Input the estimated gas cost for the transaction.
  5. View your net profit and return on gas spent.
Formula used
Flash Loan Fee = Loan Amount ร— Fee%. Net Profit = Gross Revenue โˆ’ Flash Loan Fee โˆ’ Gas Cost. ROI = Net Profit / Gas Cost ร— 100%.

Example Calculation

Result: $1,550 net profit

Flash loan fee = $1,000,000 ร— 0.0009 = $900. Net profit = $2,500 โˆ’ $900 โˆ’ $50 = $1,550. ROI on gas = $1,550 / $50 = 3,100%. Profitable โ€” the arbitrage spread exceeds the flash loan fee and gas.

Tips & Best Practices

  • Aave V3 charges 0.05% for flash loans; Aave V2 charges 0.09%.
  • Gas costs on Ethereum mainnet can make small opportunities unprofitable.
  • L2 flash loans (Arbitrum, Optimism) have much lower gas costs.
  • Competition from MEV bots means opportunities are extracted within blocks.
  • Test your flash loan strategy on testnets before deploying capital.
  • Consider Flashbots to prevent front-running of your flash loan transactions.

Flash Loan Economics

The beauty of flash loans is zero capital risk โ€” your only cost on failure is gas. On success, you keep the profit minus the protocol fee. This asymmetric risk/reward makes flash loans the purest form of risk-free arbitrage in DeFi.

MEV and Competition

Most flash loan arbitrage opportunities are captured by MEV bots that monitor the mempool and backrun transactions. Retail flash loan users compete against sophisticated bots with custom infrastructure. Unique strategies or cross-chain opportunities offer better chances.

Flash Loan Attacks vs Legitimate Use

Flash loans gained notoriety from oracle manipulation attacks. Legitimate uses โ€” arbitrage, liquidation, collateral swaps โ€” strengthen market efficiency. The technology is neutral; intent determines the ethics.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • You borrow tokens at the start of a transaction, use them for any operation (arbitrage, liquidation, collateral swap), and repay the loan plus fee in the same transaction. If you can't repay, the entire transaction reverts as if it never happened.