A 2022 report by CISQ estimated that the cost of poor-quality software in the US has risen to at least $2.41 trillion, though not in the same proportions as in 2020. The accumulated technical debt (TD) of software has increased to about $1.52 trillion. Those numbers started to grow much quicker with the industry-wide adoption of AI coding assistants.
Researchers at Bilkent University revealed in a 2023 study that AI assistants generated code with a 30.5% error rate, and another 23.2% of the code was only partially correct. The accuracy rates differed across various AI code generators.
So, how to balance the cost of quality?
The Cost of Quality (CoQ) in software development encompasses all costs associated with ensuring that software products meet good quality standards. These costs are divided into two main categories: the costs of conformance and the costs of non-conformance.

IBM's System Science Institute study has shown that the cost of fixing defects multiplies in the later stages of software development life cycle. Fixing a bug during implementation is six times more expensive than fixing it during design. If the bug is found during testing, it costs fifteen times more to fix. Once the software is in production, fixing a bug can be a hundred times more expensive than if it was caught during the design phase. By comprehensively analyzing CoQ, you can identify where to invest in good quality improvements to minimize overall costs.
Don't take this lightly! Orca Security's State of Cloud Security Report 2024 claims that 62% of organizations have severe vulnerabilities in code repositories.
Here's the comprehensive formula for calculating the Cost of Quality (COQ). It might seem like a lot, but it will save you time and money in the long run.



- Requirements review

- Code review

- Design review

- Testing

- Inspection and testing of incoming materials

- Product audits

- Calibration of testing and inspection equipment

- Maintenance of test equipment

- Quality audits

- Security audits and assessments

- Penetration testing and vulnerability assessments

- Requirements re-do

- Coding re-do

- Re-inspection and re-testing

- Debugging

- Downtime caused by quality issues

- Failure analysis

- Repair and maintenance

- Design changes

- Quality control administration

- Customer complaints and returns processing:

- Warranty claims cost
- Product recalls cost
- Liability costs
- Loss of reputation - Reputation management costs
- Lost sales cost
- Customer support:

- Regulatory fines and penalties
- Legal fees and settlements
Let's assume the following for a software development project with different hourly rates for different roles:
PC = Training costs
PC = 50 x $60 = $3000
AC = Requirements review cost + Code review costs + Design review + Testing costs
AC = (40 x $70) + (60 x $75) + (30 x $70) + (100 x $65) = $15,900
IFC = Requirements re-do costs + Coding re-do costs + Re-inspection costs +Debugging costs
IFC = (30 x $80) + (20 x $85) = $4,100
(Assumed as a fixed cost)
EFC = $5,000
COQ = PC + AC + IFC + EFC
COQ = $3,000 + $15,900 + $4,100 + $5,000 = $28,000
Cost of quality for software projects unlocks the ability to assess intriguing insights, such as:
This information will help you balance your investments while preventing poor quality.