Defect density is a measure of the total known defects divided by the size of the software entity being measured. Number of Known Defects
---------------------------------
Size
The Number of Known Defects is the count of total defects identified against a particular software entity during a particular time period. Examples include:
Defect to date since the creation of module
Defects found in a program during an inspection
Defects to date since the shipment of a release to the customer
Size is a normalizer that allows comparisons between different software entities (i.e. modules releases products).
Size is typically counted either in Lines of Code or Function Points.
Uses: Defect Density is used to compare the relative number of defects in various software components. This helps identify candidates for additional inspection or testing or for possible reengineering or replacement.