Guide
Penetration testing cost in 2026: market prices and timelines
Market prices for a web app or API pentest, the wait before it starts, and what you should check in a quote.
"How much does a pentest cost?" has an unhelpful honest answer: it depends on scope. But the market does have ranges, typical timelines and a small number of factors that move the price. This guide collects the published 2026 figures, explains what drives a quote up or down, and lists what to check before you sign.
We do not quote our own prices here. They are on our pricing page. This post is about the market.
The market range
Astra's 2026 guide puts a penetration test from a security firm at roughly $5,000 to $50,000. The low end is a small web app with a few roles; the high end covers large applications, multiple APIs, internal networks or regulated environments.
Source: Astra, Penetration Testing Cost
For comparison, automated vulnerability scanners cost from about $499 a year for a single-user tool such as Burp Suite Professional to several thousand dollars a year for a managed scanning service.
Source: PortSwigger, Burp Suite Professional
A scanner and a pentest are not substitutes. A scanner checks for known patterns; a pentest tries to exploit your specific app, including its access rules and business logic. We compare them in why scanners miss business-logic flaws.
How long it takes
Price is only half the cost. For many companies the bigger problem is time, because a pentest is often needed for a deal, an audit or a renewal with a fixed date.
| Stage | Typical range | Source |
|---|---|---|
| Wait before testing starts | 4 to 7 weeks | Edgescan |
| Active testing | 3 to 20 days | Stingrai |
| Report after testing ends | 3 to 5 business days | HackerOne |
| Retest window | Within 30 to 90 days | HackerOne |
| Automated scan, for comparison | 15 minutes to 48 hours or more | Intruder |
Our analysis: added together, a traditional test commonly takes six to ten weeks from first email to a final report. If your auditor's fieldwork or an enterprise contract is four weeks away, the start date matters more than the price.
The slow cycle also explains why many companies test rarely. In Pentera's survey of 450 security leaders, 60 percent said they pentest twice a year or less.
Source: Cloud Security Alliance on Pentera's State of Pentesting report
What drives the price
Scope size
The number of applications, APIs, endpoints and user roles. A single web app with two roles is a small test. A platform with an admin portal, a public API, a mobile app and five roles is several tests.
Depth and access
Black-box tests with no accounts are cheaper to scope but often find less. Grey-box tests with accounts for each role find more per day. White-box tests with source code take longer but go deeper.
Who does the work
Day rates vary with seniority and certifications. A report signed by a tester with recognised credentials (for example OSCP, OSWE or CREST) carries more weight with auditors.
Compliance requirements
PCI DSS, DORA and some customer contracts require specific tests, such as segmentation testing or tests by an independent party, which add effort. See our guides on PCI DSS 11.4 and NIS2 and DORA.
Retests
Some firms include a retest, others charge for it. Software Secured notes that bundling retests typically adds 10 to 20 percent to the price.
Source: Software Secured, Penetration testing cost
Urgency
Rush fees are common when you need a firm to start before its next free slot.
The costs that are not on the quote
- Your team's time. Scoping calls, creating test accounts, answering questions, and triaging the report.
- False positives. A report padded with unproven or low-value findings costs engineering hours to disprove.
- Waiting. A delayed enterprise deal or audit has its own cost.
- Staleness. A test describes your app on the day it ran. If you ship weekly, the report ages quickly.
What to check in a quote
- Scope in writing. Exactly which hosts, APIs and roles are covered.
- Methodology. A named standard such as OWASP WSTG, PTES or NIST SP 800-115.
- Proof of exploitation. Will each finding include a working reproduction, or only scanner output?
- Retest. Included or extra, and within what window.
- Start date and report date. Both, in writing.
- Attestation letter. A shareable summary for customers and auditors. See what it should contain.
- Who tests. The qualifications of the people doing the work and signing the report.
- Data handling. Where evidence is stored, who sees it, and when it is deleted.
How AI changes the cost
Most of the hours in a web or API pentest go to repetitive work: mapping endpoints, replaying requests across accounts and roles, and confirming each finding. That is the part AI agents now do well, which is why they also make attacks cheaper for criminals, as we describe in AI agents now hack web apps.
Used for defence, the same agents cut the wait and the repetitive hours, while senior testers keep the judgement work: deciding what matters, checking each exploit and signing the report. That is how we run PentestLynx. Whoever you choose, ask for proof of each finding, a clear start date and a retest.
Frequently asked questions
How much does a penetration test cost in 2026?
Astra's 2026 guide puts a test from a security firm at roughly $5,000 to $50,000, depending on scope, depth, compliance requirements and whether retests are included.
Why is a pentest more expensive than a scanner?
A scanner runs automatically and checks for known patterns. A pentest includes exploitation, manual verification and a report written for your application, which takes skilled time.
Is a retest included in the price?
It depends on the provider. Ask before you sign. Auditors and customers often want evidence that findings were fixed and verified.
See what an attacker would find in your app
Our AI agents attack your web app or API with your permission, prove each finding with a working exploit, and senior pentesters review and sign the report.