In other words, the gas cost is the amount of work required, and the gas price is the price paid for “each hour” of work. The relation between these two and the gas limit defines the total fee for an Ethereum transaction or smart contract operation.