Skip to main content
Calcimator

Gas Estimation Calculator

Estimate Ethereum transaction gas costs in ETH and USD from gas used, base fee, priority fee, and current ETH price.

About this calculator

Every Ethereum transaction costs gas, and this calculator translates the network's fee mechanics directly into dollars. Since the EIP-1559 upgrade (activated in the August 2021 London hard fork, and still the live fee mechanism today), the total price you pay per unit of gas is the sum of two components specified by that Ethereum Improvement Proposal: the base fee, which is set algorithmically by network congestion and gets burned rather than paid to anyone, and the priority fee (or "tip"), which you set to incentivize a validator to include your transaction faster. This tool adds those two Gwei figures together, multiplies by the gas used for your specific transaction type, and divides by 1e9 to convert from Gwei (a billionth of an ETH) into whole ETH, then multiplies by the current ETH price to get a USD figure.

Gas used varies enormously by operation — a plain ETH transfer runs about 21,000 gas units, an ERC-20 token transfer around 65,000, and a Uniswap swap or other multi-step smart contract call can run 150,000 or more — so getting this input right for your actual use case matters more than any other single factor here. Beyond the single-transaction cost, the calculator scales up to daily and annual totals based on how many transactions you expect to process, which is the real number worth watching if you're budgeting for a protocol or dApp's ongoing gas spend rather than a one-off transfer. Because base fee and ETH price both swing significantly hour to hour, a live snapshot like this is only a point-in-time estimate — check a gas tracker for the current base fee before relying on this for a time-sensitive transaction, and remember that a low priority fee tip during high congestion can leave a transaction stuck pending for a long time.

Inputs

Results

Cost per Tx (ETH)

0

Cost per Tx ($)

$2.02

Total Gas Price (Gwei)32
Daily Cost (ETH)0
Daily Cost ($)$2.02
Annual Cost ($)$735.84

Figures current as of 2021. Source: EIP-1559: Fee market change for ETH 1.0 chain, Ethereum Improvement Proposals

How to Use This Calculator
  1. Enter Gas Used for your transaction type — simple ETH transfer = 21,000; ERC-20 transfer ≈ 65,000; Uniswap swap ≈ 150,000.
  2. Set the Base Fee in Gwei from etherscan.io/gastracker and the Priority Fee (tip) in Gwei (typically 1–3 Gwei for normal speed).
  3. Enter current ETH Price ($) to convert gas costs into USD.
  4. Set Transactions per Day to estimate daily and annual gas spend across your protocol.
  5. Review Cost per Tx (ETH and USD), Daily Cost, and Annual Cost to optimize transaction batching or evaluate Layer 2 migration.

How the result changes with Gas Used (units)

Gas Used (units)Cost per Tx (ETH)Cost per Tx ($)
10,5000$1.01
15,7500$1.51
31,5000$3.02
52,5000$5.04

What each input means

Gas Used (units)
Gas consumed by the transaction. Simple ETH transfer = 21,000; ERC-20 transfer ~ 65,000; Uniswap swap ~ 150,000.
Base Fee (Gwei)
Current network base fee in Gwei. Check etherscan.io/gastracker for live values.
Priority Fee (Gwei)
Tip paid to validators for faster inclusion. Typically 1-3 Gwei for normal speed.
ETH Price ($)
Current market price of ETH in USD.
Transactions per Day
Number of daily transactions to estimate batch and annual costs.

What each result means

Total Gas Price (Gwei)
Base fee + priority fee per gas unit.
Cost per Tx (ETH)
Gas cost for a single transaction in ETH.
Cost per Tx ($)
Gas cost for a single transaction in USD.
Daily Cost (ETH)
Total daily gas cost across all transactions.
Daily Cost ($)
Total daily gas cost in USD.
Annual Cost ($)
Projected yearly gas spend at current rates.

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    4 parameters
    Gas Used (units) = 21000, Base Fee (Gwei) = 30, Priority Fee (Gwei) = 2, ETH Price ($) = 3000 = 5 input(s) provided
  2. Calculate Cost per Tx
    Cost per Tx = (gasUsed * totalGasPriceGwei) / 1e9
    0.000672 = 0.000672
  3. Calculate Cost per Tx
    Cost per Tx = gasCostEth * ethPrice
    2.02 = $2.02
  4. Calculate Total Gas Price
    Total Gas Price = baseFeeGwei + priorityFeeGwei
    32 = 32
  5. Calculate Daily Cost
    Daily Cost = gasCostEth * txCount
    0.000672 = 0.000672

Figures and sources

Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Why does the calculator ask for both a base fee and a priority fee separately?

Since Ethereum's EIP-1559 upgrade — the Ethereum Improvement Proposal (eips.ethereum.org/EIPS/eip-1559) that defines the network's current fee market and went live in the August 2021 London hard fork — total gas price is the sum of two distinct components: the base fee, set algorithmically by network congestion and burned rather than paid to a validator, and the priority fee (tip), which you set yourself to incentivize faster inclusion. The calculator adds these two Gwei values together before converting to ETH, so raising either one increases your cost by the same amount per gas unit.

How does gas cost in ETH get converted to Gwei and then to USD?

Gas used is multiplied by the total gas price in Gwei, then divided by 1e9 to convert Gwei (a billionth of an ETH) into whole ETH. That ETH figure is then multiplied by the ETH price you enter to produce a USD cost — so any error in the ETH price input directly and proportionally skews the USD numbers, though the ETH-denominated cost stays accurate regardless.

Why does gas used vary so much between transaction types?

Gas used reflects the actual computational work a transaction performs on-chain: a plain ETH transfer only moves a balance (about 21,000 gas), while an ERC-20 transfer updates a smart contract's internal ledger (around 65,000 gas), and a Uniswap swap executes multiple contract calls and state changes (150,000+ gas). The calculator doesn't infer this for you — getting the gas-used input right for your specific operation matters more than any other single input.

Why might my annual cost projection be inaccurate?

The annual cost multiplies your single-transaction cost by transactions-per-day and then by 365, which assumes base fee and ETH price both stay perfectly constant for a full year. In reality, both move significantly — base fee with network congestion and ETH price with the market — so this projection is best read as a snapshot extrapolation, not a firm budget forecast.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Technology & Computing.