7Block Labs
Blockchain Essentials

ByAUJay

Understanding Gas Fees: A Guide for Product Managers

Gas fees can be a bit of a mystery, especially if you’re new to the world of blockchain. Let's break it down so you can navigate these fees with confidence.

What Are Gas Fees?

At its core, a gas fee is a charge you pay to execute transactions on a blockchain. Think of it as a transaction fee for using the network. These fees help maintain the security and efficiency of the blockchain by compensating miners or validators for their work.

Why Do Gas Fees Exist?

Gas fees are essential for several reasons:

  1. Network Security: They incentivize miners to validate and confirm transactions.
  2. Resource Management: As more people use the network, higher demand can lead to increased fees.
  3. Transaction Priority: Users can pay higher fees to have their transactions processed faster during busy times.

How Are Gas Fees Calculated?

Gas fees are typically calculated based on the following components:

  • Gas Limit: This is the maximum amount of gas you’re willing to spend on a transaction.
  • Gas Price: This is the amount you’re willing to pay for each unit of gas. It fluctuates based on demand.

For example, if your gas limit is 21,000 units and the gas price is 50 gwei, your total transaction fee would be:

Total Fee = Gas Limit * Gas Price
Total Fee = 21,000 * 50 gwei = 1,050,000 gwei

Factors Affecting Gas Fees

Several factors can affect gas fees, including:

  • Network Congestion: More users mean higher fees.
  • Transaction Complexity: More complicated transactions require more gas.
  • Market Trends: Keep an eye on overall market activity since it can influence fees.

Tips for Managing Gas Fees

As a product manager, consider these strategies to help your users manage gas fees better:

  • Educate Users: Provide clear information on how gas fees work.
  • Optimize Transactions: Simplify transaction processes to reduce complexity.
  • Flexible Fees: Offer options for users to select their preferred gas fee levels.

Conclusion

Understanding gas fees is crucial for product managers working in the blockchain space. By keeping these principles and tips in mind, you can help create a smoother experience for your users. If you want to dive deeper into the topic, check out this resource for more insights!

The Specific Technical Headache Your Roadmap Keeps Hitting

  • Your feature backlog relies on transactions clearing at cents, not dollars. But here's the tricky part: fees can swing wildly between L1, L2, and ZK rollups.
  • When you’re working on Ethereum L2s, your expenses break down into execution gas, data-availability (DA) posting, operator fees, and occasionally proof costs. For OP Stack chains like Base and OP Mainnet, that L1 data fee is tied to either the Ethereum base fee or the blob base fee after EIP‑4844 kicks in. If you miscalculate this, it can mess up your CAC/LTV math and eat away at your runway. (docs.optimism.io)
  • Over on Arbitrum, your fee also includes a “poster” reimbursement for L1 calldata (which are basically blobs now) plus a dynamic backlog-based base fee. If you misjudge compression (think Brotli-zero) and the byte mix (zero vs non-zero), your budget can go off the rails. (docs.arbitrum.io)
  • And let’s not forget about ZK rollups, where the real challenge lies in proving costs. Even after EIP-4844 brought down some DA expenses, those proving costs often end up being the biggest expense per transaction--exactly where the Finance team is asking for rock-solid caps. (docs.zksync.io)

Why this risk compounds into missed deadlines and budget overruns

  • Budget volatility:

    • Before the 4844 update, L2s were shelling out about 70-90% of their costs on calldata. But after the introduction of “blob gas,” data availability (DA) shifted to a market of its own, which can still see sharp spikes in demand. If teams aren't keeping up with the new blob base fee system, they might find themselves facing unexpected fluctuations in their cost of goods sold (COGS). (thedefiant.io)
  • Mis-forecasted unit economics:

    • The OP Stack fee structure has changed (think Ecotone/Fjord). If Finance is still relying on old-school “16 gas/byte” calculations, you could either overestimate or underestimate your accruals. The new fees factor in compressed size plus the base_fee_scalar and blob_fee_scalar parameters. (docs.optimism.io)
    • Arbitrum estimates batch sizes by compressing with Brotli-zero and then translates that into child-chain gas. But if your payloads aren’t compressing well (like with those complicated high-entropy signatures), you might end up with some nasty variances. (docs.arbitrum.io)
  • Vendor lock-in with hidden DA tradeoffs:

    • Data availability isn’t just about getting “cheaper blobs.” The real costs include DA, settlement, and compression efficiency. New data from the field shows that per-MB costs across rollups can vary widely--like 10-100x differences! When you’re making choices about DA (like Ethereum blobs versus Celestia/EigenDA), make sure to consider your actual batch timing and payloads instead of just the sales pitch numbers. (conduit.xyz)
  • ZK proving on the critical path:

    • Heavy reliance on GPU/MSM/NTT for proving can really drive up marginal costs, pushing them into the multi-cent range, which can stretch out sealing windows when you're under pressure. That’s when latency and service level objective (SLO) risks start to creep in, especially during scaling. (crypto.news)
  • Compliance and governance gaps:

    • Teams focused on SOC2 compliance need to have solid budgeting practices, escalation playbooks, and service level agreements (SLAs) with DA providers. But keep in mind, fee markets and operator parameters are always changing. If you can’t lock down a maximum cost for each class of transaction, you might end up shipping features late.

7Block Labs’ Technical-but-Pragmatic Methodology

At 7Block Labs, we’ve got a cool way of tying together engineering, Finance, and Procurement using a three-layer approach: Protocol Selection, Contract Engineering, and Operations Governance. Here’s how it works: we get hands-on with building and integrating, and then we make sure everything is monitored and enforced.

1) Protocol Selection Playbook (L1 vs L2 vs ZK; DA Strategy)

Decision Matrix Inputs:

  • Workload Profile: Think about whether your workload is more write-heavy or read-heavy, how often you’re settling on-chain, and the level of burstiness involved.
  • Compliance & Vendor Posture: Check the SOC2/ISO compliance of your infrastructure vendors, analyze their DA SLAs, and see how audit-ready their fee structures are. Don't forget to look at their incident histories too.
  • Cost Model:

    • For OP Stack: The total fee is calculated as follows: totalFee = operatorFee + gasUsed*(baseFee + priorityFee) + l1Fee, where the l1Fee is based on the blob base fee post-Ecotone/Fjord. We’ll benchmark your transaction types using real compressed sizes and actual blob base fees. For more details, check out the Optimism documentation.
    • For Arbitrum: We estimate the parent-chain fee using the Brotli-zero compressed size multiplied by the L1 price per byte, plus the dynamics of the child chain's base fee (think multi-window targets). You can find more on this in the Arbitrum documentation.
    • For ZK: Here, we separate DA (which now involves blobs or alternative DA) from the proving overhead. We size up the proving pools to keep p95 latency and $/tx within reasonable limits. Get the full scoop in the ZK Sync documentation.

DA Choices with Procurement Guardrails:

  • Ethereum Blobs (EIP-4844): This offers a distinct blob gas market with data that’s not accessible to the EVM, which gets pruned after a set availability window. Blob base fees adjust via excess_blob_gas in an EIP-1559-like manner. The mechanics here are pretty predictable with global liquidity. Check it out on EIPs.ethereum.org.
  • Celestia: You’ll see lower $/MB rates in production cohorts. With SuperBlobs, some cohorts have reported effective rates below $1/MB, but keep in mind you’ll need to factor in the ETH settlement overhead. We normalize all of that for you. More info can be found at Conduit.xyz.
  • EigenDA: They offer on-demand and reserved tiers that help create budget predictability at the GB level, which is super helpful for nailing down procurement SLAs. You can read more about it on 7blocklabs.com.

Where 7Block Fits

If you're getting ready to launch a chain or app, we've got your back with our complete architecture and implementation services through our blockchain development services. Plus, we offer handy cross-chain solutions and blockchain integration to make things even easier for you.

2) Contract Engineering to Reduce Gas at Source (No Hand-Waving)

We don’t just “optimize later.” From day one, we focus on engineering for gas--making real, measurable adjustments right at the opcode and storage level:

  • Storage Writes Are Key:

    • When it comes to storage, writing new data is where the real gas costs hit. Going from zero to a non-zero state costs about 20,000 gas (and 22,100 when it's cold), while updating non-zero values only costs around 5,000 (or 2,900 if it's warm). For loading values, a warm SLOAD runs you 100 gas, while a cold one jumps up to 2,100. To help out, we’re tweaking our data layouts and updating processes to turn those cold accesses into warm ones and pack our writes efficiently. (eips.ethereum.org)
  • Packing and Layout:

    • Let’s get clever with how we arrange our structs! By reordering struct members, we can fit smaller types into those 32-byte slots better, which helps avoid those pesky scattered writes. Plus, we can use immutables for constants, reducing the SSTORE count and cutting down slot churn. (docs.soliditylang.org)
  • Error Handling:

    • It’s time to ditch those revert strings and switch to custom errors. This tweak saves on revert payload bytes and memory operations, making everything run smoother. (rareskills.io)
  • Calldata vs Memory:

    • When dealing with large parameters, use external functions with calldata. This strategy helps keep abi encoding inflation in check, which is super important for compressibility on L2 batchers. (gist.github.com)
  • L2-Aware Batching:

    • Let’s think about how we design our transaction flows to make them easier to compress (this means fewer high-entropy fields). Denormalizing where it helps can maximize our efficiency with Brotli/Brotli-zero, and aggregating actions (like doing an approve+act combo) can really boost our cost models on OP/Arbitrum. (docs.arbitrum.io)

If you’re kicking things off, our smart contract development and dApp development teams are all about using these patterns. Plus, our security audit services make sure that any optimizations don’t compromise safety.

3) Operational governance: budget, instrument, enforce

  • Cost SLOs and runbooks:

    • Set clear p50/p95 CpT targets based on different transaction types like transfer, swap, and mint. When blob base fees go beyond certain limits or if there's a backlog, it's time to kick in those roll-forward actions.
  • Dynamic routing:

    • Make sure to include an L2/DA “circuit breaker” in your setup. This means you can temporarily switch to a different rollup or DA backend if blob or DA quotes hit the roof. Platforms like OP Stack work great with Ethereum, Celestia, and EigenDA, helping you stick to your SLAs even when fee spikes hit. (docs.optimism.io)
  • AA (ERC‑4337) paymasters to de‑risk UX:

    • Use batch windows to sponsor user operations and set limits per user or feature. If needed, you can even pay in stablecoins. This way, you can turn gas price unpredictability into steady operating costs. Plus, new standards like ERC‑7677 paymasterService are making it easier to integrate natively into wallets on Base and beyond. (eips.ethereum.org)
  • Fee parameter hygiene:

    • For OP Stack, fine-tune your baseFeeScalar and blobFeeScalar using the Fjord calculator alongside your FastLZ/Brotli compressed sizes. On the Arbitrum side, keep an eye on the L1 price per byte and backlog windows to stay ahead of any base fee increases. (docs.optimism.io)

1) Forecast L2 Fees for a Feature Launch on OP Mainnet

Steps:

  • Start by sampling 1,000 signed transactions from staging and calculate their compressed sizes using FastLZ or Brotli. Then, plug in OP Mainnet’s current base fee and blob base fee into the Ecotone formula:
    • l1_data_fee = tx_compressed_size × (16×base_fee_scalar×base_fee + blob_base_fee_scalar×blob_base_fee). (docs.optimism.io)
  • Next, add the execution fee, which is calculated as (gasUsed × [baseFee + priorityFee]), along with the operator fee, if it's relevant. (docs.optimism.io)
  • Finally, stress test the numbers by adjusting the base and blob base fees by ±12.5% per block (this simulates the worst-case jitter) to establish your p95 bands. (docs.optimism.io)

Outcome:

  • By the end of this analysis, you'll have a CpT model with the upper and lower bounds that your CFO will be on board with, plus a blob-fee SLO that automatically triggers throttling for low-priority transactions.

2) Quantify DA savings vs Celestia for your payloads

Steps:

  • First up, figure out your average MB/day of batch payloads. Then, replay a week’s worth of traffic against Celestia plus ETH settlement using Conduit’s public per-MB data. After that, compare it to using just pure ETH blobs, making sure to adjust for SuperBlobs if your batch sizes work for it. You can check out more details here.
  • Don’t forget to add in the settlement gas and your compression ratio.

Outcome:

  • By the end of this process, you’ll have a solid comparison that’s ready for procurement, showing your actual batch schedule rather than inflated marketing numbers.

3) Cut Swap Costs by 30-60% Without Changing Chains

  • Steps:

    • Switch out revert strings for custom errors. Restructure your writes to reduce those pesky cold SLOAD/SSTORE costs. Don’t forget to batch approvals, and when it’s safe, throw in some Yul for those tight loops. Keep it all in check by validating with gas snapshots for each method. You can dive deeper into this over at fvictorio.github.io.
    • If you're using OP or Arbitrum, take a look at compression sensitivity by ditching high-entropy fields from your event payloads that you don’t really need on L1.
  • Outcome:

    • You’ll see lower execution gas costs and improved compression, all backed up by transaction receipts and l1Fee fields.

4) Sponsor First-Time User Actions with ERC-4337 Paymasters

  • Steps:

    • Get an audited EntryPoint and paymaster set up. Don't forget to establish sponsorship caps based on the user and feature. For the Base layer, incorporate the ERC-7677 paymasterService for wallet-level support. Check out the details here.
  • Outcome:

    • User onboarding flows smoothly without any roadblocks; Finance will have a clear view of operating expenses thanks to the caps and the ability to track budgets for each campaign.

Best Emerging Practices (2026) to Keep Your Fees Low and Predictable

  • Go for blob-enabled rollups and tune those scalers:

    • Make sure your rollup or chain is set up to handle blobs after the Ecotone/Fjord changes (think OP Stack). It’s a good idea to tweak the baseFeeScalar/blobFeeScalar using past payloads, and keep an eye on the weighted gas price every week. (docs.optimism.io)
  • Treat compressibility as a key metric:

    • Track the FastLZ/Brotli compressed sizes of your actual transactions in CI. Watch out for block merges that reduce compressibility by more than X%.
  • Choose data availability (DA) with your plans in mind:

    • If variability is a problem for you, consider EigenDA-style reserved throughput for that price predictability. If you’re after the most cost-effective $/MB, Celestia SuperBlobs usually come out on top. And if you want something simple and universal for settlements, ETH blobs are solid defaults. (7blocklabs.com)
  • Think of ZK proving as a budget line:

    • Size your GPU fleets based on p95 proving times and have some pre-commit capacity ready for launches. Keep proof recursion and circuit selection under constant review as prices go down.
  • Know your opcodes:

    • Get your teams familiar with the warm/cold access rules (EIP-2929) and the SSTORE cost structures (EIP-2200/EIP-3529). This isn’t just about micro-optimization; it can really impact your unit economics.
  • Make governance a priority:

    • Add CpT SLOs and blob-base-fee thresholds into your on-call playbooks and CI checks. Make sure to fail deployments that go beyond budget limits using feature flags.

the metrics that matter for GTM and procurement

  • Post‑4844 fee reductions are significant:

    • Independent analyses have shown that L2 fees dropped by as much as 90-98% after March 2024 (think Base, OP Mainnet, Starknet). This is mainly due to blob transactions separating DA from regular gas fees. It’s great to see p95 CpT coming in at under single-digit cents for basic actions. (thedefiant.io)
  • Solid per‑MB cost data:

    • Looking at the 2024 rollup cohorts, the average cost for Ethereum blobs sits at about ~$20.56/MB. Meanwhile, Celestia cohorts are around ~$7.31/MB overall, dipping below $1/MB when utilizing SuperBlobs in big, efficient batches. This is what Procurement should focus on when negotiating--forget those flashy “% cheaper” claims. (conduit.xyz)
  • Mechanism‑level transparency:

    • OP Stack lays out the exact L1 data fee formulas both before and after the Ecotone/Fjord changes, detailing how scalars and compression influence the final charges. This gives Finance a solid model for variance analysis and helps with vendor SLA language. (docs.optimism.io)
  • ZK costs are understandable and decreasing:

    • ZKsync and its ecosystem documentation do a good job of breaking down batch overhead into L1 proof/DA costs and L2 proving costs, making it easier to create specific budgets per batch. Plus, industry analyses reveal that per-transaction proving is currently in the low single-cent range and heading downward. (docs.zksync.io)

What You Get with 7Block Labs

Quick Checklist for Enterprise PMs

  • Set your CpT targets for each transaction class (p50/p95) and tie them to feature SLAs.
  • Choose your L2 and DA, and make sure you have a solid budget model along with a backup plan.
  • Keep track of compression ratios and l1Fee/l2 gasUsed in your telemetry.
  • Stick to ERC‑4337 paymaster budgets to back essential actions while avoiding open-ended liabilities.
  • Request SOC2/ISO compliance and SLAs from your DA, sequencer, and RaaS vendors.
  • Don’t forget to include gas optimization and storage layout reviews in the audit scope before you go live.

If you're looking for a partner who can really dive in and help you with everything from Solidity refactors and ZK proof planning to cost models that work for procurement and SLAs, we're here for you!

Schedule a 90-Day Pilot Strategy Call. (docs.optimism.io)

Internal 7Block links used above:

Like what you're reading? Let's build together.

Get a free 30-minute consultation with our engineering team.

7BlockLabs

Full-stack blockchain product studio: DeFi, dApps, audits, integrations.

7Block Labs is a trading name of JAYANTH TECHNOLOGIES LIMITED.

Registered in England and Wales (Company No. 16589283).

Registered Office address: Office 13536, 182-184 High Street North, East Ham, London, E6 2JA.

© 2026 7BlockLabs. All rights reserved.