Functional vs Non-Functional Requirements: The Difference With Examples
Functional requirements say what a system does; non-functional requirements say how well. Clear definitions, examples, a comparison table and common mistakes...
Published November 27, 2026
Every software project starts with requirements, and they come in two flavours. Functional requirements describe what the system does: "users can reset their password". Non-functional requirements describe how well it does it: "the reset email arrives within 30 seconds, 99.9% of the time". Teams usually write plenty of the first kind and almost none of the second, and that gap is where most architecture problems begin.
The concept
A functional requirement describes a behaviour: an input, a process, an output. It can be demonstrated in a test: given a registered user, when they request a password reset, then they receive an email with a single-use link. Functional requirements map naturally to features, user stories, API endpoints and UI screens.
A non-functional requirement (NFR), also called a quality attribute, describes a property of the system as a whole: performance, scalability, availability, security, usability, maintainability, compliance, cost. NFRs rarely map to a single feature. Instead they constrain how every feature is built. "The search API responds in under 200 ms at p95 with 1,000 concurrent users" affects database choice, caching, indexing and infrastructure.
The key insight is that architecture is driven mainly by non-functional requirements. Two systems with identical features, a to-do app for ten people and one for ten million, need completely different architectures. The features are the same; the quality attributes are not.
Side-by-side comparison
| Functional | Non-functional | |
|---|---|---|
| Answers | What does the system do? | How well does it do it? |
| Example | Users can upload a profile photo | Uploads up to 10 MB complete in < 3 s on 4G |
| Scope | A specific feature or behaviour | The whole system or many features |
| Verified by | Functional/acceptance tests | Load tests, security audits, monitoring, SLOs |
| If missing | Feature does not exist | Feature exists but is slow, insecure or unreliable |
| Drives | Features, UI, APIs | Architecture, infrastructure, technology choices |
The requirement families
A worked example: food delivery app
Here is the same product described both ways. Notice how the non-functional list is what tells an architect whether a single server and database will do, or whether the system needs queues, caches, multiple regions and strict security controls.
- Functional: customers browse restaurants near them, add items to a cart, pay, and track the courier on a map
- Functional: restaurants accept or reject orders; couriers receive and accept delivery jobs
- Non-functional: restaurant list loads in under 1 s at p95 for 50,000 concurrent users at dinner peak
- Non-functional: payment processing is PCI-DSS compliant; card data never touches our servers
- Non-functional: order placement available 99.95% of the time; no order is ever lost once confirmed
- Non-functional: courier location updates visible to customers within 5 seconds
How to write an NFR
- Name the quality attribute (performance, availability, security...)
- Pick a measurable metric (p95 latency, uptime %, RPO)
- Set a target number and the conditions (load, region, time)
- Decide how it is verified (load test, monitoring, audit)
- Record the trade-offs and the owner
Practical examples
User story with both kinds of requirement
Acceptance criteria cover the behaviour; the NFR covers the quality.
Story: As a shopper I want to search products so that I can find items quickly.
Acceptance criteria (functional):
- Searching "red shoes" returns products matching both words, ranked by relevance
- Results can be filtered by size and price
- Empty results show suggested categories
Non-functional:
- p95 search latency < 300 ms with 2,000 searches/second
- Index updated within 60 s of a product changeVague vs measurable
Rewrite every adjective as a number with conditions.
Vague: "The system should be fast and secure and always available."
Measurable: "Checkout API p99 < 800 ms at 500 req/s; 99.95% monthly availability;
all traffic TLS 1.2+; OWASP ASVS Level 2 verified before launch."NFRs as automated checks
A load test that fails the build when a latency NFR is violated (k6).
export const options = {
vus: 200, duration: '2m',
thresholds: { 'http_req_duration{endpoint:search}': ['p(95)<300'], http_req_failed: ['rate<0.001'] },
}Common mistakes
- Writing NFRs as adjectives ("fast", "scalable", "user-friendly") with no numbers.
- Leaving NFRs until after the architecture is built, when changing them is expensive.
- Treating every NFR as top priority; some trade off against each other and need ranking.
- Confusing constraints (must use PostgreSQL, must run on AWS) with quality attributes; record them separately.
- Never verifying NFRs after launch because nobody owns them.
Key takeaways
- Functional requirements describe what the system does; NFRs describe how well.
- Architecture is shaped mostly by non-functional requirements.
- Every NFR needs a metric, a target, conditions and a verification method.
- Capture both early and revisit them as the product grows.
FAQ
Is security functional or non-functional?
Mostly non-functional (encryption, audit, hardening), but specific security features like "users can enable two-factor authentication" are functional requirements.
Are business rules functional requirements?
Yes. Rules like "orders over ₹5,000 need manager approval" describe behaviour and are functional.
What are constraints?
Fixed decisions imposed on the project, such as a mandated cloud provider, budget, deadline or regulation. They limit design options but are not quality attributes themselves.