# Requirements traceability matrix

> Requirements Traceability Matrix: What It Is, Who Needs One. Canonical page: <https://zapple.tech/glossary/requirements-traceability-matrix/>

A requirements traceability matrix is a table that links each requirement to the design, tests and results that show it was met. It answers two questions: which requirement does this test cover, and which tests cover this requirement. In our view, teams facing audits or contracts keep one as evidence; others read the answer from their tracker.

## What does a requirements traceability matrix contain?

One row per requirement, and a link from each to what proves it. NASA's software handbook, in its [bidirectional traceability requirement](https://swehb.nasa.gov/spaces/SWEHBVD/pages/102695427/SWE-052+-+Bidirectional+Traceability), describes the artifact as "a structured table or database providing links between requirements, designs, implementations, and test cases". The [ISTQB Foundation Level syllabus](https://istqb.org/wp-content/uploads/2024/11/ISTQB_CTFL_Syllabus_v4.0.1.pdf) asks for traceability between the test basis, the testware, the test results and the defects.

The matrix below is built for a checkout feature. The rows are invented to show the shape; they are not from a client or a real project.

| Requirement | Acceptance criterion | Test | Type | Last result | Gap |
|:--|:--|:--|:--|:--|:--|
| R1: Pay by card | Valid card is charged once | T-101 | Automated, API | Pass | None |
| R2: Decline invalid cards | Expired card is declined with a message | T-102 | Manual | Pass | None |
| R3: Apply a voucher | Voucher cannot be used twice | T-140 | Automated, UI | Fail | Open defect |
| R4: Refund an order | Refund returns to the original card | none | none | Not run | No test |
| R5: Email a receipt | Receipt arrives within one minute | T-160 | Automated, API | Pass | Timing not checked |

The last two rows are the point. A matrix is useful when it shows what has no test (R4) and where a test is weaker than the requirement (R5), not when it shows green rows.

## Which kinds of traceability are there?

Our naming, which tools and teams vary: the three forms differ by the question they answer.

| Form | Direction | Question it answers |
|:--|:--|:--|
| Forward | Requirement to tests and results | Is this requirement tested, and did it pass? |
| Backward | Test to requirement | Why does this test exist, and what does a failure put at risk? |
| Bidirectional | Both | Which requirements have no test, and which tests serve no requirement? |

The NASA page defines bidirectional traceability by quoting ISO vocabulary: an "association among two or more logical entities that are discernible in either direction". The syllabus lists what the links buy you: coverage evaluation, impact analysis of changes, audits and IT governance. For how a single check is written, see [test case](/glossary/test-case/); for the criteria a row points to, see [acceptance criteria](/glossary/acceptance-criteria/).

## Do you need a traceability matrix, or does your test management tool already give you one?

Our rule of thumb, which is judgment: decide by who asks for the evidence.

- **Someone outside the team asks.** A regulator, a customer contract or an auditor wants the links on paper. NASA's requirement SWE-052, as its handbook records it, has project managers maintain bidirectional traceability between listed software elements, with the required links depending on software classification. Keep a matrix, and generate it from your tool when you can.
- **Only your own team asks.** Links in the tracker are enough. Microsoft documents how [Azure DevOps](https://learn.microsoft.com/en-us/azure/devops/cross-service/end-to-end-traceability?view=azure-devops) links work items, commits, pull requests, builds and releases, and how [Azure Test Plans](https://learn.microsoft.com/en-us/azure/devops/test/overview?view=azure-devops) ties test cases and suites to stories, features and requirements. GitHub can [link a pull request to an issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue) with a keyword.
- **You do not know which applies.** Pick one release and try to answer, for each requirement, "which test covers it, and what was the last result?" If answering takes more than an hour, you have a gap whether or not you need paper.

If you cannot answer that question for a release today, our [QA audit and assessment](/services/audit-and-assessment/) is the matching service: a one-week QA audit of one product area (its tests, pipeline and release process).

## What breaks a traceability matrix?

Five failures, from our reading of how these documents decay:

1. **Stale links.** A requirement changes and its tests do not. The matrix still shows a pass, for a requirement that no longer exists in that form.
2. **One-to-many gaps.** One requirement needs several tests, or one test serves several requirements. A single link per row hides the uncovered half.
3. **Hand-kept spreadsheets.** The sheet is accurate on the day it is built, and then each release makes it older.
4. **Tests with no requirement.** Backward traceability finds them. They may be useful, or they may be debris that costs run time.
5. **AI-generated tests that cite nothing.** A generated suite can be large and still trace to no requirement. Ask for the link at the time of generation, not afterwards.

A [quality gate](/glossary/quality-gate/) can make some of this automatic: block a release when a requirement tagged for it has no passing test. More on the planning side is in our post on [automation test plans](/blog/risk-management/what-is-the-strategy-for-automation-test-plan/), and on how requirements, frameworks and suites fit in [putting the framework puzzle together](/blog/test-automation-frameworks/test-automation-frameworks-putting-together-the-puzzle/). If your criteria are written as examples first, [acceptance test-driven development](/blog/types-of-automation-testing/what-is-acceptance-test-driven-development/) produces the links as a side effect.

## What does AI change, and what does it not solve?

AI can read a requirements document and a list of test names and propose which belongs to which. That saves the first pass on an old project. What it does not solve is the judgment the matrix exists for. A proposed link says a test sounds related, not that it checks the requirement. Our view: a model proposes links from what exists, so it is a weak finder of the row that counts, the requirement with no test. Let AI draft the links, then have a person review the gaps first and the links second. Do not hand an auditor a matrix that no person has checked.

## What does Zapple.Tech do about it?

If nobody can say which tests stand behind a requirement, start with the evidence. Zapple.Tech starts with a one-week QA audit of one product area. It looks at its tests, pipeline and release process, and ends in a written report on what is at risk and what to fix first, plus a pilot plan you can run with Zapple.Tech or without it. Read more on the [QA audit and assessment](/services/audit-and-assessment/) page. Tell us about your product in the form below.

## FAQ

### What is a requirements traceability matrix?

A requirements traceability matrix, or RTM, is a structured table or database that links requirements to designs, implementations and test cases, as NASA's software handbook describes it. In testing it answers whether each requirement has a test, what the latest result was, and what a change to one requirement touches.

### What are the types of traceability?

In our wording there are three. Forward traceability follows a requirement to its tests and results. Backward traceability follows a test back to the requirement it serves. Bidirectional traceability keeps both, which NASA's handbook defines through ISO vocabulary as an association discernible in either direction.

### Who creates the traceability matrix?

In our view the tester or QA lead owns it, and the analyst or product owner owns the requirement side. The people who write the tests are best placed to link them, and the people who own the requirements are best placed to say when a requirement changed. If a tool keeps the links, nobody maintains the matrix by hand.

### Is a traceability matrix needed in agile?

In our view, only if someone needs the evidence. The ISTQB syllabus says good traceability facilitates audits and helps meet IT governance criteria. A team with no auditor or contract that asks can link stories, tests and defects in its tracker and skip a separate document. A team that ships into a regulated field should check what its regulator asks for.

### Can AI build a traceability matrix?

AI can propose links between requirement text and test names, which saves the first pass. Someone then has to confirm that every proposed link holds, meaning the test really checks the requirement, and has to look for requirements that have no test at all, because a model proposes links from what exists, and in our view that makes it a weak finder of what is missing.

## Sources

- [ISTQB Certified Tester Foundation Level syllabus v4.0.1 (2024-09-15, newest edition read), section 1.4.4](https://istqb.org/wp-content/uploads/2024/11/ISTQB_CTFL_Syllabus_v4.0.1.pdf)
- [NASA Software Engineering Handbook, SWE-052 Bidirectional Traceability (current handbook)](https://swehb.nasa.gov/spaces/SWEHBVD/pages/102695427/SWE-052+-+Bidirectional+Traceability)
- [Microsoft Learn, End-to-end traceability, Azure DevOps (last updated 2026-03-02)](https://learn.microsoft.com/en-us/azure/devops/cross-service/end-to-end-traceability?view=azure-devops)
- [Microsoft Learn, What is Azure Test Plans? (last updated 2026-08-14)](https://learn.microsoft.com/en-us/azure/devops/test/overview?view=azure-devops)
- [GitHub Docs, Linking a pull request to an issue (current docs)](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue)
