Home life · Updated
How to Write a User Story: Format, Steps and Examples
Quick answer Write a user story in one sentence: "As a [type of user], I want [some action], so that [benefit]." Then add acceptance criteria: 3-5 short, testable conditions that tell the team when the story is done.
The template above is the standard way to write a user story, and it fits almost any backlog item that delivers something to a user. It works best when the feature is small enough to build in one sprint (typically a few days of work). If the item needs weeks, it is probably an epic that should be split into several stories first.
How Do You Write a User Story Step by Step?
- Name the user role. Write one specific role, not “user”. Use “As a free-trial subscriber” or “As a warehouse picker”, because the role decides what the story should and should not cover.
- State one action. Fill the “I want” part with a single thing the role does: “I want to reset my password from the login screen”. One verb, one screen or object, no “and”.
- Give the reason. Finish with “so that” and the outcome the role gets: “so that I can get back in without calling support”. If you cannot find a real reason, question whether the story is needed.
- Write 3-5 acceptance criteria. Under the story, list conditions anyone can check: “Reset link arrives within 2 minutes”, “Link expires after 24 hours”, “Old password is rejected after reset”.
- Check it is small enough. If the story would take more than about half a sprint, split it by user step, by device, or by happy path versus edge cases, and write each piece as its own story.
- Add the details the team needs. Attach a short description, a sketch or wireframe if the screen is new, and any notes on data or rules (for example, password minimum length).
- Get it reviewed. Bring the story to a refinement session with developers and a tester and rewrite anything they ask about, because questions are the signal the story is not clear yet.
What Does a Good User Story Look Like?
A finished story is short enough to read in under a minute and specific enough that two people would build the same thing. A worked example:
As a returning customer, I want my delivery address saved from my last order, so that checkout takes less time.
Acceptance criteria:
- The address from the previous order appears pre-filled on the delivery step.
- I can edit or replace the pre-filled address before paying.
- Only one address is stored per account.
Compare that with a weak version: “As a user, I want a better checkout”. No role, no single action, no testable outcome – the team cannot estimate it and the tester cannot verify it.
How big should a story be?
Most teams size stories in story points, and a common working range is 1 to 8 points, with anything estimated higher split into smaller stories. In time terms, aim for something a pair or small group can finish, test and demo within a few working days.
Which Format Should You Use for Story and Criteria?
Use the “As a / I want / so that” sentence for the story itself, and a plain checklist for the criteria. Two checklist styles are common:
| Style | How it reads | Best for |
|---|---|---|
| Given / When / Then | “Given I am on the login screen, when I tap Forgot password, then I get an email link” | Rules and logic that a tester will script |
| Plain checklist | “Reset link arrives within 2 minutes” | Simple features, fast to write and read |
Both work; pick one per team and stay consistent so the backlog reads the same throughout.
What Goes Wrong With User Stories?
- “As a user I want…” – the role is too vague. Replace “user” with the actual role, and split the story if two roles need different things.
- Hidden requirements in the title. “Add search with filters, sorting and export” is three stories. One action per story keeps estimates honest.
- Missing “so that”. Without the reason, the team cannot suggest a simpler way to reach the same outcome, and the product owner cannot prioritise it.
- Criteria that cannot be tested. “The page should be fast” cannot be checked. Write “The results list loads within 2 seconds on a typical connection” or agree a measurable target with the team.
- Solution instead of need. “As a shopper I want a dropdown of saved cards” fixes the design. “I want to pay without re-entering card details” states the need and leaves room for a better answer.
- Technical tasks written as stories. “Upgrade the database” has no user benefit. Keep those as technical tasks on the backlog, not user stories.
How Do You Know the Story Worked?
The story is done when every acceptance criterion passes and someone in the user role could complete the action end to end. In review, read the story aloud: if anyone asks “which user?” or “what counts as done?”, rewrite before building. A useful check list:
- The role is specific and real.
- There is exactly one action.
- The “so that” names an outcome, not a feature.
- Each criterion can be marked pass or fail with no discussion.
- The team estimated it without long debate – long debate usually means it is too big or too vague.
Stories that keep coming back with bugs usually missed an edge case in the criteria, so add the edge case as a new criterion rather than a new story.
When Should You Split a Story Instead of Writing It?
Split before writing detailed criteria whenever the item fails the size check. Practical split points:
- If it spans several screens, split by screen.
- If it has a happy path plus error cases, split the happy path out first.
- If it behaves differently by device or account type, split by that.
- If it covers both doing the thing and viewing past results, split the two.
The parent item stays on the backlog as an epic, and each child becomes its own story with its own criteria. This keeps every story testable in one pass and keeps the sprint board moving, which is the whole point of writing them this way.
Related
- How to Ask a User for Input in Python (With Examples)
- New User Create an Account: How to Sign Up
- Create a New Admin User in Windows: Step-by-Step
Sources: general know-how. Menus and buttons can differ slightly by version. Spotted something out of date? Tell us.