How to Build a Requirements Traceability Matrix That Finds Gaps
How to link requirements to design, tests and defects, set coverage rules in a fixed order and spot untested or failing Must items before release.

How to Build a Requirements Traceability Matrix That Finds Gaps
A requirements traceability matrix, or RTM, is a table that links each requirement to the work that implements it and the tests that prove it. Its purpose is simple: before a release, anyone should be able to pick a requirement and see whether it was designed, built, tested and passed, and if not, what is missing.
Traceability is standard practice in business analysis guidance such as the IIBA BABOK, and in requirements engineering standards such as ISO/IEC/IEEE 29148. In regulated work it is often something an auditor will ask to see.
What goes in each row
- Requirement ID and text, written so it can be tested.
- Source, such as a section of the business requirements document, a stakeholder or a regulation. This is backward traceability.
- Priority, often using MoSCoW: Must, Should, Could and Won't.
- Design items, test cases and open defects, as lists of IDs. This is forward traceability.
- Latest test result and requirement status.
Define coverage in a fixed order
The most useful column is one you derive rather than type: coverage. A clear set of rules, applied in order, avoids arguments:
- No design item linked: No design.
- Design but no test case: No test.
- A failed result or any open defect: Failing.
- A result other than passed, including not run and blocked: Not verified.
- Otherwise: Covered.
The order matters. A requirement with no design and no tests is reported as No design, because that is the first gap to close.
Worked example
The Requirements Traceability Matrix Builder includes five requirements for a customer portal.
| ID | Requirement | Priority | Coverage |
|---|---|---|---|
| REQ-001 | Password reset by email | Must | Covered |
| REQ-002 | Account locks after 5 failed log-ins | Must | Failing |
| REQ-003 | Invoices downloadable as PDF | Should | No test |
| REQ-004 | Dark mode | Could | No design |
| REQ-005 | Pages meet WCAG 2.2 AA | Must | Not verified |
REQ-001 has design item DS-12, two tests that passed and no defects, so it is covered. REQ-002 has a design and a test, but the test failed and BUG-221 is open. REQ-003 is designed and implemented but nobody has written a test for it. REQ-004 is only a proposal with no design. REQ-005 has three accessibility tests linked but none has been run.
Only one of five requirements, 20 percent, is covered. More importantly, two Must requirements are not: REQ-002 and REQ-005. Those are the items that would block a go-live, and the matrix lists them as warnings. The Should and Could gaps can be discussed, deferred or accepted.
How to use it in a release review
Group the matrix by coverage and look at the Must column first. For each Must requirement that is not covered, the coverage label tells you the next action: write a design, write a test, fix a defect or run the tests. Then group by priority to check that every Must is covered before signing off. A board view by status helps track requirements as they move from approved to implemented to verified.
Common mistakes
Requirements that cannot be tested. "The system should be fast" has no pass or fail. Rewrite it with a measure before linking tests.
Linking a test without reading it. A test case ID in the matrix only proves a link exists. Someone still has to check that the test actually checks the requirement.
Forgetting defects. A requirement whose test passed last month but has a new open defect is not covered. Keep the defects column current.
One test result for many tests. When several tests disagree, record the worst current result, not the best.
Updating the matrix only at the end. A matrix built the week before release finds gaps too late to fix. Update it as tests run.
Losing the source. Without the source column, nobody can tell whether a requirement is still wanted when the stakeholder or regulation changes.



&c=%23991b1b&k=business)