This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Calculate EIP-1559 Fee

Developer Tools · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
CategoryDeveloper Tools
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

Calculate EIP-1559 Fee enables you to compute precise transaction fees for Ethereum and other EIP-1559-compatible chains. EIP-1559 introduced a new fee market with a base fee (burned) and a priority fee (tip to miners). Understanding these components is crucial for submitting transactions with the right fee parameters to ensure timely inclusion without overpaying. The tool takes your gas limit estimate, the current base fee from the chain, your desired max priority fee (tip), and your max fee per gas cap, and calculates the total fee breakdown. It displays the effective fee per gas, the total fee in both gwei and ETH, and breaks down the base fee and priority fee components. The tool also fetches the current base fee from the chain when connected, making it easy to get up-to-date estimates. This is essential for developers, traders, and users who want to optimize transaction costs while ensuring reliable transaction inclusion.

HOW TO USE

Connect your wallet using the BGWallet connector (required for context). The tool can automatically fetch the current base fee from the chain when connected. Enter your gas limit estimate—the tool provides a default of 21,000 for simple ETH transfers. Enter the current base fee (in gwei) or use the auto-fetched value. Enter your desired max priority fee (in gwei)—this is the tip to miners, typically 1-3 gwei during normal network conditions. Enter your max fee per gas cap (in gwei)—this is the maximum you are willing to pay per gas unit. Click "Calculate Fee" to compute the breakdown. The tool displays the gas limit, base fee, max priority fee, max fee, and the complete fee breakdown including base fee total, priority fee total, total fee, and max fee allowed. You can copy the breakdown to your clipboard for reference when submitting transactions.

TECHNICAL MECHANISM

This tool implements EIP-1559 fee calculation using the standard formula. The total fee for a transaction is: total_gas_used * (base_fee + priority_fee). The base fee is determined by the network and is burned (removed from circulation). The priority fee is a tip paid to the validator to incentivize inclusion. The user specifies a max_fee_per_gas, which acts as a cap on the total gas price. The miner receives min(max_fee_per_gas - base_fee, max_priority_fee), with the remainder refunded to the user if the base fee is lower than expected. The tool calculates: effective_fee_per_gas = base_fee + max_priority_fee (capped at max_fee). total_fee_gwei = gas_limit * effective_fee_per_gas. The tool also computes the base fee total (gas_limit * base_fee), priority fee total (gas_limit * max_priority_fee), and the max fee total (gas_limit * max_fee). All values are displayed in both gwei and ETH for clarity. The tool uses ethers.js for unit conversions and can fetch live base fee data from the connected provider.

WHAT IT CANNOT SEE

This tool cannot predict future base fee changes after the transaction is submitted—base fees fluctuate with network demand. It does not guarantee transaction inclusion within the specified fee parameters if the base fee rises above the max fee cap between calculation and submission. The tool cannot account for mempool congestion variations beyond the base fee. It does not provide fee estimates for chains that do not support EIP-1559 (e.g., legacy chains). The tool cannot simulate the exact gas usage of a transaction without the full transaction data—gas usage can vary. It does not support custom fee calculation for contract deployments or complex transactions with variable gas requirements. The tool cannot guarantee that the calculated fee will be sufficient if the base fee rises sharply between calculation and submission. It does not account for block size or gas limit fluctuations at the network level.

PLEASE NOTE

This tool is designed for EIP-1559-compatible chains including Ethereum mainnet, Goerli, Optimism, Arbitrum, Polygon, and others. The base fee is burned, reducing ETH supply over time. The priority fee is paid directly to validators. The max fee cap protects users from excessive fees in case of base fee spikes. For standard ETH transfers, a gas limit of 21,000 is typical; for contract interactions, higher gas limits are needed. The tool provides estimates only—always verify current network conditions before submitting transactions. The auto-fetch feature requires a connected provider and may not work on all networks. The fee breakdown is calculated in gwei (1e-9 ETH) for precision. Always set your max fee cap high enough to cover potential base fee increases, but low enough to stay within your budget. The tool is read-only and does not submit any transactions.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.