Skip to main content
REQUIREMENTS TRACEABILITY

What is a requirements traceability matrix? Template, example and tracing back to the source

Updated · By Adam Polak, founder

A requirements traceability matrix (RTM) is a table that links each requirement back to its source and forward to the design, code and tests that satisfy it. It shows that every requirement is built and tested and that every test traces to a need, but the backward link is the weak one: a source recorded as “the workshop” can't be checked. Keep one in a spreadsheet or in a requirements or test-management tool; for business rules, RuleFoundry can interview the person who knows and link each rule to the line where it was said, which gives you the backward link.

Forward, backward and bidirectional traceability

Jump to the template. Gotel and Finkelstein's 1994 paper, An Analysis of the Requirements Traceability Problem, defined requirements traceability as “the ability to describe and follow the life of a requirement, in both a forwards and backwards direction”. IIBA's BABOK Guide v3 (2015, still its current edition) covers it in the task Trace Requirements, as a requirement's lineage backward and forward.

TypeWhat it linksWhat it answersIn the example below
Forward traceabilityEach requirement to the design, code and tests that satisfy it.Was every requirement built and tested? An empty test cell is a requirement nobody checks.FR10 → story EXP-20 → tests T9, T10, T11
Backward traceabilityEach test, story or piece of code to its requirement, and each requirement to its source.Does everything built trace to a need, and who stated it? A test with no requirement is work nobody asked for.Test T11 → FR10 → rule R6 → the finance controller's interview of Oct 9, lines 88–95
Bidirectional traceabilityBoth directions, kept in one matrix.Both questions, and what a change affects: follow a changed rule to every requirement and test to revisit.The $2,500 threshold in R3 and R4 changes → FR10 → tests T9, T10

The same paper, from studies of over 100 practitioners, found that most traceability problems came from the part of a requirement's life before it was written into the specification, starting with where it came from. NASA's software engineering requirements (NPR 7150.2D, 2022) require the project manager to perform, record and maintain bi-directional traceability: for software classes A to C, higher-level requirements to software requirements, requirements to design, design to code, and requirements to hazards, verifications and non-conformances.

Requirements traceability matrix example

A made-up expense approval system, as an illustration: the one on the functional requirements examples page, seven of its requirements, shortened, with invented sources, stories and tests. These are the first six columns, the backward half: each requirement, its type, the business requirement it serves, its source and the business rules it enforces.

IDRequirementTypeTraces toSourceBusiness rule IDs
FR2Block approval of a report by the employee whose report it is.FunctionalBR1Finance controller, expense policy v3, section 5.1R5
FR5Block submission while an expense that needs a receipt under R1 or R2 has none attached.FunctionalBR1Finance controller, expense policy v3, sections 3.1 and 3.2R1, R2
FR6Block submission while any expense on the report was incurred more than 60 days earlier, counting to a returned report's first submission.FunctionalBR1Finance controller, expense policy v3, section 3.4; returned reports: AP lead, interview of Oct 8, lines 212–218R8
FR7Flag possible duplicate expenses to every approver, and block approval until each flag is cleared.FunctionalBR1AP lead, interview of Oct 8, lines 240–246R11
FR10Route each submitted report for approval as R3, R4 and R6 require, one approver at a time.FunctionalBR1Finance controller, expense policy v3, section 4; manager on leave: finance controller, interview of Oct 9, lines 88–95R3, R4, R6
FR12Remind an approver when a report has waited 2 business days for their decision.FunctionalBR1Finance director, project charter v1, section 2None
NFR1A report reaches the next approver's queue within 1 minute of being submitted or approved, for 99% of reports each month.Non-functionalBR1IT operations lead, email of Oct 14None
— (EXP-27)

Each rule keeps its own source in the rule catalog: R6's entry cites the same lines of the finance controller's interview as FR10.

The same example: what satisfies each requirement

The other five columns: the forward half, from each requirement to the story that builds it and the tests that check it, and the upkeep.

IDDesign or storyTest case IDsTest resultOwnerLinks checked
FR2EXP-12T1Passed on build 214; open: Q2Finance controllerNov 24
FR5EXP-14T2, T3, T4Passed on build 214Finance controllerNov 24
FR6EXP-15T5, T6, T7Passed on build 214Finance controllerNov 24
FR7EXP-16T8, T15, T16Passed on build 214AP leadNov 24
FR10EXP-20T9, T10, T11Passed on build 214; open: Q2Finance controllerNov 24
FR12EXP-23T12, T17Not runFinance directorNov 24
NFR1EXP-25, the queue monitorT13, monthlyPassed on build 212, October dataIT operations leadNov 3
— (EXP-27)EXP-27: approvers delegate to any colleagueT14Passed on build 214Finance controller, to decideNov 24

The last row is a gap the matrix exposes: story EXP-27 and test T14 trace to no requirement. Delegating to any colleague also contradicts R6, and could send a report to its own submitter, which R5 forbids; the finance controller decides whether to add a requirement and change the rule, or take the story out. Q2 (who gives the second approval when the finance controller submits a report over $2,500?) is still open, so FR2 and FR10 stay flagged until the finance director answers. On the tests: T2 and T3 test R1 at $74.99 and $75.00; T4 is a $40 lodging charge with no receipt; T5 and T6 test R8 at 60 and 61 days; T15 doesn't flag a match that differs only in merchant; T16 blocks approval until the flag is cleared; T9 and T10 are AC1 and AC2 on the functional requirements page, and T11 is the manager-on-leave case; T12 and T17 test FR12 at 2 business days and just under.

How to build and maintain a traceability matrix in a spreadsheet

This works in Excel, Google Sheets or a Confluence table; no requirements tool is needed.

  1. 1

    Give everything an ID

    Each requirement, business rule, story and test gets an ID that never changes and is never reused.

  2. 2

    One row per requirement

    Copy the requirements from the BRD or specification into the template, each with the business requirement it serves. A requirement with several tests keeps one row, with the tests in one cell.

  3. 3

    Record each source as a statement, not a meeting

    Who said or wrote it, in which document or recording, and where: a section, a timestamp or transcript lines. “Requirements workshop, Oct 3” can't be checked. If nobody can say, mark the source missing and ask the owner rather than fill it in from memory.

  4. 4

    Link the rules, the design and the tests

    Add the rule IDs from your rule catalog, not just the stories: when a policy changes, the rule ID finds every story and test that enforces it. Then add the story or design element and the test IDs: at least one test per requirement, and one on each side of every boundary.

  5. 5

    Read it in both directions

    Filter forward for requirements with no story or test. Paste every story and test ID from your tracker into a second sheet and look each one up in the matrix (COUNTIF); any with no match traces to no requirement. Give each of those a row with the requirement cells empty, so the gap stays visible until someone settles it. A test ID in a cell doesn't prove the test checks the requirement, so spot-check rows: read the test against the requirement, and the requirement against its source.

  6. 6

    Update it with every change

    A matrix filled in once for a review is wrong after the first change. Change a row in the same change that edits its requirement, rule, story or test, and set Links checked when you re-check it. Before each release, re-check the rows not checked since the last one.

  7. 7

    Move to a tool when the sheet can't keep up

    When several teams edit it, the rows run into the hundreds, or an auditor wants each change's history, use a tool that keeps the links (below). The method stays the same.

A requirements traceability matrix template to copy

Make each field a spreadsheet column, in this order, or paste it into a Confluence page or a document as a table.

Template

REQUIREMENTS TRACEABILITY MATRIX: <project or system>
Kept by: <name>    Baseline: <document and version>    Updated: <date>

One row per requirement, in these eleven columns:
Requirement ID | Requirement | Type | Traces to | Source | Business rule IDs | Design or story | Test case IDs | Test result | Owner | Links checked

Requirement ID:     <FR1>, unique and never reused
Requirement:        <one requirement, in one sentence>
Type:               business | stakeholder | functional | non-functional | transition
Traces to:          <BR1>, the business or higher-level requirement it serves
Source:             <who>, <document or recording>, <section, timestamp or
                    transcript lines>, so anyone can reread the statement or
                    ask the person again
Business rule IDs:  <R1, R2> from the rule catalog, or none; when a policy
                    changes, filter on the rule to find every row it touches
Design or story:    <design element, story or ticket ID>
Test case IDs:      <T1, T2>, at least one per requirement
Test result:        passed | failed <defect ID> | not run, on <build>
Owner:              <who answers for it and approves changes>
Links checked:      <date its links and test result were last checked>

Add hazard and defect ID columns if your standard requires them.

Add a row, with the requirement cells left empty, for each story or test
that traces to no requirement.

For the rule catalog the rule IDs point to, see business rules examples and how to write them; for the document the requirements come from, the BRD template.

Where RuleFoundry fits

RuleFoundry helps with step 3 for business rules. It interviews the person who knows, or reads a recording, and writes the rules, each citing the transcript lines it came from, so the backward link exists from the start instead of being reconstructed later. The matrix itself, and every forward link to design, code and tests, stays with your team.

  • Each rule cites where it was said

    Each rule is in plain language, cites the transcript lines it came from and is tentative until the expert confirms it. Before a rule is kept, RuleFoundry checks that the lines it cites actually say it.

  • Open questions, listed

    Anything the expert did not settle is listed as a question, not filled in. Mark the requirements it affects as open, instead of testing them against a guess.

  • Disagreements kept, not settled

    Put the interviews and recordings about one process in a Project. When two sources disagree, the Project records both statements without choosing one, so the owner can settle it before the requirement is approved.

RuleFoundry does not build or keep a traceability matrix, and it does not link rules to designs, code or tests. Coding agents can read a Project's rules through RuleFoundry's MCP server. Review the rules before relying on them: the outputs page shows what a result contains, and the facts page lists the limits and prices.

See it run

The walkthrough film shows an interview inside ChatGPT. To try it on the rules behind your requirements, sign up and send an interview to the person who knows, or add RuleFoundry to ChatGPT (how) and say:

Use RuleFoundry to interview me about the business rules for approving expense reports, so each rule in our traceability matrix has a source.

When something else fits better

  • A spreadsheet in Excel or Google Sheets, for one team and a matrix small enough to re-check by hand; filters do the forward and backward checks.
  • Jira's requirements traceability matrix template, when the team plans its work in Jira. Atlassian's site says it links project requirements to tasks, test cases and deliverables throughout the project lifecycle.
  • A Jira test-management app such as Xray or Zephyr, when the tests live in Jira too. Xray's site describes test management inside Jira that links each requirement to its tests, runs and defects; SmartBear's calls Zephyr Jira-native test management with traceability across test cycles and results.
  • Jama Connect, for complex or regulated products. Jama's requirements traceability page describes Live Traceability, a continuously updated view that links requirements to risks, designs, tests and other artifacts, with traceability gap detection.
  • Siemens Polarion, for large, compliance-heavy development. Siemens' site describes Polarion as application lifecycle management (ALM) that keeps requirements, code and tests together, with change control on every requirement.
  • RuleFoundry, when the requirements depend on business rules still in people's heads, and you need each rule asked for and written down with the line where it was said, before it goes into the matrix.

Descriptions of other products, standards and papers come from their own websites and documentation (for Jama Connect, its requirements traceability page), checked on 2026-11-30. The expense system, its sources, stories and tests are made up.

Questions people ask

What is the purpose of an RTM?
To show coverage and the effect of a change. Read forward, it finds requirements with no design or test; read backward, it finds stories and tests no requirement asked for, and requirements nobody can source. When a requirement or rule changes, it lists every story and test to revisit.
Who creates the traceability matrix?
Usually the business analyst or whoever owns the requirements starts it and keeps it current; developers add the design and story links, and testers add the test IDs and results. Each requirement's owner confirms its source.
Does RuleFoundry build a traceability matrix?
No. It writes business rules, each citing the transcript lines it came from, and lists the open questions. You give the rules IDs in your rule catalog, put those IDs in the matrix, and link the design and tests yourself.
What does RuleFoundry cost, and is my content used for training?
Your first Extraction (one interview or recording) is free; Personal is $20 a month for unlimited Extractions, and Team is $20 per active member a month with a two-seat minimum. RuleFoundry does not use customer content to train models; only members of your workspace can read a Project's knowledge base.

Related: how to gather requirements, functional vs non-functional requirements, with examples, business requirements document (BRD) template, RuleFoundry facts.

What changed: 2026-11-30, first version.

Try it on one process

Your first Extraction is free.