How to draw a flowchart
A flowchart is a way of showing an algorithm — the order of steps that solves a problem — using shapes and arrows. Below you will find what each symbol means, the rules for drawing one, and a fully worked example.
Open the editor →Why flowcharts are worth drawing
To put your thinking in order before you write any code. When the algorithm is visible on paper or on screen, mistakes are far easier to catch before the program exists: a missing condition or a loop that never ends stands out at a glance.
That is why flowcharts come first when algorithms are taught in computer science classes — they are independent of any programming language. The same flowchart can be written in Python or in C++ in exactly the same way.
The main symbols
Every shape has its own meaning. This is an international convention (ISO 5807), so a flowchart you draw can be read by someone else.
| Shape | Name | What it does |
|---|---|---|
| Start / End | The entry and exit point of the algorithm. Every flowchart has exactly one start. | |
| Input / Output | Read data from the user, or show them a result. | |
| Assignment | Compute something and store it in a variable: s = a + b. |
|
| Condition | A branch into two paths. Two arrows leave it: True and False. | |
| Function | A separate subprogram. It gathers a repeated part in one place (recursion lives here too). | |
| Declaration | Create a variable and state its type: integer: n. |
Rules for drawing
- One starting point. A flowchart begins with a “Start” block and finishes with at least one “End”.
- Flow runs top to bottom. The usual direction is top to bottom, left to right. Try not to let arrows cross.
- Two paths out of a condition. A diamond always has two arrows leaving it, and both are labelled: True / False.
- One entry per block. When several paths lead to the same place, join them first and then enter the block.
- Loops must end. Something inside the repetition has to change the condition — otherwise the program hangs.
Example: is a number even or odd
The simplest complete algorithm. Read a number from the user, check the remainder after dividing by 2, and print the answer.
The code this flowchart turns into:
n = int(input())
if n % 2 == 0:
print("Even")
else:
print("Odd")
Press Code in the editor and the flowchart you drew turns into exactly this, in JavaScript, Python or C++. The Step button runs the algorithm one block at a time — you can watch which value each variable holds along the way.
Common mistakes
- No End block. Not showing where the algorithm finishes is the most frequent omission.
- One arrow out of a condition. A diamond means a split in two; with a single exit it is not a condition but a plain step.
- An endless loop. If the counter never grows, or the condition never changes, the program will not stop.
- A block that does too much. Writing a whole program into one rectangle defeats the point of a flowchart. Let each block do one thing.
- Mixing up the symbols. Input uses a parallelogram, not a rectangle.
Drawing one online
Drawing by hand is slow and hard to correct. On draw.ordexa.uz you click to add blocks and the arrows are drawn for you — everything runs in the browser, with no sign-up and nothing to install. A finished flowchart can be saved as PNG, SVG or JSON, or shared as a link.
A shared diagram lives inside the link itself — it is never sent to the server.
Start drawing a flowchart →