We use cookies

We use essential cookies to run the site, and optional cookies for analytics and support. We never sell your data. Cookie Policy · Privacy Policy

Ethereum gas fee calculator

Enter the gas units, the base fee and the priority fee in gwei, and this calculator returns the transaction fee in ETH. Add an ETH price and it also returns the fiat amount. It runs in your browser, stores nothing and needs no login. It reads no live gas oracle and no live ETH price, by design.

Run the calculator

General information, not accounting or tax advice. Gas figures are indicative and no live prices are used. Verify against the applicable standards (IFRS / US GAAP), your jurisdiction's rules and your auditor.

Overwrite with the estimate your wallet shows for the actual transaction.
Leave blank to see the fee in ETH only.

Arithmetic on the values you enter. This tool does not read live gas prices or a live ETH price, so nothing here is a quote for a transaction you are about to send. Read the current base fee from a block explorer and the gas estimate from your wallet.

The calculation

One formula, and it is worth knowing by heart because it is the same one your wallet applies:

fee in ETH = gas units x (base fee + priority fee) / 1,000,000,000

Base fee and priority fee are entered in gwei, which is one billionth of an ETH, hence the divisor. Gas units are the amount of computation the transaction consumes. If you also supply an ETH price, the tool multiplies the ETH fee by that price to give a fiat figure. Nothing else happens: there is no slippage model, no bundle or MEV allowance, and no refund logic for unused gas.

The presets, and how far to trust them

Transaction typeGas unitsConfidence
Plain ETH transfer21,000Exact. This is the EVM intrinsic transaction cost, G_transaction in the Ethereum yellow paper.
ERC-20 transfer65,000Typical only. Varies by token contract, and it is cheaper when the recipient's balance slot is already non-zero.
DEX swap150,000Typical only. Varies with routing, the number of hops and the pool type.

Only the first row is a constant. The other two are starting points to be replaced with the estimate your wallet or node actually produced for the transaction in front of you.

What this tool cannot do

  • It does not fetch the current base fee. The base fee moves every block. This page is prerendered, so any figure baked into it would be stale almost immediately. Read the current base fee off a block explorer and type it in.
  • It does not fetch an ETH price. Same reason. Supply the rate your entity's pricing policy calls for, at the moment the transaction settled, in your reporting currency.
  • It does not estimate gas for you. Take the gas estimate from your wallet or node for the specific transaction. Only the 21,000 preset is a fixed value.
  • It does not know whether you were refunded. Actual gas used can be below the limit, and the difference is not charged. Reconcile against the receipt, not the estimate.
  • It does not classify or post anything. It gives you a number. Deciding whether that number capitalises or is expensed is an accounting judgement, not arithmetic.

Why gas fees matter in the accounts

Network fees are a real cost, and they are booked in three different ways depending on what they relate to. Getting the split wrong quietly distorts both the balance sheet and the income statement.

  • Fees to acquire. A gas fee paid to acquire an asset generally capitalises into that asset's cost basis, so it raises the carrying amount and reduces the eventual gain rather than hitting the period as an expense.
  • Fees to dispose. A fee paid on a disposal generally reduces net proceeds, which again reduces the realised gain rather than sitting on its own line.
  • Other network fees. Gas on a transfer between the entity's own wallets, on a contract approval or on an administrative action may be expensed or capitalised depending on what it relates to and the entity's stated policy.

There is a fourth point that spreadsheets almost always miss. The fee is paid in the native token, so settling it is itself a small disposal of ETH: units leave the books at their cost basis, and a realised gain or loss arises on the difference. Across a busy period that is hundreds of tiny disposals, each needing lot matching. The mechanics are set out in crypto journal entries.

A practical workflow at close

Pull the effective gas price and gas used from the transaction receipt rather than from anyone's recollection. Use the calculator to confirm the ETH fee reconciles to the receipt. Price it into the reporting currency under your normal policy. Then decide the classification: acquisition, disposal or other. Finally, remember the fee settlement is a disposal of ETH in its own right and needs a basis relieved against it.

Doing this at volume

One transaction is a calculator exercise. A quarter of on-chain activity is not. CryptaCount ingests wallet and exchange activity across 90+ blockchain networks and 100+ connectors, prices and classifies each network fee, relieves basis on the native token consumed to pay it under one of 12 disposal cost-basis methods, and posts the resulting period entries to the general ledger under IFRS or US GAAP, with a trail back to each transaction hash. Start with the crypto sub-ledger, or see how method choice moves the numbers in cost basis methods.

Need the gross economics of a trade instead? Use the crypto profit and ROI calculator. Working on an individual's return rather than an entity's books? That is CryptaTax.

See the crypto sub-ledger

FAQ

Why does the calculator not show the current gas price?

Deliberately. The page is prerendered and the base fee changes every block, so a baked figure would be wrong within seconds. You bring the current base fee from a block explorer and the gas estimate from your wallet, which keeps the result tied to the transaction you are actually accounting for.

Is the 21,000 gas figure reliable?

Yes. 21,000 is the EVM intrinsic transaction cost, G_transaction in the Ethereum yellow paper, and applies to a plain ETH transfer. The 65,000 ERC-20 and 150,000 swap presets are typical values only and vary by contract, routing and pool type.

Do gas fees go into cost basis or into expenses?

It depends on what the fee relates to. A gas fee paid to acquire an asset generally capitalises into that asset's cost basis; a fee on a disposal generally reduces net proceeds; other network fees may be expensed or capitalised according to the entity's policy.

Is paying a gas fee itself a taxable event?

Paying the fee in the native token spends units of that token, so it is generally treated as a disposal of ETH with a gain or loss on the basis relieved. The precise treatment follows the entity's framework and jurisdiction.

Related