Tools/Explorers

Smart Contract Audit Costs Compared by Firm and Scope

Compare smart contract audit pricing, turnaround times, and coverage depth across leading audit firms and contest platforms in 2026.

Spark Team

Smart Contract Audit Pricing Overview

A smart contract audit is a line-by-line security review of on-chain code, designed to catch vulnerabilities before they become exploits. The cost of that review varies dramatically: from under $5,000 for a simple token contract to over $500,000 for a complex cross-chain bridge or ZK rollup. The price depends on the firm, the pricing model, the size and complexity of the codebase, the chain being targeted, and how quickly you need results.

This guide breaks down what smart contract audits actually cost across the leading firms and contest platforms in 2026. For a broader comparison of audit firms by track record and specialization, see our smart contract audit firm comparison.

Audit Cost by Firm

No major audit firm publishes a fixed price list. All quotes are scope-dependent, negotiated after the firm reviews your codebase. The ranges below are compiled from public grant applications, contest records, and market references. Treat them as indicative: your actual quote may fall outside these bands.

FirmPricing ModelTypical RangeTypical DurationChain Focus
Trail of BitsPer engineer-week (~$25K/week)$80K-$400K+4-12 weeksEVM, Solana, custom VMs
OpenZeppelinFixed scope (per engagement)$50K-$300K+4-8 weeksEVM, Solana, StarkNet
Consensys DiligenceFixed scope (per engagement)$30K-$150K+4-8 weeksEVM only
SpearbitPer researcher-week (~$32K-$48K/week)$64K-$300K+2-6 weeksEVM, Solana
HalbornFixed scope (per engagement)$15K-$80K+2-4 weeksEVM, Solana, Cosmos, others
CyfrinFixed scope + CodeHawks contests$20K-$150K+ (est.)2-6 weeksEVM, expanding to others
Code4renaContest prize pool + 10% platform fee$10K-$100K+ prize pool1-2 weeks (contest phase)EVM, Solana
SherlockManaged contest (scaled by LOC)$25K-$250K+3-12 days (contest phase)EVM, expanding

Trail of Bits and Spearbit sit at the premium end of the market. A public grant proposal from Trail of Bits priced a 24 engineer-week engagement at $25,000 per week, totaling $600,000. Spearbit operates as a curated network of independent researchers rather than a traditional firm, with weekly rates of $32,000 to $48,000 depending on the researchers assigned.

Contest platforms like Code4rena and Sherlock offer a different economics: the project funds a prize pool, and independent auditors compete to find bugs. This can deliver more eyes on the code at a lower total cost, though the depth per reviewer is typically shallower than a dedicated engagement.

Pricing by Codebase Size and Complexity

The single largest cost driver is the scope of the audit: how many lines of code, how many contracts, and how complex the logic. While top-tier firms have moved away from strict per-line pricing toward what some call "logic density valuation," line count remains a useful proxy for estimating budget.

Scope CategoryApprox. LOCExamplesTypical Cost RangeTypical Duration
Simple token or NFT<500ERC-20, ERC-721 mint$2,000-$15,0001-2 weeks
Standard DeFi protocol500-3,000Lending pool, vault, staking$20,000-$100,0002-4 weeks
Complex DeFi system3,000-10,000AMM, derivatives, governance$50,000-$200,0004-8 weeks
Bridge or cross-chain5,000-20,000Token bridge, messaging layer$100,000-$400,000+6-12 weeks
L1/L2, ZK rollup, VM10,000+Consensus, prover, sequencer$150,000-$500,000+8-16+ weeks

These ranges assume a single audit engagement. Re-audits after remediation (reviewing the fixes from the initial report) typically add $5,000 to $20,000 per round, and are rarely included in the original quote. Projects should budget for at least one re-audit cycle.

Audit Contests vs. Traditional Audits

The audit market has split into two models: traditional firm-led engagements and competitive audit contests. Each has distinct cost structures and tradeoffs.

Traditional audits (Trail of Bits, OpenZeppelin, Halborn, Cyfrin):

  • A dedicated team of 1 to 5 auditors reviews the codebase over several weeks
  • Auditors build deep context about the protocol's architecture and intended behavior
  • Direct communication with the development team throughout the process
  • Costs are fixed upfront after scoping
  • Wait times of 4 to 8 weeks for scheduling are common

Audit contests (Code4rena, Sherlock, CodeHawks):

  • 50+ independent researchers may review the code simultaneously
  • Contest duration is typically 1 to 2 weeks, with judging adding another week
  • More eyes on the code, but each reviewer spends less total time
  • Payouts are competitive: researchers are only paid for valid findings
  • Total cost can be lower for mid-size codebases, but outcomes are less predictable

Many high-value protocols now use both: a traditional audit for depth, followed by a contest for breadth. This layered approach catches different classes of bugs. The combined cost is higher, but for protocols securing hundreds of millions in TVL, the marginal cost is small relative to the potential loss from an undetected reentrancy attack or oracle manipulation vulnerability. For context on how bridge exploits have historically drained hundreds of millions, see our research on stablecoin bridge hack postmortem lessons.

What Drives Audit Costs Up

Understanding what makes an audit expensive helps teams control scope and budget effectively. The main cost drivers are:

  • Code complexity: contracts with heavy math (AMMs, options pricing, yield calculations) take longer to review than straightforward token transfers
  • Number of external integrations: protocols that interact with oracles, bridges, or other DeFi protocols multiply the attack surface
  • Non-EVM chains: Solana audits cost roughly 20 to 30 percent more than equivalent EVM audits because fewer auditors specialize in Rust and the Solana account model
  • Urgency: rush engagements carry a 25 to 50 percent premium over standard scheduling
  • Formal verification: adding mathematical proofs of correctness on top of a manual review can double the cost
  • Upgradeability: proxy patterns and upgradeable contracts require reviewing both the current implementation and the upgrade mechanism

Automated Tools vs. Manual Audits

Free static analysis tools like Slither (by Trail of Bits), Mythril, and Aderyn (by Cyfrin) can catch common vulnerability patterns automatically. They are valuable as a first pass and can be integrated into CI pipelines, but they are not a substitute for a manual audit.

Static analyzers excel at detecting known patterns: unchecked return values, reentrancy entry points, and arithmetic issues. They struggle with business logic bugs, economic exploits, access control misconfigurations, and cross-contract interaction risks. Independent testing has shown these tools catching only a fraction of vulnerabilities in real-world contracts, with significant false positive rates.

A $5,000 automated-only audit report from a lesser-known firm typically runs these tools and adds minimal manual review. For a simple ERC-20 token with no custom logic, this may be adequate. For any protocol handling user funds, lending, or liquidity pools, it is not. The difference between an automated scan and a proper manual audit is the difference between a spell check and an editor: one catches surface errors, the other catches structural problems.

Chain-Specific Audit Considerations

Audit requirements and costs vary by smart contract platform. Each chain introduces its own execution model, language, and class of vulnerabilities.

EVM chains (Ethereum, Arbitrum, Base, Polygon):

  • The largest pool of qualified auditors, which keeps costs competitive
  • Mature tooling: Slither, Mythril, Foundry fuzzing, and Echidna
  • Most audit firms specialize here, so wait times may be shorter

Solana:

  • Programs written in Rust require auditors with Rust and Anchor expertise
  • The account model introduces unique vulnerability classes (account confusion, missing signer checks, PDA seed collisions)
  • Fewer qualified auditors means higher prices and longer queues
  • Firms with Solana coverage include Trail of Bits, OpenZeppelin, Halborn, and Spearbit

Bitcoin and Bitcoin L2s:

  • Bitcoin's base layer uses Bitcoin Script, which is intentionally limited and not Turing-complete
  • Bitcoin L2s like Spark and Liquid use different execution models that require specialized review
  • Protocols building on Bitcoin often need cryptographic reviews (MuSig2, FROST, threshold signatures) rather than traditional smart contract audits
  • Very few firms have deep Bitcoin protocol expertise: Trail of Bits and specialized cryptography consultancies are the primary options

For a broader comparison of smart contract platforms and their security properties, see our smart contract platform comparison.

How to Budget for a Smart Contract Audit

A practical audit budget should account for more than just the initial engagement:

  1. Run free automated tools (Slither, Aderyn) before engaging an auditor to fix trivial issues and reduce paid review time
  2. Get quotes from at least three firms to benchmark pricing for your specific codebase
  3. Budget for one to two re-audit rounds ($5,000 to $20,000 each) after fixing reported issues
  4. Consider a contest as a complement to (not a replacement for) a traditional audit if your protocol secures significant value
  5. Factor in scheduling lead time: most reputable firms book 4 to 8 weeks out, so plan audits well before your launch date
  6. For ongoing security, budget for periodic re-audits after major upgrades, not just the initial launch
Rule of thumb: Audit costs should be proportional to the value at risk. A protocol expecting to secure $100 million in TVL should budget $100,000 to $300,000 for a comprehensive security review. Skimping on audit quality to save $50,000 is poor economics when a single exploit can drain the entire protocol.

Frequently Asked Questions

How much does a smart contract audit cost?

Costs range from $2,000 to $500,000+ depending on scope. A simple ERC-20 token audit runs $2,000 to $15,000. A standard DeFi protocol (lending, staking, vault) costs $20,000 to $100,000. Complex systems like bridges, L2 sequencers, and ZK circuits can exceed $200,000 to $500,000. Contest-based audits through Code4rena or Sherlock typically cost $10,000 to $100,000 in prize pool funding.

Is a $5,000 automated audit enough?

For a standard ERC-20 or ERC-721 token with no custom logic, an automated scan plus light manual review may be sufficient. For any contract that holds user funds, manages lending positions, or interacts with external protocols, a $5,000 automated-only audit is inadequate. Automated tools miss business logic bugs, economic attack vectors, and cross-contract vulnerabilities. These are precisely the bug classes responsible for the largest DeFi exploits.

How long does a smart contract audit take?

Contest-based audits run 1 to 2 weeks for the competition phase, plus 1 to 2 weeks for judging and report finalization. Traditional firm audits take 2 to 8 weeks of active review, depending on codebase size, plus scheduling lead time of 4 to 8 weeks. End to end, expect 6 to 16 weeks from initial contact to final report for a traditional engagement.

What is the difference between an audit contest and a traditional audit?

A traditional audit assigns a dedicated team (1 to 5 people) who build deep context on your protocol over several weeks. An audit contest opens your code to 50+ independent researchers who compete for bounty payouts based on the severity of bugs they find. Traditional audits offer more depth and direct collaboration. Contests offer more breadth and can be faster. Neither is strictly better: many teams use both for layered security coverage.

Do Bitcoin-native protocols need smart contract audits?

Bitcoin's base layer does not support general-purpose smart contracts, so traditional smart contract audits do not apply to plain Bitcoin transactions. However, Bitcoin L2s, sidechains, and protocols using advanced scripting (Tapscript, DLCs, BitVM) absolutely need security review. These reviews focus on cryptographic primitives, state management, and protocol-level logic rather than Solidity or Rust contract code. Firms with Bitcoin expertise are scarce, which makes these engagements both harder to schedule and more expensive.

Which audit firm is best for DeFi protocols?

There is no single best firm. Trail of Bits and Spearbit are considered premium options with strong track records on complex DeFi systems, but they are also the most expensive and have the longest wait times. OpenZeppelin is well-regarded for EVM protocols and has audited many blue-chip DeFi projects. For tighter budgets, Halborn offers competitive pricing with multi-chain coverage. Sherlock and Code4rena offer contest-based alternatives that can be faster and cheaper for mid-size protocols. See our audit firm comparison for a detailed breakdown by specialization and track record.

How much do re-audits cost after fixing vulnerabilities?

Re-audit rounds (also called fix reviews or mitigation reviews) typically cost $5,000 to $20,000 per round. Some firms include one re-audit in the initial engagement price, while others charge separately. The cost depends on how many issues were found and how extensive the code changes are. Budget for at least one re-audit cycle: it is rare for a first audit to produce zero findings.

This tool is for informational purposes only and does not constitute financial or security advice. Audit pricing is approximate and based on publicly available market references, grant proposals, and contest records. No audit firm publishes fixed prices: all figures are indicative ranges that will vary based on scope, complexity, and timing. Always request direct quotes from firms before budgeting. Verify current pricing and availability, as market conditions change frequently.

Build with Spark

Integrate bitcoin, Lightning, and stablecoins into your app with a few lines of code.

Read the docs →