Skip to content

Agile guide

How to Write User Stories: Format, Acceptance Criteria and Examples

A user story is a short description of a capability from the user's point of view, usually written as "As a [type of user], I want [goal], so that [benefit]." A good story is small enough to finish in a few days, has testable acceptance criteria, and serves as a placeholder for a conversation rather than a full specification.

By the Zero Project Tracker team7 min read

What is a user story?

A user story is a short description of something a user wants to do, written from their point of view. It is deliberately incomplete. The story holds just enough to remember the need; the details come from talking it through with the team and get pinned down as acceptance criteria.

Ron Jeffries described this as the three Cs:

  • Card: a short written statement of the need.
  • Conversation: the discussion between the Product Owner, the Developers and anyone else who knows the domain.
  • Confirmation: the acceptance criteria that tell you the story is done.

One clarification that trips people up: user stories are not part of the Scrum Guide. Scrum only talks about product backlog items. Stories come from Extreme Programming, and most Scrum teams adopt them because they keep the backlog focused on users rather than on components.

What is the user story format?

The most common template, popularized by a team at Connextra in the early 2000s, is:

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

Each part has a job. "As a" forces you to name a real user, which is more useful than "as a user" ever is. "I want" describes the goal, not the screen. "So that" carries the value, and it is the part teams most often skip and most often need. When scope has to be cut, "so that" tells you what must survive.

Give every story a short title too, such as "Reset password from sign-in page". The template is for understanding; the title is for scanning a backlog of 80 items.

The template is a tool, not a law. If "As a system, I want..." is getting contorted, write a plain sentence about the problem. Clarity beats format every time.

What makes a good user story? The INVEST checklist

Bill Wake's INVEST checklist from 2003 is still the best quick test of a story:

LetterMeansAsk yourself
IIndependentCan we build and release this without waiting on another story?
NNegotiableIs the "how" still open for discussion with the Developers?
VValuableWould a user or the business notice if this shipped on its own?
EEstimableDo the Developers understand it well enough to size it?
SSmallCan one or two people finish it in a few days?
TTestableCould someone write a test that clearly passes or fails?

In practice, Small and Testable do most of the work. A small story with clear acceptance criteria is almost always estimable and usually independent. When a story fails Estimable, the answer is often a spike: a short, time-boxed piece of research that buys the knowledge you need to write the real story.

How do you write acceptance criteria?

Acceptance criteria are the conditions a story must meet to be accepted. They are specific to one story, unlike the Definition of Done, which applies to every item the team delivers (code reviewed, tests passing, deployed to staging and so on).

For behavior, the Given/When/Then format from behavior-driven development is hard to beat:

  • Given a starting context,
  • when the user does something,
  • then a specific, observable result happens.

Good acceptance criteria are concrete ("within 2 minutes", "shows the message This link has expired"), cover the important failure paths, and don't describe the implementation. Three to seven per story is typical. If you find yourself writing twelve, the story is too big.

Not everything needs Given/When/Then. Rules like "amounts use two decimals" read better as a plain checklist. Use whichever form is clearer for the reader.

User story examples with acceptance criteria

All six examples come from the same kind of product, an invoicing app for small businesses, so you can see how stories relate to each other.

1. Reset a password

As a registered user who forgot my password, I want to reset it from the sign-in page, so that I can get back into my account without emailing support.

  • Given I'm on the sign-in page, when I request a reset for a registered email, then I receive a reset link within 2 minutes.
  • Given a reset link older than 60 minutes, when I open it, then I see that the link has expired and can request a new one.
  • Given an email with no account, when I request a reset, then I see the same confirmation message, so the page doesn't reveal who has an account.

2. Duplicate an invoice

As a freelancer who bills the same clients every month, I want to duplicate a past invoice, so that I can send a repeat invoice in under a minute.

  • Given an existing invoice, when I choose Duplicate, then a new draft opens with the same client, line items and tax settings.
  • The draft gets the next invoice number and today's date. The original invoice is unchanged.

3. Export paid invoices

As a bookkeeper, I want to export paid invoices for a date range as CSV, so that I can import them into my accounting software.

  • Given paid invoices in March, when I export March 1 to March 31, then the file has one row per invoice with number, client, date paid, net, tax and total.
  • Amounts use two decimals and no currency symbols.
  • An empty date range produces a file with headers only, not an error.

4. Know when a client opens an invoice

As a business owner, I want to be notified when a client first views an invoice, so that I know when to follow up.

  • Given a sent invoice, when the client opens it for the first time, then I get one email and the invoice shows "Viewed" with the date.
  • Later views don't send more emails.
  • I can turn these emails off in my settings.

5. Remove a team member

As an account admin, I want to remove a team member's access, so that people who have left the company can't see client data.

  • Given I remove a member, when they next load any page, then they are signed out and can't sign back in to this account.
  • Invoices they created stay in the account, unchanged.

6. Load the invoice list quickly on a phone

As an owner checking payments between meetings, I want the invoice list to load quickly on my phone, so that I can see who has paid at a glance.

  • Given an account with 500 invoices, when I open the list on a throttled 4G connection, then the first 50 rows appear in under 2 seconds.
  • Paid, overdue and draft statuses are visible without opening an invoice.

Example 6 is a performance requirement written as a story. That works for a one-off improvement. If every page must be fast, put the rule in your Definition of Done instead of repeating it on every story.

How do you split a user story that's too big?

Split vertically: each piece should deliver something a user can see or use, end to end. Splitting by layer (a "database story", an "API story", a "UI story") produces items that deliver nothing until all of them are finished.

Mike Cohn's SPIDR technique (spikes, paths, interfaces, data, rules) covers most cases. Add two other common patterns and you get the splits I reach for, roughly in this order:

  1. Workflow steps. Ship "send an invoice by email" before "record a payment".
  2. Paths. Build the happy path first, then handle declined cards, retries and edge cases in follow-up stories.
  3. Data. Support one currency first and multiple currencies later.
  4. Rules. Defer business rules: no late fees or discount logic in the first version.
  5. Interfaces. Web first, mobile layout second. A plain form before drag-and-drop.
  6. Operations. Create and view first, then edit, then delete.
  7. Spikes. When the team can't estimate at all, split off a time-boxed spike to learn, then write the real stories.

A worked example: the epic "Clients can pay invoices online" might split into pay by card in one currency, show payment status on the invoice, email a receipt, handle declined cards, accept partial payments, and support a second currency. The first story alone is shippable and valuable, and each one after it builds on it.

Splitting goes best as a team activity during backlog refinement, with the Developers who will build the work in the room.

User stories vs tasks vs bugs

TypeWhat it isExampleWho it's for
EpicA large body of work, split into storiesClients can pay invoices onlineUsers and the business
User storyA user-visible slice of valuePay an invoice by cardA specific user
TaskWork the team needs that isn't user-facing, or a step inside a storyUpgrade the PDF library; write the data migrationThe team
BugBehavior that differs from what was intendedTotals round wrong with three or more line itemsThe user who hits it

Don't force everything into story format. "As a developer, I want to upgrade the database driver" is a task wearing a costume. Write it as a task with a one-line reason ("the current driver loses vendor support in June") and move on.

Whether to estimate tasks and bugs in story points is a team convention. Pick one approach and apply it consistently, so your numbers stay comparable from sprint to sprint.

Doing this in Zero Project Tracker

In Zero Project Tracker, every task is typed as an Epic, Story, Task or Bug, and the only required field is the title, so you can capture a story in seconds and fill it in during refinement. The description is rich text stored as Markdown, which is where the "As a..." statement and the Given/When/Then criteria go. Epics group their stories, one level of sub-tasks holds the technical steps inside a story, and links such as "blocks" and "relates to" show how split stories depend on each other. Each task carries a story point estimate, and the ranked backlog is where you put the results in order. More on the backlog in Zero.

FAQ

Frequently asked questions

What is the format of a user story?

The common format is "As a [type of user], I want [goal], so that [benefit]." It names who the story is for, what they want to do and why it matters, and is usually paired with acceptance criteria.

What are the 3 C's of user stories?

Card, Conversation and Confirmation, a model described by Ron Jeffries. The card is the short written need, the conversation is where the team works out the details, and the confirmation is the acceptance criteria that prove the story is done.

Who writes user stories in Scrum?

Anyone on the Scrum Team can write them, though the Product Owner is accountable for the product backlog. User stories are not part of the Scrum Guide itself; they are a common complementary practice, and they work best when written collaboratively.

How many acceptance criteria should a user story have?

Three to seven is typical. If a story needs many more than that, it is usually too big and should be split into smaller stories.

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

A user story describes value a user can see, written from their point of view. A task is a piece of work the team needs to do, such as a library upgrade or one technical step inside a story, and it doesn't have to be user-facing.

How small should a user story be?

Small enough that one or two people can finish it in a few days, and comfortably within one sprint. If a team regularly finishes only two or three stories per sprint, its stories are probably too big.

Your next sprint can start today.

Open a Space, add a title, start the sprint. Free, with no payment details.