
A requirements traceability matrix is a table that links every requirement in a project to the design, the code and the tests that satisfy it, in both directions. It answers two questions at once: has every requirement been implemented and verified, and does every test exist because some requirement asked for it? The short name is RTM, and in regulated industries it is evidence, audited as such.
NASA requires
drop to three links
under different names
Figures from SWE-052 — Bidirectional Traceability, NASA Software Engineering Handbook (NPR 7150.2). For Class A, B and C software the project manager must record and maintain bidirectional traceability across six relationships: higher-level requirements to software requirements, requirements to system hazards, requirements to design components, design components to code, requirements to software verifications, and requirements to non-conformances.
What an RTM contains
One row per requirement, one column per thing that requirement connects to. Projects differ, but a workable set of columns looks like this:
- Requirement ID — an identifier that survives reordering. We will come back to it.
- Requirement text, or a short form of it.
- Source — the customer requirement, standard clause or regulation it descends from.
- Design element — the component that implements it.
- Test case — the verification that proves it works.
- Status — where that link stands today.
Functional safety projects usually add the hazard the requirement controls, a criticality level such as an ASIL or a DAL, and the baseline in which it was frozen. You will also see it written as requirement traceability matrix, traceability matrix or trace matrix. Three alternative names for the same thing.
Forward, backward, bidirectional
Three terms that get used interchangeably and should not be. The difference decides what your matrix can and cannot tell you. Switch between them and watch which links light up.
Traceability direction
SPOTS UNFINISHED WORK
Forward traceability runs downhill, from a requirement to the things built to satisfy it. It answers: is this implemented and tested? A gap means unfinished work.
Backward traceability, sometimes called reverse requirement tracing, runs uphill from a test or a component back to the requirement that justifies it. It answers: why does this exist? A gap here means something got built without anyone requesting it, which is a harder conversation.
Bidirectional traceability is both at once, and it is the wording the standards use. When ISO 26262, DO-178C or NASA NPR 7150.2 ask for traceability, this is what they mean — not the convenient direction.
Forward tracing makes a team look productive: it proves the work got done. Backward tracing tends to surface features that entered the product through a corridor conversation, and test suites nobody can tie to a requirement. That is precisely why auditors start there.
A four-row RTM
Here is a four-requirement matrix. Switch off a verification link and watch what the matrix has to tell you about it — this is the whole job of an RTM, compressed into one table small enough to see at once.
Verification coverage
All requirements verified. Nothing pending review.
| Req ID | Requirement | Design | Test | Status | Toggle |
|---|---|---|---|---|---|
| SWRS-118 | Log every failed authentication attempt | ARC-AUTH-02 | TC-0071 | verified | |
| SWRS-206 | Retain failed attempts for 90 days | ARC-LOG-01 | TC-0142 | verified | |
| SWRS-311 | Notify the operator after five failures | ARC-AUTH-04 | TC-0233 | verified | |
| SWRS-402 | Deliver notification within 2 seconds | ARC-AUTH-04 | TC-0318 | verified |
Four rows, and you spot the gap the moment it appears. Reading and building this kind of view is the work of the fundamentals level. Now picture the same table with four thousand rows and eleven thousand links, maintained by three people in different time zones. That is the problem, and it is not one of understanding.
The difficulty of an RTM is not in the number of requirements, nor in the number of links: those grow together. It is in impact analysis. When a requirement near the top changes, what needs reviewing propagates down level by level, and that count does climb fast. That is where this stops being a documentation task, usually around the second baseline.
What each standard asks for
"The standard requires traceability" is true and almost useless. What differs between them is how deep the evidence has to go and what document it ends up in. Pick the one that applies to you.
Pick your standard
NASA NPR 7150.2 — Software Engineering Requirements
Spaceflight and aeronautics
- Scope
- Six bidirectional relationships for Class A, B and C software
- Links required
- Higher-level requirements to software requirements · requirements to system hazards · requirements to design components · design components to code · requirements to software verifications · requirements to non-conformances
- Graded by
- Software classification, A through F. Class D keeps only three — hazards, verifications and non-conformances — and Class F another three, none of them the hazard link
- Worth noting
- The most explicit of the lot. If you want a checklist of what bidirectional means in practice, SWE-052 is it
ISO 26262 — Road vehicles, functional safety
Automotive
- Scope
- Bidirectional traceability across the safety lifecycle
- Graded by
- ASIL A to D, set by exposure, controllability and severity
- Evidence
- Feeds the safety case: an argument that the item is acceptably safe, supported by the trace
- Worth noting
- Shares its links with Automotive SPICE. What differs is the document built on top of them
DO-178C — Software considerations in airborne systems
Avionics
- Scope
- Traceability from system requirements through to code and verification
- Graded by
- Software level A to D by the effect of a failure condition; at level E the standard stops applying
- Evidence
- Trace data is a certification artefact reviewed by the authority
- Worth noting
- Structural coverage is required from C up to A with growing rigour: statements, decisions and MC/DC. What level A adds is MC/DC
EN 50716:2023 — Railway software
Rail · supersedes EN 50128 and EN 50657
- Scope
- Traceability between requirements, design, code and test
- Graded by
- Basic Integrity and SIL 1 to 4. The "SIL 0" label disappeared when the two earlier standards merged; both were withdrawn in November 2023
- Evidence
- Verification and validation records tied back to requirements
- Worth noting
- Independence grows with the level, and at SIL 3 and 4 the validator may not report to the project manager: the trace is read from outside
IEC 62304 — Medical device software lifecycle
Medical devices
- Scope
- Requirements traced to design, implementation, verification and risk controls
- Graded by
- Software safety class A, B or C, by the harm a failure could cause — and always after the risk controls external to the software have been applied
- Evidence
- Trace connects the risk file to the software, not just requirements to tests
- Worth noting
- The risk link is the one teams coming from other sectors tend to miss
One detail worth knowing if more than one of these applies to you. Both ISO 26262 and Automotive SPICE demand bidirectional traceability, and along the central axis — requirements, design, test — the links are reusable. But they do not overlap at the ends: Automotive SPICE has no hazard analysis and no ASIL, and ISO 26262 does not ask you to trace requirements that are not safety-related. One infrastructure, yes; one set of links, no. Treat them as the same thing and you arrive at one of the two audits with half of it missing.
Where the spreadsheet stops working
Almost every project starts its RTM in a spreadsheet, and for a first prototype that is a perfectly reasonable decision. Nobody buys a requirements tool to manage forty requirements. The failure mode is predictable, though, and it arrives in the same order every time.
The identifier drifts
In a spreadsheet a requirement is a row. Insert a row above it and every cross-reference pointing at "row 47" now points at something else. Teams work around this with a manual ID column, which holds until two people edit the file the same afternoon and one of them wins.
Nobody knows what a change invalidated
The customer changes one top-level requirement. Which software requirements are now questionable? Which tests stopped being valid? A spreadsheet cannot answer, because the link is a piece of text, not a relationship. Someone has to work it out by reading — and they will do it the week before delivery, which is when people read fastest and worst.
The matrix is a snapshot, not a state
The RTM in the folder was true on the day it was exported. Whether it is true today is a matter of faith. Auditors have learned to ask when it was generated and from what, The question is polite; the answer is not always.
If your requirements are stable, a spreadsheet can carry a project to the end. If they are not, it will fail the same week the auditor visits.
What changes with a requirements management tool
Organisations do not move to a requirements management tool because it draws a prettier matrix. They move because the matrix stops being a document somebody maintains and becomes a view generated on demand from links that already exist.
In IBM DOORS, each requirement is an object with an absolute number that never changes. Worth knowing early: the hierarchical numbering shown on screen (1.1, 1.2) does renumber when you insert above it, exactly as a spreadsheet would. What stays put is the absolute number, and that is the one to reference. Links between modules are real relationships rather than typed text, so coverage is calculated instead of compiled. And when a source requirement changes, the links below it are flagged automatically as suspect: the tool tells you what needs reviewing rather than waiting for somebody to notice.
The difference shows up at audit time. Producing the matrix goes from a week of somebody's life to a report you execute, and that report can be automated, and the answer to "when was this generated?" becomes "just now, from the baseline you are looking at".
Five ways to get it wrong
- Tracing forwards only. Half the requirement, and the half auditors trust least.
- One matrix for the whole programme. Slice by subsystem or baseline. Nobody reads a four-thousand-row table, including the person who built it.
- Linking to documents instead of requirements. "See section 4.2" is a reference, not traceability. It will not survive the document being reorganised.
- Free-text status. If "Done", "done" and "OK" all live in the same column, the matrix cannot be filtered, and a matrix nobody can filter is a matrix nobody uses.
- Building it at the end. An RTM assembled the month before certification documents what happened. One maintained from the start changes what happens.
Frequently asked
What does RTM stand for?
Requirements Traceability Matrix. You will also see Requirement Traceability Matrix in the singular, plus the shorter traceability matrix and trace matrix. They all describe the same table.
What is the difference between forward and backward traceability?
Forward traceability runs from a requirement down to the design and tests built to satisfy it, and reveals unfinished work. Backward traceability runs from a test or component back up to the requirement that justifies it, and reveals scope nobody asked for. Bidirectional means both at once, and it is the form the standards require.
Can I build a requirements traceability matrix in Excel?
Yes, and on a small project with stable requirements it may be all you need. It stops working when requirements start changing, because a spreadsheet stores a link as text rather than as a relationship and cannot tell you what a change just invalidated. The breaking point is the first significant customer change, not a particular number of rows.
How many traceability links do safety standards require?
It depends on the standard and the criticality level. NASA NPR 7150.2 is the most explicit: six bidirectional relationships for Class A, B and C software. ISO 26262, DO-178C, EN 50716 and IEC 62304 all require bidirectional traceability, with the depth of evidence set by ASIL, software level, SIL or safety class.
Who should maintain the RTM?
Ideally nobody, as a separate job. If the matrix is generated from links created during normal requirements and test work, it stays current by construction. If maintaining it is somebody's assigned task, it drifts between updates and gets rebuilt under pressure before each audit.
Your matrix is only as good as the links under it
Our IBM DOORS courses go from reading a coverage view to producing the evidence package a certification audit asks for. Three levels, in English, Spanish or French.
