Gas price is the amount, denominated in gwei (one billionth of an ether), that a network charges per unit of computational work needed to process a transaction or run a smart contract. It works like a real-time market for blockspace: when many people compete for the same limited block capacity, the price needed to get included rises, and it falls again once demand eases.
On Ethereum, gas price is no longer set by pure guesswork. Since the 2021 EIP-1559 upgrade, every transaction pays a protocol-calculated base fee, which the network burns instead of paying to anyone, plus an optional priority fee, or tip, that goes to the validator who proposes the block. Users set a maximum price they are willing to pay, and any amount left over after the base fee and tip is refunded automatically.
The total transaction cost is gas price multiplied by gas used, so a simple ether transfer stays cheap while a complex DeFi swap or NFT mint, which consumes far more gas units, costs more even at an identical price per unit. Gas prices spike during congestion, such as a popular token launch or a burst of market volatility, and can drop to just a few gwei during quiet overnight hours. Many users now route routine activity through Ethereum Layer 2 rollups, where cheaper data posting has pushed typical fees down to fractions of a cent, leaving mainnet gas spending mostly for higher-value or time-sensitive transactions.