How Much Does It Cost to Build and Run on Ethereum?
Building on Ethereum costs gas for every transaction, plus deployment, audits and running services. Here is what each part costs and how to keep the total in check.
On this page
Short answer
Ethereum costs come from gas fees paid for each transaction, one-off deployment fees for smart contracts, audits, and the running costs of nodes, indexers and front ends. A small project can budget a few thousand dollars for its first year, while a production app with audits and support usually needs tens of thousands. The largest single cost is usually the audit, not gas.
What does Ethereum cost?
Ethereum cost is the money you pay to run code and store data on the Ethereum network, plus the work around it: development, audits, hosting and support. Every action on the network carries a gas fee, and every project also pays for the parts that never touch the chain.
Gas is the unit of work on Ethereum. Each transaction or contract call consumes a number of gas units, and you pay a price per unit that moves with demand. A simple transfer uses 21,000 gas units, while a contract call can use ten times that or more.
The total for a project is therefore not one number. It is the sum of one-off costs, such as deployment and audits, and running costs, such as gas, indexers and hosting. Planning ranges below assume a small to mid-size project and a planning rate of $2,000 per ETH.
What are the main cost parts?
The main cost parts of an Ethereum project are deployment, gas, audits, indexing and hosting. Audits are usually the largest single line, not gas, because a reviewed contract is what users and partners ask for before they trust it.
| Cost part | What it covers | Planning range |
|---|---|---|
| Deployment | Publishing a contract to mainnet | $100-$500 |
| Gas | Fees for transactions and contract calls | $50-$500 a month |
| Audit | Independent review of the contract code | $10,000-$50,000 |
| Indexing | Reading chain data into your app | $100-$400 a month |
| Hosting | Front end, API and database | $50-$300 a month |
| Support and ops | Monitoring, fixes and user help | $500-$2,000 a month |
Ranges are planning figures, not quotes. An audit for a simple token sits near the low end, while a lending or trading contract with several linked contracts sits near the high end. Get a written quote before you fix a budget.
How much does gas cost?
Gas cost depends on two numbers: how many gas units an action uses, and the price per unit at the time. The price is quoted in gwei, where one gwei is a billionth of an ETH. A simple transfer at 20 gwei costs 21,000 times 20 gwei, which is 0.00042 ETH.
Contract calls cost more because they do more work. A token transfer inside a contract, a swap or a mint can use 50,000 to 200,000 gas units. At the same 20 gwei, a 100,000-unit call costs 0.002 ETH, or about $4 at the $2,000 planning rate.
Gas prices rise when the network is busy and fall when it is quiet. Wallets show a suggested price, and most let you choose a slower, cheaper setting for actions that are not urgent. A project that writes to the chain thousands of times a month feels this spread far more than one that writes a few times a day.
What does deploying a contract cost?
Deploying a contract costs the gas for its creation transaction, which depends on the size of the contract code. A small token contract may deploy for under $100 at normal gas prices, while a large marketplace or lending contract can cost several hundred dollars.
Deployment is a one-off cost per contract, but most projects deploy more than once. Testnet deployments are free, and teams usually deploy to a test network many times before the mainnet launch. Each mainnet redeploy after a fix costs gas again, so changes after launch are not free. Stablecoin teams choose Ethereum for its liquidity and reach, as why Ethereum leads stablecoin development explains.
Some teams use proxy patterns so the logic can be upgraded without moving user data. That adds setup cost and audit surface, so it is worth it only when the contract is likely to change. A simple contract that will not change is cheaper to deploy as a fixed version.
Development itself is a separate line. A small contract takes a few weeks of a developer's time, while a full application with a front end, indexing and tests takes months. Budget development and audit together, because an audit can only start once the code is stable.
How do you keep Ethereum costs down?
The cheapest way to keep Ethereum costs down is to write to the chain as little as possible and to test everything before mainnet. Every write costs gas, so work that can happen off chain should stay off chain.
- Build and test on a testnet first. Testnets use free test ETH, so you can find bugs and measure gas before you pay for mainnet.
- Keep contracts small. Remove unused features and split large contracts, because deployment gas grows with code size.
- Batch writes where you can. One call that updates several records costs less than several calls that each update one.
- Move frequent actions to a layer 2. Trading, minting and game moves are cheaper on a rollup than on mainnet. See layer 2 cost for planning ranges.
- Watch gas and schedule non-urgent writes. Admin tasks and settlements can wait for quiet hours instead of paying peak prices.
None of these steps removes the audit. A cheap contract that loses user funds is far more expensive than a reviewed one. Cut gas and hosting first, and treat the audit as fixed.
Example (hypothetical): a small NFT marketplace's first-year budget
Example (hypothetical): a team plans a small NFT marketplace with one contract, an indexer, a hosted front end and a single audit. The budget below uses planning ranges and a $2,000-per-ETH planning rate.
Development takes 400 hours at a $100 planning rate, which is $40,000. The audit is quoted at $25,000, with a $5,000 re-check after fixes. Deployment costs $150 in gas, and the indexer costs $300 a month, or $3,600 for the year.
Gas for listing, minting and settlement is budgeted at $200 a month, or $2,400 for the year. Hosting and monitoring come to $150 a month, or $1,800 for the year. The total is $40,000 plus $25,000 plus $5,000 plus $150 plus $3,600 plus $2,400 plus $1,800, which is $77,950 for the first year.
The same marketplace on a rollup would cut the gas lines sharply, which is why many teams launch on a layer 2 and keep mainnet for settlement. A rollup such as Polygon cuts gas to a fraction of mainnet prices; see how much it costs to build on Polygon. The audit and development lines stay the same either way.
Common mistakes when budgeting for Ethereum
The most common budgeting mistake is treating gas as the whole cost. Gas is visible, so it gets the attention, while the audit, indexing and support lines quietly add up to more. Budget the full list before you commit to a launch date.
- Forgetting the audit. A launch without a review is a risk to user funds and to the team's name. Put the audit in the first budget, not the second.
- Assuming gas stays flat. Gas prices move with demand. A budget built on one quiet week will break in a busy month, so add a buffer of at least 25%.
- Pricing in ETH without a buffer. Costs quoted in ETH change in dollar terms as the price moves. Fix a planning rate and revisit it monthly.
- Skipping indexers. Reading chain data directly from a node is slow and fragile. An indexer is a small monthly cost that saves far more in engineering time.
- No monitoring. A contract that stops working, or a gas spike that burns the budget, needs an alert. Monitoring is cheap; finding out from users is not.
Work through the table above line by line, add the buffer, and get a written audit quote before you announce a date. That is the whole budgeting method.
Key takeaways
- Gas is the visible cost, but the audit is usually the largest single line in an Ethereum budget.
- Deployment gas grows with contract size, so small contracts and testnet runs keep costs down.
- Frequent actions belong on a layer 2, where gas is a fraction of mainnet prices.
- Budget gas with at least a 25% buffer, because prices move with network demand.
- An indexer and monitoring are small monthly costs that save far more in engineering time.
Frequently asked questions
How much does it cost to deploy a smart contract on Ethereum?
A small contract usually deploys for under $100 in gas at normal prices, while a large marketplace or lending contract can cost several hundred dollars. Testnet deployments are free, so teams test there first and deploy to mainnet only when the code is stable.
What is gas on Ethereum?
Gas is the unit of work on Ethereum. Each transaction or contract call uses a number of gas units, and you pay a price per unit in gwei. A simple transfer uses 21,000 units, while a contract call can use 50,000 to 200,000 units or more.
How much does a smart contract audit cost?
Audit pricing varies with contract size and complexity, with planning ranges from $10,000 for a simple token to $50,000 for a linked set of contracts. A re-check after fixes is usually quoted separately, so ask for both figures before you budget.
Is Ethereum cheaper than a layer 2?
Mainnet is usually more expensive for frequent actions, because gas per transaction is higher. Many teams build on a rollup and use mainnet for settlement, which keeps the audit and development costs the same while cutting gas sharply.
Do I need an indexer for an Ethereum app?
Most apps do. Reading chain data directly from a node is slow and fragile, while an indexer turns events into a database your front end can query. Planning ranges run from $100 to $400 a month for a small project.
Can I reduce gas costs after launch?
Yes, by batching writes, moving frequent actions to a layer 2, and scheduling non-urgent writes for quiet hours. Changing the contract itself costs a redeploy and a fresh audit review, so gas savings should come from usage patterns first.