Sub topic 9
Capturing non-functional requirements
This chapter assumes you can write a problem statement, goals, and functional requirements with IDs and priorities, as covered in earlier chapters. It shows how to capture the qualities a feature must have, beyond what it does.
What non-functional requirements are
A functional requirement says what the system does: "The system must let an admin export the member list as CSV." A non-functional requirement (NFR) says how well it must do that, or under what conditions. Examples are how fast the export finishes, who may run it, and how much data it must handle.
NFRs are often called "quality attributes" or "constraints". In a PRD they sit in the Requirements section, next to the functional requirements, and they use the same ID, priority, and acceptance-criteria format.
Teams skip NFRs because they feel obvious until they fail. A feature that works but takes 40 seconds to load, leaks data to the wrong user, or breaks for screen-reader users is not done. Engineers also make real design choices based on NFRs. A page that must handle 10 users and a page that must handle 100,000 are built differently.
The common categories
Use a checklist so you do not rely on memory. These categories cover most PRDs.
| Category | Question it answers | Example |
|---|---|---|
| Performance | How fast must it respond? | Export of 10,000 members completes in under 30 seconds. |
| Scalability | What load or data size must it handle? | Supports teams of up to 50,000 members. |
| Availability and reliability | How often must it work, and how does it fail? | A failed export shows an error and can be retried without duplicates. |
| Security | Who may do what, and how is data protected? | Only team admins can export. The file link expires after 24 hours. |
| Privacy and compliance | Which laws or policies apply? | Exports follow the company's data-retention policy. |
| Accessibility | Who must be able to use it? | The Export flow meets WCAG 2.2 level AA. |
| Usability | How easy must it be to learn? | A first-time admin completes an export without help. |
| Compatibility | Which platforms and versions? | Works in the two latest major versions of supported browsers. |
| Observability | How will we know it works? | Export success and failure counts are logged and visible on a dashboard. |
| Localization | Which languages and formats? | Column headers appear in the admin's language. |
Not every category applies to every feature. For each one, decide whether it matters, and if it does not, move on. Writing "Not applicable: no personal data is handled" is a useful decision to record, because a reviewer can challenge it.
Why "fast" and "secure" are not requirements
The most common error is writing a quality as an adjective. "The export must be fast" cannot be tested. Two people will disagree about whether 12 seconds is fast, and engineers cannot tell when to stop optimizing.
A usable NFR has four parts:
- The quality. For example, response time.
- A measurable threshold. A number with a unit.
- The conditions. The load, data size, device, or environment under which the threshold applies.
- How it is measured. The tool, test, or data source.
Compare these:
| Weak | Stronger |
|---|---|
| The export must be fast. | For a team of 10,000 members, 95% of exports complete within 30 seconds, measured in a load test on the staging environment. |
| The page must be secure. | Only users with the admin role can call the export endpoint. Other roles receive a 403 response, verified by automated authorization tests. |
| The system should be reliable. | The export service has 99.9% monthly availability, measured by the uptime monitor. |
The "95% within 30 seconds" form uses a percentile. An average hides slow cases: if most exports take 2 seconds and a few take 5 minutes, the average still looks fine. Percentiles such as p95 (95% of requests are at or under this value) describe what real users experience.
Where thresholds come from
Do not invent numbers to look precise. Good sources are:
- Current measurements. If search takes 800 ms today, "no slower than today" is a defensible NFR.
- User research. What delay do users tolerate before they give up?
- Contracts and regulations. A service-level agreement or a legal rule may fix the number for you.
- Engineering input. Ask what is realistic, and what it costs to go from 99.9% to 99.99%.
- Capacity forecasts. Expected users, data volume, and growth over the next year.
If you do not have a source yet, write a placeholder and add it to Open questions: "Target: <to be agreed with engineering>." An honest gap is better than a made-up number that becomes a commitment.
Writing NFRs in the PRD
Give NFRs their own ID prefix so they are easy to find and reference. Keep the same priority scheme you use for functional requirements.
| ID | Requirement | Priority | Acceptance criteria |
|---|---|---|---|
| NFR-1 | For teams of up to 10,000 members, 95% of CSV exports complete within 30 seconds. | Must | Load test on staging shows p95 of 30 seconds or less at 10,000 members. |
| NFR-2 | Only users with the admin role can start an export. | Must | Automated tests confirm other roles receive a 403 response. |
| NFR-3 | The export file link expires 24 hours after creation. | Should | Requesting the link after 24 hours returns an "expired" message. |
| NFR-4 | The Export control meets WCAG 2.2 level AA. | Must | Accessibility audit finds no level A or AA failures on the Export flow. |
| NFR-5 | Export successes and failures are logged with team ID and duration. | Should | Logs show an entry for each export attempt in staging. |Two habits keep this table useful. First, link an NFR to the functional requirement it constrains, for example "applies to FR-1". Second, give every NFR an acceptance criterion that a tester can pass or fail, just as you do for user stories.
Connect NFRs to goals and metrics
NFRs should trace back to a goal. If a goal is "Admins can share the member list with finance without asking engineering," then a 30-minute export violates the goal even though the feature technically works. Stating that link helps reviewers see why the threshold matters.
NFRs and success metrics are different. A success metric measures whether the product achieved its purpose after launch, such as adoption. An NFR sets a quality bar the feature must meet at release. Some measurements serve both, such as error rate, so label each by its role.
Trade-offs between NFRs
NFRs compete. Stronger security can slow the user down. Higher availability costs more. Faster responses may require caching, which can show stale data. Raise these conflicts in the PRD instead of leaving engineers to resolve them silently.
A practical approach:
- List the NFRs that appear to conflict.
- State which one wins and why, using the goals as the tie-breaker.
- Record the decision in the decisions log or Open questions.
For example: "Export data may be up to 5 minutes old (NFR-6) so that exports do not slow the live member list (NFR-1). Admins who need current data can re-run the export."
The following diagram shows how an NFR moves from a vague idea to a tested requirement.
Common errors and edge cases
- Adjectives instead of numbers. "Quick", "secure", and "scalable" are not testable. Replace each with a metric and a threshold.
- Missing conditions. "Loads in 2 seconds" means little without the device, network, and data size. State them.
- Gold-plating. Asking for 99.99% availability on an internal admin tool adds cost without value. Match the target to the user need.
- NFRs hidden in prose. If a quality appears only in the problem statement or a design note, engineers may miss it. Put it in the requirements table.
- Treating everything as Must. If every NFR is a Must, none is prioritized. Use the same MoSCoW discipline as for functional requirements.
- No way to verify. A requirement you cannot measure before release cannot gate the release. Name the test or the monitor.
- Forgetting existing standards. Your organization may already have security, accessibility, or logging standards. Reference them instead of rewriting them: "Follows the company API security standard." Check the reference stays current.
- Late discovery. Security and privacy reviews can take weeks. Ask early which reviews apply, and put them in the release plan and dependencies.
Review checklist
Before sending the PRD for review, check each NFR against these questions:
- Does it name a quality, a number, the conditions, and the measurement?
- Does it trace to a goal or a functional requirement?
- Does it have a priority and an acceptance criterion?
- Is the source of the number known, or is the gap listed in Open questions?
- Does it conflict with another NFR, and is the trade-off recorded?
Exercise
Rewrite this requirement so it is testable: "The member list page should load quickly and be secure." Produce at least two NFRs with ID, threshold, conditions, and how each is measured. Use placeholders for any number you cannot know.
Show answer
One possible answer. NFR-1: For a team of up to <agreed maximum> members on a standard broadband connection, 95% of loads of the member list complete within <agreed time> seconds, measured by real-user monitoring over a 7-day window. NFR-2: Only authenticated users who belong to the team can view its member list. Requests from other users receive a 403 response, verified by automated authorization tests before release. The key points are that "quickly" becomes a percentile with a threshold and conditions, "secure" becomes a specific access rule with a test, and unknown numbers are placeholders listed in Open questions instead of guesses.
Exercise
A reviewer says, "We need 99.99% availability for the export feature." Name two questions you would ask before accepting this as a Must NFR.
Show answer
Ask what user or business need requires it, for example whether a delayed export has a cost to the user or a contract penalty. Ask what it costs engineering to move from the current availability (or from 99.9%) to 99.99%, and whether the cost is justified against the goal. Other valid questions: how availability will be measured, and whether a lower target with easy retry meets the need.