Flowcharts
How to draw decisions in a flowchart without the spaghetti
By Abdessamad BettalPublished 4 min read
The short answer
Put one closed question in each diamond, label every arrow that leaves it, and keep the most common outcome flowing straight down while exceptions branch to the side. Send loops back up along one edge of the chart, merge branches into the next step rather than into another diamond, and split a diamond into two when its question contains "and" or "or". Most unreadable flowcharts break one of these rules, not several.
Process boxes rarely make a flowchart hard to read. Decisions do. Every diamond multiplies the paths a reader has to hold in their head, and the way branches are routed decides whether the chart reads like a story or like a circuit board.
The rules below come from redrawing a lot of real flowcharts: runbooks, approval processes, login flows and onboarding guides. None of them are exotic. Most hard-to-read charts break one of them.
1. One closed question per diamond
A decision symbol holds a question whose answers become the labels on its outgoing arrows. Phrase it so the answers are obvious and few: Token expired? (yes/no), Order total? (under 50 / 50 or more), Payment method? (card / PayPal / invoice).
Two failures are common:
- A statement instead of a question. "Check token" is an action; it belongs in a process box. The outcome of the check is the decision: Token valid?
- Two questions in one diamond. "Logged in and has permission?" hides a third path: logged in but without permission, which usually needs a different message from "not logged in". If the question contains and or or, split it into two diamonds.
2. Label every branch
An unlabelled arrow leaving a diamond forces the reader to guess which branch is which, and they will guess differently. Label every exit, even when one seems obvious. For yes/no questions, keep the convention consistent across the chart: yes always continues downward, no always goes to the right, or whatever your team prefers, as long as it never flips.
3. Keep the happy path straight
Decide which outcome is normal and let it run straight down the page, from the start terminator to the end, without bends. Exceptions branch to one side, usually the right. A reader can then follow the main story in one glance and look sideways only when they care about the edge cases.
This single rule fixes more charts than any other. It also tells you when something is wrong with the process itself: if you cannot decide which path is normal, the people who run the process probably cannot either.
4. Route loops back along one edge
A loop is an arrow from a decision back to an earlier step: Retry? yes → back to Enter code. Route all loops up the opposite side from your exceptions, typically the left, so they never cross the main flow. Then check that every loop has a way out: a retry limit, a timeout or a condition that eventually changes. A loop with no exit is a bug in the process, and the chart is where you catch it.
5. Merge into a step, not into a diamond
When two branches rejoin, point both arrows at the next step. You do not need a symbol for the merge. Drawing branches into another diamond makes readers look for a question that is not there. If many arrows converge and the target becomes crowded, a small on-page connector circle with a letter can stand in for the long arrows.
6. Use multi-way decisions when the answers are values
ISO 5807, the flowchart symbol standard, allows a decision with more than two exits. When the answers are mutually exclusive values of one question, one diamond with three labelled exits is clearer than a chain of three yes/no diamonds:
- Chain: Card? no → PayPal? no → Invoice?
- One decision: Payment method? → card / PayPal / invoice
Use the chain only when the order matters, for example when checks are expensive and you want the cheap one first.
Smells and fixes
| Smell | What it usually means | Fix |
|---|---|---|
| Arrows cross the main flow | No agreed happy path | Pick the normal outcome, run it straight down, branch exceptions to one side |
| A diamond with one exit | It is an action, not a decision | Turn it into a process box |
| Unlabelled branches | The author knew which was which | Label every exit; keep yes/no direction consistent |
| "and" or "or" in a diamond | Two decisions hiding a third path | Split into two diamonds |
| A diamond used where branches rejoin | Merge drawn as a decision | Point both branches at the next step |
| A loop with no exit condition | A process that can run forever | Add a retry limit or timeout |
| More than about 30 shapes | The chart is doing two jobs | Move a section into a predefined process with its own chart |
A worked example: password reset
Here is a password reset written in the plain-text syntax that text to flowchart understands. -> draws an arrow, : yes labels it, round brackets make a start or end terminator and a trailing ? makes a decision:
(Reset requested) -> Account exists?
Account exists? -> Email reset link: yes
Account exists? -> Show "check your inbox": no
Email reset link -> Show "check your inbox"
Show "check your inbox" -> Link used within 1 hour?
Link used within 1 hour? -> Set new password: yes
Link used within 1 hour? -> (Reset requested): no
Set new password -> (Done)
Two details worth noticing. Both branches of Account exists? end at the same message, because telling a visitor "no account with that email" lets anyone discover who is registered. The flowchart makes that decision visible to reviewers even though users never see it. And the expiry loop returns to the start, which is honest: the user has to begin again.
The same logic in Mermaid, if it is going into a README:
flowchart TD
A([Reset requested]) --> B{Account exists?}
B -->|yes| C[Email reset link]
B -->|no| D["Show 'check your inbox'"]
C --> D
D --> E{Link used within 1 hour?}
E -->|yes| F[Set new password]
E -->|no| A
F --> G([Done])
Paste either into the text to flowchart tool or the Mermaid editor, open the result in the editor, and press Tidy layout. The automatic layout keeps the main path in one rank order, and the connectors stay attached when you nudge a branch aside by hand.
Before you share it
Read the chart aloud from start to end along the happy path, then once along each exception. If any sentence needs "and then it sort of goes back", that is the arrow to reroute. The user login flow and incident response flow templates follow these rules and are good starting points to copy from.
Common questions
- Can a flowchart decision have more than two outcomes?
- Yes. ISO 5807 allows a decision symbol with several exits, each labelled with its condition, such as "Card", "PayPal" and "Invoice". Use one diamond with three labelled exits rather than a chain of yes/no diamonds when the answers are mutually exclusive values of one question.
- Should decisions be phrased as questions?
- Yes, as a closed question whose answers become the branch labels: "Token expired?" with yes and no, or "Payment method?" with one exit per method. A statement such as "Check token" belongs in a process box, because checking is an action and its outcome is the decision.
- How do I show a loop in a flowchart?
- Send an arrow from the decision back to the step that repeats, routed along one side of the chart so it does not cross the main flow. Make sure the loop has an exit: a retry counter or a condition that eventually becomes false.
- What is the difference between the decision diamond and the merge?
- A decision splits one flow into alternatives. Branches come back together simply by pointing their arrows at the same next step. Flowcharts do not need a merge symbol, and using a diamond to merge makes readers look for a question that is not there.