The shapes of ISO 5807
Every block on a compliant chart is one of these figures. Using the wrong shape (an action in a diamond, a decision in a rectangle) is the most common reason work is sent back.
Terminator
Start and end of a program or function
Process
Calculations and assignments
Data
Input and output
Decision
A condition with two exits: if, while, switch
Preparation
The header of a for loop
Predefined process
A call to your own function
Loop limit
Start and end of a loop: two halves with one name
Connector
Continues the chart elsewhere or on the next page
Flow line
Arrowheads only where a line runs up or left
Comment
A note attached to a block with a dashed line
A live example: algorithm → chart
The larger of two numbers. Notice: start and end are terminators, input and output are parallelograms, the condition is a diamond with two labelled exits, and the flow goes top to bottom with no extra arrows.
Figure 2 — max(a, b)
Direction & layout rules
Top to bottom, left to right
Flow follows the default direction; arrows are required only where it differs. This keeps the chart readable without arrows on every line.
One entry, labelled exits
Each block has a single entry. A decision has exactly two exits, labelled “Yes”/“No” (or +/−).
Short labels inside shapes
Text is concise and fits inside the figure. Don’t overflow — split the action instead.
Numbered as “Figure N”
The whole chart is captioned “Figure N — name”, matching the report body.
Common review mistakes
| Accepted | Sent back for rework |
|---|---|
| Action in a rectangle | Action inside a diamond |
| Diamond only for conditions | A condition drawn as a rectangle |
| Start & end terminators present | Missing start/end terminators |
| Arrows only where direction differs | An arrow on every line, even top-down |
Frequently asked questions
Which standard defines flowchart symbols?
The international standard is ISO 5807:1985. In Ukraine the same rules are set by DSTU 19.701-90 (GOST 19.701-90), which matches ISO 5807 in shapes and line conventions.
Which shape is used for a condition, and which for a loop?
A condition is a decision diamond with two exits, usually labelled Yes/No. A for loop is drawn with a hexagon (the preparation symbol); while and do…while loops are a decision diamond with a line going back.
Do all lines need arrows?
No. The standard flow goes top to bottom and left to right, so arrows are only required where a line goes against it — upwards or from right to left, such as the return of a loop.
Can rombik follow my teacher’s variant of the rules?
Yes. The shapes, line directions and the “Figure N” caption follow the standard by default, and the settings cover common department variants: one shared End, a loop without a hexagon, branch labels, words instead of code in blocks.