On this page
How to write user stories in one sentence: write each one from the user's goal, keep it small enough to finish in one sprint, and attach acceptance criteria that can pass or fail. The usual format is "As a role, I want an action, so that a benefit". The format is the easy part. The skill is in choosing the right size and saying how you will know it is done.
This guide gives you the steps, a check for each story and the common mistakes. It is written for founders and first product hires who are preparing a backlog for a new team or an agency. If nobody on the team owns the backlog yet, a fractional product manager can own the roadmap, specs and planning while you hire.
What a user story is, and what it is not
A user story is a short statement of something a user needs, written so the team can discuss it, build it and check it. It is a reminder of a conversation, not a specification.
That idea is older than most tools. In 2001 Ron Jeffries described a story as three parts in Card, Conversation, Confirmation: a card that names the need, the conversation in which the team works out the details, and the confirmation that shows it works. A story with only the card is a title. A story with no confirmation cannot be finished, because nobody agreed what finished means.
A story is not a task ("add a column to the table"), and it is not a feature ("reporting"). A task has no user. A feature is too large to finish in one go, and is usually called an epic.
How to write user stories in six steps
Write user stories in this order: name the user, state the goal, say why, check the size, add acceptance criteria, then talk it through with the people who will build it. Each step takes minutes. Skipping one costs days later.
- Name the user. Use a real role, such as "account admin" or "first-time buyer". "User" hides who you are building for.
- State what they want to do. One action, in their words, with no mention of screens or buttons.
- Say why. The reason is what lets the team propose a simpler solution.
- Check the size. If the team cannot finish it in one sprint, split it.
- Add acceptance criteria. Two to five outcomes that can each pass or fail.
- Talk it through. Read it with the team, answer questions, and change the story if the conversation shows a better one.
The UK government's service manual, in its guidance on writing user stories, uses the same three parts: the actor, the narrative and the goal. It adds a useful warning: if you struggle to write the goal, reconsider why you think you need the feature.
A worked example
Start with a weak version: "As a user, I want reports." It has no role, no single action and no reason. After the six steps it reads: "As an account admin, I want to export this month's invoices as a file, so that I can send them to our accountant." The role is specific, the action is one thing, and the reason tells the team that the accountant's format matters more than the look of the page. For more worked stories, see our collection of user stories examples.
Acceptance criteria your team can test
Acceptance criteria are the outcomes that must be true for the story to be done, written so that each one can be checked. They are the confirmation in Jeffries's three parts.
Two styles are common. The first is a short checklist. The UK service manual suggests a list in which each line begins "it's done when". The second is the Given, When, Then form, which names a starting state, an action and an expected result. Those three words are step keywords in Gherkin, the plain-text language documented in the Cucumber Gherkin reference, so criteria written this way can later become automated tests.
For the invoice story, the criteria could be:
- Given an admin with invoices this month, when they choose export, then a file downloads with one row per invoice.
- Given a month with no invoices, when they choose export, then they see a message and no file is created.
- Given a user who is not an admin, when they open the page, then the export option is not shown.
Good criteria describe results, not designs. "The file has one row per invoice" can pass or fail. "The export is easy to use" cannot.
The INVEST criteria for user stories
The INVEST criteria for user stories are six checks: independent, negotiable, valuable, estimable, small and testable. Bill Wake published the acronym in 2003 in INVEST in Good Stories, and SMART Tasks. A story that fails a check is not ready: rewrite it or split it.
| Check | Ready when | If it fails |
|---|---|---|
| Independent | It ships in any order | Merge it with the story it depends on, or split along a different line |
| Negotiable | The details are still open | Rewrite it as a need, and remove the design |
| Valuable | A user can see the result | Rewrite it around the user, or make it a task inside another story |
| Estimable | The team can size it | Ask the questions that are blocking the estimate, or run a short spike |
| Small | It fits in one sprint | Split it |
| Testable | Its criteria can pass or fail | Rewrite the criteria as observable results |
Wake's article notes that stories cannot always be independent. Treat the six as a check to run before planning, not as a law.
How to split a story that is too big
Split a large story into smaller ones that each still deliver something a user can see. A split into "database", "interface" and "tests" fails that rule, because none of the three is useful alone.
Four ways to split usually work.
- By step in the workflow. Export for one month first, a custom date range later.
- By rule. The simple case first, the exceptions after: one currency, then several.
- By role. Admins first, then other roles with fewer rights.
- By data. One file format first, others when someone asks.
Each slice should pass the INVEST checks without the others. The first slice is usually enough to learn whether the rest is worth building.
Writing user stories for agile teams: who and when
When writing user stories for agile teams, the product owner or product manager usually writes the first draft, and the whole team shapes it before work starts. Stories written alone and handed over as finished orders lose the conversation that makes them work.
Scrum does not require user stories. The 2020 Scrum Guide speaks of Product Backlog items and describes refinement as the ongoing act of breaking them down and defining them into smaller, more precise items. It adds that the developers who will do the work are responsible for sizing it. In practice that means a regular session where the team reads upcoming stories, asks questions, splits the large ones and estimates.
Stories also need a source. They should come from what you learned about users, not from a list of ideas. A product discovery process gives you the evidence, and a product requirements document holds the context that a single story cannot.
How to write good user stories: mistakes to avoid
To write good user stories, avoid five mistakes that turn a backlog into a list of orders.
- The solution in the story. "I want a dropdown" closes the conversation. Write the need and let the team propose the control.
- The missing reason. Without "so that", nobody can judge whether a cheaper version would do.
- The generic user. "As a user" fits everyone and helps no one.
- Criteria that are opinions. "Fast", "simple" and "intuitive" cannot be tested. Give a result.
- The technical task in disguise. "As a developer, I want to upgrade the library" is a task. Keep it on the backlog as a task, and say what it protects.
How we write user stories with your team
We write stories with the people who will build and test them, starting from what discovery showed users need. A fractional product lead from our team can own the backlog, run refinement and leave your team with the habit, which is the point of a part time product manager.
When the stories describe a first release, our MVP development services turn them into a build plan. Every engagement is under an NDA, and the IP is always yours. Each project is different, so we quote it after a short call.
Frequently asked questions
How do you write a user story?
Name a specific user, state the one thing they want to do, and say why: "As a role, I want an action, so that a benefit". Check that the team can finish it in one sprint, add two to five acceptance criteria that can pass or fail, then discuss it with the people who will build it.
What are the INVEST criteria for user stories?
INVEST stands for independent, negotiable, valuable, estimable, small and testable. Bill Wake published it in 2003 as a reminder of what good stories have in common. Use it as a check before planning: a story that fails one of the six should be rewritten or split before the team commits to it.
When is a user story ready for a sprint?
A story is ready when the team has discussed it, it passes the six INVEST checks, and it carries acceptance criteria that can each pass or fail. In Scrum terms, it has been refined: broken down, defined and sized by the developers who will do the work. If questions remain, it is not ready.
How small should a user story be?
Small enough for the team to finish within one sprint, including testing, and large enough that a user can see the result. If a story fails the first test, split it by workflow step, rule, role or data. If it fails the second, it is a task and belongs inside a story.
Who should write user stories?
Usually the product owner or product manager writes the first draft, because they hold the evidence about users. The team then shapes each story in refinement, where developers and testers ask questions, split large stories and size them. A story nobody has discussed is not ready to build.
Do user stories replace a requirements document?
No. A story covers one need in a sentence and a few criteria. It does not explain the problem, the audience, the scope or the measures of success. A requirements document holds that context, and stories break it into pieces a team can build and check one at a time.
