Test Metrics Calculator
Compute pass rate, execution rate and defect density.
Local
This tool needs JavaScript enabled to run in your browser.
What this tool does
This tool turns raw test counts into the metrics teams report: pass rate, fail rate, execution rate, and defect density. Enter the numbers and the figures update as you go.
How the metrics are defined
- Pass rate is passed divided by executed (passed plus failed).
- Execution rate is executed divided by the total planned.
- Defect density is defects divided by size, usually per 1,000 lines of code.
Metrics are a summary, not the whole story. A high pass rate with few tests says little, so read them alongside what was actually covered.
Common use cases
- Preparing figures for a test report or stand-up.
- Comparing results between runs or releases.
- Tracking execution progress through a cycle.
Frequently asked questions
- How is pass rate defined?
- Passed divided by executed (passed plus failed). Execution rate is executed divided by the total planned.
- What is defect density?
- Defects divided by size, usually per 1,000 lines of code. It only means something alongside what was covered.
Learning resources
Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.