Neural Project InstituteProject management certification for the AI era

Agile guide · Agile practices

User Stories: How to Write Them, With Examples

User stories are short, plain-language descriptions of something a user needs, written from that user's point of view: who they are, what they want and why. Agile teams use them to fill the product backlog and to start conversations about the detail, rather than writing full specifications upfront. This guide covers the template, acceptance criteria, the INVEST checklist, how to split large stories and a complete worked example.

Key takeaways

  • A user story states who needs something, what they need and why: "As a [user], I want [goal] so that [benefit]."
  • A story is a placeholder for a conversation. The card, the conversation and the confirmation (acceptance criteria) work together.
  • Acceptance criteria make each story testable; the Definition of Done applies to every story.
  • Use INVEST to check quality, and split any story too large to finish within a sprint into thin, valuable slices.
  • User stories are not required by Scrum, but they are the most popular way to write Product Backlog items.
  • The most common mistakes are technical tasks disguised as stories, missing "so that" clauses and vague acceptance criteria.

What is a user story?

A user story is a brief, informal description of a feature or change, told from the perspective of the person who wants it. It names the user, the goal and the benefit, fits on an index card and is detailed through conversation. User stories are the most common way Agile teams express requirements in a product backlog.

User stories began in Extreme Programming (XP) in the late 1990s. The familiar "As a… I want… so that…" wording is usually credited to a team at the UK company Connextra around 2001, and Mike Cohn's book *User Stories Applied* (2004) made the practice widespread. Today they are used well beyond software, by marketing, HR, operations and service design teams.

Note that the Scrum Guide does not mention user stories. It talks about Product Backlog items, and leaves the format to the team. User stories are simply the most popular way to write those items.

A good story has three qualities:

  • User-centred. It describes value to a real person, not a technical component.
  • Small. The team can finish it within one sprint, ideally within a few days.
  • Testable. Everyone can agree when it is done, thanks to clear acceptance criteria.

Stories usually sit within a larger hierarchy: themes and initiatives at the top, epics below them, stories below epics, and tasks that the team creates to deliver each story.

The user story template

The standard format has three parts:

As a [type of user], I want [some goal] so that [some benefit].

PartWhat it capturesGood choiceWeak choice
As a…Who needs it: a specific role or persona"As a returning customer", "As a warehouse picker""As a user", "As the system", "As a developer" (unless they really are the user)
I want…What they want to do or achieve, described as a goal"I want to reorder a previous purchase""I want a REST endpoint for orders" (a solution, not a need)
So that…Why it matters: the value or outcome"so that I can restock my favourite items in under a minute""so that I can reorder" (repeats the goal)

The "so that" clause is the part teams most often drop, and the most valuable. It tells the team what success looks like, lets them suggest simpler solutions and helps the Product Owner judge priority.

Alternative formats

  • Job stories: "When [situation], I want to [motivation], so I can [expected outcome]." Useful when the context matters more than the user's role, for example "When I'm about to miss a delivery, I want to change the delivery slot, so I can still receive my order."
  • Plain sentences: "Members can join a waiting list for full classes." Perfectly acceptable when the user and value are obvious to everyone.

Download our free user story template for Google Sheets, Excel or PDF. It includes columns for the story, acceptance criteria, story points, priority and status, plus an Epics tab.

The 3 Cs: card, conversation, confirmation

Ron Jeffries, one of the creators of XP, described user stories as having three critical aspects. They explain why a one-line story can be enough.

CWhat it isIn practice
CardThe short written story, originally on an index cardOne or two sentences in your backlog tool or template; enough to remember the need
ConversationThe discussions between the Product Owner, team and users that fill in the detailRefinement sessions, quick chats, sketches, examples and questions
ConfirmationThe acceptance criteria and tests that show the story is doneA list of conditions or Given-When-Then scenarios agreed before work starts

The card is deliberately incomplete. It reminds the team to have the conversation, and the confirmation records what the conversation agreed. Teams that skip the conversation tend to either over-write the card (turning it into a mini specification) or build the wrong thing.

Acceptance criteria

Acceptance criteria are the specific conditions a story must meet to be accepted by the Product Owner. They define the story's boundaries, make it testable and reduce misunderstandings between the people asking for the work and the people doing it.

Two common styles

StyleExampleBest for
Checklist (rule-based)Booking shows class time and location. Member receives a confirmation email within one minute. Free places count decreases by one.Simple stories, UI rules, content and non-software work
Given-When-Then (scenario-based)Given a class has free places, when a member taps Book, then a place is reserved and the free places count falls by one.Behaviour with conditions, edge cases and automated testing

Given-When-Then comes from behaviour-driven development (BDD). Given sets the context, When describes the action and Then states the expected outcome. Add And to chain conditions.

How to write good acceptance criteria

  1. Write them before the sprint starts, ideally during backlog refinement.
  2. Describe outcomes the user can observe, not how the team will build them.
  3. Cover the main path first, then important alternative and error paths.
  4. Make each one pass or fail, with no room for interpretation: "loads in under two seconds on 4G" rather than "loads quickly".
  5. Aim for roughly three to six criteria. Many more usually means the story should be split.
  6. Agree them with the Product Owner, developers and testers together.

Acceptance criteria vs Definition of Done

Acceptance criteriaDefinition of Done
Applies toOne specific storyEvery story and increment
Written byProduct Owner with the teamThe Scrum Team (or organisation standard)
ExampleMember sees their position on the waiting listCode reviewed, tests passing, accessibility checked, deployed to staging
PurposeConfirms the right thing was builtConfirms it was built to the agreed quality

A story is complete only when it meets both.

The INVEST checklist

Bill Wake proposed the INVEST acronym in 2003 as a quick check for story quality. Use it during refinement before a story goes into sprint planning.

LetterMeaningQuestion to askIf it fails
IIndependentCan it be delivered without waiting for another story?Combine tightly coupled stories or reorder them; make remaining dependencies visible
NNegotiableIs the detail open to discussion rather than fixed?Remove solution detail; return to the user's goal
VValuableDoes it deliver value to a user or the business?Rewrite technical layers as a thin end-to-end slice
EEstimableDoes the team understand it well enough to size it?Hold a conversation, gather examples or run a spike
SSmallCan it be finished within one sprint?Split it using the techniques below
TTestableAre there clear acceptance criteria?Add measurable criteria or Given-When-Then scenarios

Not every story will pass every letter perfectly. Independence in particular is a goal rather than an absolute. Treat INVEST as a prompt for discussion, not a gate.

How to write a user story, step by step

Use this process for each new piece of work. It works whether the Product Owner writes stories alone or the team writes them together in a workshop.

  1. Identify the user. Use a real role or persona from research, support tickets or interviews. If several users need the same thing in different ways, write separate stories.
  2. Understand their goal and problem. Ask what they are trying to achieve and what gets in the way today. Note any evidence.
  3. Write the story. Use the template in one or two sentences. Keep the solution out of it.
  4. State the value. Write a "so that" that describes an outcome, not a repeat of the goal.
  5. Add acceptance criteria. Three to six checklist items or Given-When-Then scenarios.
  6. Discuss it with the team. In refinement, developers and testers ask questions, spot risks and suggest simpler options. Update the story and criteria.
  7. Check INVEST and split if needed. If it will not fit in a sprint, split it into smaller valuable slices.
  8. Estimate and order it. The team sizes the story, for example in story points, and the Product Owner orders it in the product backlog by value, risk and dependencies.

Stories near the top of the backlog should be detailed and ready; stories further down can stay rough until they get closer. Our product backlog template helps you keep that order visible.

Worked example: from idea to sprint-ready story

A gym chain is building a mobile booking app. Members complain that popular classes are always full and they miss places freed by cancellations. Here is how a team turns that problem into a sprint-ready story.

1. Persona and epic

Persona: Priya, a member who works shifts and books classes on her phone, often at short notice. Epic: Waiting lists for full classes. Goal: Increase class attendance and reduce empty places after late cancellations.

2. First draft

"As a member, I want a waiting list so that I can get into classes." This is a start, but the value is vague and the scope is open-ended: notifications, priority rules, time limits and admin settings are all hidden inside it.

3. Conversation and improved story

In refinement, the team asks how members will hear about a free place, how long they get to accept it and what happens if they do not. The Product Owner decides to start with the simplest version that delivers value.

Story: As a member, I want to join a waiting list when a class is full so that I can get a place if someone cancels.

4. Acceptance criteria

  • Given a class is full, when I view it, then I see a "Join waiting list" button instead of "Book".
  • Given a class has free places, when I view it, then I do not see the waiting list option.
  • Given I join the waiting list, then I see my position (for example "You are 3rd").
  • Given I am first on the list, when a place becomes free, then I receive a push notification and email offering the place.
  • Given I have been offered a place, when I do not accept within two hours, then the offer passes to the next person.
  • Given I am on the waiting list, when I tap Leave, then I am removed and positions behind me move up.

5. INVEST check

CriterionResultNote
IndependentPassDepends only on existing booking and notification features
NegotiablePassNotification channel and time limit open to discussion
ValuablePassDirectly addresses members' main complaint
EstimablePassTeam has built similar features
SmallFailFirst estimate: 13 points, more than half the team's typical sprint capacity
TestablePassSix clear criteria

6. Split

The team splits by workflow step and by rule:

StoryAcceptance criteria keptEstimate
As a member, I want to join a waiting list for a full class so that I can be considered if a place frees up.Button shown only when full; position displayed; leave the list5
As a member on a waiting list, I want to be offered a freed place so that I can attend the class.Push and email offer to first person; accept to book5
As a member, I want an unaccepted offer to pass to the next person after two hours so that places are not wasted.Two-hour expiry; offer passes on3

The first two stories go into the next sprint; the third waits for the following one. Each slice is usable and testable on its own, and the team learns from real usage before adding the expiry rule. You can record all three, with their epic, in our free user story template.

How to split user stories

Large stories are the most common reason sprints fail to finish. Split vertically, so that each slice delivers something a user can see and test, rather than horizontally by technical layer (database, API, interface), which delivers nothing usable until every layer is done.

Mike Cohn of Mountain Goat Software summarises five splitting techniques as SPIDR: Spike, Paths, Interfaces, Data and Rules. The table adds two other common patterns.

TechniqueHow it worksBeforeAfter (first slice)
SpikeSplit off a time-boxed research task to reduce uncertaintyPay with a new payment providerSpike: test the provider's sandbox for two days; then the payment story
PathsSplit by alternative routes through the featurePay for an orderPay by card; later stories add PayPal and gift cards
InterfacesSplit by device, browser or a simple-then-richer interfaceBook a class on any deviceBook on the iOS app; Android and web follow
DataStart with a subset of data or data typesImport contacts from any fileImport contacts from CSV; Excel and vCard later
RulesDefer business rules to later storiesApply discount codes with all restrictionsApply a single percentage discount code; expiry and limits later
Workflow stepsDeliver one step of a process at a timeManage expense claimsSubmit a claim; approval and payment steps follow
Happy path firstDeliver the main success path, then errors and edge casesReset passwordReset via email link; expired link and lockout handling next

When a story is so large that it needs several sprints, treat it as an epic.

User story examples by team

User stories work for any team that delivers something to a customer, internal or external. These examples show the format across different kinds of work.

TeamUser storySample acceptance criterion
Software (SaaS)As an account admin, I want to invite colleagues by email so that my team can start using the product without contacting support.Invite email arrives within one minute and the link expires after seven days
E-commerceAs a returning customer, I want to reorder a previous order in one tap so that I can restock quickly.All items available in stock are added to the basket; unavailable items are listed
Internal toolsAs a finance analyst, I want to export monthly spend by cost centre to Excel so that I can prepare board reports.Export includes all cost centres and matches the ledger total
MarketingAs a prospective customer, I want to compare plans side by side so that I can choose the right one.Comparison page shows price, limits and key features for every plan
HRAs a new starter, I want a checklist of first-week tasks so that I know what to do before my induction.Checklist is sent three days before the start date and shows completion
EventsAs a conference attendee, I want to add sessions to a personal agenda so that I do not miss the talks I care about.Agenda syncs to the attendee's phone calendar

For more non-software examples, see Agile marketing.

User stories vs requirements, use cases, epics and tasks

User stories sit alongside other ways of describing work. The differences come down to purpose, level of detail and who they are written for.

ItemWhat it isDetail levelTypical size
User storyA user need with a benefit, detailed through conversationLow on the card, high in acceptance criteriaA few days, within one sprint
Traditional requirementA precise statement of what a system must do ("The system shall…")High, agreed upfrontVaries; often grouped in a specification
Use caseA step-by-step description of how an actor interacts with a system, including alternative flowsHigh; covers main and alternative scenariosOften equivalent to several stories
EpicA large body of work with a shared goal, broken into storiesLow to mediumSeveral sprints
TaskA technical step the team does to deliver a storySpecific and technicalHours to a day

Stories and formal requirements are not mutually exclusive. Many organisations keep a high-level business requirements document for scope and compliance, with detail held in stories.

Who writes user stories and when

Anyone can write a user story: Product Owners, developers, testers, designers, stakeholders or users. The Product Owner is accountable for the product backlog, so they make sure stories are clear, valuable and in the right order.

Stories move through a typical life cycle:

StageWhat happensWho is involved
CaptureIdea recorded as a rough story or epicAnyone; often Product Owner or stakeholders
RefinementStory discussed, clarified, given acceptance criteria, split and estimatedProduct Owner and developers
ReadyStory meets the team's readiness checks and sits near the top of the backlogProduct Owner
Sprint PlanningStory selected for the sprint and broken into tasksWhole Scrum Team
In progressTeam builds and tests, clarifying detail as neededDevelopers, with the Product Owner
Done and acceptedMeets acceptance criteria and Definition of Done; shown at the Sprint ReviewProduct Owner and stakeholders

A "ready" checklist

Many teams use a Definition of Ready, a short list of conditions a story should meet before Sprint Planning. It is not part of the Scrum Guide, and should never become a bureaucratic gate, but a light version helps:

  • The user, goal and benefit are clear.
  • Acceptance criteria are written and agreed.
  • The team has estimated it and it fits in a sprint.
  • Known dependencies are resolved or visible.
  • Designs or examples are attached where needed.

Most teams track this life cycle in a backlog tool such as Jira; many tools can now also draft stories and acceptance criteria with AI, which saves time but never replaces the conversation with the team.

Estimating and prioritising user stories

Most teams estimate stories with relative sizing rather than hours: they compare each story with others they have already done. Common scales are story points on a modified Fibonacci sequence (1, 2, 3, 5, 8, 13…) and T-shirt sizes (S, M, L, XL). Planning poker is a popular way for the whole team to agree an estimate. Over several sprints, the team's average completed points, its velocity, helps forecast how much fits into future sprints.

To prioritise, Product Owners weigh several factors:

  • Value: how much the story helps users or the business.
  • Risk and learning: stories that test a risky assumption early may go first.
  • Dependencies: some stories unlock others.
  • Cost: the estimate, compared with the value (a simple value-to-effort ratio).
  • Deadlines: legal, contractual or market dates.

Techniques such as MoSCoW (Must, Should, Could, Won't) help in workshops with stakeholders.

User story mapping

A flat backlog can hide the big picture. User story mapping, popularised by Jeff Patton, arranges stories on a wall or digital board to show the user's journey:

  1. Across the top, list the main activities the user performs, in order (for the gym app: find a class, book, attend, review).
  2. Under each activity, list the steps and then the stories that support them.
  3. Order stories vertically by priority, with the most essential at the top.
  4. Draw horizontal lines to mark releases. The top slice across all activities is your first usable release.

Story maps make gaps and dependencies visible and help teams agree a minimum viable release. They work well at the start of a product or a large epic, alongside an Agile roadmap.

Common mistakes

MistakeWhy it hurtsFix
Technical tasks disguised as stories ("As a developer, I want a bookings table")No user value; cannot be demonstratedWrite a thin end-to-end slice; make the table a task
No "so that" clauseHides the real need and makes prioritising harderAlways ask "why?" until you reach an outcome
Stories too large to finish in a sprintWork carries over; velocity becomes unreliableSplit with SPIDR or by workflow step
Vague acceptance criteria ("easy to use")Disagreements at review; reworkMake each criterion measurable or scenario-based
Story treated as a contractStops conversation and better ideasKeep the card short; agree detail together
Writing the whole backlog in detail upfrontWasted effort when priorities changeDetail only the stories near the top
Forcing every item into the templateAwkward, unclear wordingUse a plain sentence where it is clearer

Free templates for this topic

Browse all templates

Frequently asked questions

What is a user story in Agile?

A short description of a user need, written from the user's point of view, that the team turns into working functionality. It states who needs something, what they need and why.

What is the user story format?

As a [type of user], I want [some goal] so that [some benefit]. Teams also use job stories ("When… I want to… so I can…") or plain sentences when they are clearer.

What are the 3 Cs of user stories?

Card, Conversation and Confirmation, described by Ron Jeffries: the short written story, the discussion that fills in the detail and the acceptance criteria that confirm it is done.

Who writes user stories?

Anyone can, including developers, testers, stakeholders and users. The Product Owner is accountable for the product backlog, so they make sure stories are clear and correctly ordered.

Are user stories part of Scrum?

No. The Scrum Guide refers to Product Backlog items and does not prescribe a format. User stories are the most popular way to write them.

What are acceptance criteria in user stories?

Specific, testable conditions a story must meet to be accepted, usually written as a checklist or as Given-When-Then scenarios.

How many acceptance criteria should a user story have?

There is no fixed rule, but three to six is common. If a story needs many more, it is usually too large and should be split.

How small should a user story be?

Small enough to finish within one sprint, and ideally within a few days. Many teams aim for several stories per developer per sprint.

What does INVEST stand for in user stories?

Independent, Negotiable, Valuable, Estimable, Small and Testable. Bill Wake proposed it in 2003 as a checklist for good stories.

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

A user story is a short statement of need detailed through conversation; a use case describes the step-by-step interaction between an actor and a system, including alternative flows. One use case often covers several stories.

What is the difference between a user story and an epic?

An epic is a large body of work that takes several sprints and is broken into stories; a story fits within a single sprint.

How do you estimate user stories?

Most teams use relative sizing such as story points or T-shirt sizes, agreed together, often through planning poker.

Can user stories be used outside software?

Yes. Marketing, HR, events and operations teams write stories such as "As a new starter, I want a first-week checklist so that I know what to do before my induction."

What is a technical story?

A backlog item for technical work with no direct user-facing value, such as upgrading a framework. Many teams call these enablers or technical items rather than forcing them into the user story template, and explain the benefit in plain terms.