image.png

Step 1: Gas Consumed × Gas Price

So multiplying them gives you a fee in gwei.


Step 2: Divide by 10910^9

That conversion is basically:

Fee in gwei÷10^9=Fee in ETH

Because there are 10910^9 gwei in 1 ETH.


Step 3: Multiply by ETH Price

Once you have the cost in ETH, multiplying by ETH/USD price converts it into dollars.


image.png


So yes — your formula is correct, though in modern EIP-1559 terms “Gas Price” is really Base Fee + Priority Fee.

Do gas price will be same or what ?