Sub topic 8
Writing functional requirements
A functional requirement states something the product must do. It is specific enough that an engineer can build it and a tester can check it. This chapter assumes you have a problem statement, goals, and a few user stories. It also assumes you know the PRD structure from earlier chapters. Here you turn those inputs into the requirements table in section 6.
What a functional requirement is
A functional requirement describes a behavior: given some situation, the system does something observable. Performance, security, and accessibility limits are non-functional requirements, covered in the next chapter.
User stories and requirements overlap but do different jobs.
| Item | Answers | Example |
|---|---|---|
| Goal | Why are we doing this? | Help admins share member data with finance |
| User story | Who wants what, and why? | As a team admin, I want to export the member list as CSV so I can share it with finance |
| Functional requirement | What must the system do? | FR-1: The system must let an admin export the member list as CSV |
| Acceptance criteria | How do we know it works? | Given I am an admin, when I choose Export, then a CSV with one row per member is downloaded |
The story explains the need. The requirement fixes the behavior. The acceptance criteria let someone decide pass or fail. A PRD that has only stories leaves engineers guessing about edge cases. One that has only requirements loses the reason behind them.
Where requirements come from
Derive requirements from the artifacts you already wrote:
- Take each user story and ask what the system must do for the story to be true.
- Take each goal and ask which behavior moves its metric.
- Take each non-goal and check that no requirement contradicts it.
- Walk through each use case step by step, including what happens when a step fails.
Every requirement should trace to a goal or story. If you cannot name which one a requirement serves, it is probably scope creep. If a goal has no requirement behind it, the plan does not yet deliver that goal.
Anatomy of a good requirement
A strong requirement has these properties:
- Identified. It has a stable ID such as FR-1, so people can refer to it in tickets and reviews.
- Singular. It states one behavior. "The system must export CSV and send an email" is two requirements.
- Unambiguous. Two readers reach the same understanding.
- Testable. Someone can write a check that passes or fails.
- Implementation-free. It says what, not how, unless a technical constraint is truly required.
- Prioritized. It carries a priority, such as MoSCoW, so scope decisions are visible.
Choose your modal verbs deliberately
Use a small, fixed vocabulary and define it once in the document. A common convention follows MoSCoW, which the example requirements below use:
| Word | Meaning | MoSCoW |
|---|---|---|
| must | Release is incomplete without it | Must |
| should | Important, but a workaround exists | Should |
| could | Nice to have if time allows | Could |
| will not | Deliberately excluded from this release | Won't |
Mixing "shall", "needs to", "ought to", and "is expected to" forces readers to guess how firm each one is. Pick words and keep them.
A worked example
Here is a requirements table for the CSV export story. It uses the format from the PRD skeleton.
| ID | Requirement | Priority |
|---|---|---|
| FR-1 | The system must let an admin export the member list as CSV. | Must |
| FR-2 | The export should include name, email, and role columns. | Must |
| FR-3 | The admin could choose which columns to include. | Could |
| FR-4 | The system will not support scheduled exports in this release. | Won't |FR-4 is a Won't requirement. It records a decision, so nobody assumes scheduled exports are coming. Stakeholders often raise such ideas in review, and writing them down saves repeated debate.
Note that FR-2 says "should" in its text but is marked Must. That is an inconsistency. In your own document, make the verb and the priority column agree. The corrected row is:
| FR-2 | The system must include name, email, and role columns in the export. | Must |Writing testable acceptance criteria
Attach acceptance criteria to each requirement or to each story. The Given/When/Then format keeps them concrete.
**User story:** As a team admin, I want to export the member list as a CSV file so that I can share it with finance.
**Acceptance criteria:**
- Given I am a team admin, when I choose Export, then a CSV file with one row per member is downloaded.
- Given I am not a team admin, when I open the member list, then the Export option is not shown.Each line is a separate check. The first covers the normal path. The second covers permissions, a case that is easy to forget. Add more lines for the cases below.
Edge cases to cover
For each requirement, ask these questions before you move on:
- Empty state. What happens when there are no members?
- Large input. What happens with 50,000 members? A limit, a background job, or an error?
- Permissions. Who can do this, and what do others see?
- Failure. What does the user see if the export fails midway?
- Special data. How are commas, quotes, and non-English characters handled in the file?
- Repeat actions. What if the user clicks Export twice?
You do not need a requirement for every imaginable case. Cover the ones that change what the user sees or what engineers build. Put the rest in open questions rather than silently skipping them.
Common errors and how to fix them
| Problem | Example | Fix |
|---|---|---|
| Vague adjective | The export should be easy to use | Say what "easy" means, such as one click from the member list, with no required settings |
| Unmeasurable word | The page must load quickly | Move to a non-functional requirement with a number, such as under 2 seconds at the 95th percentile |
| Compound requirement | The system must export, filter, and email the list | Split into FR-1, FR-2, and FR-3 |
| Solution disguised as requirement | Use a dropdown with a blue button | State the need, "the admin can choose the file format", and leave the control to design |
| Missing actor | Members are exported | Say who acts: "The system must let an admin..." |
| Passive voice hiding the owner | The file is generated | Name the system and the trigger |
| Hidden contradiction | FR-2 says all roles, FR-9 says only admins | Search for conflicts when you review |
Requirements versus design
Engineers and designers resent PRDs that dictate layouts or database choices, because that removes their room to find better solutions. Include a design detail only when it is a real constraint, such as a legal requirement or an integration with an existing system. Mark it as a constraint so readers know why it is there. Link to design files for everything else.
Organizing the requirements section
With more than about ten requirements, a flat table becomes hard to scan. Group rows under subheadings by capability or user flow, for example "Export", "Permissions", "Errors". Keep IDs continuous and never reuse them.
Three habits keep the table useful:
- Never renumber. If FR-3 is dropped, mark it "Removed" and keep the row. Tickets and review comments refer to these IDs.
- Add a trace column when the document is large. A column listing the related goal or story, such as "G1, US-2", makes coverage checks quick.
- Keep acceptance criteria next to the requirement. If they live in a separate document, they drift apart.
Requirements will change after review and during development. That is normal. The chapter on keeping the PRD current covers how to log those changes. For now, make sure each requirement is clear enough that a change is easy to spot.
A quick quality check
Before you share the draft, test each requirement against these questions:
- Does it name the actor and the behavior?
- Is it one thing, not several?
- Could a tester write a pass or fail check from it?
- Does it trace to a goal or story?
- Does it avoid contradicting a non-goal?
- Does its modal verb match its priority?
A requirement that fails any one of these is cheaper to fix now than after engineering has started.
Exercise
A draft PRD contains this requirement: "FR-5: The dashboard should load fast and let managers filter, sort, and export their team's tasks in a user-friendly way." List the problems with it and rewrite it as separate, testable requirements. You may use <placeholder> values for numbers you cannot know.
Show answer
Problems: (1) "fast" and "user-friendly" are untestable. (2) It bundles four behaviors (load, filter, sort, export) into one requirement. (3) The verb "should" gives no clear priority. (4) The actor "managers" appears but only as a possessive, and permissions are not stated. Rewrite: FR-5: The system must let a manager filter the task list by assignee and status. FR-6: The system must let a manager sort the task list by due date. FR-7: The system must let a manager export the filtered list as CSV. FR-8 (non-functional, moved to that section): The dashboard must load within <target seconds> for teams of up to <maximum team size>. Add acceptance criteria such as: Given I am a manager and I filter by status "Overdue", when the list refreshes, then only overdue tasks are shown. Add a permissions criterion: Given I am not a manager, when I open the dashboard, then team tasks are not shown.
Exercise
Why should a removed requirement stay in the table, marked "Removed", instead of being deleted and the later rows renumbered?
Show answer
Other documents refer to requirement IDs: tickets, test cases, and review comments. Renumbering makes those references point at the wrong requirement, and deleting the row hides the decision. Keeping the row with a "Removed" status preserves traceability and shows that the scope change was deliberate.