How to Write Acceptance Criteria: Formats, Examples and Checklist
Acceptance criteria define when a user story is complete and give developers and testers something concrete to verify. This guide covers both common formats with templates, walks through a full example and ends with a checklist for your own criteria.
Acceptance criteria define when a requirement is met
Acceptance criteria are testable conditions a user story has to meet before the product owner or business side accepts it. They describe the expected behavior from the user's point of view, including edge cases and error cases. With them in place, developers, testers and stakeholders agree before work starts on what a finished result looks like.
Ron Jeffries called this part of a story "Confirmation" in 2001. In his description, the customer defines the acceptance tests that show the story has been implemented correctly. In his 2006 article introducing Behaviour-Driven Development, Dan North wrote that a story's behavior is simply its acceptance criteria. If the system meets them, it behaves correctly.
Acceptance criteria do three jobs. Before development, they reveal whether everyone understands the story the same way. During estimation, they show the team where the effort hides, because every edge case is work. After development, they are the basis for testing and sign-off.
Acceptance criteria belong mainly to user stories. An epic has success criteria instead, which measure whether the initiative reached its goal. A task also needs a verifiable outcome. A bug report states the expected behavior that should hold once the fix is in.
Two formats: rule list and scenario
You can write acceptance criteria as a list of rules or as scenarios in the Given/When/Then pattern. Both are common. Many teams use both within a single story.
Rule-oriented: a checklist of statements
A rule list contains short statements that each pass or fail. This format suits input fields, limits, permissions and display rules, where no sequence of steps needs describing. Here is an example from an online store where customers redeem a coupon code:
- The "Coupon code" field appears in the cart below the subtotal.
- A valid code reduces the total by the coupon's amount or percentage.
- Customers can apply one code per order.
- An expired code is rejected, and the message next to the field shows the expiration date.
- The discount never exceeds the merchandise total. Shipping costs still apply.
Scenario-oriented: Given/When/Then
The Cucumber documentation for the Gherkin language defines the three parts of a scenario like this:
- Given describes the starting context, putting the system in a known state before anything happens.
- When describes the event or action, triggered by a person or by another system.
- Then describes the expected outcome, something you can observe from outside the system.
Each scenario covers exactly one case. Add further conditions or outcomes with "and." Cucumber recommends three to five steps per example, because longer scenarios lose their value as documentation. Scenarios fit workflows with states, such as approvals, bookings or status changes. Teams that automate their tests can turn them into test cases almost word for word. The Gherkin guide goes into more detail.
Scenario <short name of the case>
Given <starting context>
When <action or event>
Then <observable outcome>
Writing acceptance criteria in five steps
Start with the normal case, then look for everything that could go differently. Edge cases only become visible once the normal case is settled.
- Describe the happy path: your first criterion states what happens when everything goes as planned.
- Find the limits: values, deadlines, quantities or states constrain almost every feature. Each limit becomes a criterion.
- Add the error cases: further criteria state what happens with wrong, empty or duplicate input and when the user lacks permission.
- Make outcomes observable: every Then states what a person or a connected system sees or receives. Internal state such as a database record stays out.
- Review them together: the product owner, developers and testers read the criteria together before the story enters a sprint. Settle any open questions before work starts.
A good example from HR
At a mid-sized company, employees request time off by email and HR enters the days by hand. This story moves the request into the existing employee portal.
Title Request time off in the portal
As an employee, I want to request time off in the portal so that my manager can decide faster and I can always see how many days I have left.
Acceptance criteria
- Scenario submit request: Given the employee has 12 days of PTO left, when she requests 5 working days, then her manager receives a notification and the request shows as "Pending."
- Scenario approval: Given a pending request, when the manager approves it, then the remaining balance drops to 7 days and the employee receives a confirmation email.
- Scenario insufficient balance: Given the employee has 3 days of PTO left, when she requests 5 days, then the portal rejects the request and shows the available balance.
- Scenario public holiday: Given the requested period includes a public holiday, when the employee submits the request, then the portal does not count the holiday as a PTO day.
- Scenario rejection: Given a pending request, when the manager rejects it, then she has to enter a reason and the employee sees that reason on the request.
Every criterion uses concrete values, so a tester can walk through it without asking anyone. The happy path comes first. It is followed by approval as the second step of the workflow, a limit on the balance, a holiday rule and the rejection path. No line prescribes how the portal is built.
A weak example and what it lacks
Title Time off request
As a user, I want to request time off.
Acceptance criteria
- Time off can be requested
- The interface is intuitive
- Table vacation_requests has been created
- Everything is tested
The first criterion restates the story and says nothing about when it is complete. "Intuitive" can't be verified because there is no observable outcome. The database table is a technical solution and, if it belongs anywhere, belongs in a task under the story. "Everything is tested" applies to every story the team delivers, so it goes in the Definition of Done. Missing entirely are approval, the insufficient balance case, public holidays and rejection. Those cases drive most of the effort.
How many acceptance criteria a story needs
Three to six acceptance criteria per user story is typical. With fewer than three, edge cases and error cases are usually missing. With well over six, the story is often too big and worth splitting, for instance by turning each business rule into its own story. The INVEST guide helps with that call.
Treat the number as a guide. What counts is that every behavior the business wants to check at sign-off appears in exactly one criterion.
Who writes acceptance criteria and when
The product owner is usually responsible, because they represent the business side. They often draft the criteria alone or with someone from the business. Developers and testers then add the cases nobody else thought of. Testers tend to spot limits and error cases, while developers notice dependencies on other systems.
The criteria should be ready before the team commits to the story in sprint planning. Criteria written months ahead often go stale, because the story changes during backlog refinement. Criteria written during the sprint leave the team estimating without a basis. Many teams draft them once a story moves into the next two sprints and sharpen them during refinement.
Acceptance criteria and Definition of Done differ in scope
Acceptance criteria apply to a single story, while the Definition of Done applies to every story a team delivers. The 2020 Scrum Guide describes the Definition of Done as a formal description of the state of the Increment when it meets the quality measures required for the product. A backlog item that doesn't meet it can't be released or even presented at the Sprint Review. The Scrum Guide doesn't mention acceptance criteria. They come from the practice of Extreme Programming and Behaviour-Driven Development.
| Acceptance criteria | Definition of Done | |
|---|---|---|
| Applies to | one story | every story |
| Describes | business behavior | quality and process |
| Set by | product owner with team | Scrum team or organization |
| Example | Holidays don't count as PTO | Code has been reviewed |
A story is done when it meets both its acceptance criteria and the Definition of Done. That is why general items such as "tests run automatically" or "documentation is updated" don't need repeating in every story.
Common mistakes
- Restating the story: "Time off can be requested" adds nothing.
- Vague adjectives: "fast," "easy" or "intuitive" with no number or observable outcome.
- Prescribing the solution: a dropdown menu or an API endpoint in the criteria.
- Happy path only: limits and error cases are missing.
- Definition of Done items in every story: they belong in one shared list.
- Overloaded scenarios: one scenario checks several things at once and runs to ten steps or more.
- Criteria written late: they appear during development, after the team has already estimated.
Checklist
Before a story goes into a sprint, check its criteria against this list:
- Each criterion can be answered with yes or no.
- The happy path comes first.
- At least one criterion covers a limit and one covers an error case.
- Every outcome is observable from outside the system.
- Concrete values appear wherever numbers, deadlines or quantities matter.
- No criterion names a technical solution.
- The story has three to six criteria.
- Nothing repeats what the Definition of Done already covers.
- The product owner, developers and testers have read the criteria and understand them the same way.
Write and check acceptance criteria with AI
The free tool on this site helps you write a user story together with its acceptance criteria. You describe what you need in your own words. When details are missing, the AI asks follow-up questions and explains why it needs each answer. It then writes the criteria as a numbered list (AC 1, AC 2 and so on) that covers edge cases and error cases. It then checks the story against the six INVEST criteria. Anything the AI added on its own is listed separately so you can review it. Create a ticket with AI
Frequently asked questions
What are acceptance criteria in simple terms?
Acceptance criteria are the conditions that tell everyone a user story is finished. They describe what a user can do once the story ships and what happens in edge cases. Each criterion either passes or fails.
How do you write acceptance criteria in Given/When/Then format?
Given sets the starting context, When names the action and Then states the observable outcome. For example: Given the employee has 3 days of PTO left, when she requests 5 days, then the portal rejects the request. Add further conditions or outcomes with "and."
How many acceptance criteria should a user story have?
Three to six is typical. Fewer usually means edge cases are missing. Many more usually means the story should be split.
Who writes acceptance criteria in agile?
The product owner is usually responsible. They work out the details with the business side, developers and testers, because each group sees different cases.
What is the difference between acceptance criteria and Definition of Done?
Acceptance criteria describe the business behavior of one story. The Definition of Done applies to all stories and sets quality standards such as code review or automated tests. A story is done when it meets both.
Are acceptance criteria the same as acceptance tests?
Criteria state what must be true. An acceptance test checks a criterion against a specific case, either by hand or automatically. Given/When/Then scenarios sit close to tests, because each one already describes a specific case.
Sources
- Ron Jeffries: Essential XP: Card, Conversation, Confirmation (2001)
- Dan North: Introducing BDD (2006)
- Cucumber: Gherkin Reference
- Ken Schwaber and Jeff Sutherland: The Scrum Guide (2020)
- Agile Alliance: Given When Then
Last updated: