Why Are Gas Fees Lower on Layer 2? Explained
Layer 2 gas fees are lower because rollups batch thousands of transactions together and compress the data before posting it to Ethereum.
Gas fees are lower on Layer 2 networks because rollups batch hundreds or thousands of individual transactions together, compress the resulting data, and post that single compressed batch to Ethereum, spreading the cost of Ethereum's expensive base-layer block space across every transaction in the batch instead of charging each one individually.
What makes Ethereum mainnet gas expensive in the first place
When you transact directly on Ethereum Layer 1, you're paying for a dedicated slice of a scarce, shared resource: block space secured directly by Ethereum's full validator set. That security is valuable, but it's also expensive to produce, and demand for it frequently exceeds supply, driving up gas prices during busy periods.
How rollups spread that cost across many users
A Layer 2 rollup's sequencer collects many individual transactions, executes them off-chain, and then posts a single compressed summary back to Ethereum — rather than posting each transaction individually the way L1 does. Because Ethereum only has to process and store this one compressed batch, the total L1 cost gets divided across every transaction inside it. If a batch contains a thousand transactions, each one's share of the underlying L1 cost is a small fraction of what it would cost to post that single transaction directly.
Two techniques do most of the work here:
- Batching — combining many transactions into a single L1 transaction, rather than each user competing individually for L1 block space.
- Compression — encoding the batch's data as efficiently as possible before posting it, reducing the actual number of bytes Ethereum has to store.
The 2024 upgrade that made this even cheaper
Before March 2024, rollups posted their batched data using Ethereum's regular transaction "calldata," which is relatively expensive per byte. EIP-4844, also known as proto-danksharding, introduced a new, cheaper kind of data specifically designed for rollups called "blobs." Because blobs are priced separately from regular calldata and are pruned from Ethereum's storage after a few weeks (rollups don't need them stored forever, just long enough to allow verification), the cost of posting rollup data to Ethereum dropped substantially, and that saving passed straight through to lower fees for L2 users. We cover the details of this upgrade in what is EIP-4844.
What you're actually paying for on an L2
| Component | What it covers | How it scales |
|---|---|---|
| L1 data cost | Your share of the L2's cost to post batch data (now largely via blobs) to Ethereum | Split across everyone in the batch |
| L2 execution fee | Compensation to the sequencer for actually running your transaction | Set by the L2's own fee market |
| L1 security | Indirectly paid for through the above — you benefit from Ethereum's validator security without paying L1's full direct cost | Amortized across the whole L2 |
We break down this split in more technical detail in understanding L2 gas fees.
Why fees still fluctuate on L2s
Even though L2 fees are dramatically lower than L1's, they're not fixed or free. When Ethereum's own gas prices spike, the L1 data-posting cost each L2 has to pay rises too, which gets passed through to L2 users, though the effect is muted since it's spread across an entire batch. Separately, if a particular L2 experiences a surge in its own transaction demand, its execution fee (paid to the sequencer) can rise on its own, independent of what's happening on L1.
Does "cheaper" mean "less secure"?
Not inherently. Most major rollups still ultimately rely on Ethereum for either dispute resolution (optimistic rollups, via fraud proofs) or state validity (ZK-rollups, via validity proofs), meaning the low fees don't come at the cost of Ethereum's base-layer security guarantees for the properly published data. What can vary between L2s is how decentralized their own sequencer is and how promptly they actually publish their data — both worth checking for a specific chain rather than assuming all L2s are equally decentralized just because they all rely on Ethereum for settlement.
How this shows up in the yields you see advertised
Lower gas fees have a knock-on effect on DeFi strategy design itself. On Ethereum mainnet, a strategy that requires frequent claiming, compounding, or rebalancing transactions can quickly get eaten alive by gas costs, especially on smaller positions. On an L2, those same strategies become economically viable at much smaller position sizes, which is part of why automated yield vaults and frequent-rebalancing strategies have flourished on L2s in a way that was impractical for most retail users directly on L1. This is worth keeping in mind when comparing an L2 protocol's advertised yield to a superficially similar Ethereum mainnet strategy — some of the apparent yield difference may simply reflect gas savings rather than a fundamentally different or riskier strategy.
Bottom line
Layer 2 gas fees are lower because rollups spread the genuinely expensive part — posting data to Ethereum — across many batched transactions, and that cost dropped further industry-wide after EIP-4844 introduced cheaper blob-based data storage specifically for rollups. Fees still fluctuate with both Ethereum's own congestion and each L2's individual demand, so check current conditions on /chains rather than assuming a fixed, permanently low fee on any network.
Related articles
This article is for educational purposes only and is not financial advice. DeFi involves significant risk, including total loss of funds. Always do your own research.