What is a user story?
A user story is a short description of something a user wants to be able to do with a product, written from that user's point of view. It is one or two sentences long, and it names who wants it, what they want and why. Software teams that work in an agile way use user stories as the unit of work in their backlog.
A user story is a reminder to have a conversation, not a full specification. The sentence says what the user needs. The details are worked out by the product manager, designer and engineers together, and the result of that conversation is written down as acceptance criteria.
User story template
The standard user story format is one sentence with three blanks.
As a [type of user], I want [to do something], so that [the benefit I get].
| Part | What to write | Example |
|---|---|---|
| As a [type of user] | A specific role or kind of customer. Not "a user" | As a shopper who orders every week |
| I want [to do something] | The action or ability, in the user's words. Not the design | I want to reorder my last basket in one tap |
| So that [benefit] | The reason. What the user gains or avoids | So that I do not have to search for the same 30 items again |
Acceptance criteria template
Acceptance criteria are the conditions the story must meet to be accepted as done. Two formats are common. Use whichever your team reads more easily.
Format 1: given, when, then
Given [the starting situation], when [the user does something], then [what should happen].
Format 2: a checklist
- [A condition that can be answered yes or no]
- [A condition]
- [A condition, including what happens when something goes wrong]
Three to six criteria per story is typical. If a story needs more than about eight, it is probably two stories.
Story card template
Copy this into your tracker as the body of the story.
| Field | Your answer |
|---|---|
| Title | [A short name: verb and object, such as "Reorder last basket"] |
| Story | As a [type of user], I want [to do something], so that [benefit] |
| Acceptance criteria | [Three to six, in either format] |
| Out of scope | [Anything a reader might assume is included] |
| Design | [Link to the design, if there is one] |
| Notes | [Constraints, dependencies, data or edge cases already known] |
| Size | [Your team's estimate] |
| Priority | [Where it sits against other stories] |
| Part of | [The epic or larger piece of work it belongs to] |
User story examples
These examples are illustrations. Pipitcart is a fictional online grocery service invented for this page, and any resemblance to a real business is accidental. The stories show the format and are not a recommended feature list.
User story examples for shoppers
| # | User story |
|---|---|
| 1 | As a shopper who orders every week, I want to reorder my last basket in one tap, so that I do not have to search for the same 30 items again. |
| 2 | As a shopper with a nut allergy, I want to hide products that contain nuts, so that I cannot add one by mistake. |
| 3 | As a shopper on a budget, I want to see my running total as I add items, so that I can stop before I go over what I planned to spend. |
| 4 | As a shopper who is out during the day, I want to choose a one-hour delivery slot, so that I do not have to wait in all afternoon. |
| 5 | As a shopper whose item is out of stock, I want to choose in advance whether to accept a substitute, so that I am not sent something I will not use. |
| 6 | As a new shopper, I want to check out without creating a password, so that I can place my first order quickly. |
User story examples for staff
| # | User story |
|---|---|
| 7 | As a store picker, I want my list sorted by aisle, so that I can collect an order without doubling back. |
| 8 | As a store picker, I want to scan each item as I pick it, so that I know at once if I have taken the wrong product. |
| 9 | As a delivery driver, I want my drops in driving order with each customer's notes, so that I can find the right door and arrive in the slot. |
| 10 | As a support agent, I want to refund a single item from an order, so that I can fix a complaint without cancelling the whole order. |
User story examples for managers and administrators
| # | User story |
|---|---|
| 11 | As a store manager, I want to see which items were substituted most this week, so that I can change what I order from suppliers. |
| 12 | As a store manager, I want to close delivery slots when we are short of drivers, so that we do not accept orders we cannot deliver. |
| 13 | As a marketing manager, I want to send an offer only to shoppers who have not ordered in 30 days, so that we do not discount orders we would have received anyway. |
| 14 | As an account administrator, I want to remove a former employee's access in one step, so that customer data stays protected. |
One complete user story example
| Field | Example |
|---|---|
| Title | Reorder last basket |
| Story | As a shopper who orders every week, I want to reorder my last basket in one tap, so that I do not have to search for the same 30 items again |
| Out of scope | Reordering from any earlier order, and saved shopping lists. Both are separate stories |
| Notes | 58% of orders last month contained at least 20 items that were also in the shopper's previous order |
| Part of | Epic: faster repeat shopping |
Acceptance criteria, as given, when, then
- Given I am signed in and have at least one past order, when I open the home screen, then I see a "reorder last basket" button.
- Given I tap the button, when my last order had 30 items that are all in stock, then all 30 are added to my basket in the same quantities and I see a confirmation.
- Given some items from my last order are out of stock, when I tap the button, then the available items are added and I see a list of the ones that were not.
- Given a price has changed since my last order, when the items are added, then the basket shows the current price.
- Given I have no past orders, when I open the home screen, then the button is not shown.
The same criteria as a checklist
- The button appears on the home screen for signed-in shoppers with a past order, and not for anyone else.
- Tapping it adds every in-stock item from the last order, in the same quantities.
- Out-of-stock items are listed, not silently dropped.
- Prices shown are today's prices.
- The shopper sees a confirmation with the number of items added.
A weak user story, rewritten
| Version | Story | What is wrong or right |
|---|---|---|
| Before | "As a user, I want a dropdown on the checkout page." | "A user" is nobody in particular, the want is a design decision and there is no reason. The team cannot tell what problem it is solving |
| Step 1: name the user | "As a shopper who is out during the day, I want a dropdown on the checkout page." | Now there is a person, but still no need |
| Step 2: state the need, not the design | "As a shopper who is out during the day, I want to choose a one-hour delivery slot." | The team is free to design the best way to choose |
| Step 3: add the reason | "As a shopper who is out during the day, I want to choose a one-hour delivery slot, so that I do not have to wait in all afternoon." | The reason tells the team what matters: a narrow window, not the control used to pick it |
What makes a good user story?
A widely used checklist for user stories is INVEST. A story should be:
| Letter | Quality | Question to ask |
|---|---|---|
| I | Independent | Can it be built and released without waiting for another story? |
| N | Negotiable | Is the detail open to discussion, or has the design been dictated? |
| V | Valuable | Does a user or the business gain something when it ships? |
| E | Estimable | Does the team understand it well enough to size it? |
| S | Small | Can it be finished in a few days? |
| T | Testable | Do the acceptance criteria make it clear when it is done? |
How to write a user story
Write a user story in six steps.
- Start with a real user. Use the roles and situations from your research or your buyer persona. If you find yourself writing "as a user", stop and ask which one.
- Write the need, not the feature. Describe what the person is trying to get done. Leave buttons, menus and screens to the design.
- Write the "so that" and take it seriously. If you cannot think of a reason, the story may not be worth building.
- Talk it through with design and engineering. Ask what could go wrong, what is unclear and what is missing.
- Record the acceptance criteria from that conversation, including what happens when something fails or is empty.
- Check the size. If it will take more than a few days, split it.
Epics, user stories and tasks
Work in a backlog usually sits at three levels.
| Level | What it is | Example |
|---|---|---|
| Epic | A large goal that takes several stories and often several sprints | Faster repeat shopping |
| User story | One thing a user can do when it ships | Reorder last basket in one tap |
| Task | A piece of work needed to deliver a story, usually technical | Add the endpoint that returns the last order's items |
Splitting an epic into stories
An epic is split by finding the smallest slices that are each useful on their own.
| Epic: faster repeat shopping | Split by |
|---|---|
| Reorder my last basket in one tap | The simplest case first |
| Reorder any of my past five orders | A wider version of the same action |
| Save a basket as a named list | A different user need |
| See my most-bought items on the home screen | A different entry point |
| Get a reminder when I usually order | A different trigger |
The first story can ship alone and prove whether repeat shoppers use it. That is the point of splitting: each slice delivers something, and what you learn decides the next one. The slices that go first are, in effect, the minimum viable product for the epic.
Common user story mistakes
- "As a user". A story for everyone is designed for no one.
- The solution in the want. "I want a dropdown" closes off better designs.
- No "so that", or one that repeats the want: "so that I can reorder" adds nothing.
- Technical tasks dressed as stories. "As a developer, I want to upgrade the database" is a task. Write it as one.
- No acceptance criteria. The team then finds out what done means at the review.
- Too big. A story that takes a month hides several stories and delays feedback.
- Writing them alone. A story handed over without a conversation is a requirement with a strange grammar.
When to use a different tool instead
| If you need to | Use |
|---|---|
| Set out the problem, goals and scope for a whole feature | A product requirements document. The stories then hang from it |
| Show what will be built over the coming quarters | A product roadmap |
| Get budget and people for a project | A project proposal |
| Describe the customer in depth | A buyer persona or an ideal customer profile |
| Record a bug | A bug report: what happened, what should have happened and the steps to reproduce it |