01

Max fee 0.0075 ETH, actual charge 0.0032 ETH

Ethereum wallets show a maximum fee when you send a transaction, yet the fee actually deducted is often much smaller. Under EIP-1559, introduced in 2021, fees are split into a base fee and a priority fee, and only what is actually needed is charged, within the maximum you set.

This guide explains the three fee values in an EIP-1559 transaction and calculates the actual charge with a hypothetical transaction. It also covers how the base fee changes from block to block and what happens when it rises above your maximum.

02

Three fee values

Under EIP-1559, each block has a protocol-set base fee, and a transaction must pay at least that to be included. Ether paid as base fee is burned. Users can add a priority fee, a tip for the block producer, and set a max fee, the ceiling on the price per unit of gas.

As Ethereum.org's page on gas explains, the effective gas price is base fee plus priority fee, and if that sum exceeds the max fee, the priority fee is reduced. The amount paid is this price times the gas actually used; the difference from the max fee is not charged.

03

A hypothetical transaction

The table assumes a swap sent with a max fee of 50 gwei and a priority fee of 2 gwei, included in a block with a base fee of 30 gwei, using 100,000 gas. The wallet set a gas limit of 150,000.

Calculating an EIP-1559 transaction fee (hypothetical)
ItemValueExplanation
Gas limit × max fee150,000 × 50 gwei = 0.0075 ETHMaximum the wallet reserves
Effective gas price30 + 2 = 32 gweiBase fee + priority fee
Gas actually used100,000Amount consumed in execution
Actual charge100,000 × 32 gwei = 0.0032 ETHDeducted from the account
Of which burned100,000 × 30 gwei = 0.003 ETHThe base fee portion
Block producer's share100,000 × 2 gwei = 0.0002 ETHThe priority fee portion

Of the 0.0075 ETH maximum, only 0.0032 ETH was charged. Unused gas and the gap between the max fee and the effective price are not charged.

04

How the base fee moves

EIP-1559 sets a target gas use per block, raising the next block's base fee when the previous block used more than the target and lowering it when it used less. It can change by at most 12.5% per block, so when demand surges the base fee can climb quickly within minutes.

Starting from a base fee of 30 gwei, five full blocks in a row lift it to 30 × 1.125⁵ ≈ 54 gwei. That exceeds the 50 gwei max fee in the example, so the transaction would wait outside blocks until the base fee falls back below 50.

05

What the priority fee does

The priority fee gives block producers a reason to include your transaction ahead of others. When the network is quiet, a small tip is enough; when competition for block space is intense, a higher tip helps get included quickly. Since the base fee is the same for everyone, competition happens mainly through the priority fee.

Setting a generous max fee keeps the transaction includable if the base fee rises a little, and because you pay only what is needed, the downside is small. A max fee set too low leaves the transaction waiting whenever the base fee climbs.

Wallets usually suggest values for both, often labelled slow, standard, and fast. Those labels mostly change the priority fee and the headroom in the max fee; the base fee itself is not something any wallet can lower.

06

Checks when setting fees

Before and after sending a transaction, check these items.

  1. Tell whether the amount your wallet shows is the maximum or the expected charge.
  2. Look at the current base fee and recent trend, and confirm the max fee leaves enough room.
  3. Use a low priority fee for transactions that can wait and a higher one for urgent ones.
  4. Afterward, check gas used, effective gas price, and the amount burned in a block explorer.
  5. Remember that failed transactions are still charged for the gas they used.
07

Gas limits and failed transactions

The gas limit caps how much gas a transaction may use. If execution needs more than the limit, the transaction fails partway and is still charged for the gas consumed. Wallets therefore usually set limits somewhat above estimated use.

As Ethereum.org's page on transactions explains, a transaction executes against the state at the moment it is included. If state has changed since simulation, it may need more gas or fail a condition, so for important transactions consider the chance of failure and its cost too.

08

Variables beyond the numbers

The fees and gas amounts here are hypothetical. Real base fees change constantly with demand, and layer 2 networks may structure fees differently from Ethereum.

When transacting, check EIP-1559, Ethereum.org, and your wallet's current guidance, noting when each was last updated. Treat the numbers as material for your own judgment, not as trading signals.