Why do transactions cost gas?

Course · Web3 · 3 min

What?01 / 08

Gas fees

Every operation takes scarce space and computation: gas puts a price on both.

Three minutes to read a quote, understand congestion and avoid paying needlessly.

Scroll

What?02 / 08

Fuel for computation

Gas measures the work required to execute an operation on a network.

A simple transfer uses little; a complex interaction across contracts uses more.

Gas is not an arbitrary tax: it rations computation and protects the network from spam.

What?03 / 08

Amount times price

Cost has two parts: gas units used and the price offered for each unit.

The wallet estimates the work and sets a limit; only units actually consumed are charged.

The final bill is paid in the network's native asset.

Why?04 / 08

Why prices jump

Each block has limited space while requests can all arrive at once.

When the network fills, users compete for priority by offering a higher price.

The same action therefore costs differently across networks, times and activity levels.

Why?05 / 08

Fast, slow or rejected

A higher tip can speed up inclusion without guaranteeing an exact moment.

A low price leaves the transaction pending until demand falls.

A failed operation may still consume gas because computation genuinely took place.

How?06 / 08

How to read the quote

Before signing, separate:

Amount sent — what the recipient receives

Network fee — what execution costs

Estimated speed — a probability, not a promise

Gas limit — the allowed computation ceiling

How?07 / 08

How to pay less

Compare compatible networks or layer-two systems.

Wait for a quieter period when the action is not urgent.

Batch operations when the protocol supports it.

Keep enough native asset so the rest of the wallet does not become stranded.

How?08 / 08

The price of space

Gas is the live price of a scarce resource: secured computation space.

Compare the fee with the value of the action, not just the transferred amount.

Reading the quote before signing avoids most unpleasant surprises.