No items found.

January 5, 2024

Polygon zkEVM: Effective Gas Price Live on Mainnet Beta

How transaction fees are calculated on the network is changing. Here’s how it’s evolving, what that means for users, and what it has to do with Don Quixote

No items found.

Today, a new mechanism called effectiveGasPrice was enabled on Polygon zkEVM Mainnet Beta, providing users with transaction fees that are more accurate and complete.

The effectiveGasPrice function uses two factors to calculate a transaction fee: the amount of execution in any given transaction and the cost of posting the raw transaction data to Ethereum, also known as data availability.

This is how the variables for effectiveGasPrice are determined, how it differs from the prior formula, and what it means for users of Polygon zkEVM Mainnet Beta.

Transaction Fees, Gas, and Don Quixote

When a user sends a transaction on a rollup, the transaction fee paid is meant to cover the cost of two things: the L2 network resources needed to execute the transaction + the L1 network resources for making the transaction data available. 

In the case of rollups built on top of Ethereum, this second part of the formula is what’s costly. On Polygon zkEVM Mainnet Beta, calldata accounts for approximately 80% of a transaction fee. 

Prior to effectiveGasPrice, Polygon zkEVM calculated transaction fees by referencing the gas prices on an L1 node and applying a fixed percentage of that gas price to a user. The challenge with this formula is that not all transactions contain the same amount of execution. 

Conceivably, there are transactions that use a lot of calldata (L1 network resources) but contain little execution (L2 network resources). Internally, the Polygon Hermez team refers to these transactions as a “Quixote” after the hero who does a lot but accomplishes very little. 

Because calldata costs are the main driver of transaction fees, such a transaction would have been expensive for the network but cheap for the user. Enabling effectiveGasPrice solves that problem.

Transaction Fees with effectiveGasPrice

With effectiveGasPrice enabled, this is the formula used for calculating the transaction fee users will pay:

L1 gas price * (L2 gas price reduction factor)

ELI5: The gas price estimate that the users see and sign is going to be higher than under the previous formula. But the final transaction fee will be more representative of the transaction’s use of L2 and L1 network resources. In practice this means that, in general, the final transaction fee for DeFi transactions will be lower than it was previously, and Quixote transactions will be more expensive.

For a detailed explanation of effectiveGasPrice and how the L2 gas price reduction factor is calculated, see [docs]: effective-gas-price 

Future Fee Optimizations and DYOR

Improvements, optimizations, and blob space are all coming this year. With EIP-4844 expected in the Cancun hard fork and data compression on the roadmap for Polygon zkEVM, the cost of both L1 and L2 network resources are expected to come down throughout the year.  

Users can verify and test the algorithm used to calculate transaction fees here:

zkevm-commonjs / test-vectors / effective-gas-price

zkevm-rom / process-tx.zkasm 

Tune into the blog and our social channels to keep up with updates about the Polygon ecosystem.

Together, we can build an equitable future for all through the mass adoption of Web3.

Website | Twitter | Developer Twitter | Forum | Telegram | Reddit | Discord | Instagram | Facebook | LinkedIn

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

April 8, 2026

Polygon CDK
Institutional
Open Money Stack

Why Apex Group Committed to $100B in Tokenized Assets on a Blockchain Built with Polygon CDK

April 8, 2026

Polygon Chain
Open Money Stack

Giugliano Upgrade: Faster Confirmations, Predictable Fees, and a More Resilient Network for Polygon Chain

April 6, 2026

Institutional
Payments

What Is a Stablecoin Sandwich?

April 3, 2026

Open Money Stack
Case Studies
Payments

Case Study: How Rise is paying global teams faster and cheaper with Polygon

April 2, 2026

Polygon Chain

Polygon Launches Private Mempool: MEV Protection Is Now a One-Line Integration

April 2, 2026

Polygon Chain

SurfLiquid Is Building AI-Powered Stablecoin Savings on Polygon

March 30, 2026

Institutional
Open Money Stack
Payments

What to Ask Before You Trust a Payment Network With Your Money

March 26, 2026

Institutional
Open Money Stack

Revolut Crosses $1.2B in Onchain Transactions on Polygon as Europe's Most Valuable Fintech Deepens Blockchain Bet

March 25, 2026

Polygon CDK
Institutional

Your Enterprise Chain Needs Privacy as a Spectrum

March 25, 2026

Case Studies
Payments
Open Money Stack
Wallets

Honda Autobol and Takenos Bring Polygon-Powered Payments to Car Maintenance in Bolivia

Next
PREV
More Blogs