Flowchart symbol rules on one page
A flowchart shows the kind of step by the shape of the symbol and the order by arrows. Learn the eight symbols below and you can draw almost any classroom flowchart.
These follow the symbols set out in standards such as ISO 5807. Textbooks differ a little in shape and in which symbols they use, so follow your course material first if this is for an assignment.
Symbol rules
Terminator
Use it once at the start and once at the end.
In text:
([…])Process
Write a calculation or an assignment. Example: total = total + i
In text:
[…]Decision
Write a yes or no question. Label each outgoing line Yes or No.
In text:
{…}Input / output
Use it when the chart reads a value or shows one.
In text:
[/…/]Flow line
Connects two symbols with an arrow. To add a label, write A -->|Yes| B.
In text:
A --> BPreparation
Some textbooks use it to open a loop. Others use a decision symbol instead.
In text:
{{…}}Predefined process
Use it to call a chart or function that is drawn elsewhere.
In text:
[[…]]Connector
When a chart runs onto another page, join it with two connectors that carry the same letter.
In text:
((…))
Drawing rules
- Use one start symbol and one end symbol, and keep the flow moving from top to bottom or left to right.
- Every symbol has a line coming in. Only the start symbol has none.
- A decision symbol has two or more lines going out, and each one is labeled, for example Yes and No.
- Keep the text in a symbol short. Put a calculation or a condition, not a sentence.
- Avoid lines that cross. If they do, reorder the lines in the text.
- If a loop goes back, draw the arrow back to the decision, not to the symbol before it.
Pasting into Word, PowerPoint and other documents
- Save as PNG for the safest result. The background is white, so it looks the same on a dark slide or a printed page.
- SVG stays sharp when you enlarge it. Recent versions of Word and PowerPoint can insert it, but older versions and some other programs cannot, so keep a PNG too.
- Insert the saved file with the Insert menu, then Picture. Dragging the file into the document works as well.
Writing the chart as text
The chart is drawn from the text syntax of the open-source tool mermaid. Put flowchart TD on the first line, then one symbol or one line per row.
flowchart TD
A([Start]) --> B[/Read n/]
B --> C{Is n greater than 0?}
C -->|Yes| D[Print positive]
C -->|No| E[Print zero or less]
D --> F([End])
E --> F- A letter such as A or B names a symbol. The text in brackets is what shows in the chart.
- A --> B draws an arrow. A -->|Yes| B puts a label on it.
- If the text inside a symbol contains parentheses or quotes, wrap it in double quotes: A["total (sum)"].
- Use TD for top to bottom and LR for left to right on the first line.