Use Case

What is a Use Case?

A use case describes, step by step, how an actor interacts with a system to reach a goal, including alternate and failure paths. Ivar Jacobson introduced it and UML adopted it. Informally, the term also means any application of a product.

Updated November 2026 · 4 min read


A use case is a structured description of how a specific user, called an actor, interacts with a system to achieve a goal, including what happens when things go wrong. It reads as a short sequence of steps: the actor does something, the system responds, and so on until the goal is reached or abandoned. Use cases capture functional requirements in a form that business stakeholders, designers, engineers and testers can all read.

The technique was introduced by Ivar Jacobson in the late 1980s and became part of the Unified Modeling Language (UML), which added use case diagrams. Alistair Cockburn's book Writing Effective Use Cases set much of the practical style teams still follow. In everyday product talk, "use case" is also used loosely to mean a scenario or application of a product, as in "our main use case is expense approval." Both meanings are common; this entry focuses on the structured requirements technique and notes where the loose meaning differs.

Components of a use case

  • Name. A short goal phrase starting with a verb, such as "Transfer money between accounts."
  • Primary actor. The person or system that wants the goal. Secondary actors are other systems involved, such as a payment provider.
  • Scope and level. Which system is being described, and whether this is a high-level business goal or a single user task.
  • Preconditions. What must be true before it starts, such as "the user is signed in."
  • Trigger. The event that starts it.
  • Main success scenario. The numbered steps of the normal path, sometimes called the happy path.
  • Extensions or alternate flows. Branches for errors, exceptions and choices, referenced to the step where they occur.
  • Postconditions. What is guaranteed afterward, on success and on failure.

Use case vs. user story vs. scenario

ArtifactFormLevel of detailBest for
Use caseNumbered steps with alternate flowsHigh: covers errors and edge casesComplex workflows, regulated systems, integrations, test design
User story"As a [user], I want [goal] so that [benefit]"Low: a placeholder for conversation, detailed through acceptance criteriaPlanning and delivering small increments in agile teams
ScenarioNarrative about a specific person in a specific situationVariable, often illustrativeDesign exploration and communicating context

The formats work together. A single use case often breaks down into several user stories, one for the main path and others for important extensions. A use case diagram gives a one-page view of all actors and use cases in a system, while the written use case carries the detail.

How to write a use case

  1. Identify actors and goals. List who uses the system and what each wants to accomplish. Each goal is a candidate use case.
  2. Write the main success scenario. Usually 3 to 9 steps. Each step should state who acts and what they do, without describing user interface details.
  3. Brainstorm what can go wrong. For every step, ask what could fail or vary. Each answer becomes an extension.
  4. Write the extensions. Describe how the system handles each one and whether the flow rejoins the main path or ends.
  5. Add pre- and postconditions. These tell testers what to set up and what to verify.
  6. Review with stakeholders. Walk through it with users, engineers and QA. Missing extensions are the most common gap.

Use case example

Consider a hypothetical mobile banking app.

Use case: Transfer money between own accounts. Primary actor: Account holder. Precondition: The user is signed in and has at least two accounts.

  1. The user selects "Transfer."
  2. The system shows eligible source and destination accounts with balances.
  3. The user chooses a source account, a destination account and an amount.
  4. The system validates the amount and shows a confirmation summary.
  5. The user confirms.
  6. The system completes the transfer, updates both balances and shows a reference number.

Extensions: 4a. The amount exceeds the available balance: the system shows the available amount and returns to step 3. 4b. The amount exceeds the daily transfer limit: the system explains the limit and returns to step 3. 6a. The core banking system does not respond: the system shows that the transfer is pending and notifies the user when it completes or fails.

Postcondition (success): The source balance has decreased and the destination balance has increased by the same amount.

Those three extensions are where most real defects hide. Each also translates directly into test cases and acceptance criteria.

Common pitfalls

  • Describing the interface. "The user clicks the blue button" ties requirements to a design that will change. Describe intent instead.
  • Skipping extensions. A use case with only the happy path misses the logic that takes the most effort to build.
  • Writing too many tiny use cases. "Enter amount" is a step, not a use case. A use case should achieve a goal the actor cares about.
  • Mixing the two meanings. A sales slide listing "use cases" is a list of applications, not requirements. Be clear which one a document means.

Use cases sit alongside functional requirements and a product requirements document, and their extensions are a reliable way to find each edge case before development starts.

Frequently asked questions

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

A use case is a numbered sequence of actor and system steps with alternate flows for errors and edge cases, suited to complex workflows, regulated systems and test design. A user story is a short statement of who wants what and why, serving as a placeholder for conversation and refined through acceptance criteria. One use case often breaks into several stories.

What are the parts of a written use case?

A written use case typically has a name phrased as a goal, a primary actor and any secondary actors, scope and level, preconditions, a trigger, a main success scenario of numbered steps, extensions for errors and alternate paths tied to the step where they occur, and postconditions describing what is guaranteed on success and on failure.

How long should the main success scenario of a use case be?

Usually 3 to 9 steps, each stating who acts and what they do, without interface details such as which button to click. A single action like entering an amount is a step, not a use case on its own. Much of the build effort and many real defects sit in the extensions, so ask what can fail at every step.