The short answer

The gas limit caps gas units available to a transaction. The gas price is the cost per unit; modern Ethereum transactions use fee caps and an effective price. An execution fee is gas used × effective price. Additional network components can apply, especially on layer 2.

Keep units and price separate

A gas unit measures execution work. Gwei expresses a fraction of a native coin: on Ethereum, one gwei is one billionth of an ETH. The familiar 21,000 figure applies to a basic ETH transfer under ordinary conditions, not a general allowance for token transfers, swaps or contracts.

Use the estimate for the actual transaction. Reducing a gas limit because the fee looks expensive can leave insufficient execution capacity. Raising the limit does not make an invalid contract operation valid. Ethereum’s documentation describes the distinction between gas, price and fees.

A worked example with deliberately hypothetical values

Suppose a transaction uses 65,000 gas and its effective price is 12 gwei per unit. The execution fee is 65,000 × 12 = 780,000 gwei, or 0.00078 ETH. At an assumed ETH price of $2,500, that is $1.95. Neither the gas usage, price nor dollar conversion is a current quote.

Now suppose its gas limit was 90,000. Multiplying 90,000 by the same 12 gwei gives 0.00108 ETH, an allowance-based calculation, not the final execution fee. For ordinary Ethereum execution, unused gas allowance is not consumed just because it was permitted.

This distinction matters when reading a wallet estimate against a completed receipt. The estimate helps establish how much balance may be needed to submit; the receipt gives the usage and effective price of the completed transaction. Our calculator lets you vary the assumptions, but cannot simulate a contract call.

A maximum fee is not necessarily the price paid

Ethereum’s modern transaction format separates a maximum total price per gas from a maximum priority fee. The effective price depends on the block’s base fee and the applicable priority payment within those caps. A wallet can therefore ask you to authorize a ceiling greater than the eventual charge.

If you enter a maximum price in a simple calculator, label the result as a cap-based estimate. Do not compare it with another transaction’s final fee as though both were measured costs. Fee settings can also affect whether a transaction is eligible for inclusion as conditions change. Follow the wallet’s current estimate unless you understand the consequences of an override.

Layer 2 totals can contain another component

On Base, the documented total combines L2 execution with an L1 security fee. A calculator that only multiplies gas by a price may omit the latter. A low displayed execution price is therefore not a complete cross-network comparison.

For an actual send, use a wallet estimate covering the intended network and operation. For a completed transfer, use its receipt. For learning or comparing hypothetical inputs, keep the network, units, price assumption and exclusions visible with the answer. This lets you explain the result without presenting it as a live quote.

Frequently asked

What is the difference between gas limit and gas price?

The gas limit caps how much work a transaction may perform, measured in gas units. The gas price is what you pay per unit. The fee is units actually used multiplied by the effective price, so the limit is a ceiling rather than a cost.

Why was I charged less than the maximum fee I approved?

A maximum fee is a cap you are willing to pay, not the price charged. The effective price is usually lower, and unused gas is not consumed, so the receipt commonly shows a smaller figure than the estimate you confirmed.

Do layer 2 networks calculate fees the same way?

Not quite. Layer 2s add a component covering the cost of posting data to the base chain, and some report a gas figure that already includes it. Adding that cost again when reconstructing a receipt double-counts it.

Before you act

  • Use gas usage or a limit appropriate to the actual operation.
  • Distinguish effective price from a maximum fee cap.
  • Convert gwei to the native coin before applying a dollar price.
  • Check whether the network adds another fee component.
PUT IT TO USECalculate an example gas fee

Sources & further reading

  1. Ethereum: gas and fees

    Gas units, gwei and ordinary execution accounting.

  2. Ethereum: transactions

    Transaction fields, gas limits and EIP-1559 fee caps.

  3. Base: network fees

    L2 execution and L1 security costs must both be considered.

Sources checked on 18 September 2026. Network features and platform support can change; check the relevant provider before acting.

AI-assisted editorial content; no independent expert review or transaction verification is claimed. Tokens and bridges carry issuer, market and smart-contract risks. This is educational information, not investment advice. Read our editorial policy.