How Much Does Penetration Testing Cost?
Penetration testing usually costs a few thousand dollars for a small web app and far more for a large network. Here is what drives the quote.
On this page
Short answer
Penetration testing for a small web application usually costs between $5,000 and $15,000, while a large network or multi-application engagement can cost $50,000 or more. The price follows the number of systems in scope, the testing methods used, and whether the quote includes a formal report and retesting after fixes.
What is penetration testing?
Penetration testing is a controlled, authorised attempt to break into a system the way an attacker would, so the owner can find and fix the weak points first. A tester probes the application, the network or the cloud setup, tries to get past the defences, and reports every path that worked.
It is different from a vulnerability scan, which only lists known issues from a database. A penetration test confirms which issues are real by trying to use them, and it finds chained problems, small issues that are harmless alone but dangerous together. The result is a report with findings ranked by risk and clear fix steps.
| Test type | What it covers | Typical for |
|---|---|---|
| Web application | Login, roles, inputs, sessions | SaaS products, portals |
| API | Endpoints, auth, rate limits | Mobile backends, partners |
| Internal network | Servers, lateral movement | Office and cloud networks |
| Cloud configuration | Permissions, storage, keys | AWS, Azure, GCP accounts |
| Mobile app | Storage, transport, APIs | iOS and Android apps |
| Social engineering | Phishing, pretexting | Staff awareness checks |
Testing is always agreed in writing first: what is in scope, what is off limits, and when the test runs. Without that agreement it is not a penetration test; it is an attack. A good provider will insist on the scope document before touching a system. What is penetration testing explains the methods behind the test.
How much does penetration testing cost?
Penetration testing costs follow scope, not the clock. The ranges below are planning ranges from published provider guides, and real quotes vary by region, tester seniority and how much access the tester gets.
| Scope | Planning range | What it usually includes |
|---|---|---|
| Small web app | $5,000 - $15,000 | One app, report, debrief |
| Mid-size app or API | $15,000 - $30,000 | App plus API, deeper testing |
| Internal network | $10,000 - $25,000 | Servers, segments, lateral movement |
| Large multi-system engagement | $30,000 - $80,000 | Several systems, long report |
| Retesting | $2,000 - $5,000 | Recheck of fixed findings |
The cheapest quote is rarely the best value. A test that misses real issues costs more in the long run than a thorough one, and a thin report that only lists findings without fix steps leaves your team guessing. Compare what each quote covers, systems, methods, report depth and retesting, not just the headline price.
What drives the price up or down?
Five factors move a penetration testing quote more than any others. Knowing them helps you read a quote and cut scope that does not add value.
- Number of systems and endpoints. More targets mean more testing hours.
- Complexity. Logins, roles, payment flows and integrations take longer to test than a static site.
- Testing type. Black-box testing costs more than grey-box, since the tester starts blind.
- Evidence and report needs. A compliance report with evidence takes longer to write than a short summary.
- Retesting. A second pass after fixes is often priced separately.
Two choices cut cost without cutting value: give the tester credentials and documentation, which turns a black-box test into a grey-box one, and fix the easy issues before the test starts, so the tester spends time on real problems instead of known ones. Cybersecurity services usually start with this scoping step.
What does a penetration test include?
A penetration test has four phases: scoping, testing, reporting and retesting. Each phase has a clear output, and skipping one weakens the whole exercise.
- Scoping. Agree the systems, the methods, the timing and the rules of engagement in writing.
- Testing. The tester probes the agreed systems and documents each finding with steps to reproduce it.
- Reporting. Findings ranked by risk, with fix steps and evidence for each one.
- Retesting. After fixes, the tester checks the critical findings again and confirms they are closed.
The report is the product you actually buy. It should name each finding, show how it was reached, rank it by risk, and give a fix your developers can follow. Ask for a sample report before you sign, and check that it reads like instructions, not a list of tool output.
How to get a useful quote in five steps
Getting a good quote is mostly about giving the provider the facts they need to price the work. A vague request gets a vague price.
- List every system in scope: URLs, APIs, IP ranges and cloud accounts.
- Note the logins, roles and test accounts the tester will get.
- State the goal: find issues, meet a compliance requirement, or both.
- Ask what the quote covers: report depth, retesting and a debrief call.
- Compare two or three quotes on coverage, not on price alone.
Set the test window with your team before you book it. Tests can trigger alerts and lock accounts, so your support and operations teams should know it is happening. A test that your own team mistakes for a real attack wastes everyone's time.
Example (hypothetical): a 40-person SaaS company
Example (hypothetical): a 40-person SaaS company books a test of its web app, its public API and its internal network before a large customer review. The quote comes to $12,000 for the web app, $6,000 for the API and $8,000 for the network.
The test finds 3 critical issues, 8 high and 14 medium. The team fixes the critical and high issues in three weeks, then pays $2,000 for a retest that confirms all 11 are closed. The full cost is $12,000 + $6,000 + $8,000 + $2,000 = $28,000, and the customer review passes on the report.
The company now tests once a year and after every major release. The yearly cost stays near $28,000, which the team treats as part of the cost of selling to large customers, not as an optional extra.
What are the common mistakes?
The most common mistakes in penetration testing are testing too little, testing at the wrong time, and ignoring the report once it arrives. Each one wastes the money spent on the test.
- Testing only the public website while the API and internal network go untested.
- Booking the test the week before a launch, when there is no time to fix findings.
- Buying the cheapest test and getting a scan report instead of a real test.
- Skipping the retest, so nobody knows whether the fixes worked.
- Filing the report without assigning owners and dates to each fix.
A test only pays off if the findings get fixed. Put an owner and a date on every critical and high finding before the testers leave, and book the retest at the same time as the test.
Key takeaways
- Penetration testing confirms real weaknesses by trying to use them, unlike a scan that only lists them
- Price follows scope: a small web app test is a few thousand dollars, a large engagement is far more
- Grey-box testing with credentials costs less than black-box testing and finds more
- The report is the product: it should rank findings by risk and give fix steps
- Always book the retest with the test, so fixes get confirmed
Frequently asked questions
How often should penetration testing be done?
Once a year is the common baseline, plus after major changes such as a new application, a cloud migration or a large release. Some compliance frameworks require yearly testing, and large customers often ask for a recent report before signing.
What is the difference between a penetration test and a vulnerability scan?
A scan lists known issues from a database without confirming them. A penetration test tries to use the issues to get in, confirms which ones are real, and finds chained problems that a scan cannot see. Scans are cheaper and good for routine checks; tests are deeper and less frequent.
Do I need a penetration test for compliance?
Many frameworks, including PCI DSS and SOC 2, expect regular penetration testing or a similar assessment. The exact requirement depends on the framework and your scope, so check what your auditor or customer asks for before you book.
What should a penetration test report include?
Each finding should name the issue, show the steps to reproduce it, rank it by risk, and give a fix your developers can follow. A good report also lists what was tested, what was out of scope, and which critical findings were confirmed fixed in retesting.
Can penetration testing break my systems?
It can, if the test is poorly scoped. That is why the scope document lists what is off limits and when the test runs, and why your operations team should know it is happening. A careful tester avoids destructive actions unless you explicitly agree to them.
How long does a penetration test take?
A small web app test usually takes one to two weeks from scoping to report. A large multi-system engagement can take four to six weeks, with most of the time spent on testing and writing the report rather than on the test itself.