Acceptance Criteria and User Stories: How to Write Them
Acceptance criteria are the conditions a piece of work must meet before the customer agrees it is finished. A good one is testable: two different people check it and get the same answer. A user story is a one-line description of a need, told as who wants what and why, and each story carries its own criteria. Agree both before the work starts, not after the results are in.
What are acceptance criteria?
Most arguments at the end of a project come from one sentence: "I thought it would be better than this." Acceptance criteria stop that argument before it begins. They turn a hope into a check. "The new booking page should be easy to use" is a hope. "A first-time user books a table in under three minutes without help" is a check, because you can time it and anyone running the test will agree on the result.
A useful test for any criterion: could two people run it separately and reach the same pass or fail? If not, it is still an opinion. Rewrite it until it is a number, a yes or no, or an observable event.
Given, when, then: a simple way to write them
One plain format for criteria is three short parts. Given describes the starting position, when describes what the user does, and then describes what must happen. For example: given a customer has chosen a free delivery slot, when they press confirm, then they see a confirmation page with a booking reference and receive the same reference by email.
The format forces you to be specific about the starting position, which is where most gaps hide. It also gives your tester a script to follow.
Quality expectations: the criteria nobody writes down
Features are easy to list. Quality is the part people forget, and it is often what the customer complains about. Put these five on the page for every project and give each a measure:
- Speed: how fast a page or process responds, for example the search result appears within two seconds.
- Access: who can use it, including people using a screen reader or a small phone.
- Security: who can see and change what, and how that is checked.
- Reliability: how often it may fail and how quickly it must be fixed.
- Support: who looks after it once the project team has gone.
Where the work handles personal data, the data protection rules form part of the quality expectation too, and the handover of documents can be a criterion in its own right: no handover file, no acceptance.
A worked example: setting the pass mark
Méabh runs a small Galway cycle-hire business and is having a booking tool built. She and the supplier agree a rule before any testing: all 10 critical tests must pass, and at least 90% of the 40 other test cases must pass.
- Work out the pass mark: 40 x 0.90 = 36 cases.
- Run the tests. All 10 critical tests pass. Of the 40 other cases, 34 pass.
- Express the result: 34 / 40 = 85%.
- Compare with the rule: 85% is below 90%, so the work is not accepted yet.
- Count the gap: 36 - 34 = 2 more cases need fixing.
Notice what made this calm. Nobody argued about whether 85% was "nearly there", because the line was drawn in advance. The supplier fixes two cases, the tests are run again, and the signature follows. If the rule had been agreed after the results, one side would always feel it had been moved.
How acceptance is decided, step by step
- Agree the criteria in writing with the person who will sign, before the work starts.
- Run the agreed tests and record every result, pass or fail.
- Log each failure on a defect list with an owner and a priority.
- Rank each defect: does it block acceptance, or can it wait for a later release?
- Where the rules allow it, use partial acceptance: accept the parts that pass and send the rest back for fixing.
- Sign against the result. A signature records a result; it is not a favour.
If a customer is asked to sign off something vague such as "easy to use", the right response is to ask for a measurable version, then sign against that. Declining to sign an untestable sentence is not obstruction; it protects both sides.
What is a user story?
A user story is one sentence in a fixed shape: as a [who], I want [what], so that [why]. For example: as a customer, I want to see which bikes are free on Sunday, so that I can plan the day. The "why" matters most, because it lets the team judge whether a different solution would meet the same need.
A good story is small enough to finish in one go, has a reason people recognise, and can be tested. If it is too big to test, split it. The team then works through the stories from the top of a ranked list, so the most valuable come first.
Tracing every story to a need
A traceability matrix is a simple grid that links each requirement to the need it serves and to the test that proves it. Read it forwards to see what a change would touch; read it backwards to see why a feature exists. An empty cell is a finding, not a formality.
Count the gaps. Suppose Méabh's list has 24 requirements. If 22 trace to a stated need, that is 22 / 24 = 91.7%, and 24 - 22 = 2 have no need behind them. If 21 have a test, that is 21 / 24 = 87.5%, and 24 - 21 = 3 have no test. Give each gap an owner. A feature with no need is usually gold plating and stays out; if it looks valuable, it goes through the change request process with a need attached.
Deciding which stories to build first is a choice between competing options, and our post on critical thinking for decisions gives a clear method for making that call.
Common mistakes
- A pass mark agreed after the test results are known.
- A defect list with no named owner.
- A traceability matrix built once and never updated.
- Stories that say what but never why.
- Quality expectations left out because they are hard to list.
Key points
- Write criteria two people can test the same way.
- Agree the rule before the tests are run.
- Every story says who, what and why.
- Every requirement traces to a need and a test; count the gaps and give each an owner.
For the wider basics, see project management basics. Our Strategic Management programme and the course Strategic Projects, Talent and Transformation show how to run projects like this yourself, so you can set the finish line clearly at the start of every piece of work.
Questions people ask
- What makes a good acceptance criterion?
- It is testable: two people can check it independently and reach the same pass or fail. It uses a number, a yes or no, or something observable, and it is agreed in writing before the work starts.
- What is the difference between acceptance criteria and a user story?
- A user story describes a need in one sentence: who wants what and why. Acceptance criteria are the specific conditions that prove that story is done. Each story usually has several criteria.
- What happens if the work fails the acceptance tests?
- Failures go on a defect list with an owner and a priority. Those that block acceptance are fixed and retested. If the agreement allows it, the parts that pass can be accepted while the rest goes back for fixing.
- What is a traceability matrix used for?
- It links every requirement to the need it serves and to the test that proves it. It shows features with no need behind them and requirements with no test, so you can fix the gaps before sign-off.