Functional vs Non-Functional Requirements Explained with Examples
When a team builds a website, an app or a new internal process, the first list they write is what it must do. The second list, the one that is often forgotten, is how well it must do it. A booking system that lets every customer choose a time but takes 20 seconds to load, or leaks their data, has failed all the same. This post explains the two kinds of requirement, how to write each so it can be tested, and the privacy and speed points that catch small businesses most often.
What a requirement is
A requirement is a statement of what a service must do or be. A good one is read the same way by two different people. A vague one lets everyone fill the gap differently, and the argument comes later, when it is expensive. Clear requirements stop the argument early.
Two kinds of requirement
- Functional requirement: what it does. "A customer can choose an appointment time." "The system sends a confirmation email."
- Non-functional requirement: how well it does it. Speed, availability, security, privacy, accessibility, how many users it can handle, how fast you can get support.
A system that does everything but does it slowly still fails. Keep separate lists, or separate cards, so that neither kind is forgotten. In practice the functional list is usually written by the people who use the thing, while the non-functional list needs someone to ask about it on purpose.
What makes a requirement good
- One idea only. If there is an "and" in the middle, split it into two.
- Must, not should. "Should" leaves room to skip it. Use "must" for what is required.
- Testable. You can answer yes or no. If you cannot test it, you cannot sign it off.
- Linked to a need. Trace it back to the problem it helps solve (see interviews and traceability).
- No solution hidden inside. Say what, not which tool.
Compare these two lines for a booking service for a physiotherapy clinic run by Clíona:
- Vague: "The booking page must be fast and user-friendly."
- Testable: "The booking page must load in under 2 seconds on a mobile phone on a normal 4G connection, and a first-time user must be able to book an appointment in under 3 minutes."
The second can pass or fail. The first cannot. Words like "fast", "easy" and "user-friendly" with no number are the most common cause of disputes at handover.
Turning quality into numbers
Each non-functional quality needs a number with a test and an owner. Availability is a good example. Suppose Clíona asks for the booking service to be available 99.5% of the time in a 30-day month. That month has 30 x 24 x 60 = 43,200 minutes. The permitted downtime is 0.5% of that, which is 216 minutes, or 3.6 hours. Now the supplier and the clinic know exactly what a breach looks like. If she asks for 99.9%, the allowance falls to about 43 minutes, and the price will usually rise, so the number is a business decision, not just a technical one.
Privacy and data: collect less
Privacy is a non-functional requirement that carries legal weight. Write it in from the start, not after launch. Good habits for the requirement list:
- Collect only the data you need, and say why you need it.
- Keep it only for a stated time.
- For high-risk processing, carry out a data protection impact assessment (DPIA) first.
A booking form that asks for a date of birth "just in case" is a risk with no benefit. Each field should trace to a need. Our guide to GDPR for small businesses covers the wider rules.
Cookies: ask first
Requirements for websites should say that consent is obtained before non-essential cookies are set. Analytics cookies need consent too. A pre-ticked box is not consent. The person should get clear information and a choice by category. A line such as "No analytics cookie is set until the visitor has chosen Accept" is a testable requirement: you can open the page in a clean browser and check. See cookie consent rules in Ireland for the detail.
If a breach happens
A personal data breach where there is a risk to people must be reported to the Data Protection Commission within 72 hours of becoming aware of it. The clock starts when you become aware, so decide in advance who makes the call. Where the risk to people is high, the people affected must be told too, and it is good practice to keep an internal record of every breach, even when there is no risk. The requirement list can include this: "The system must keep an access log so that we can tell what data was involved within 24 hours." Read more in data breach notification in Ireland.
Digital quality is also a legal matter
Consumers have rights where digital content or a digital service does not match what was promised. That is another reason to write the quality bar down: the description you publish becomes the standard the service is held to. Rules change, so check the current position before you launch.
Security and support: more qualities to put in numbers
Security and support are easy to leave vague, so give each a figure and a check. "The system must be secure" cannot be tested. These can: "Every staff login must need a password and a second step." "A user who enters the wrong password five times must be locked out for 15 minutes." "A support request marked urgent must get a first reply within 2 working hours, Monday to Friday." Each line has one idea, uses "must" and can be marked pass or fail. If you are buying the service from a supplier, put these lines into the contract or the order, so the supplier is held to them and the clinic does not have to argue about what "secure" was meant to mean.
A quick way to find missing qualities is to walk through the list: speed, availability, security, privacy, accessibility, capacity and support. Ask for each one, "Does this matter to our users or to the law, and what number would show it is good enough?" If the answer is nothing, write down that you decided it does not matter, so nobody assumes you forgot.
A launch example
Suppose the launch is on Friday and the privacy review has not been done. Treat the review as part of "ready". Move the date, or cut the data you collect. A launch that is reversed later costs far more than a delay of a week.
What catches teams
- "Fast" or "secure" with no number.
- Collecting data just in case.
- Setting cookies first and asking questions after.
- Privacy review as paperwork after launch.
- Two requirements in one sentence, or "should" where you mean "must".
Learn more
These skills are part of our Strategic Management programme. The course Digital Strategy, Data Analytics and Cybersecurity is the closest fit for the technology side.
Questions people ask
- What is the difference between functional and non-functional requirements?
- Functional requirements say what a system does, such as letting a customer pick an appointment time. Non-functional requirements say how well it does it, such as speed, security, privacy, accessibility and availability.
- How do I make a non-functional requirement testable?
- Give it a number, a way to test it and an owner. Instead of fast, write that the page loads in under 2 seconds on a mobile phone, and say who will check it and how often.
- When must a data breach be reported in Ireland?
- Where there is a risk to individuals, a personal data breach must be reported to the Data Protection Commission within 72 hours of becoming aware of it. Where the risk is high, the people affected must also be told.
- Why should privacy be written into the requirements early?
- Collecting less data, setting cookies only after consent and planning breach reporting are far cheaper to build in at the start than to fix after launch. A late privacy review can force a delay or a redesign.