Skip to content

ISO 5807 / GOST 19.701-90 flowchart: the full guide

ISO 5807 (aligned with GOST/DSTU 19.701-90) defines which shapes and directions represent an algorithm — the standard graders check a diagram against. Below: every shape shown visually, a live “algorithm → chart” example, layout rules, and the common mistakes that get work sent back.

Grade by score: terminators, an input parallelogram and a decision diamond — ISO 5807 shapes. More examples

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.

StartInput a, ba > bPrint aPrint bEndYesNo

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

AcceptedSent back for rework
Action in a rectangleAction inside a diamond
Diamond only for conditionsA condition drawn as a rectangle
Start & end terminators presentMissing start/end terminators
Arrows only where direction differsAn 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.