Crash Course · Beginner → Advanced
Software Requirements Specification (SRS): The Complete Crash Course
Learn what an SRS is, how requirements are gathered and written, the difference between functional and non-functional requirements, the standard SRS structure (IEEE 830 / ISO/IEC/IEEE 29148), and see a complete sample SRS for an online library system you can reuse as a template.
Beginner → Advanced14 min readInterview Q&A
- What Is an SRS?
- Types of Requirements
- Requirements Engineering Process
- Characteristics of Good Requirements
- Standard SRS Structure (IEEE 830 / 29148)
- Sample SRS: LibraryHub Online Library System
- Use Case Description Inside an SRS
- Requirements Traceability Matrix (RTM)
- SRS vs User Stories (Agile)
- Key Takeaways
- Interview Questions
- Exam Quick Revision
- Continue Learning
What Is an SRS?
An SRS describes what the system does, not how it is built (that belongs in the design document). It is the base for estimates, design, test cases and acceptance.
Types of Requirements
| Type | Meaning | LibraryHub example |
|---|---|---|
| Business requirement | Why the organisation needs the system | Reduce manual loan processing time by 50% |
| User requirement | What users need to achieve | A member wants to reserve a book online |
| Functional requirement | A behaviour the system must perform | The system shall allow members to search books by title, author or ISBN |
| Non-functional requirement | A quality: performance, security, usability, reliability | Search results shall appear within 2 seconds for 95% of requests |
| Constraint | A limit on design choices | The system shall run on the library’s existing PostgreSQL server |
Requirements Engineering Process
- Elicitation — gather needs: interviews, workshops, questionnaires, observation, document analysis, prototypes (see Business Analysis).
- Analysis — remove conflicts and duplicates, prioritise (MoSCoW), model with UML and ERD/DFD.
- Specification — write the SRS.
- Validation — reviews and walkthroughs with stakeholders; sign-off.
- Management — version control, change requests, traceability.
Characteristics of Good Requirements
| Correct | Reflects a real stakeholder need |
| Unambiguous | Only one interpretation — avoid “fast”, “user-friendly”, “etc.” |
| Complete | Covers all inputs, outputs and error cases |
| Consistent | No conflicts with other requirements |
| Verifiable | Can be tested — measurable numbers |
| Feasible | Achievable within budget and technology |
| Traceable | Has a unique ID linked to its source, design and tests |
Bad: “The system should be fast.” Good: “FR-SRCH-02: The system shall return search results within 2 seconds for 95% of queries with up to 500 concurrent users.” Use “shall” for mandatory requirements.
Standard SRS Structure (IEEE 830 / 29148)
The classic IEEE 830-1998 layout, updated by ISO/IEC/IEEE 29148, is used worldwide:
1. Introduction
1.1 Purpose
1.2 Scope
1.3 Definitions, acronyms and abbreviations
1.4 References
1.5 Overview
2. Overall Description
2.1 Product perspective
2.2 Product functions
2.3 User classes and characteristics
2.4 Operating environment
2.5 Design and implementation constraints
2.6 Assumptions and dependencies
3. Specific Requirements
3.1 External interface requirements (UI, hardware, software, communication)
3.2 Functional requirements
3.3 Non-functional requirements (performance, security, reliability, usability)
3.4 Data requirements
4. Appendices (models, glossary, traceability matrix)
Sample SRS: LibraryHub Online Library System
1.1 Purpose. This SRS specifies the requirements for LibraryHub v1.0, a web application that lets members search, borrow and reserve books and lets librarians manage the catalogue and loans.
1.2 Scope. Included: catalogue search, member accounts, loans, reservations, fines, email notifications, reports. Excluded: e-book reading, payment card processing (handled by an external gateway).
2.3 User classes. Guest (search only), Member (borrow, reserve, pay fines), Librarian (manage books and loans), Administrator (users, settings, reports).
2.4 Environment. Modern browsers (latest two versions of Chrome, Edge, Firefox, Safari); server on Linux with PostgreSQL.
3.2 Functional requirements (extract)
| ID | Requirement | Priority |
|---|---|---|
| FR-01 | The system shall allow a guest to register using name, email and password. | Must |
| FR-02 | The system shall allow users to search books by title, author, ISBN or category. | Must |
| FR-03 | The system shall allow a member to borrow up to 5 available books at a time. | Must |
| FR-04 | The system shall set a loan period of 14 days and allow one renewal if no reservation exists. | Must |
| FR-05 | The system shall let a member reserve a book that is on loan and notify them by email when it is returned. | Should |
| FR-06 | The system shall calculate a fine of 0.50 per day for each overdue book. | Must |
| FR-07 | The system shall allow librarians to add, edit and remove book records. | Must |
| FR-08 | The system shall generate a monthly report of loans, overdue items and fines. | Could |
3.3 Non-functional requirements (extract)
| NFR-01 Performance | 95% of search requests shall complete within 2 seconds with 500 concurrent users. |
| NFR-02 Security | Passwords shall be stored using a salted, slow hashing algorithm (e.g. bcrypt or Argon2); all traffic shall use HTTPS. |
| NFR-03 Availability | The system shall be available 99.5% of the time each month, excluding planned maintenance. |
| NFR-04 Usability | A new member shall be able to borrow a book within 3 minutes without training. |
| NFR-05 Accessibility | The web interface shall meet WCAG 2.1 level AA. |
3.1 Interfaces. Email via SMTP service; payment gateway REST API for fines; barcode scanner input at the desk.
Use Case Description Inside an SRS
| Use case | UC-03 Borrow Book |
| Actor | Member (primary), Librarian (secondary) |
| Preconditions | Member is logged in, has fewer than 5 loans and no unpaid fines over 10. |
| Main flow | 1. Member searches and selects a book. 2. System shows availability. 3. Member clicks Borrow. 4. System records the loan with a due date 14 days ahead. 5. System sends a confirmation email. |
| Alternate flow | 2a. Book unavailable → system offers Reserve (UC-05). |
| Exception | 3a. Loan limit reached → system shows an error message. |
| Postcondition | Book status = On loan; member loan count +1. |
The same use case is drawn visually in the UML use case diagram.
Requirements Traceability Matrix (RTM)
An RTM links each requirement to its source, design element and test cases, so nothing is missed and changes can be assessed.
| Req ID | Source | Design / module | Test cases | Status |
|---|---|---|---|---|
| FR-03 | Librarian interview 12 Mar | LoanService.borrow() | TC-031, TC-032 | Passed |
| FR-06 | Library policy doc | FineCalculator | TC-061 – TC-064 | In progress |
SRS vs User Stories (Agile)
In Agile teams, requirements often live as user stories in a backlog:
As a member, I want to reserve a book that is on loan,
so that I can borrow it as soon as it is returned.
Acceptance criteria (Given–When–Then):
Given the book is on loan
When I click Reserve
Then I am added to the reservation queue
And I receive an email when the book is returnedRegulated or contract projects (banking, health, government) still need a formal SRS. Many teams use a light SRS for scope and non-functional requirements plus user stories for detail.
Key Takeaways
- SRS = agreed description of what the system must do.
- Functional = behaviour; non-functional = qualities.
- Elicit → analyse → specify → validate → manage.
- Good requirements are unambiguous, verifiable and traceable; use “shall”.
- Structure: introduction, overall description, specific requirements, appendices.
- RTM links requirements to design and tests.
Interview Questions
What is an SRS?
A document that specifies what a software system must do and the qualities it must have, agreed by stakeholders as the basis for design, development and testing.
What is the difference between functional and non-functional requirements?
Functional requirements describe system behaviours; non-functional requirements describe qualities such as performance, security, usability and reliability.
What are the main sections of an IEEE SRS?
Introduction, overall description, specific requirements (interfaces, functional, non-functional, data) and appendices.
What makes a requirement good?
It is correct, unambiguous, complete, consistent, verifiable, feasible and traceable.
Rewrite “the system should be fast” as a good requirement.
For example: the system shall return search results within 2 seconds for 95% of queries with up to 500 concurrent users.
What is a requirements traceability matrix?
A table linking each requirement to its source, design components and test cases to ensure coverage and support change analysis.
Who uses the SRS?
Clients for agreement, project managers for estimates, designers and developers for building, testers for test cases and maintainers later.
Is an SRS needed in Agile?
Agile teams often use user stories instead, but a light SRS is still useful for scope, non-functional requirements and regulated projects.
Exam Quick Revision
- SRS = what the system must do (not how).
- Business, user, functional, non-functional, constraints.
- Elicit → analyse → specify → validate → manage.
- Good: unambiguous, verifiable, traceable; “shall”.
- IEEE 830 / ISO 29148 structure.
- Use case: actor, preconditions, main flow, alternates, postconditions.
- RTM: requirement ↔ design ↔ test.


