Reference · Flowchart shapes
Flowchart shapes and their meanings: what each shape is used for
In short
Each shape in a flowchart means one kind of step. A rectangle is a process, which is an action. A diamond is a decision. An oval or rounded rectangle is the start or the end. A parallelogram is input or output. A small circle is a connector, and arrows show the order of the steps. Less common flow chart shapes mark a document (a wavy bottom edge), a database (a cylinder), a set-up step (a hexagon) and a subroutine (a rectangle with double sides). These meanings are set by two standards, ISO 5807 and ANSI X3.5.
Updated · by the ChartCraft team · drawings rendered with Mermaid 11.17.2 · the by-shape companion of the flowchart symbols reference
What do the shapes mean in a flowchart?
Find the shape in the first column and read across: its meaning, what to use it for, and how to write it in Mermaid. The 15 flowchart shapes are listed with the basic ones first and the specialized ones after. Each drawing is what Mermaid renders from the code in the last column, and each shape name links to a longer entry below. The pentagon is the one exception: Mermaid cannot draw it, so its outline is drawn by hand.
| Drawing | Shape | Meaning | Use it for | Mermaid |
|---|---|---|---|---|
| Rectangle | Process: one action or step | Anything the process does: calculate, check, send, update | A[Check stock] | |
| Rounded rectangle (stadium, oval) | Start or end of the flowchart | The first shape and every last shape of a chart | A([Start]) | |
| Diamond | Decision: a question with two or more exits | Any point where the path depends on an answer | A{In stock?} | |
| Parallelogram | Input or output: data going in or coming out | Reading a value, printing or sending a result | A[/Read order number/] | |
| Arrow (line with an arrowhead) | Flow: which step comes next | Between every two steps | A[Step 1] --> B[Step 2] | |
| Small circle | Connector: the flow continues at the matching circle | Replacing a long or crossing line on one page | A((A)) | |
| Pentagon (home plate) | Off-page connector: the flow continues on another page | Charts that run over several pages | No Mermaid shape | |
| Rectangle with a wavy bottom | Document: a report or form people read | A step that produces or needs a document | A@{ shape: doc, label: "Print invoice" } | |
| Cylinder | Database: data stored on disk | Reading from or writing to a database | A[(Orders database)] | |
| Hexagon | Preparation: a set-up step | Setting a counter, a flag or a switch before the main steps | A{{Set count to 0}} | |
| Rectangle with double sides | Predefined process: a step defined somewhere else | Calling a subroutine or another flowchart | A[[Calculate tax]] | |
| Trapezoid (wide side on top) | Manual operation: a step done by a person | Hand work inside an automated process | A[\Inspect parcel/] | |
| Rectangle with a sloped top | Manual input: data a person types in | A form field, a PIN, a scanned code | A@{ shape: sl-rect, label: "Enter PIN" } | |
| Display shape (pointed on one side, curved on the other) | Display: information shown to a person | A message, a result or a total on a screen | A@{ shape: curv-trap, label: "Show total" } | |
| D shape (rectangle with one rounded end) | Delay: a wait before the next step | Waiting for an approval, a timer or a delivery | A@{ shape: delay, label: "Wait for payment" } |
Looking for a symbol by name instead, such as terminator or predefined process? The flowchart symbols reference lists all 21 by name, with a cheat sheet to download.
Flow chart shape meanings and functions, shape by shape
Each entry says what the shape means, what the standards call it, when to use it, and gives the Mermaid code that draws it. Where ISO 5807, ANSI X3.5 and today's tools disagree, the entry says so.
Rectangle: a process
A rectangle means a process: one action, such as a calculation, a check or an update. The flowchart shape used for a process is always the rectangle.
In the standards. ISO 5807 and ANSI X3.5 both name it the process symbol, for "any kind of processing function".
When to use it. Use it for every step that is not a question, a start or end, or data moving in or out. Label it with a verb and an object, such as "Check stock".
flowchart LR
A[Check stock]
Rounded rectangle, stadium or oval: start and end
A rectangle with fully rounded ends, also called a stadium, a pill or an oval, means the flowchart starts or ends here.
In the standards. ISO 5807 names it the terminator, "an exit to, or an entry from, the outside environment". ANSI X3.5 names it the terminal, interrupt symbol. Both draw a stadium; books and tools often say oval.
When to use it. Use one where the flow begins and one at every end. In Mermaid, A([Start]) is the stadium, while A(Start) gives slightly rounded corners, a shape that Mermaid's own list names an event.
flowchart LR
A([Start])
Diamond: a decision
A diamond means a decision. The flowchart shape used for a decision is the diamond in both standards. A question goes inside, one line enters, and two or more labelled lines leave.
In the standards. ISO 5807 gives the decision symbol one entry and "a number of alternative exits, one and only one of which may be activated".
When to use it. Use it wherever the next step depends on an answer, and label every exit, for example Yes and No.
flowchart LR
A{In stock?}
Parallelogram: input or output
A parallelogram means data crossing the edge of the process: a value read in, a result printed or sent.
In the standards. ANSI X3.5 names it the input/output symbol. ISO 5807 gives the same shape the name data, "the medium being unspecified".
When to use it. Use it when a step moves data without changing it, and start the label with a verb such as Read or Print. Mermaid slants it to the right with A[/Read order number/] and to the left with A[\Write result\].
flowchart LR
A[/Read order number/]
Arrow: the direction of flow
A line with an arrowhead joins two shapes and shows which step comes next.
In the standards. ANSI X3.5 names it the flowline and sets the normal direction as left to right and top to bottom. ISO 5807 names it the line, which "represents the flow of data or control".
When to use it. Draw one between every two consecutive steps. Label only the lines that leave a decision, which Mermaid writes as A{In stock?} -->|Yes| B[Pack order].
flowchart LR
A[Step 1] --> B[Step 2]
Small circle: a connector
A small circle with a letter or number inside is a connector. The line stops at one circle and carries on at the circle with the same label.
In the standards. ANSI X3.5 defines the connector as "an exit to or an entry from another part of the flowchart", and ISO 5807 uses the same name. Mermaid's shape list labels its circle Start, a meaning from other notations; in the flowchart standards the start is the stadium.
When to use it. Use connectors in pairs, and only where a line would be long or would cross others.
flowchart LR
A((A))
Pentagon: an off-page connector
A pentagon that points the way the flow runs, like a home plate, means the flow continues on another page.
In the standards. It is not in ISO 5807 or ANSI X3.5, which define one connector, the circle, for every break in a line. It comes from IBM's flowcharting template, whose guide calls it the offpage connector, "used to designate exit from or entry to a page".
When to use it. Use it only on charts that span several pages. Mermaid has no pentagon, so the outline here is drawn by hand. In Mermaid, use a circle with the reference as its label, such as A((P2)).
Rectangle with a wavy bottom: a document
A rectangle with a wavy bottom edge means a document: something a person reads, such as a report, an invoice or a form.
In the standards. ISO 5807 names it the document symbol, for "human readable data". ANSI X3.5 uses the same name.
When to use it. Use it when a step produces or needs a document. If the medium does not matter, a parallelogram says the same thing. This shape needs Mermaid 11.3.0 or later, and A@{ shape: docs, label: "Customer invoices" } draws a stack of documents.
flowchart LR
A@{ shape: doc, label: "Print invoice" }
Cylinder: a database or disk storage
A cylinder means stored data that can be read directly. In today's charts that usually means a database.
In the standards. The standards name the storage medium. ANSI X3.5 draws an upright cylinder for magnetic disk and one on its side for magnetic drum. ISO 5807 keeps the one on its side as direct access storage. Mermaid's shape list calls the upright cylinder Database.
When to use it. Use it when a step reads from or writes to a database. Mermaid draws the version on its side with A@{ shape: h-cyl, label: "Disk file" }.
flowchart LR
A[(Orders database)]
Hexagon: preparation
A hexagon means preparation: a step that sets something up for the steps that follow.
In the standards. Both standards name it the preparation symbol, with examples such as setting a switch or initializing a routine. IBM's flowcharting guide describes the same function as program modification.
When to use it. Use it for set-up steps, such as setting a counter to 0 before a loop. A plain rectangle is also correct, because the basic process shape can always be used.
flowchart LR
A{{Set count to 0}}
Rectangle with double sides: a predefined process
A rectangle with a second vertical line inside each side means a predefined process: a named step whose details are written somewhere else.
In the standards. ISO 5807 and ANSI X3.5 both name it the predefined process symbol, for steps "that are specified elsewhere", such as a subroutine. Mermaid calls the shape a subroutine or subprocess.
When to use it. Use it to keep a chart short and to show that several charts share one routine. Give it the exact name of that routine.
flowchart LR
A[[Calculate tax]]
Trapezoid: a manual operation
A trapezoid with its longer side on top means a manual operation: a step a person does by hand.
In the standards. ISO 5807 defines it as "any process performed by a human being". ANSI X3.5 is narrower: an offline process done "without using mechanical aid".
When to use it. Use it to mark hand work in an otherwise automatic process. In Mermaid, A[\Inspect parcel/] is wide on top. The reverse, A[/Priority step\], is wide at the bottom, and Mermaid's list names that one a priority action.
flowchart LR
A[\Inspect parcel/]
Rectangle with a sloped top: manual input
A four-sided shape whose top edge slopes upward means manual input: data a person enters at that moment.
In the standards. Both standards name it the manual input symbol. ISO 5807's examples include an "on-line keyboard, switch settings, push buttons".
When to use it. Use it when it matters that a person keys the data in; otherwise a parallelogram covers it. This shape needs Mermaid 11.3.0 or later.
flowchart LR
A@{ shape: sl-rect, label: "Enter PIN" }
Display shape: information on a screen
A shape with a point on the left and a curve on the right means display: information shown to a person.
In the standards. ISO 5807 and ANSI X3.5 both name it the display symbol. ISO's examples are "video screens, on-line indicators".
When to use it. Use it for what a user sees on a screen, such as a confirmation or a total. A parallelogram is the general alternative. This shape needs Mermaid 11.3.0 or later.
flowchart LR
A@{ shape: curv-trap, label: "Show total" }
D shape: a delay
A rectangle with one rounded end, like the letter D, means a delay: time passes before the next step.
In the standards. It is not in ISO 5807, and ANSI X3.5 has no delay shape either: it lists a delay as one use of the terminal symbol. The D shape is a convention of drawing tools, Mermaid included.
When to use it. Use it for waits that matter, such as an approval period, and add a legend if readers may not know it. This shape needs Mermaid 11.3.0 or later.
flowchart LR
A@{ shape: delay, label: "Wait for payment" }
What is each flowchart shape called in the standards?
Two documents fix the names. ANSI X3.5-1970 is the American standard, adopted for United States federal use as FIPS PUB 24. ISO 5807:1985 is the international standard, and its introduction says it consolidates and replaces two earlier ISO standards, ISO 1028 and ISO 2636. The two agree on most shapes and differ on a few names. Mermaid's shape list adds names of its own.
| Shape | ISO 5807:1985 | ANSI X3.5-1970 | Mermaid shape list |
|---|---|---|---|
| Rectangle | Process | Process | Process (rect) |
| Rounded rectangle (stadium, oval) | Terminator | Terminal, interrupt | Terminal point (stadium) |
| Diamond | Decision | Decision | Decision (diam) |
| Parallelogram | Data | Input/output | Data input/output (lean-r) |
| Arrow (line with an arrowhead) | Line | Flowline | Link or edge (-->) |
| Small circle | Connector | Connector | Start (circle) |
| Pentagon (home plate) | Not defined | Not defined | No such shape |
| Rectangle with a wavy bottom | Document | Document | Document (doc) |
| Cylinder | Direct access storage (drawn on its side) | Magnetic disk (upright); magnetic drum (on its side) | Database (cyl) |
| Hexagon | Preparation | Preparation | Prepare conditional (hex) |
| Rectangle with double sides | Predefined process | Predefined process | Subprocess (fr-rect) |
| Trapezoid (wide side on top) | Manual operation | Manual operation | Manual operation (trap-t) |
| Rectangle with a sloped top | Manual input | Manual input | Manual input (sl-rect) |
| Display shape (pointed on one side, curved on the other) | Display | Display | Display (curv-trap) |
| D shape (rectangle with one rounded end) | Not defined | Not defined (a delay is one use of the terminal symbol) | Delay (delay) |
Where the conventions differ
- Start and end. ISO says terminator, ANSI says terminal, everyday guides say oval. Both standards draw a stadium.
- Input and output. ANSI names the parallelogram input/output and ISO names it data. Both names are in use.
- Off-page connector. The pentagon is an IBM template shape. In the two standards the circle does both jobs.
- Delay. The D shape is in drawing tools and in Mermaid, not in either standard.
- Cylinder. The standards name it for the storage medium. Tools name it database.
- Circle. A connector in the flowchart standards, Start in Mermaid's shape list, and an event or a start node in BPMN and UML activity diagrams.
Are there rules for flowchart shapes?
Yes, a few. The flowchart shape rules that the standards set are about keeping each shape recognizable and each path readable. Size is free: a shape may be drawn as large as its text needs.
- One meaning per shape. ANSI X3.5 says that symbols stand for functions. A basic shape, such as the rectangle for a process, can always be used, and a specialized shape may replace it to say more.
- Keep the proportions and the orientation. A shape may be drawn at any size, but ANSI X3.5 says its width-to-height ratio shall be kept and its orientation should be the one the standard shows.
- Flow runs left to right and top to bottom. Under ANSI X3.5 a line that runs the other way must carry an arrowhead. ISO 5807 adds arrowheads wherever the direction needs to be shown.
- A decision has one way in and labelled ways out. ISO 5807 gives the diamond a single entry and several exits, of which exactly one is taken each time. ANSI X3.5 says each exit is identified to show its path.
- Connectors come in pairs. The circle where a line stops and the circle where it continues carry the same identifier.
- Text reads the normal way. Words inside a shape read left to right and top to bottom, whatever direction the flow takes.
- House rules are allowed. ISO 5807 says in-house rules may have to be devised to suit the process being described. A legend on the chart tells readers which shapes a team chose.
What does a flowchart look like when it uses these shapes?
This order flow uses eight of the shapes: a stadium to start and to end, a parallelogram for the input, a diamond for the stock question, a D shape for the wait, a rectangle with double sides for a payment routine defined elsewhere, a cylinder for the database, a document shape for the invoice, and arrows between them. The drawing is the Mermaid rendering of the code under it.
flowchart TD
S([Order received]) --> I[/Read order details/]
I --> D{In stock?}
D -->|No| W@{ shape: delay, label: "Wait for restock" }
W --> D
D -->|Yes| P[[Take payment]]
P --> DB[(Save order)]
DB --> DOC@{ shape: doc, label: "Print invoice" }
DOC --> E([Order shipped])
How do you write flowchart shapes in Mermaid?
Mermaid has two ways to set a node's shape. The older one wraps the text in brackets, and each bracket pair is a shape: A[Check stock] is a rectangle, A([Start]) a stadium, A{In stock?} a diamond, A[/Read order number/] a parallelogram, A((A)) a circle, A[(Orders database)] a cylinder, A{{Set count to 0}} a hexagon and A[[Calculate tax]] a rectangle with double sides. This is the long-standing syntax, and old renderers understand it too.
The newer one names the shape: A@{ shape: doc, label: "Print invoice" }. This form arrived in Mermaid 11.3.0, which the documentation says introduced 30 new shapes, among them the document, the delay, manual input and the display. A renderer that embeds an older Mermaid does not understand this form, so check the version before you rely on it. You can paste any snippet from this page into the Mermaid syntax checker to see it drawn, and the Mermaid cheat sheet covers the rest of the syntax.
What do real flowcharts with these shapes look like?
Live diagrams from the public ChartCraft gallery, each generated from a plain-English description. Open one to see the prompt that produced it, or browse more on the flowchart examples page.
Questions
What do the shapes mean in a flowchart?
Each shape stands for one kind of step. A rectangle is a process, a diamond is a decision, an oval or rounded rectangle is the start or end, a parallelogram is input or output, a small circle is a connector, and arrows show the order of the steps.
What flowchart shape is used for a decision?
A diamond. The question is written inside it, one line enters, and each line that leaves is labelled with an answer such as Yes or No.
What shape is used for a process in a flowchart?
A rectangle. It holds one action, written as a verb and an object such as "Check stock", with one line in and one line out.
Are there rules for flowchart shapes?
Yes. Each shape keeps one meaning, shapes keep their standard proportions and orientation, flow runs left to right and top to bottom unless arrowheads show otherwise, every exit from a decision is labelled, and connectors are used in matching pairs. These rules come from ANSI X3.5 and ISO 5807.
What are the flowchart shapes and their functions?
Rectangle: carry out a step. Diamond: choose a path. Oval or stadium: start or stop. Parallelogram: take data in or give it out. Small circle: continue at the matching circle. Document shape: produce or use a document. Cylinder: read or write stored data. Arrow: show which step is next.
What does a circle mean in a flowchart?
A small circle with a letter or number inside is a connector: the flow continues at the circle with the same label. It is not a start or an end. Those use the oval, also called the stadium.
Is a flowchart symbol the same as a flowchart shape?
Nearly. The shape is the outline you see, such as a diamond. The symbol is that shape together with its agreed meaning, such as the decision symbol. Standards define symbols, and readers usually look them up by shape.
Which standard defines flowchart shapes?
ISO 5807:1985 is the international standard and ANSI X3.5-1970 is the American one. They agree on the main shapes and differ in a few names: ISO says terminator and data where ANSI says terminal and input/output.
How do you write flowchart shapes in Mermaid?
With brackets around the node text: [text] is a rectangle, ([text]) a stadium, {text} a diamond, [/text/] a parallelogram, ((text)) a circle, [(text)] a cylinder, {{text}} a hexagon and [[text]] a rectangle with double sides. From Mermaid 11.3.0, other shapes such as the document are written in the form A@{ shape: doc }.
Sources
The meanings, names and rules on this page were taken from these documents.
- ISO 5807:1985. Information processing. Documentation symbols and conventions for data, program and system flowcharts, program network charts and system resources charts. Names and definitions from clause 9, Symbols.
- ANSI X3.5-1970 (FIPS PUB 24). American National Standard Flowchart Symbols and Their Usage in Information Processing, as adopted for United States federal use. Names, definitions and usage rules from sections 3 and 4.
- IBM, Flowcharting Techniques (C20-8152). The guide to IBM's Flowcharting Template (X20-8020). Source for the offpage connector and for IBM's names.
- Mermaid documentation, Flowcharts syntax. Node shapes, the list of shapes added in version 11.3.0 and their names.