User story template. One sentence, then how you will know it is done.

This user story template gives you the standard one-sentence format, a way to write acceptance criteria and a complete story card that you can copy into a tracker. It is followed by 14 user story examples for a fictional product, a weak story rewritten and an epic split into stories.

By Brady Heinrich · Updated

In short

  • A user story describes one thing a user wants to do and why, from the user's point of view.
  • The usual format is: as a [type of user], I want [to do something], so that [benefit].
  • The 'so that' is the most important part. It tells the team what problem to solve when the details change.
  • Every story needs acceptance criteria: testable conditions that say when it is done.
  • Keep stories small enough to finish in a few days. Split anything larger.

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].

PartWhat to writeExample
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 designI want to reorder my last basket in one tap
So that [benefit]The reason. What the user gains or avoidsSo 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.

FieldYour answer
Title[A short name: verb and object, such as "Reorder last basket"]
StoryAs 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
1As 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.
2As a shopper with a nut allergy, I want to hide products that contain nuts, so that I cannot add one by mistake.
3As 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.
4As 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.
5As 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.
6As 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
7As a store picker, I want my list sorted by aisle, so that I can collect an order without doubling back.
8As 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.
9As 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.
10As 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
11As a store manager, I want to see which items were substituted most this week, so that I can change what I order from suppliers.
12As 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.
13As 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.
14As 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

FieldExample
TitleReorder last basket
StoryAs 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 scopeReordering from any earlier order, and saved shopping lists. Both are separate stories
Notes58% of orders last month contained at least 20 items that were also in the shopper's previous order
Part ofEpic: 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

VersionStoryWhat 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:

LetterQualityQuestion to ask
IIndependentCan it be built and released without waiting for another story?
NNegotiableIs the detail open to discussion, or has the design been dictated?
VValuableDoes a user or the business gain something when it ships?
EEstimableDoes the team understand it well enough to size it?
SSmallCan it be finished in a few days?
TTestableDo the acceptance criteria make it clear when it is done?

How to write a user story

Write a user story in six steps.

  1. 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.
  2. Write the need, not the feature. Describe what the person is trying to get done. Leave buttons, menus and screens to the design.
  3. Write the "so that" and take it seriously. If you cannot think of a reason, the story may not be worth building.
  4. Talk it through with design and engineering. Ask what could go wrong, what is unclear and what is missing.
  5. Record the acceptance criteria from that conversation, including what happens when something fails or is empty.
  6. 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.

LevelWhat it isExample
EpicA large goal that takes several stories and often several sprintsFaster repeat shopping
User storyOne thing a user can do when it shipsReorder last basket in one tap
TaskA piece of work needed to deliver a story, usually technicalAdd 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 shoppingSplit by
Reorder my last basket in one tapThe simplest case first
Reorder any of my past five ordersA wider version of the same action
Save a basket as a named listA different user need
See my most-bought items on the home screenA different entry point
Get a reminder when I usually orderA 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 toUse
Set out the problem, goals and scope for a whole featureA product requirements document. The stories then hang from it
Show what will be built over the coming quartersA product roadmap
Get budget and people for a projectA project proposal
Describe the customer in depthA buyer persona or an ideal customer profile
Record a bugA bug report: what happened, what should have happened and the steps to reproduce it

Questions

What is the format of a user story?

The usual format is: as a [type of user], I want [to do something], so that [benefit]. It names who wants the thing, what they want and why.

What are acceptance criteria?

Acceptance criteria are the testable conditions a story must meet to be accepted as done. They are often written as given, when, then statements or as a short checklist.

Who writes user stories?

Usually the product manager or product owner, but anyone on the team can draft one. The details and acceptance criteria should come from a conversation between product, design and engineering.

What is the difference between a user story and a requirement?

A requirement states what the system must do. A user story states what a user wants to achieve and why, and leaves the detail to be agreed in conversation. In practice, a user story with acceptance criteria does the job of a requirement.

How big should a user story be?

Small enough for the team to finish in a few days, and well within a single sprint. If it is larger, split it into slices that are each useful on their own.

What is the difference between a user story and a use case?

A use case is a longer, more formal description of every step and variation in an interaction between a user and a system. A user story is a one-sentence summary of a need, with the detail held in acceptance criteria and conversation.

Keep reading

Building something ambitious? Let's talk.

We reply within one business day.