Acceptance criteria examples: formats, a template, and writing them from business rules
Updated · By Adam Polak, founder
Acceptance criteria are the conditions a user story or feature must meet to be accepted, written so a tester can say pass or fail. They come in two common formats: a rule-oriented checklist, such as “an order whose merchandise subtotal is $50.00 or more ships free by standard shipping”, and scenario-oriented Given/When/Then, one example per scenario. The hard part is the boundaries and exceptions, which come from the business rules: ask the person who owns the decision, map rules and examples as a team in a workshop such as Example Mapping, or have RuleFoundry interview that person and capture the rules, each linked to where it was said, so your team can write the criteria from them.
Acceptance criteria examples by domain
Jump to the acceptance criteria template. Eight made-up stories, one per domain, each with criteria a tester can mark pass or fail. Four use a checklist and four Given/When/Then; wherever a rule has a threshold, one criterion sits exactly on it.
| Example | User story | Acceptance criteria |
|---|---|---|
| Login: password reset | As a member who forgot my password, I want a reset link by email, so that I can get back in without calling support. | (1) A reset link works once, up to and including 60 minutes after it is sent; a second use, or a use at 60 minutes and 1 second, shows “This link has expired” and offers a new one. (2) A request for an email address with no account shows the same message as for one with an account: “If an account exists for this address, we've sent a link.” (3) A new password of 15 characters is accepted unless it is on the list of common or breached passwords; one of 14 is refused with “Use at least 15 characters”. |
| Checkout: free shipping | As a shopper, I want to know when my order ships free, so that I know what I'll pay. | (1) An order whose merchandise subtotal is $50.00 or more ships free by standard shipping. (2) At $49.99, standard shipping is charged, and the cart shows “Add $0.01 for free shipping”. (3) Express shipping is charged at any subtotal. |
| Refunds: partial refund | As a support agent, I want to refund part of an order, so that I can refund one item without the rest. | (1) A partial refund can be from $0.01 up to what remains: the order total minus earlier refunds. (2) A refund of exactly what remains is accepted; one $0.01 more is refused, and the message shows the amount that remains; a refund of $0.00 is refused. (3) Each refund is recorded with the agent, the amount, the reason and the time. |
| Approvals: time off | As an employee, I want to know who has to approve my time off, so that I can plan around it. | (1) Given a request for 10 working days, none in the last 5 working days of the fiscal year, when the employee's manager approves it, then it is approved. (2) Given a request for 11 working days, when the manager approves it, then it goes to the department head, and is approved only once they approve it too. (3) Given a request of up to 10 working days whose last day is the 5th-to-last working day of the fiscal year, when the manager approves it, then it goes to the department head; one ending a working day earlier is approved. |
| Search: date filter | As an accountant, I want to filter invoices by date, so that I can pull one month's invoices. | (1) Given invoices dated March 31, April 1, April 30 and May 1, when the filter is April 1 to April 30, then only the April 1 and April 30 invoices are shown. (2) A filter from April 1 to April 1 shows April 1's invoices; a start date after the end date runs no search and reads “The start date must be on or before the end date”. |
| Notifications: low balance | As an account holder, I want an alert when my balance gets low, so that I can top it up before a payment fails. | (1) Given an alert set for a balance under $100.00 and a balance of $150.00, when a $50.00 payment posts, then the balance is $100.00 and no alert is sent. (2) Given the same, when a $50.01 payment posts, then one alert is sent within 5 minutes. (3) Given an alert was already sent, when another payment posts the same calendar day in the account holder's time zone with the balance still under $100.00, then no second alert is sent. |
| Data import: row limit | As an admin, I want to import contacts from a CSV file, so that I don't have to type them in. | (1) A file of 10,000 rows, not counting the header, is accepted; one of 10,001 rows is refused before any row is imported, with “Up to 10,000 rows per file”. (2) A row with no email address is skipped and listed in an error report with its row number, and the other rows are imported. (3) A row whose email address matches an existing contact updates that contact instead of adding a second one. |
| Permissions: last admin | As a workspace owner, I want a workspace never left without an admin, so that someone can always manage it. | (1) Given a workspace with 2 admins, when one removes the other's admin role, then it is removed. (2) Given a workspace with 1 admin, when that admin removes their own admin role, then it is refused with “A workspace needs at least one admin”. (3) Given 1 admin, when that admin leaves the workspace or deletes their account, then it is refused with the same message. |
All made up. Merchandise subtotal means the price of the items before tax and shipping. The 15-character minimum and the check against common or breached passwords follow NIST SP 800-63B-4 (July 2025) for a password used as the only factor. In a real backlog, a number such as the $50.00 free-shipping threshold lives in a business rule and each criterion names that rule; here the numbers are written out so each example stands alone.
Two formats: a checklist or Given/When/Then
Most teams use one format or both. The free-shipping rule above, in each:
| Rule-oriented checklist | Scenario-oriented Given/When/Then | |
|---|---|---|
| What it is | A list of statements the story must satisfy, each one pass or fail. | One example per scenario: Given a starting state, When one event happens, Then an observable result. |
| Example | An order whose merchandise subtotal is $50.00 or more ships free by standard shipping; at $49.99, standard shipping is charged. | Given a cart with a merchandise subtotal of $50.00, when the shopper chooses standard shipping, then shipping costs $0.00. |
| Best for | Constraints such as limits, formats and permissions, and rules that need no setup to explain. | Behavior that depends on a starting state or a sequence, and criteria the team will run as automated tests. |
| Weak spot | It is easy to leave out the starting state, or which side of a boundary a value falls on. | Wordy for simple constraints; checking several values means near-identical scenarios, unless you use a Scenario Outline. |
Gherkin, in Cucumber's reference: Given describes the initial context, When an event or action, and Then an expected outcome. A Scenario Outline runs one scenario for each row of its Examples table, which suits boundary values, and the optional Rule keyword (in Gherkin since v6) groups the scenarios for one business rule. The reference recommends 3 to 5 steps per example.
Acceptance criteria vs definition of done vs acceptance tests
Three terms that get mixed up. The definition of done comes from the Scrum Guide (2020, still the current edition at scrumguides.org), which mentions neither acceptance criteria nor user stories.
| Acceptance criteria | Definition of done | Acceptance tests | |
|---|---|---|---|
| What it is | The conditions one story or feature must meet to be accepted. | In the Scrum Guide, “a formal description of the state of the Increment when it meets the quality measures required for the product.” | In the Agile Alliance glossary, “a formal description of the behavior of a software product, generally expressed as an example or a usage scenario.” |
| Example (made up) | Standard shipping is free at $50.00, not at $49.99. | Code reviewed, automated tests pass, deployed to staging, help text updated. | The free-shipping scenario at $50.00, run in the test suite on every change. |
| If it isn't met | The story isn't accepted. | The item “cannot be released or even presented at the Sprint Review.” | The test fails, and the story isn't accepted until it passes. |
A story is finished when it meets its own acceptance criteria and the team's definition of done.
Writing acceptance criteria from a business rule: one worked example
A made-up discount-code rule, as an illustration. The story: “As a shopper, I want to use a discount code at checkout, so that I pay the promised price.” The rules and the open question come from the pricing policy and its owner; each criterion names the rule it tests, at the boundary and on each side of it. More on finding boundaries like this one: edge cases and how to find them.
- R1, the rule. The code SPRING15 takes 15% off the items that count toward its $100.00 minimum when they total $100.00 or more, before tax and shipping; the discount is rounded to the nearest cent, and half a cent rounds up.
- R2, an exception to R1. Gift cards bought in the order don't count toward SPRING15's $100.00.
- Q1, still open. If a return takes an order's items under $100.00, does the customer keep the discount? (For the e-commerce manager.)
- AC1, below the boundary (R1). Given $99.99 of items, when the shopper applies SPRING15, then no discount is taken and the cart shows “This code needs $100.00 of eligible items”.
- AC2, at the boundary (R1). Given $100.00 of items, when the shopper applies SPRING15, then $15.00 is taken off.
- AC3, above the boundary (R1). Given $100.01 of items, when the shopper applies SPRING15, then $15.00 is taken off: 15% is $15.0015, rounded to the nearest cent.
- AC4, the exception (R2). Given $70.00 of other items and a $50.00 gift card being bought, when the shopper applies SPRING15, then no discount is taken and the cart shows the same message as in AC1.
How to write acceptance criteria
Six practices that work on paper, in a ticket or in a feature file; no tool is required.
- 1
Start from the business rules
List the rules the story touches, with their numbers and exceptions, and name each criterion's rule by ID. Where a rule isn't settled, write an open question with an owner, not a criterion.
- 2
Make each one pass or fail
A tester should be able to mark it without asking anyone. Replace “fast”, “large” and “user-friendly” with a number and a unit: “within 5 minutes”, “10,000 rows”.
- 3
Test each boundary and each exception
For each threshold, test each boundary value and its closest neighbor across the line. The line at $100.00 has two boundary values: $99.99, the most below it, and $100.00, the least of “$100.00 or more”. Testing both is 2-value boundary value analysis (BVA) in the ISTQB Foundation Level syllabus (v4.0.1). 3-value BVA also tests each one's other neighbor, $99.98 and $100.01; $100.01 (AC3) catches a ≥ coded as =. Say which side the boundary is on (“$100.00 or more”, never “around $100”), and give each exception its own criterion that names the rule it overrides, as AC4 does.
- 4
Cover the negative path
Say what happens when the input is wrong, the user isn't allowed or a limit is passed: the message shown, and what is not saved or changed.
- 5
Say what, not how
Describe results a user or another system can observe, not screens, buttons or code: “$15.00 is taken off”, not “click Apply and the API returns 200”. Cucumber's reference asks for examples “that don't make any assumptions about technology or user interface.”
- 6
Agree them before the work starts
Write them in refinement with a product person, a developer and a tester, for example in an Example Mapping session with the rules, examples and questions on separate cards, and have each rule's owner settle the open questions. Many rules on one story usually mean it should be split.
An acceptance criteria template
For one story; paste it into a ticket, a Confluence page or a document. Rules are referenced by ID from your rule catalog, each criterion names the rule it tests, and the criteria come in both formats.
Template
STORY: <ID> <title>
As a <role>, I want <capability>, so that <benefit>.
BUSINESS RULES (quoted from the rule catalog by ID; change them only there)
<R1> <the rule, one sentence, with its number>
Source: <who said it or which document, when>
<R2> Exception to <R1>: <the rule>
Source: <who said it or which document, when>
ACCEPTANCE CRITERIA: CHECKLIST
[ ] <AC1> <one observable result, with its number> (<R1>)
[ ] <AC2> <what happens when the input is wrong or
the user isn't allowed: message, nothing saved> (<R1>)
ACCEPTANCE CRITERIA: GIVEN/WHEN/THEN (one behavior each)
<AC3> Below the boundary (<R1>)
Given <starting state, with the value just below>
When <one event>
Then <observable result>
<AC4> At the boundary (<R1>)
Given <starting state, with the boundary value>
When <one event>
Then <observable result>
<AC5> Above the boundary (<R1>)
Given <starting state, with the value just above>
When <one event>
Then <observable result>
<AC6> The exception (<R2>)
Given <the exception's case>
When <one event>
Then <observable result>
OPEN QUESTIONS (no criterion until answered)
<Q1> <the question>
Owner: <who answers, by when> Affects: <R and AC IDs>
DONE WHEN: every criterion passes and the team's definition
of done is met.For the rule catalog the IDs point to, see business rules examples and how to write them; for the requirements between a story and its rules, functional vs non-functional requirements.
Where RuleFoundry fits
RuleFoundry helps with the first step above: the business rules the criteria are written from. It interviews the person who owns the decision, asks the next useful question, pins down vague terms like “usually” or “large order”, and follows the exceptions until the rules are clear. It does not write acceptance criteria: your team writes them from the rules, or has a coding agent draft them, and reviews them.
Interview me, or send it to the person who knows
RuleFoundry interviews you by voice or text, or emails a colleague a link to talk it through in the web app; your own interview can also run in a panel beside the chat in ChatGPT on the web. An interview runs 10 to 60 minutes; the default is 20.
Rules linked to where they were said
Each rule is in plain language, cites the transcript lines it came from and is tentative until the expert confirms it. Before a rule is kept, RuleFoundry checks that the lines it cites actually say it.
Open questions listed, not filled in
Anything the expert did not settle is listed as a question, so nobody writes a criterion for a guess.
The rules are only as complete as the conversation; review them before relying on them. See what a result contains and the facts page for limits and prices.
See it run
The walkthrough film shows an interview inside ChatGPT. To get the rules behind your next stories, sign up and send an interview to the person who knows, or add RuleFoundry to ChatGPT (how) and say:
Use RuleFoundry to interview me about the business rules for our discount codes, with the thresholds and exceptions, so my team can write the acceptance criteria.
When something else fits better
- Example Mapping, when the people who know the rules can be in the room. Matt Wynne's 2015 post on the Cucumber blog describes a developer, a tester and a product person putting a story's rules, examples and questions on colored cards, in about 25 minutes for a well-understood, well-sized story.
- Gherkin, with Cucumber, to run Given/When/Then criteria as automated tests, which match each step to code the team writes (step definitions). Cucumber's site describes a tool for running automated acceptance tests, written in plain language.
- The Acceptance Criteria field in Azure Boards, to keep the criteria on the work item. Microsoft's documentation describes it as the criteria that must be met before a bug or product backlog item (Scrum process) can be closed, and suggests recording them before work begins.
- RuleFoundry, when the rules behind the criteria are still in someone's head, and you need them asked for and written down, each linked to where it was said, with the open questions kept apart, before the team writes the criteria.
Descriptions of Example Mapping, Gherkin, Cucumber and Azure Boards come from their own sites and documentation; the definition of done from the Scrum Guide at scrumguides.org, acceptance tests from the Agile Alliance glossary, the password rules from NIST SP 800-63B-4 and boundary value analysis from the ISTQB Foundation Level syllabus v4.0.1. All were read on 2026-11-30. Every story, rule and criterion on this page is made up.
Questions people ask
- Who writes acceptance criteria?
- Usually the product owner or a business analyst, with the developers and testers who will build and check the story: the “three amigos” that Example Mapping brings together. The Scrum Guide doesn't mention acceptance criteria; it makes the Product Owner accountable for creating and clearly communicating Product Backlog items, work they may delegate. The business rules behind the criteria come from whoever owns each decision.
- What is Given When Then?
- A way to write one acceptance criterion as a scenario: Given the starting context, When an event or action, Then the expected outcome. It is the core of Gherkin; Cucumber and similar tools run Gherkin scenarios as automated tests, matching each step to code the team writes (step definitions). It works just as well on paper.
- Does RuleFoundry write acceptance criteria?
- No. It captures the business rules the criteria are written from, each linked to where it was said, and lists the open questions. Your team writes the criteria from them; a coding agent that reads the rules through RuleFoundry's MCP server can draft them for your review.
- What does RuleFoundry cost, and is my content used for training?
- Your first Extraction (one interview or recording) is free; Personal is $20 a month for unlimited Extractions, and Team is $20 per active member a month with a two-seat minimum. RuleFoundry does not use customer content to train models; only members of your workspace can read a Project's knowledge base.
Related: functional vs non-functional requirements, with examples, business rules examples and how to write them, what an edge case is and how to find them, facts about RuleFoundry.
What changed: 2026-11-30, boundary values as in the ISTQB syllabus: $99.99 and $100.00 are 2-value BVA, and 3-value adds $99.98 and $100.01; 2026-11-30, first version.