The Short Answer
What is a user story?
A user story is a short description of something a user needs from a product, written from the user’s point of view, usually in the form “As a [type of user], I want [something] so that [benefit]”. Acceptance criteria are the specific, testable conditions the finished feature must meet. The story says what and why. The criteria say how you will know it is done.
The format is described by Mike Cohn in his writing on user stories. A story is deliberately brief. It is a reminder to have a conversation, not a full specification.
Read the transcript
As a user, I want a dropdown of time slots. That looks like a requirement. It tells a developer almost nothing. Who is the user? And what are they trying to do? Try it again. As a clinic receptionist, I want to see which appointment times are free, so that I can book a patient while they are on the phone. Now the team knows who it is for, and why. So what makes a story good enough to build from? It has three parts. Who needs it. What they need. And why. The why does the most work. It often reveals a simpler solution. Then add acceptance criteria: the conditions that prove it is done. Make them testable. Include what happens when things go wrong. And agree them before work starts. The story says what, and why. The criteria say how you’ll know it’s done. The full guide is free at loomstrat.com.
Card, Conversation, Confirmation
Ron Jeffries described a story as having three parts.
- Card. The short written story. Originally it had to fit on an index card.
- Conversation. The discussion between the business and the team that fills in the detail.
- Confirmation. The acceptance criteria that confirm the story has been delivered.
People often write the card and skip the other two. The conversation is where misunderstandings are found while they are still cheap.
The Format
| Part | Purpose | Weak | Better |
|---|---|---|---|
| As a… | Names who needs it | As a user | As a clinic receptionist |
| I want… | The need, not the solution | I want a dropdown of time slots | I want to see which appointment times are free |
| So that… | The reason; lets the team suggest better solutions | (omitted) | So that I can book a patient while they are on the phone |
The “so that” clause does the most work. It tells the developer why the feature exists, which often reveals a simpler way to meet the need.
The INVEST Test
Bill Wake’s INVEST checklist is the standard test of a good story.
| Letter | Meaning | Question to ask |
|---|---|---|
| I | Independent | Can it be built without waiting for another story? |
| N | Negotiable | Is it open to discussion about how to meet the need? |
| V | Valuable | Does a user or the business gain something when it is done? |
| E | Estimable | Does the team understand it well enough to size it? |
| S | Small | Can it be finished within a few days? |
| T | Testable | Can you state how to check it is done? |
Writing Acceptance Criteria
There are two common styles. Use whichever your team reads most easily.
Rule-based: a checklist
Story: As a customer, I want to reset my password so that I can get back into my account if I forget it.
- A “Forgot password” link appears on the sign-in page.
- Entering a registered email sends a reset link within one minute.
- Entering an unregistered email shows the same confirmation message, so that the page does not reveal which emails have accounts.
- The link works once and expires after 60 minutes.
- The new password must meet the password rules, and the user is told which rule failed.
- After a reset, all other signed-in sessions are ended.
Scenario-based: Given, When, Then
This style, used in the Gherkin language, describes a starting state, an action and an expected result.
- Given I have requested a password reset, when I open the link after 61 minutes, then I see a message that the link has expired and an option to request a new one.
- Given I have already used a reset link, when I open it again, then it does not work.
Scenarios take longer to write and translate almost directly into automated tests. Checklists are quicker and suit simpler stories.
What Makes Criteria Good
- Testable. “Fast” is not testable. “Search results appear within two seconds for a catalogue of 10,000 products” is.
- About outcomes. Say what must be true, not how to code it.
- Include the unhappy paths. What happens with an empty field, a wrong format, no connection, no permission?
- Include limits. Maximum length, file size, number of items.
- Agreed before work starts. Criteria written after the build are a description, not a requirement.
Three More Examples
| Story | Acceptance criteria |
|---|---|
| As a shop owner, I want an email when stock of a product falls below a level I set, so that I can reorder before it runs out. | I can set a threshold per product. One email is sent when stock crosses the threshold, not on every sale after. The email names the product and current stock. No email is sent for products marked discontinued. |
| As a team admin, I want to invite colleagues by email, so that they can join our workspace. | I can enter up to 20 addresses at once. Each receives an invitation valid for 7 days. An address already in the workspace is skipped with a notice. Only admins see the invite option. Pending invitations are listed and can be cancelled. |
| As a customer, I want to download an invoice as a PDF, so that I can give it to my accountant. | Each paid order has a “Download invoice” link. The PDF shows the company name, VAT number, invoice number, date, line items, VAT and total. The invoice number is unique and sequential. Unpaid orders show no link. |
Epics, Stories and Tasks
| Level | Size | Example |
|---|---|---|
| Epic | A large area; weeks of work; many stories | Online booking |
| Story | One user need; a few days | As a patient, I want to cancel a booking online |
| Task | A technical step; hours | Add a cancellation endpoint to the API |
As the client you write or approve epics and stories. Tasks belong to the developers.
Splitting a Story That Is Too Big
- By step in a workflow. Search first; filter and sort later.
- By rule. Card payment first; refunds and partial payments later.
- By user type. Customers first; administrators later.
- By data. One currency first; several later.
- Happy path first. The main case now; the rare exceptions as following stories.
Each slice should still be something a user could use. “Build the database” is not a slice.
Acceptance Criteria and the Definition of Done
Acceptance criteria are specific to one story. The definition of done is a standard that applies to every story: code reviewed, automated tests passing, works on the supported browsers, accessible, deployed to the test environment. A story is finished when it meets both.
Common Mistakes
- Stories that are solutions. “Add a blue button” hides the need. State the need.
- “As a user”. Naming the real role changes what gets built.
- No “so that”. The team cannot judge trade-offs without the reason.
- Technical tasks written as stories. “As a developer, I want a database” is a task.
- Criteria that restate the story. “The user can reset their password” adds nothing.
- Too many criteria. More than eight or so usually means the story should be split.
Stories sit inside a wider document that sets out the goals, users and scope; see our guide to the product requirements document. Deciding which stories make the first release is covered in MVP scope and feature prioritisation. If you would like help turning an idea into a backlog, that is the first step of our MVP development service.
Frequently Asked Questions
What is the format of a user story?
As a [type of user], I want [something] so that [benefit]. It names who needs it, what they need and why.
What are acceptance criteria?
Specific, testable conditions a feature must meet to be accepted as complete. They are agreed before development starts.
Who writes user stories?
Usually the product owner or the client, with help from the team. The whole team refines them in conversation before work starts.
What is the difference between acceptance criteria and definition of done?
Acceptance criteria apply to one story. The definition of done is a quality standard that every story must meet, such as being reviewed and tested.
How many acceptance criteria should a user story have?
Typically three to eight. Many more suggests the story is too large and should be split.
What is Given-When-Then?
A format for acceptance criteria that states a starting condition, an action and the expected result. It maps closely to automated tests.