To design a use case diagram, start by defining the system boundary and the actors outside it, then list the goals each actor needs the system to satisfy and draw those goals as use cases connected to the relevant actors. Keep the diagram intentionally shallow: it should show who interacts with the system and what they achieve, not the order of steps or internal logic. The one condition that matters most is scope discipline—decide exactly what is inside the system before you draw a single oval, because every later decision about actors, use cases, and relationships depends on that line. Get the boundary right and the rest becomes mostly management of detail.
A use case diagram is one of the simplest artifacts in the Unified Modeling Language (UML), which is why it's also easy to get wrong. Its apparent simplicity tempts people to stuff flow logic, database tables, and UI screens into it. This guide walks through a repeatable design process, the notation rules that actually matter, the relationship types (include, extend, generalization), and the common failure modes—with concrete examples you can adapt.
What a use case diagram is—and what it deliberately leaves out
A use case diagram is a behavioral UML diagram that models system functionality from an external viewpoint. It has a small vocabulary: actors, use cases, the system boundary, associations between them, and a few relationship types among use cases or actors. That's essentially the whole language.
Because the vocabulary is small, the diagram answers only a few questions:
Who or what uses the system? (actors) What goals do they accomplish through it? (use cases) Which actors participate in which goals? (associations) Where does the system end and the outside world begin? (boundary)
It does not answer when, in what order, or how. A use case like "Check out" implies many steps—scan items, apply discounts, take payment, print a receipt—but none of that appears in the diagram. Those steps belong in a use case description or a sequence/activity diagram. Mixing them in is the single most common source of bloated, unreadable diagrams.
This exclusion is a feature. A use case diagram is a communication tool for scoping conversations with stakeholders, product owners, and new team members. It says "these are the goals this system serves for these parties"—nothing more.
Step 1: Set the system boundary first
Before naming a single actor, draw the rectangle that represents your system and decide what's in and out. Name it noun-like: "Online Banking System," "Library Checkout Kiosk," "Order Fulfillment Service."
The boundary is the hardest and most consequential decision. Consider a payroll example. Is the tax calculation engine part of the payroll system, or is it an external service the payroll system calls? If tax rules live in a separate government API, then "Calculate tax" isn't a goal your system delivers internally—it's a dependency. Drawing it as an internal use case misleads everyone about where risk and maintenance live.
Two practical tests for boundary placement:
1: Ownership test. Does your team build, deploy, and operate this component? If yes, it's plausibly inside. 2: Value test. Does a use case inside the boundary represent something a user cares about, rather than an internal step? If only internal code calls it, it's probably not a use case.
Write the boundary decision down in one sentence, such as: "The system includes order capture, payment authorization, and fulfillment tracking; it excludes warehouse robotics and the external payment processor." This sentence prevents a dozen later arguments.
Step 2: Identify actors, including the non-human ones
Actors are roles that interact with the system from outside its boundary. They are not necessarily people, and they are not specific individuals.
Classify actors into three groups as you brainstorm:
Primary actors initiate interaction to achieve a goal—a customer placing an order. Supporting (secondary) actors are used by the system to complete a goal—a payment gateway, a tax service, a notification email server. External systems that both initiate and receive are still actors; the label matters less than the connection.
The key insight is that actors are roles, not persons. One person might be both a "Customer" and an "Administrator" at different times; those are two roles and two actors. Conversely, a thousand customers collapse into one actor node.
A useful technique is to ask, "Who or what needs the system to do something for them, or needs to tell the system something?" Scan for:
Human roles: customer, clerk, manager, auditor, support agent. Devices or channels: mobile app, kiosk, barcode scanner, IoT sensor. External services: payment processor, identity provider, messaging queue.
Keep the actor list small. If you've listed fifteen actors for a modest system, some are probably use cases in disguise (a "Report Generator" actor that just requests reports is really the "Manager" actor's goal) or they're separate systems that belong on a context diagram.
Denote a generalization among actors only when a genuine role hierarchy exists: "Premium Customer" inherits "Customer" behaviors plus extra ones. Don't invent hierarchies to look thorough.
Step 3: Elicit use cases from goals, not from screens or features
Now the core work: for each actor, list the goals they want the system to fulfill. Phrase each as a verb-plus-object that the actor can "start" and "finish": Place order, Cancel subscription, Generate monthly report, Reset password.
A disciplined elicitation routine:
1: Go actor by actor. For each actor, ask: "What does this actor need the system to do for them?" Write one line per goal. 2: Walk through scenarios. For a customer: browse, add to cart, apply a coupon, pay, track delivery, request a return, contact support. Each distinct goal is a candidate use case; each is a path, not a step. 3: Capture both success and failure goals. "Check order status" and "Cancel order" are separate goals. So are "Report a bug" and "Track ticket." 4: Prune with the value test. If a candidate goal produces no observable outcome for the actor, drop it.
Push back on two common distortions. First, don't turn UI screens into use cases—"Open settings page" is a screen, "Configure notifications" is a goal. Second, don't turn every internal function into a use case—"Validate email format" is a rule inside a use case, not a goal.
A quick way to measure your list: a mid-sized system typically has somewhere from a handful to a few dozen use cases. Dozens is normal; hundreds usually means the boundary is too big or you've listed steps.
Step 4: Draw the core notation correctly
With boundary, actors, and use cases in hand, the drawing itself follows fixed rules.
The system boundary is a rectangle with the system name at the top; use cases sit inside it.
An actor is a stick figure. You may label a human actor plainly; for a system actor, the same figure with a stereotype note such as «system» or a rectangle marked «actor» is accepted. UML allows the rectangle form, and many teams prefer it for non-human actors, but consistency across one diagram matters more than the choice.
A use case is an oval with a short verb-object name. Keep names parallel in style across the diagram: "Place order," "Track order," "Cancel order" beats a mix of noun phrases and sentences.
An association is a solid line between an actor and a use case. By UML convention, an actor–use case association has no arrowheads by default; a directed arrow, when used, indicates the direction of initiation. Many practitioners draw directed arrows from primary actors to the use cases they start, which is readable and common—just pick one convention per diagram and stick to it.
Multiplicity is rarely needed on actor–use case associations. When it appears, it means "this many instances of the actor participate in one execution"—for example, two players in a two-player game. Don't decorate every line with multiplicities; they add noise unless a specific scenario demands them.
A minimal but complete example: an Online Store boundary containing use cases Browse catalog, Place order, Track shipment, and Request refund, with associations from actor Customer to Browse catalog, Place order, and Request refund, from actor Warehouse System to Track shipment, and from actor Payment Gateway to Place order.
Step 5: Use include, extend, and generalization—sparingly and correctly
UML defines relationship types among use cases, and they are where most diagrams go wrong. Use them only when they communicate a real, shared structure.
«include» means one use case always incorporates the behavior of another. The canonical example is Place order including Authenticate user: every place order scenario requires authentication, so the relationship is drawn as a dashed arrow from Place order to Authenticate user labeled «include». The including use case is dependent on the included one.
«extend» means one use case optionally adds behavior to another under a condition; the extending use case is the variation, and the arrow points from the extension to the base. Place order extended by Apply gift card is a reasonable use: applying a gift card is conditional, not universal. The extended use case can be described as "at an extension point," and the extension specifies its condition.
A clear way to keep these straight: include = always; extend = sometimes. If the behavior happens on every path, it's include; if it happens on some paths, it's extend.
Generalization among use cases is subtyping: Pay with credit card and Pay with bank transfer can both be specializations of Make payment, inheriting its meaning and adding specifics. Use it when variants truly share the same goal.
Here's where discipline pays off. The following patterns are widely considered anti-patterns:
Functional decomposition via include. Chaining Place order → «include» → Validate cart → «include» → Apply tax rules turns the diagram into a call graph. Internal steps aren't use cases; they belong in a use case description. Extend used for alternative flows. If reject payment and accept payment are alternative outcomes of the same step, that's flow logic, not an extension. Layers of include for shared login. A common pragmatic exception is a genuine cross-cutting Authenticate user use case included by many others. This is defensible when many use cases uniformly require it, though some practitioners prefer to leave authentication out of the diagram entirely as an implicit precondition. Either choice is acceptable if documented.
A useful rule of thumb: if you have to explain a relationship with a flowchart in your head, the relationship probably belongs somewhere other than the diagram.
Step 6: Write a short use case description for the important ones
The diagram is a map, and maps need legends. For each significant use case, write a brief description: actor(s) involved, goal, trigger, main success scenario, and notable alternatives. You don't need a full formal specification for every oval—a few sentences are enough to keep the diagram honest.
A compact template that works:
Use case: Place order Primary actor: Customer Supporting actors: Payment Gateway, Inventory Service Goal: Convert a cart into a paid, confirmed order Trigger: Customer selects "Checkout" Main success scenario: Confirm cart → provide address → pay → receive confirmation Alternatives: Payment declined; item out of stock; address validation fails
This description is where flow logic lives, and it's also where you'll discover that some ovals were actually steps. If "Validate address" has no meaningful standalone goal, it's a step inside Place order, and the diagram should say so.
Writing two or three of these descriptions before finalizing the drawing catches more scoping errors than any review meeting.
A worked example, end to end
Consider a Library Self-Service Kiosk. The boundary sentence: "The kiosk supports checkouts, returns, and hold requests; it excludes cataloging and acquisitions."
Actors: Member (primary), Librarian (primary), Inventory Database (supporting system).
Use cases inside the boundary: Check out item, Return item, Place hold, Pay fine, Look up item.
Associations: Member → Check out item, Return item, Place hold, Pay fine, Look up item. Librarian → Look up item, plus Override checkout limit if that role truly has such a goal. Inventory Database → Check out item, Return item (the kiosk updates and queries it).
Relationships: Pay fine might «extend» Return item only if paying a fine is conditionally possible at return time, and a description explains the condition. Check out item might «include» Verify membership, where verification is a genuine shared, always-required behavior. Notice how few relationships survive scrutiny—that's normal and good.
Now the check: does every oval represent a goal a user would articulate? "Verify membership" arguably is a step rather than a user goal, which is why many teams would omit it and note membership verification as a precondition. Either way, the diagram stays legible.
Common mistakes and how to catch them
Turning steps into use cases. Symptom: ovals with names like Enter address or Click submit. Fix: ask what goal the user accomplishes; if it's a step, move it to the description.
Drawing actors as departments or systems confused with users. Symptom: an actor named "Accounting Department" and another "Accounting Software." Fix: decide whether the department's role interacts (use an actor for the role) and whether a software system is a supporting actor, then label accordingly.
Abusing include/extend. Symptom: long chains of «include» that mirror code modules. Fix: flatten; keep only always-required shared behaviors and conditional extensions that genuinely vary the base goal.
Forgetting the supporting actors. Symptom: a payment flow with no payment gateway actor. Fix: for every external interaction the system performs, add the external role—this is where architecture risk often hides.
Over-ornamenting. Stereotypes, multiplicities, and arrows everywhere. Fix: default to plain associations and add notation only when it prevents a specific misunderstanding.
One giant diagram. Symptom: dozens of actors and a hundred ovals. Fix: split by subsystem or user journey. A diagram should fit on one screen and be explainable in a minute.
A boundary that keeps moving. Symptom: a vague name like "The System" and constant arguments over whether items are in or out. Fix: write the one-sentence boundary statement and make it a review artifact.
Reviewing and using the diagram after it's drawn
A use case diagram earns its keep when it's tested against real questions. Run a review with three checks:
Completeness walk. For each actor, ask "Is every goal missing something it needs?" Ask the actor's representative to walk through a typical day and point at a use case for each goal. Missing ovals surface immediately.
Association audit. Every use case should connect to at least one actor, and every actor to at least one use case. An orphan oval means you've drawn a function with no external stakeholder; an orphan actor means the role is decorative. There are legitimate exceptions (a use case included by others may have no direct actor association), but each exception should be explainable.
Jargon scrubbing. Read the oval names to a stakeholder who wasn't in the design session and see if the goals make sense without a glossary.
After approval, the diagram becomes a quick reference for sprint planning (mapping user stories to use cases), onboarding, and testing (ensuring every use case has test coverage). It's not a substitute for detailed requirements—it's the index to them.
How use case diagrams relate to other UML artifacts
Understanding what each diagram in the family does prevents the use case diagram from being asked to do too much.
Activity diagrams show the flow and decision order inside a use case. Sequence diagrams show message exchanges among objects for a chosen scenario. Class diagrams show the static structure and data relationships. State machine diagrams show how one object moves among states.
A common professional arrangement: use case diagram for scope, activity or sequence diagrams for the important flows, and text descriptions for the rest. During a design session, if someone asks "but what happens if payment fails?", the answer is a scenario, not a new set of ovals—point them to the description or a sequence diagram.
Version and tooling notes
UML 2.x, the current generation of the standard, defines the notation used here, including the rectangle-with-name system boundary and the include/extend semantics. UML 1.x diagrams differ in details, and some older tools render them differently, so if you're maintaining legacy diagrams, check which convention was used before "correcting" them. In practice, many teams use lightweight versions—C4-style context diagrams or simple boxes-and-arrows—and reserve precise UML notation for formal documentation. There's no universal rule requiring strict UML; consistency within your organization matters more than strict conformance. Model your choice once and document it.
Closing the loop: the diagram as a scoping contract
The real value of a use case diagram isn't the picture—it's the conversation it forces. Deciding what's inside the boundary, who the actors are, and which goals count as use cases surfaces scope disagreements early, when they're cheap to resolve. Keep the vocabulary minimal, phrase goals from the actor's viewpoint, and resist the urge to encode process logic in notation. A clean diagram of a dozen ovals that stakeholders recognize as their own work is far more valuable than a hundred-oval monument that satisfies a checklist. Draw it early, review it against real scenarios, and let the descriptions carry the detail the diagram deliberately omits.