Software Engineering · Software Requirements
Functional and Non Functional Requirements
Overview
Requirements engineering defines what a software system must do and the constraints under which it must operate.
This lesson separates functional requirements, which describe services and behaviour, from non-functional requirements, which describe quality attributes, restrictions, and standards.
The topic sits in the Software Requirements area of Software Engineering and is closely tied to the Software Requirements Specification (SRS), requirement validation, and requirement quality.
Before studying it, you should know the basic idea of a software lifecycle and the difference between “what the system must do” and “how well it must do it”. The exam repeatedly tests definitions, classification of statements, SRS quality attributes, and the difference between validation and verification.
Key concepts
- A functional requirement (FR) states a service the system must provide, a function it must perform, or a constraint on an existing function.
Example: “The system shall allow an authorised user to reset a forgotten password using a registered email address.” - A non-functional requirement (NFR) states a quality attribute, constraint, or standard that the system must satisfy.
It is often called a quality-of-service requirement. Example: “95% of page loads shall complete within 3 seconds when 1,000 users are concurrently active.” - A functional requirement can be expressed as a constraint on an existing function, not only as a new service. Example: “The system shall reject a withdrawal when the account balance is less than the withdrawal amount.”
- A user requirement is a high-level statement, usually in natural language plus simple diagrams, understandable to customers and end users.
A system requirement is a detailed, structured statement used by developers and often forming part of the contract. - A domain requirement is derived from the application domain rather than from the explicit wishes of users. It may be functional in form, but its origin is the domain.
Example: “The system shall calculate tax according to the prevailing national tax law.” - In the widely used Sommerville classification, NFRs are grouped into product requirements, organisational requirements, and external requirements.
- Product requirements: usability, efficiency/performance, space, reliability, availability, security, maintainability, portability, safety.
- Organisational requirements: delivery time, implementation technology, standards, process constraints.
- External requirements: legislative, regulatory, ethical, interoperability, and compliance requirements such as PCI DSS.
- A goal is a high-level, often vague wish such as “the system shall be user-friendly” or “the system shall be scalable”. A non-functional requirement is the measurable form of that goal, with metric, target, and measurement condition.
- SRS quality attributes conventionally include: correctness, completeness, consistency, unambiguity, verifiability, traceability, modifiability, and ranked importance.
Reliability is not a standard SRS document quality attribute; it is a product quality requirement. - An SRS is complete when all necessary requirements are stated without omission. It is consistent when no subset of requirements conflicts with another.
It is verifiable when every requirement can be checked by a cost-effective process. - Validation asks: “Are we building the right product?” It checks whether requirements and specifications reflect the real needs of users.
Verification asks: “Are we building the product right?” It checks consistency between requirements and design/implementation or between specifications and artefacts. - An SRS establishes a basis of agreement between client and supplier, provides a reference for validation of the final product, and is a prerequisite for high-quality software.
How it works
- Elicit requirements from users, documents, observation, interviews, and domain sources.
- Analyse and negotiate conflicting needs, priorities, and feasibility.
- Classify each requirement as functional or non-functional, and further as user/system/domain where relevant.
- Write measurable requirements: an NFR must state the metric, target, condition, and acceptance criterion; otherwise it remains a goal.
- Organise the SRS so that requirements are complete, consistent, unambiguous, verifiable, traceable, modifiable, and ranked.
- Validate requirements against real user needs, not merely against an earlier draft.
- Baseline and manage changes through change control and traceability.
A requirement such as “the system shall be scalable” is not yet testable.
It becomes an NFR when rewritten as: “The system shall support at least 1,000 concurrent users with 95% of page loads under 3 seconds on the specified deployment hardware.” This has a metric (concurrent users, load time), a target (1,000 users, 95%, 3 seconds), and a condition (specified hardware).
Drawing the diagram…
Formulas
-
Availability, using time units consistently:
-
where is mean time between failures and is mean time to repair. is a fraction; multiply by 100 for percentage.
-
Reliability under a constant failure rate:
-
where is the failure rate per unit time and is the mission time. Also, for constant failure rate, . Use hours as the unit if is in hours.
Worked examples
Example 1 — classification. “The system shall allow an authorised user to reset a forgotten password using a registered email address.”
- Identify the actor: authorised user.
- Identify the action/service: reset forgotten password.
- Identify the condition: using a registered email address.
This describes system behaviour, so it is a functional requirement. Final answer: functional requirement.
Example 2 — making an NFR verifiable. Rewrite “The system shall be scalable.”
- A scalable system is a goal, not a testable requirement.
- Choose measurable dimensions: concurrent users, response time, and deployment change.
- State the condition: “on the specified deployment hardware.”
Rewrite: “The system shall support at least 1,000 concurrent users with 95% of page loads under 3 seconds on the specified deployment hardware, and adding one application server shall require no change to application code.”
Final answer: the rewritten statement is a verifiable non-functional requirement.
Example 3 — match the list. Match A functional requirement, B performance requirement, C domain requirement, D user requirement with: i high-level statement understandable to users; ii must calculate tax according to national tax law; iii system shall let a member search the catalogue; iv 95% of search responses under 2 seconds.
- A is a service, so A–iii.
- B is a measurable performance quality, so B–iv.
- C comes from the application domain though functional in form, so C–ii.
- D is high-level and user-oriented, so D–i.
Final mapping: A–iii, B–iv, C–ii, D–i.
Example 4 — assertion and reason. Assertion: “The system shall be available 99.9% of the time” cannot be verified by inspecting source code alone. Reason: Availability is a runtime quality measured against operational and test data.
- Source code is static; it does not by itself prove runtime availability.
- Availability is measured over time, often using uptime and downtime records.
- The reason explains why the assertion is true.
Final answer: both assertion and reason are true, and the reason correctly explains the assertion.
Example 5 — numeric two-step. A system has MTBF = 990 hours and MTTR = 10 hours. A requirement demands 99.9% availability. Is the requirement met?
- .
- , which is less than .
Final answer: no, the requirement is not met.
Comparison
| Aspect | Functional requirement | Non-functional requirement |
|---|---|---|
| Central question | What service or behaviour? | How well, under what constraint? |
| Typical form | Actor does action; input produces output | Metric, target, condition, quality attribute |
| Example | “Customer can cancel an order before dispatch.” | “Responses shall be under 2 s for 95% of requests.” |
| Verification | Functional testing, scenarios, use cases | Measurement, monitoring, inspection, analysis |
| Effect | Defines system behaviour | Often shapes architecture and technology |
| If missing | Required behaviour is absent | System may work but be unacceptable |
| SRS quality attribute | Meaning |
|---|---|
| Correct | Every stated requirement is genuinely required by the system |
| Complete | All necessary requirements are included |
| Consistent | No subset of requirements conflicts with another |
| Unambiguous | Each requirement has only one interpretation |
| Verifiable | Each requirement can be checked cost-effectively |
| Traceable | Origin and impact of each requirement can be followed |
| Modifiable | Requirements can be changed without excessive ripple effects |
| Ranked | Importance and stability are stated |
| NFR group | Meaning | Examples |
|---|---|---|
| Product | Quality of the delivered product | Performance, reliability, availability, security, usability, maintainability, portability |
| Organisational | Constraints from the organisation or process | Delivery time, implementation standards, process standards |
| External | Constraints from outside the organisation | Legislation, regulatory compliance, ethics, interoperability, PCI DSS |
| Validation | Verification |
|---|---|
| “Are we building the right product?” | “Are we building the product right?” |
| Checks requirements against real user needs | Checks consistency with design, implementation, and specifications |
| Requirement validation, acceptance testing | Reviews, inspections, tests against specifications |
Revision summary
- FR = what the system does; NFR = how well or under what constraint.
- A goal is vague; an NFR is measurable.
- A functional requirement can also be a constraint on an existing function.
- A domain requirement may look functional but originates in the application domain.
- Consistency means no conflicts; completeness means no necessary requirement is missing.
- Verifiability means a cost-effective check exists for every requirement.
- Reliability is not an SRS document quality characteristic; it is a product NFR.
- Validation = right product; verification = product built right.
- Availability excluding scheduled maintenance differs from ordinary availability.
- Source code alone cannot prove runtime NFRs such as availability or response time.
- ; always state the time unit.
- NFRs often change architecture; removing an NFR can alter design and technology choices.
Previous-year exam insights
- Direct classification questions ask whether a statement is functional, non-functional, user, system, domain, performance, or compliance.
- Match-the-list questions commonly pair functional requirements, performance requirements, domain requirements, and user requirements.
- Statement I/II questions test whether removing an NFR can affect architecture, whether functional requirements also affect architecture, and whether vague NFRs are verifiable.
- Assertion–reason questions test runtime NFRs such as availability: correctness of both statements and whether the reason explains the assertion.
- Fill-in questions on SRS quality use standard wording: “no subset conflicts” means consistent; “checked by a cost-effective process” means verifiable.
- A common trap is to choose reliability as an SRS quality characteristic; standard SRS quality characteristics are document-centred, while reliability is a product quality.
- Another trap is mixing validation with verification; requirement validation compares documented requirements with real user needs.
- For availability questions, check whether the definition includes or excludes scheduled maintenance before deciding that two statements are equal.
Practice at PARIKSHA
You are ready for the PARIKSHA tests of this sub-topic when you can:
- classify any given requirement as functional or non-functional and justify the choice;
- distinguish product, organisational, and external non-functional requirements;
- rewrite a vague NFR into a measurable, verifiable requirement with metric, target, and condition;
- identify an SRS quality attribute from its standard definition;
- distinguish validation from verification and completeness from validity;
- match user, system, domain, functional, and performance requirements correctly;
- compute availability from MTBF and MTTR and compare it with a threshold;
- explain why a runtime NFR cannot be verified from source code alone;
- identify a domain requirement that looks functional in form;
- explain how an NFR can shape architecture or technology choice.
Attempt the PARIKSHA sub-topic test first, then the subject test.