Knowing the symbols is only the first step. Drawing a flowchart that clearly communicates an algorithm takes practice and a few key techniques. A good flowchart should be easy to follow from START to END, with arrows that never leave the reader guessing.
The Golden Rules of Drawing Flowcharts
- Start and end with terminals โ every flowchart needs a START and at least one END.
- Use the correct symbol for each step โ mixing up process and I/O shapes confuses readers.
- Label every decision path โ always mark the Yes and No branches of a diamond.
- Flow generally top-to-bottom โ this is the natural reading direction; exceptions (like loop arrows) should be clearly visible.
- Arrows must always have arrowheads โ direction matters.
Drawing a Sequence Algorithm
Task: calculate the area of a rectangle.
โญโโโโโโโโโโฎ
โ START โ
โฐโโโโโฌโโโโโฏ
โ
โฑโโโโโโโโโโโโโฒ
โฑ INPUT width โฒ
โฒ โฑ
โฒโโโโโโโโโโโโโฑ
โ
โฑโโโโโโโโโโโโโโฒ
โฑ INPUT height โฒ
โฒ โฑ
โฒโโโโโโโโโโโโโโฑ
โ
โโโโโโโโโโโโโโโโโโโโโโโโ
โ SET area โ width ร height โ
โโโโโโโโโโโโฌโโโโโโโโโโโโ
โ
โฑโโโโโโโโโโโโโโโโโโโฒ
โฑ OUTPUT "Area:" + area โฒ
โฒ โฑ
โฒโโโโโโโโโโโโโโโโโโโโโโโฑ
โ
โญโโโโโโโโโโฎ
โ END โ
โฐโโโโโโโโโโฏ
Drawing Selection (IF Statement)
Task: display "Pass" or "Fail" based on a score.
The decision diamond has one entry arrow and two exit arrows labelled Yes and No:
โ
โฑโโโโโโโโโโโโโฒ
โฑ INPUT score โฒ
โฒ โฑ
โฒโโโโโโโโโโโโโฑ
โ
โโโโโโโโโโโโโโโโโโโโโโโ
โ Is score โฅ 50? โ
โโโโโโโโโโโโโโโโโโโโโโโ
Yes โ No โ
โโโโโโโโโโโโ โโโโโโโโโโโโ
โOUTPUT โ โ OUTPUT โ
โ "Pass" โ โ "Fail" โ
โโโโโโฌโโโโโโ โโโโโโฌโโโโโโ
โโโโโโโโฌโโโโโโโโโ
โ
โญโโโโโโโโโโฎ
โ END โ
โฐโโโโโโโโโโฏ
Notice how both branches from the diamond eventually merge before the END. When drawing multiple paths, merge them cleanly using a joining point โ this keeps the diagram readable.
Drawing a Loop
Loops are shown by drawing an arrow that goes backwards up the diagram. This is the main exception to the top-to-bottom rule.
Task: count down from 5 to 1.
โ
โโโโโโโโโโโโโโโโ
โ SET n โ 5 โ
โโโโโโโโฌโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ Is n > 0? โ โ
โโโโโโโโโโโโโโโโโโโโ โ
Yes โ No โ โ
โฑโโโโโโโโโโโฒ โญโโโโโโฎ โโโโโโโโโโโโ โ
โฑ OUTPUT n โฒ โ END โ โSET nโn-1 โ โ
โฒ โฑ โฐโโโโโโฏ โโโโโโโฌโโโโโ โ
โฒโโโโโโโโโโโโฑ โโโโโโโโโ
โ
โโโโโโโโโโโโ
โSET nโn-1 โ
โโโโโโฌโโโโโโ
โโโโโโโโ (back up to condition diamond)
When drawing a loop, clearly show where the backwards arrow re-enters the diagram โ usually at the decision diamond. Use a slight curve or an explicit junction dot to make it obvious.
Common Mistakes to Avoid
| Mistake | Fix |
|---|---|
| Unlabelled decision arrows | Always write Yes/No on both paths |
| Missing START or END terminal | Add them โ they are mandatory |
| Arrows with no arrowhead | Add arrowheads to show direction |
| Dead-end paths that never reach END | Every path must lead to an END |
| Using rectangles for input/output | Use parallelograms instead |
A decision diamond with only one exit arrow is a logic error. A condition is always either True or False โ both outcomes must have a defined path in your flowchart.
Practice Problems
List the shapes (in order) you would use to draw a flowchart for: start, ask the user for a number, check if the number is even, output 'even' or 'odd', then end.
Show answer
A student draws a flowchart with a decision diamond but only draws one exit arrow. What is wrong and how do they fix it?