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?

A Software Requirements Specification (SRS) is a document that describes what a software system must do and the qualities it must have — its functions, constraints, interfaces and performance — so clients, developers, testers and managers share one agreed understanding before and during development.

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

TypeMeaningLibraryHub example
Business requirementWhy the organisation needs the systemReduce manual loan processing time by 50%
User requirementWhat users need to achieveA member wants to reserve a book online
Functional requirementA behaviour the system must performThe system shall allow members to search books by title, author or ISBN
Non-functional requirementA quality: performance, security, usability, reliabilitySearch results shall appear within 2 seconds for 95% of requests
ConstraintA limit on design choicesThe 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

CorrectReflects a real stakeholder need
UnambiguousOnly one interpretation — avoid “fast”, “user-friendly”, “etc.”
CompleteCovers all inputs, outputs and error cases
ConsistentNo conflicts with other requirements
VerifiableCan be tested — measurable numbers
FeasibleAchievable within budget and technology
TraceableHas 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)

IDRequirementPriority
FR-01The system shall allow a guest to register using name, email and password.Must
FR-02The system shall allow users to search books by title, author, ISBN or category.Must
FR-03The system shall allow a member to borrow up to 5 available books at a time.Must
FR-04The system shall set a loan period of 14 days and allow one renewal if no reservation exists.Must
FR-05The system shall let a member reserve a book that is on loan and notify them by email when it is returned.Should
FR-06The system shall calculate a fine of 0.50 per day for each overdue book.Must
FR-07The system shall allow librarians to add, edit and remove book records.Must
FR-08The system shall generate a monthly report of loans, overdue items and fines.Could

3.3 Non-functional requirements (extract)

NFR-01 Performance95% of search requests shall complete within 2 seconds with 500 concurrent users.
NFR-02 SecurityPasswords shall be stored using a salted, slow hashing algorithm (e.g. bcrypt or Argon2); all traffic shall use HTTPS.
NFR-03 AvailabilityThe system shall be available 99.5% of the time each month, excluding planned maintenance.
NFR-04 UsabilityA new member shall be able to borrow a book within 3 minutes without training.
NFR-05 AccessibilityThe 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 caseUC-03 Borrow Book
ActorMember (primary), Librarian (secondary)
PreconditionsMember is logged in, has fewer than 5 loans and no unpaid fines over 10.
Main flow1. 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 flow2a. Book unavailable → system offers Reserve (UC-05).
Exception3a. Loan limit reached → system shows an error message.
PostconditionBook 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 IDSourceDesign / moduleTest casesStatus
FR-03Librarian interview 12 MarLoanService.borrow()TC-031, TC-032Passed
FR-06Library policy docFineCalculatorTC-061 – TC-064In 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 returned

Regulated 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.

Continue Learning

Scroll to Top