Your Training Partner
Techniques Toolbox
Traceability matrix for the online submission of medical invoices. Each requirement links its origin to a WBS deliverable, a mock-up and a component. An arrow pointing right marks forward traceability. An arrow pointing left marks backward traceability. Requirement E-04 has no test case and is a gap. Test case T-07 for the PDF export has no requirement and is an orphan.

Requirements Traceability Matrix

The requirements traceability matrix (RTM) is a grid that links each requirement to its origin and to the deliverables that satisfy it. Each row holds one requirement and its identifier. The columns name the business need it comes from, then its deliverable in the work breakdown structure (WBS), its design, its build and its test case. Read row by row, the matrix shows a requirement that nothing delivers or tests. Read column by column, it shows an element that no requirement justifies. When a change request arrives, the team follows the links to identify what the change touches.

Goal

This definition comes from the PMBOK Guide, which lists the matrix among the project documents. A cell holds the identifier of the element linked to the requirement in its row.

The matrix links each requirement to the business objectives and to the project objectives. This link shows the business value of each requirement. The matrix tracks the requirements across the whole project life cycle so that the team delivers the approved requirements at the end. It also provides a structure for managing changes to the product scope.

The matrix is one form of requirements traceability. In 1994 Orlena Gotel and Anthony Finkelstein defined this traceability as the ability to describe and follow the life of a requirement forwards and backwards: from its origins through its development and specification to its deployment and use. They count the matrix, cross-references between documents and hypertext among the means of tracing requirements. The BABOK Guide treats traceability as a task of requirements life cycle management (Trace Requirements). In that task the business analyst documents the lineage of each requirement: its backward traceability, its forward traceability and its relationships with other requirements.

The analyst produces the matrix and keeps it up to date. The team uses it to check that the scope is covered before the user acceptance test (UAT) and to identify what a change request touches. The team also uses it to decide the fate of an element that no requirement justifies. The PMBOK Guide lists the matrix as an input to the Plan Sourcing Strategy, Manage Project Execution and Assess and Implement Changes processes of the Governance performance domain.

Usage

When to use it

  • Audited or regulated work (medical device, safety-critical software): the matrix shows where each requirement is designed, built and tested.
  • Contractual requirements specification: for each requirement the supplier shows the deliverable that satisfies it and the test that verifies it.
  • Requirements drawn from the Federal Act on Data Protection (FADP) or from a standard: each cited article maps to the requirement that implements it.
  • Several levels of requirements: each solution requirement traces back to the business need that justifies it.
  • Preparing the user acceptance test (UAT): the test case column shows the requirements that nobody will verify.
  • Change request on an approved scope: the links identify the deliverables, components and tests that the change touches.
  • Requirements split across teams or releases: the matrix shows who delivers each requirement and in which release.

When not to use it

  • Requirements without a stable identifier: the matrix would link labels that change. Specify and number the requirements first, for example by functional decomposition.
  • Small agile product with no audit obligation: the links between story and test in the backlog tool are enough. The acceptance criteria of each story carry the verification.

Description

Backward and forward traceability

Backward traceability runs from the requirement back to its origin: a business need, a project objective, a law or a stakeholder's request. Forward traceability runs from the requirement to what realises it: the deliverable, the design, the component and the test case.

A single grid reads in both directions. Read from left to right, a row follows a requirement from its origin to the test. An element found in a column points along its row to the requirement that justifies it and then to that requirement's origin.

Gotel and Finkelstein separate what precedes the writing of the requirement (who asked for it, on what occasion, for what reason) from what follows it (build, deployment, use). They interviewed more than one hundred practitioners. Most of the problems these practitioners reported arise in the period before the requirement is specified. A matrix that starts at the written requirement shows nothing of this period. The origin column narrows this blind spot when it names an identified need. In the health insurer example, need B1 points to the project's business case. The Source attribute names the document, the session or the person that the requirement comes from. An origin recorded as "business" points to nothing.

Specification
Before specification: who asked, on what occasion, for what reason
After specification: build, test, deployment and use
Forward traceability
Production of the requirement
Origin
Requirement
WBS deliverable
Design
Build
Test case
Backward traceability
Matrix
The matrix follows the requirement in both directions between its origin and the test case. The matrix records only one trace of how the requirement arose before its specification: the origin cell.

According to the PMBOK Guide, the elements that the matrix links to the requirements include:

  • business needs, opportunities, goals and objectives;
  • project objectives;
  • project scope and WBS deliverables;
  • product design;
  • product development;
  • test strategy and test scenarios;
  • the detailed requirements that derive from a high-level requirement.

The team keeps only the columns that someone will read to make a decision. The PMBOK Guide template groups the rows: requirement 001 carries associated IDs numbered 1.0, 1.1, 1.2 and 1.2.1. The numbering shows how a high-level requirement breaks down into detailed requirements. The WBS column points to the codes of the work breakdown structure (WBS). The analyst uses it to check that each requirement has a deliverable in the tree. In the same way a matrix links each leaf of the value breakdown structure to the work packages that produce it.

The BABOK Guide names the relationship types that the analyst chooses to trace.

Traceability relationship types in the BABOK Guide. The Example column draws on the online submission of medical invoices.
RelationshipWhat it linksExample
DeriveA requirement to the higher-level requirement it derives fromSolution requirement E-04 derives from business need B2.
DependsTwo requirements, when one only makes sense with the other (necessity) or is easier to build with the other (effort)Notification E-05 only makes sense if status E-03 exists.
SatisfyAn implementation element to the requirement it satisfiesRouting rule C-21 satisfies E-04.
ValidateA requirement to the test case that checks whether the solution fulfils itTest case T-05 validates E-03.

A spreadsheet matrix records satisfy and validate in its columns. It records derive in the origin column or in the row numbering. Dependencies need an extra column or a tool that links requirements to each other. According to the BABOK Guide, the analyst weighs the number of relationship types against the benefit they bring.

The attributes of each requirement

The PMBOK Guide lists the attributes that the matrix can record for each requirement.

The PMBOK Guide attributes for requirement E-04. Illustrative values.
AttributeContentE-04
Unique identifierA value that never changesE-04
DescriptionThe requirement in one sentenceA reimbursement claim over CHF 1'000 enters a claims handler's review queue.
RationaleThe reason for including itInternal control checks high reimbursements before payment.
OwnerThe person accountable for itHead of internal control
SourceThe document, session or person that the requirement comes fromInternal control directive
PriorityThe agreed rankHigh
VersionThe number of the current version1.2
StatusActive, cancelled, deferred, added, approved, assigned or completedApproved
Status dateThe date of the last status change12.03.2026
StabilityThe likelihood that the requirement changesMedium: management may revise the threshold.
ComplexityThe effort and risk of building itLow
Acceptance criteriaThe verifiable conditionsA claim of CHF 1'000.05 enters the queue. A claim of CHF 1'000.00 does not.

According to the PMBOK Guide, the last three attributes help confirm that the requirement satisfies the stakeholders. The requirements management plan sets the attributes and the link types that the matrix records.

Choosing the level of formality

According to the BABOK Guide, the traceability effort grows sharply with the number of requirements and the level of formality. So the analyst weighs the value of each link before creating it. The analyst asks who will read this link and for which decision. Safety-critical software traces each requirement down to the code and to the test. A mid-sized internal project often stops at the origin, the deliverable and the test case. A law or a contract sometimes imposes its own traceability rules. In an agile project the links often live in the backlog tool: a story points to its epic and to its tests. The analyst records the choice in the requirements management plan before creating the first link.

Building the template

The template has one row per requirement. Each requirement receives a unique identifier that never changes. Renumbering breaks every link that pointed to the old number. The columns for the chosen attributes come next. After them comes one column per type of traced element. These columns follow the order of the life cycle: origin, WBS deliverable, design, build and test case. When teams or releases share the requirements, the template adds a column that assigns each requirement to a team and a release.

A requirement's row holds all of its origins. A cell accepts several identifiers. Links are not necessarily one to one: a test case sometimes validates two requirements; a requirement sometimes needs three components. The traced elements also carry a stable identifier: WBS code, mock-up number or test case number.

Filling in backward traceability

The analyst fills in the rows from the requirements documentation. For each requirement the analyst records the origin: the business need, the project objective, the article of law, the session or the person who expressed it. According to the PMBOK Guide, a requirement ready for the baseline is unambiguous, traceable, complete, consistent and acceptable to the stakeholders.

The analyst justifies any requirement without an origin. The PMBOK Guide's Scope performance domain covers all the work required and only that work. A requirement that nobody justifies falls outside the scope.

Extending forward traceability

The analyst creates the matrix early, keeps it up to date and fills it in column by column. Each element goes in when it appears: the WBS deliverable at planning, the mock-up at design, the component at build, the test case at test preparation.

A matrix filled in at the end of the project for the audit reconstructs links that nobody used. These links also reflect what the team delivered rather than what it was meant to deliver.

Reading the matrix in both directions

Read row by row, the matrix shows the gaps: a requirement with an empty cell has nothing at that stage. A requirement without a test case goes into production unverified. A requirement without a WBS deliverable has no planned work. A gap calls for the missing element or a change of status. A deferred or cancelled requirement says so in its status.

Read column by column, the matrix shows the orphans: a deliverable, a component or a test case that no requirement justifies. An orphan signals either a missing requirement or surplus work. In the first case someone asked for the feature verbally and nobody wrote it down. In the second case the team added a feature that nobody asked for (gold plating).

To find the orphans, the analyst exports the lists of test cases, WBS codes and components from their tools. The analyst compares each list with the matching column. Each element missing from the column becomes a row without a requirement. That row stays in the matrix until the team reviews it. The team then adds the requirement through change control or removes the element.

Before the UAT, the analyst checks that each approved requirement points to at least one test case. The test case draws on the requirement's acceptance criteria. Test and inspection planning decides how to verify each deliverable. The matrix shows whether each requirement has a test.

Keeping the matrix under change control

A change request concerns one or more requirements. The analyst follows their forward links to the deliverables, mock-ups, components and test cases that the change touches. Then the analyst traces back from each touched element to the other requirements it serves. When a test case serves two requirements, the team reruns it and checks both. This two-way pass identifies the impact.

Change request: also read the treatment date
E-02 Reading the invoice
modified
1. forward
2.2 Invoice reading
M-05 Reading rules
C-14 Reading service
T-03
2. backward
E-03 Status of each claim
to recheck
T-04
The change request modifies requirement E-02. Going forward, the analyst finds deliverable 2.2, mock-up M-05, component C-14 and test cases T-03 and T-04. Going backward, test case T-03 brings in requirement E-03, which the team also checks.

The change control board decides on the basis of this impact. After approval the analyst updates the row: version, status, status date, links added or removed. A matrix that lags behind the approved changes shows a scope that no longer exists. The team then stops trusting it.

What the matrix does not prove

A link attests that an element exists and that someone attached it to the requirement. It does not say that the element satisfies the requirement. A test case entered in the cell may have failed or never run. The matrix points to the test management tool, which holds the result. A review of the links checks whether each test case verifies what its requirement asks for.

Nor does complete traceability prove that the solution works as a whole. Every row can be covered while two components contradict each other. That check belongs to architecture and integration testing.

Matrix and item tracking

Item tracking drives an action, an issue or a risk through to closure. Each item receives an owner, a due date and a status. The matrix and item tracking meet when an item threatens a requirement. A requirements management tool then attaches the item to the row. The matrix shows the blocked requirement.

AI considerations

A language model compares the text of the requirements with the text of the test cases or mock-ups and proposes candidate links. On an exported matrix it lists the gaps and the orphans. It spots duplicate rows and cited identifiers that exist nowhere. For a change request it follows the links and drafts a first list of the elements that the change touches. For a gap in the test column it drafts a test case from the requirement's acceptance criteria.

Similar wording does not prove that an element satisfies a requirement. A model that fills an empty cell with a plausible link creates fictitious coverage. This false link costs more than an empty cell: the gap disappears from the matrix. The analyst validates each proposed link and records that validation. An auditor will ask who established the link.

Requirements and mock-ups can contain trade secrets. The contract and the non-disclosure agreements decide whether they may go to an external AI service. The matrix also names the requirement owners. The FADP applies to these names. The team removes or pseudonymises them before sending.

Examples

A health insurer launches the online submission of medical invoices. The matrix links five requirements to their origin and to their downstream elements.

Forward traceability: from origin to test
ID
Origin
Requirement
WBS deliverable
Design
Build
Test case
E-01
B1 Reimburse within 10 days
The insured person uploads a photo of an invoice from their mobile phone.
2.1 Mobile app
M-03 Upload screen
C-11 Upload module
T-01, T-02
E-02
B1 Reimburse within 10 days
The system reads the amount and the invoice number from the photo.
2.2 Invoice reading
M-05 Reading rules
C-14 Reading service
T-03, T-04
E-03
B3 Inform without a call to customer service
The insured person sees the status of each claim.
2.1 Mobile app
M-04 Claim list
C-12 Tracking module
T-03, T-05
E-04
B2 Check high reimbursements
A claim over CHF 1'000 enters a claims handler's review queue.
3.1 Claims handler workstation
M-07 Review queue
C-21 Routing rule
(empty)
Gap: no test case
E-05
B3 Inform without a call to customer service
The insured person receives a notification at each status change.
2.3 Notifications
M-06 Status messages
C-15 Notification service
T-06
(empty)
(empty)
(empty)
2.1 Mobile app
M-08 History
C-16 PDF export
T-07 PDF export of the history
Orphan: no requirement
Backward traceability: from test to origin
Read row by row, the matrix follows each requirement forward: requirement E-04 has no test case. Read down the test case column, it traces backward: test case T-07 has no requirement.

Requirement E-04 has an acceptance criterion but no test case: the routing rule would go into production unverified. The last row shows the orphan: the PDF export of the history has a mock-up, a component and a test case but no requirement. The team submits it for review. Test case T-03 appears on two rows. It checks that the system reads the amount (E-02) and shows the status (E-03).

Visualisations

In the spreadsheet grid the requirements take the rows and the traced elements take the columns.

Coverage matrix of requirements and test cases for the online submission of medical invoices. Row E-04 without a cross shows the gap. Column T-07 without a cross shows the orphan. Test case T-03 covers two requirements.
RequirementT-01T-02T-03T-04T-05T-06T-07
E-01××
E-02××
E-03××
E-04
E-05×

Requirements management tools also show the lineage of a requirement from need to test as a tree. For impact analysis a graph of the links shows what a change touches.

Cost

PhaseLevelRationale
PreparationMediumChoose the relationship types and the columns, freeze the identifiers, write the structure into the requirements management plan.
ExecutionMediumAdd each link when the element appears, read the gaps and orphans before each milestone. High in a regulated project traced down to the code.
DocumentationHighUpdate version, status and links at each approved change. Nobody uses a matrix that lags behind.

Tooling

A spreadsheet is enough for a few dozen requirements. Conditional formatting colours the empty cells and a filter isolates the rows without a test case. In an agile project Jira links stories, epics and tests. A test management add-on such as Xray calculates requirements coverage in Jira. Azure DevOps likewise links work items to test cases. Requirements management tools (IBM DOORS Next, Jama Connect, Polarion, Visure) trace typed links between requirements, designs and tests. They produce the matrix on demand and flag a suspect link when the requirement changes. They keep the version history that an auditor asks for. They pay off in regulated work and beyond a few hundred requirements. The NASA handbook addresses safety-critical software. It judges manual methods inefficient and error-prone and recommends a tool.

Sources

  • Project Management Institute, A Guide to the Project Management Body of Knowledge (PMBOK Guide), 8th ed., PMI: the definition of a requirement and the required work of the Scope performance domain (§2.2); the definition of the matrix, its functions, its content, the attributes of a requirement and the template (Section 4, entry Requirements traceability matrix, figure 4-3); the traceability structure in the requirements management plan (Section 4, entry Requirements management plan); the qualities of a requirement before the baseline (Section 4, entry Requirements documentation); the matrix among the inputs of the Plan Sourcing Strategy, Manage Project Execution and Assess and Implement Changes processes (§2.1.6.3, §2.1.6.4, §2.1.6.8).
  • IIBA, A Guide to the Business Analysis Body of Knowledge (BABOK Guide) v3, §5.1 Trace Requirements: backward traceability, forward traceability and the relationships between requirements; the benefits of traceability; the effort that grows with the number of requirements and the formality; the relationship types derive, depends, satisfy and validate; the traceability repository.
  • Orlena C. Z. Gotel and Anthony C. W. Finkelstein, "An Analysis of the Requirements Traceability Problem", Proceedings of the First International Conference on Requirements Engineering, IEEE, 1994, pp. 94-101: the definition of requirements traceability in both directions; the matrix among the means of tracing; the distinction between what precedes and what follows the specification; the survey of practitioners.
  • NASA, Software Engineering Handbook, SWE-052 Bidirectional Traceability: the matrix created early and maintained; one row per requirement with all its origins; filling in column by column; links that are not one to one; the justification of a requirement without an origin; the review of orphans; manual methods and tools. The handbook addresses safety-critical software.
Relative Estimation
All techniques
Reserve Analysis