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.

DrawingShapeMeaningUse it forMermaid
Rectangle flowchart shape (process) drawn by MermaidRectangleProcess: one action or stepAnything the process does: calculate, check, send, updateA[Check stock]
Stadium or oval flowchart shape (start or end) drawn by MermaidRounded rectangle (stadium, oval)Start or end of the flowchartThe first shape and every last shape of a chartA([Start])
Diamond flowchart shape (decision) drawn by MermaidDiamondDecision: a question with two or more exitsAny point where the path depends on an answerA{In stock?}
Parallelogram flowchart shape (input or output) drawn by MermaidParallelogramInput or output: data going in or coming outReading a value, printing or sending a resultA[/Read order number/]
Arrow (flowline) between two flowchart steps drawn by MermaidArrow (line with an arrowhead)Flow: which step comes nextBetween every two stepsA[Step 1] --> B[Step 2]
Small circle flowchart shape (connector) drawn by MermaidSmall circleConnector: the flow continues at the matching circleReplacing a long or crossing line on one pageA((A))
Pentagon (home plate)Off-page connector: the flow continues on another pageCharts that run over several pagesNo Mermaid shape
Document flowchart shape, a rectangle with a wavy bottom, drawn by MermaidRectangle with a wavy bottomDocument: a report or form people readA step that produces or needs a documentA@{ shape: doc, label: "Print invoice" }
Cylinder flowchart shape (database) drawn by MermaidCylinderDatabase: data stored on diskReading from or writing to a databaseA[(Orders database)]
Hexagon flowchart shape (preparation) drawn by MermaidHexagonPreparation: a set-up stepSetting a counter, a flag or a switch before the main stepsA{{Set count to 0}}
Rectangle with double side bars (predefined process) drawn by MermaidRectangle with double sidesPredefined process: a step defined somewhere elseCalling a subroutine or another flowchartA[[Calculate tax]]
Trapezoid flowchart shape with the wide side on top (manual operation) drawn by MermaidTrapezoid (wide side on top)Manual operation: a step done by a personHand work inside an automated processA[\Inspect parcel/]
Rectangle with a sloped top (manual input) drawn by MermaidRectangle with a sloped topManual input: data a person types inA form field, a PIN, a scanned codeA@{ shape: sl-rect, label: "Enter PIN" }
Display flowchart shape, curved on one side, drawn by MermaidDisplay shape (pointed on one side, curved on the other)Display: information shown to a personA message, a result or a total on a screenA@{ shape: curv-trap, label: "Show total" }
D-shaped delay flowchart shape drawn by MermaidD shape (rectangle with one rounded end)Delay: a wait before the next stepWaiting for an approval, a timer or a deliveryA@{ 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 flowchart shape (process) drawn by Mermaid

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]

Process symbol guide →

Stadium or oval flowchart shape (start or end) drawn by Mermaid

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])

Terminator symbol guide →

Diamond flowchart shape (decision) drawn by Mermaid

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?}

Decision symbol guide →

Parallelogram flowchart shape (input or output) drawn by Mermaid

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/]

Input/output symbol guide →

Arrow (flowline) between two flowchart steps drawn by Mermaid

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]

Flow lines on the process symbol guide →

Small circle flowchart shape (connector) drawn by Mermaid

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))

Connector symbol guide →

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)).

Off-page connectors on the connector symbol guide →

Document flowchart shape, a rectangle with a wavy bottom, drawn by Mermaid

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" }

Document symbol guide →

Cylinder flowchart shape (database) drawn by Mermaid

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)]

Database on the full symbol list →

Hexagon flowchart shape (preparation) drawn by Mermaid

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}}

Loop symbol guide →

Rectangle with double side bars (predefined process) drawn by Mermaid

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]]

Predefined process symbol guide →

Trapezoid flowchart shape with the wide side on top (manual operation) drawn by Mermaid

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/]

Manual operation on the full symbol list →

Rectangle with a sloped top (manual input) drawn by Mermaid

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" }

Input/output symbol guide →

Display flowchart shape, curved on one side, drawn by Mermaid

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" }

Output symbols on the input/output guide →

D-shaped delay flowchart shape drawn by Mermaid

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" }

Delay on the full symbol list →

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.

ShapeISO 5807:1985ANSI X3.5-1970Mermaid shape list
RectangleProcessProcessProcess (rect)
Rounded rectangle (stadium, oval)TerminatorTerminal, interruptTerminal point (stadium)
DiamondDecisionDecisionDecision (diam)
ParallelogramDataInput/outputData input/output (lean-r)
Arrow (line with an arrowhead)LineFlowlineLink or edge (-->)
Small circleConnectorConnectorStart (circle)
Pentagon (home plate)Not definedNot definedNo such shape
Rectangle with a wavy bottomDocumentDocumentDocument (doc)
CylinderDirect access storage (drawn on its side)Magnetic disk (upright); magnetic drum (on its side)Database (cyl)
HexagonPreparationPreparationPrepare conditional (hex)
Rectangle with double sidesPredefined processPredefined processSubprocess (fr-rect)
Trapezoid (wide side on top)Manual operationManual operationManual operation (trap-t)
Rectangle with a sloped topManual inputManual inputManual input (sl-rect)
Display shape (pointed on one side, curved on the other)DisplayDisplayDisplay (curv-trap)
D shape (rectangle with one rounded end)Not definedNot defined (a delay is one use of the terminal symbol)Delay (delay)

Where the conventions differ

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.

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.

Order flowchart that uses eight shapes: stadium, parallelogram, diamond, delay, subroutine, cylinder, document and arrows
Order flowchart with eight shapes, rendered with Mermaid 11.17.2 from the code below.
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.

Related symbol guides

Skip the shape palette and describe the flowchart in plain English.

Flowchart generator →