Smart Contract Deployment Gas Fee Right Now
How much does it cost to deploy a smart contract on Ethereum mainnet right now? The card below shows today's exact USD fee for a typical mid-sized Solidity contract across three priority tiers — calculated live from real-time gas prices and the current ETH/USD rate.
Live contract deployment cost
1,500,000 gas units · ETH ≈ $2,255
Standard
$1.44
0.425 Gwei
Lowest tier that confirms in a few minutes.
Fast
$2.08
0.616 Gwei
Default wallet tier — confirms in about a minute.
Rapid
$3.23
0.955 Gwei
Top priority — confirms in under 30 seconds.
Base fee right now: 0.363 Gwei. Tier prices add the average priority tip seen in recent blocks. Wallets often pad estimates by 10–30%, so your actual quote may be a bit higher.
Deployment gas by contract size
Deployment cost is dominated by bytecode size — Ethereum charges 200 gas per byte of code stored on chain. Rough ranges:
- Minimal proxy (EIP-1167): ~50,000 gas. Pointer to an implementation.
- Simple ERC-20 token: ~600,000 gas. OpenZeppelin defaults, no extensions.
- Basic NFT (ERC-721): ~1,200,000 gas. With Enumerable and URI storage.
- Typical mid-sized contract: ~1,500,000 gas. The number used above. Mints, vaults, simple DeFi primitives.
- Complex DeFi protocol: 3,000,000–5,000,000+ gas. Multi-contract systems with lots of logic.
- Contract-size limit: 24,576 bytes per contract (EIP-170). Hit the wall? Split logic across contracts or use library patterns.
Deploying on mainnet vs L2
Layer 2 deployment is typically 10–50x cheaper than mainnet for the same contract:
- • Base, Arbitrum, Optimism: EVM-equivalent, paste the same Solidity, deploy for $5–20 instead of $200–800.
- • Polygon: Even cheaper, but a different security model — fine for non-critical infra.
Iterate on an L2, harden the design, then deploy on mainnet once for production. Most new protocols launch L2-first these days.
How to optimize deployment gas
- Enable the Solidity optimizer. 200+ runs in your hardhat/foundry config typically cuts deployment bytecode by 20–40%.
- Use the minimal proxy pattern. For multiple instances, deploy one implementation + thin EIP-1167 clones. Each clone costs ~50,000 gas.
- Move constants to immutables. Immutables are stored in code, not state — cheaper at runtime, modestly cheaper to deploy.
- Avoid constructor SSTOREs where possible. Each persistent storage write in the constructor costs 20,000 gas.
- Deploy during a low-gas window. Late UTC nights and weekends save 30–60% on the same deployment.
Frequently asked questions
How much does it cost to deploy a smart contract on Ethereum right now?
The card above assumes a 1,500,000 gas deployment — typical for a mid-sized Solidity contract (ERC-20 token, simple NFT, basic vault). Simpler contracts run 500,000–800,000 gas. Complex DeFi protocols can hit 4,000,000+. Updated live every minute.
Why is deployment so much more expensive than a regular transaction?
Deployment writes your entire compiled bytecode to chain storage permanently. The protocol charges 200 gas per byte for that storage, plus the contract's constructor logic execution, plus the standard 21,000 transaction intrinsic gas. A 20KB contract = 4M gas just for the bytecode storage.
How can I cut my deployment gas cost?
Optimize the contract bytecode: enable Solidity optimizer (200+ runs), use immutable variables where possible, avoid SSTOREs in the constructor, use Yul/assembly for hot paths, and consider proxy patterns so you deploy lightweight proxies pointing at a single implementation.
Should I deploy on mainnet or a Layer 2?
For most projects, deploy on an L2 first (Arbitrum, Optimism, Base) — deployment costs 10–50x less, and you can iterate. Move to mainnet only when you have product-market fit and need mainnet composability or settlement guarantees.
Is deployment gas proportional to contract size?
Largely yes. 200 gas per byte of bytecode is the dominant cost for most contracts. Constructor complexity, initial storage writes, and constructor parameter copying add on top. A 5KB contract costs less than half a 12KB contract.
Can I deploy via a factory contract to save gas?
If you're deploying many copies of the same contract: yes, hugely. Use the EIP-1167 minimal proxy pattern — each clone costs ~50,000 gas instead of 500,000+. Deploy the implementation once, then mint thin proxies for each instance.
When is the cheapest time to deploy?
Deployment is rarely time-sensitive, so use any low-gas window: late UTC nights, weekends, or right after a congestion spike resolves. Avoid mainnet mint days — your $200 deploy can become $1,500+.
Related ETH gas tools and guides
Deploy cheap. Iterate on an L2.
Same EVM, 10–50x cheaper deployments. Compare live L2 gas before you ship.