Q&A · Community Q&A

How Much Does It Cost to Build a dApp? A Realistic Cost Breakdown

Illustration of modular dApp components, a security shield, deployment coins and ongoing server maintenance
On this page
Community question

Hi guys, have any of you tried to build a DApp on ethereum before? What do you reckon it will cost to build?

The short answer

There is no fixed price for a dApp. The bill is mostly people’s time: developers to write and test the smart contracts and front end, and auditors to review the code before it holds real money. A weekend prototype on a testnet can cost almost nothing, while a production DeFi protocol can cost more than a mid-sized web app because of the extra security work.

Deploying the contracts, the part people often worry about, is usually the smallest cost. The rest of this page breaks the budget into its parts so you can estimate your own, rather than relying on a single headline number.

What drives the cost of a dApp

Five things decide most of the budget:

  1. Contract complexity. A token or NFT collection built on standard libraries is small. A lending market, DEX or bridge with custom maths, price oracles and liquidation logic is many times larger and much harder to get right.
  2. How much value it will hold. The more money a contract controls, the more testing, auditing and monitoring it needs. A bug in a game costs embarrassment; a bug in a vault costs user deposits.
  3. Front end and integrations. Wallet connection, transaction handling, indexing on-chain data and good error states take real front-end work.
  4. Chain choice. Gas is cheap on layer 2 networks and expensive at busy times on Ethereum mainnet. Building on a less common chain or language can cost more if experienced developers and auditors are scarce.
  5. Who builds it. An in-house team, freelancers and development agencies have very different rates and overheads, and rates vary widely by country and seniority.

Cost breakdown by component

Component What you pay for Typical scale Notes
Smart contract development Engineer time to design, write and test contracts Often the largest build cost Scales with complexity; testing can take as long as writing
Front end Web app, wallet connection, transaction flows Similar to a normal web app Off-the-shelf wallet and UI libraries reduce it
Security audit External reviewers for a set number of weeks Can rival or exceed development for DeFi Quoted by reviewer-weeks; re-audits after changes cost extra
Deployment gas Network fees to publish contracts Usually small Depends on contract size and gas price at the time
RPC and indexing Node access and data APIs Free tiers to monthly usage bills Grows with users
Hosting and domains Front-end hosting, optional IPFS pinning Low Similar to any static site
Bug bounty and monitoring Rewards for disclosed bugs, alerting tools Ongoing Sized to the value at risk
Legal and compliance Advice on tokens, terms and licensing Varies by country and model Essential if you issue a token or touch user funds

Development

Most of the budget goes to writing and testing contracts. Good teams spend as much time on tests (unit, fuzz and invariant tests) as on the code itself, because deployed contracts are hard to change. Reusing audited open-source building blocks such as OpenZeppelin Contracts for tokens, access control and upgrades cuts both development and audit time.

Our step-by-step guide on how to make a dApp covers the tooling and workflow; this page focuses on what it costs.

Security audits

For anything that holds user funds, security is usually the largest single cost after development. Audit firms rarely publish fixed prices. They quote by reviewer-weeks, which depend on the lines of code, complexity and how fast you need it, so the same firm might charge vastly different amounts for a simple token and a cross-chain protocol. Competitive audit contests and bug bounty platforms such as Immunefi add further layers of review, with rewards scaled to the severity of the bug and the value at risk.

Budget for a re-review if you change code after the audit: many exploits hit code that was added or modified after the audited version. Our guide to smart contract audit firms explains how audits work and how to compare quotes, and smart contract vulnerabilities covers what reviewers look for.

Deployment gas

Deploying a contract is a transaction that stores its bytecode on-chain, so it needs more gas than a simple transfer, and larger contracts need more. The price you pay is the gas used multiplied by the network’s gas fee at the time:

  • In mid-November 2026, Ethereum mainnet gas was around 0.2–0.3 gwei and ETH traded around $1,820. A deployment using about 3 million gas at 0.26 gwei would cost roughly 0.0008 ETH, or about $1.40.
  • The same deployment at 30 gwei, a level seen during busier periods in past years, would cost about 0.09 ETH, roughly $160 at that ETH price.
  • On a layer 2 network, deployment usually costs a fraction of mainnet.
Same deployment, different gas price 3 million gas used Mid-November 2026 3 million gas × 0.26 gwei = 0.0008 ETH about $1.40 Busier period 3 million gas × 30 gwei = about 0.09 ETH roughly $160
Contract size stays fixed in this example, but the gas price changes the deployment bill sharply. This is why teams estimate deployment at a pessimistic gas price even though gas is usually a small part of the full build budget.

Gas prices change minute to minute, so check a live gas tracker before deploying. A full protocol may deploy many contracts and run setup transactions afterwards, which multiplies the cost, but it is still rarely the deciding factor in the budget.

Ongoing running costs

A dApp keeps costing money after launch:

  • RPC access. Your front end needs nodes to read the chain and send transactions. Providers such as Alchemy offer a free tier (30 million compute units a month, with a throughput cap, as of November 2026) and pay-as-you-go plans (listed at $0.52 per million compute units), so cost grows with traffic.
  • Indexing. Showing balances, histories and charts usually needs an indexer or data API.
  • Hosting. The front end is often a static site; some teams also pin it to IPFS.
  • Monitoring and incident response. Alerts on unusual contract activity, plus someone on call.
  • Upgrades and re-audits. New features mean new code, and new code means new review.
  • Admin transactions. Governance, parameter changes and keeper or automation jobs all pay gas.

There are no protocol fees you must pay simply to keep a contract running on Ethereum: once deployed, a contract stays on-chain, and users pay the gas for their own transactions.

Where the budget lands over time Build Contract development Front end Testing Before launch Review and launch Security audit Re-review after changes Deployment gas Usually small Operate RPC and indexing Hosting and monitoring Upgrades and re-audits Continues while live
Most spending arrives before launch through development and security review. Deployment gas is usually a small transition cost, while infrastructure, monitoring and upgrades continue for as long as the dApp runs.

How to estimate your own budget

Many development agencies publish headline ranges for dApp builds, often from a few thousand dollars to several hundred thousand. These are marketing estimates that rarely say what is included (audits, legal work, a year of running costs), so treat them as a rough starting point at most. Rather than trusting a generic range, build a bottom-up estimate:

  1. List the contracts and features in your first version, and mark which ones are standard (token, staking, multisig) and which are custom.
  2. Estimate engineer-weeks for contracts, tests and front end. Ask an experienced developer to sanity-check it.
  3. Multiply by the rates of the people you will actually hire, whether salaried staff, freelancers or an agency.
  4. Get two or three audit quotes once the code is close to final. Compare reviewer-weeks and who will do the work, not just price.
  5. Add deployment gas at a pessimistic gas price for your chosen network.
  6. Add 12 months of running costs: RPC, indexing, hosting, monitoring, a bug bounty reserve and legal advice.
  7. Add a contingency for re-audits and delays; audit schedules often decide launch dates.

How to reduce the cost

  • Cut scope. Launch a minimal version and add features later.
  • Reuse audited code and established standards instead of writing your own token, vault or access-control logic.
  • Start on a testnet, which is free, and consider a lower-fee network for launch.
  • Keep contracts small and simple. Less code means cheaper audits and less to go wrong.
  • Don’t skip security to save money. For a dApp that holds funds, an exploit costs far more than the audit.

Even if you have no coding background, our Q&A on whether anyone can build a dApp and the overview of how dApps are developed explain the path. For chain choice, see the alternatives to Ethereum for building dApps, or browse the dApp development hub.

Risks that add hidden cost

  • Exploits. Lost user funds, emergency response and reputational damage dwarf every other cost.
  • Immutable mistakes. A bug in a non-upgradeable contract may require a full redeploy and user migration.
  • Upgradeability trade-offs. Upgradeable contracts let you fix bugs but add admin-key risk and more code to audit.
  • Gas spikes. Launch-day congestion can raise deployment and setup costs.
  • Regulatory work. Issuing a token or offering financial services can trigger legal obligations that are costly to handle after the fact.

Frequently asked questions

Can I build a dApp for free?

You can build and test one at almost no cash cost: the main frameworks (Foundry, Hardhat) are open source, testnets are free and RPC providers have free tiers. The real costs start when you pay developers, auditors and mainnet gas.

How much does it cost to deploy a smart contract?

It depends on the contract's size and the network's gas price at the time. In mid-November 2026, Ethereum mainnet gas was around 0.2–0.3 gwei, so a deployment using about 3 million gas cost roughly 0.0008 ETH, a little over a dollar. When gas has spiked to tens of gwei in busier periods, the same deployment has cost a hundred dollars or more.

How much does a smart contract audit cost?

Audit firms rarely publish prices. They quote by reviewer-weeks, which depend on lines of code, complexity and deadline, so a simple token and a cross-chain lending protocol can differ in cost by orders of magnitude.

Is it cheaper to build a dApp on a layer 2 or another chain?

Gas is much cheaper on layer 2 networks, but gas is rarely the main cost. Development and security cost roughly the same wherever you deploy, and building on a less common chain can cost more if developers and audit capacity are scarcer.

How long does it take to build a dApp?

A simple prototype on a testnet can take days to a few weeks. A production DeFi protocol with audits, a polished front end and monitoring usually takes months, with the audit schedule often deciding the launch date.

Sources

  1. ethereum.org: Deploying smart contracts
  2. ethereum.org: Gas and fees
  3. Alchemy: Pricing (free and pay-as-you-go RPC tiers)
  4. OpenZeppelin Contracts (open-source audited contract library)
  5. Etherscan: Gas tracker
  6. Immunefi: Bug bounty programs

Educational content, not financial advice. DeFi carries risk, including total loss of funds.

↑↓ to navigate ↵ to open Esc to close