A software requirements specification (SRS) records what a system must do and how well, in statements a developer can build to and a tester can check. Write it before design and price are fixed, have the people who will use, build and test the software review it, and keep it current until the software is accepted.
What an SRS is for, and what it is not
The SRS describes the problem to solve: behaviour, data, interfaces and quality levels. It does not describe the design. NASA's guidance on writing requirements puts it as a rule: a requirement states what is needed, not how to provide it (NASA, appendix C). "Store orders in PostgreSQL" belongs in the SRS only as a constraint with a reason, such as an existing database the client must keep.
An SRS is also different from a statement of work. The statement of work is the commercial agreement for a project: deliverables, dates, acceptance and fees. The SRS is the detailed specification it points to, usually attached as a dated version. On an agile project, the SRS sits beside the backlog: the backlog orders the work, and the SRS holds the agreed scope, constraints, interfaces and quality requirements that do not fit inside a single user story.
IEEE 830, ISO/IEC/IEEE 29148 and this template
Some SRS templates online still cite IEEE 830. IEEE lists IEEE 830-1998 as a superseded standard, replaced by ISO/IEC/IEEE 29148:2011 (IEEE 830-1998). The current edition, ISO/IEC/IEEE 29148:2018, is an active standard that covers requirements engineering for systems and software and "defines the construct of a good requirement", its attributes and characteristics. IEEE also lists a revision project, P29148, in draft (IEEE SA).
This template follows a common SRS structure (introduction, overall description, specific requirements, verification) and does not reproduce either standard. If a contract requires conformance to 29148, buy the standard and map its information items to these sections.
Who writes it and who approves it
A business analyst or product owner usually drafts it. Users and subject experts supply the needs and the business rules. A technical lead checks that each requirement can be built within the constraints, and a tester checks that each one can be verified. The sponsor approves the baseline. For outsourced work, the client can write the first version so that every supplier prices the same thing; the chosen supplier then reviews it and raises questions before the contract is signed.
How to write a requirement someone can test
NASA's systems engineering handbook uses three words consistently: "shall" for a requirement, "will" for a fact or a statement of purpose, and "should" for a goal. Its checklists add the rules that matter most:
- One requirement per statement, each with its own ID. A sentence joined by "and" is often two requirements.
- No vague words. NASA's checklists name words to avoid, including "user-friendly", "easy", "flexible", "fast", "adequate", "as appropriate", "etc." and "and/or".
- A rationale for each requirement, including the assumptions behind it.
- A verification method: the requirement can be tested, demonstrated, inspected or analyzed.
- Best estimates over blanks. NASA prefers a best-estimate value marked "to be resolved" (TBR), with an owner and a date, to a bare "to be determined" (TBD).
| Weak | Testable |
|---|---|
| The search shall be fast. | The order search shall return results within 2 seconds for 95% of queries, with 50,000 orders stored and 20 concurrent users. |
| The portal shall be user-friendly. | A first-time tenant shall submit a maintenance request without help within 5 minutes, in 4 of 5 moderated test sessions. |
| The system shall support exports, etc. | The system shall export the filtered request list as a CSV file with the columns listed in section 4. |
| The system shall be secure. | The system shall require multi-factor authentication for every staff account. |
How to fill in each section
1, introduction. State the purpose, the readers and the scope. In the out-of-scope list, write down everything that has been discussed and excluded, so scope questions are settled before work starts. List the documents the SRS relies on with their versions, and explain the conventions (IDs, priority, verification codes).
2, overall description. Describe what the system replaces or connects to, the business objectives it serves, the classes of users with how often they use it, the operating environment and the constraints. Write assumptions as statements that could turn out false, because a false assumption is a change request.
3, functional requirements. Group them by feature or use case. For each, give an ID, the requirement, a priority (1 needed at launch, 2 needed later, 3 optional), a rationale and a verification method. This template avoids the Must, Should, Could, Won't scale on purpose: "should" already means a goal in the requirement text. Put business rules (who may approve what, limits, calculations) in their own table so they can change without rewriting features.
4, data. List the main entities, where each comes from, how long it is kept and how sensitive it is. If existing data moves to the new system, say what moves, from where and how the result is checked.
5, interfaces. For each connection to another system, state the direction, the data and format, the frequency and what happens when the other side fails. The system integration guide explains the patterns an interface requirement has to choose between.
6, non-functional requirements. NASA's software engineering handbook asks that each requirement in an SRS be specific, testable and traceable, and lists performance, security and privacy, interface and fault management among the requirement types to cover (NASA software engineering handbook). Give each a measure: a response time under a stated load, an availability target, the security controls, a recovery time. For accessibility, name the standard and level, such as WCAG 2.2 Level AA; W3C's current WCAG 2.2 Recommendation is dated 12 December 2024 (W3C). The WCAG compliance guide explains how conformance is audited.
7, transition. Write down migration, cut-over, training and support in the first weeks, so they are agreed before launch rather than discovered at it.
8, open issues. Every TBR value or unanswered question goes here with an owner and a due date.
9, traceability. Link each requirement to the objective it serves and the test that verifies it. A requirement with no objective is a candidate for removal; a requirement with no test cannot be accepted.
10, approval and change history. Record who approved which version, and every change after that.
A worked example
A 30-person property management firm takes maintenance requests by phone and email and wants a tenant portal. The first draft says: "Tenants can submit maintenance requests easily and staff are notified quickly." The SRS splits it into requirements:
- FR-101: The portal shall let a signed-in tenant submit a maintenance request with a category, a description of up to 2,000 characters and up to 5 photos of up to 10 MB each.
- FR-102: The system shall email the property manager assigned to the unit within 5 minutes of submission.
- FR-103: The portal shall show the tenant each request's status: received, scheduled or completed.
- NFR-5: The tenant pages shall conform to WCAG 2.2 Level AA.
The retention period for photos is marked TBR, owned by the operations manager, due before design sign-off. An assumption says the firm's accounting system can create work orders through its API. The supplier's review finds that the API can read units but cannot create work orders. IR-201 changes to a nightly CSV export, the change is logged as version 0.3, and the client approves it before the contract is signed.
Common mistakes
- Writing design choices as requirements without saying why they are constraints.
- Vague words: fast, easy, intuitive, secure, as needed.
- Several requirements in one sentence, so a test can half pass.
- Non-functional requirements missing, or written without a measure.
- No out-of-scope list.
- TBDs with no owner or date, which become surprises at acceptance.
- No IDs, so tests, defects and change requests cannot refer to a requirement.
- Treating the signed SRS as frozen and letting the code drift away from it.
Keeping it current
Approve a baseline version, then change it only through a logged change with a new version number. When a requirement changes, update its test and its trace in section 9 in the same change. At each release, check that the SRS still describes what the software does; a specification nobody trusts stops being read. The web development guide describes the stages of a build where the SRS is used and checked.
Related documents and reading
An SRS works with a statement of work (the commercial terms), a design document (how the system will meet the requirements), a test plan (how each requirement will be verified) and, once the system is live, a service level agreement for the running service. If the project replaces an existing system, add a data migration plan that names the checks behind section 4.