# Pseudo Code and Flowchart Symbols: How Each Line Maps

Canonical: https://sakura5.app/blog/pseudo-code-flowchart-symbols/  
Published: 2026-11-27  
Author: the Sakura5 team · 8 min read  
Updated: 2026-11-27  
Publisher: Sakura5 (https://sakura5.app) · support@sakura5.app

> **TL;DR:** Pseudo code/flowchart symbols mapped line by line: which shape START, INPUT, IF, WHILE and CALL become, with a worked grade-calculator example.

![Pseudo Code and Flowchart Symbols: How Each Line Maps](https://sakura5.app/img/blog/inline/pseudo-code-flowchart-symbols-1.jpg)

Pseudo code and flowchart symbols map almost one to one: START and END become rounded ovals (terminators), INPUT and OUTPUT become parallelograms, assignments and calculations become rectangles, IF and loop conditions become diamonds, and a CALL to another routine becomes a rectangle with double side bars. Once you know that mapping, you can turn any pseudocode into a flowchart, or read a flowchart back into pseudocode, line by line.

That matters because most programming courses ask for both. You write the logic as pseudocode, then draw the same logic as a flowchart, and the marks go to whether the two agree. The trouble is that pseudocode has no fixed syntax, so people get stuck on which shape a line like “REPEAT UNTIL” or “CALL validate()” should become.

This guide gives you the full keyword-to-symbol table, a step-by-step method for converting, a worked example of a five-score grade calculator, the loop and function cases that cause most mistakes, and answers to the questions students ask most.

## The pseudo code to flowchart symbols table

Pseudocode keywords vary between textbooks, but they fall into a few families, each with one shape. Learn the families, not the exact words.

- **Terminator (rounded oval)** — START, BEGIN, END, STOP, RETURN at the end of a program. One at the top, at least one at the bottom.
- **Input/Output (parallelogram)** — INPUT, READ, GET, OUTPUT, PRINT, DISPLAY, WRITE. Anything that crosses the boundary between the program and the user or a file.
- **Process (rectangle)** — SET, COMPUTE, CALCULATE, INCREMENT, and any plain assignment such as *total ← total + score*. Several consecutive assignments can share one rectangle.
- **Decision (diamond)** — IF, ELSE IF, CASE, and the condition part of WHILE, REPEAT UNTIL and FOR. The diamond holds a yes/no question, and each exit arrow is labeled.
- **Predefined process (rectangle with double vertical sides)** — CALL, or any named function or procedure that has its own chart somewhere else.
- **Preparation (hexagon)** — optional, used by some courses for the setup line of a counted FOR loop, such as *FOR i ← 1 TO 5*.
- **Connector (small circle) and off-page connector (pentagon)** — no pseudocode equivalent. They exist only to keep a large chart readable when arrows would cross or the chart runs onto a second page.

These shapes come from the ISO 5807 standard for program flowcharts, which you can find on the [ISO website](https://www.iso.org/standard/11955.html). If you want the full meaning of each shape with more programming examples, our guide to [flowchart symbols in programming](https://sakura5.app/blog/flowchart-symbols-in-programming-definition-functions-and-ex/) goes deeper on each one.

## Why converting line by line goes wrong

The obvious approach is one shape per line, top to bottom. It works for straight sequences and breaks as soon as control flow appears.

![Why converting line by line goes wrong — pseudo code/flowchart symbols](https://sakura5.app/img/blog/inline/pseudo-code-flowchart-symbols-2.jpg)

*The obvious approach is one shape per line, top to bottom.*

The first problem is that pseudocode hides structure in indentation and closing words. ENDIF, ENDWHILE and NEXT are not steps. They have no shape. They mark where arrows rejoin, and if you draw a box for them, your chart gains steps that do nothing.

The second problem is loops. In pseudocode, WHILE sits at the top and the loop body sits underneath. On a flowchart, the loop is a diamond with an arrow that comes back up to it from the bottom of the body. Nothing in the text tells you to draw that return arrow, so it gets missed, and the chart shows code that runs once.

The third problem is mixing up input and processing. “GET the average” sounds like input, but if the program calculates it, that is a process. Ask one question of every line: does data cross the program boundary here? If yes, parallelogram. If no, rectangle.

## How to convert pseudocode into a flowchart

This method works for homework-sized programs of five to fifty lines.

### 1. Mark the control lines first

Before drawing anything, underline every IF, ELSE, WHILE, FOR, REPEAT, UNTIL and CASE in the pseudocode. These become diamonds. Circle every closing word (ENDIF, ENDWHILE, NEXT); these are join points, not shapes.

### 2. Classify every other line

Write a single letter beside each remaining line: T for terminator, I for input/output, P for process, C for a call. You now know every shape you need before you place one.

### 3. Draw the main spine

Place the start oval at the top and draw the sequence straight down, one shape per classified line.

### 4. Add the branches and return arrows

For each IF, draw a Yes exit and a No exit, then bring both paths back to a single point where the ENDIF was. For each loop, draw the body beneath the diamond and an arrow from the last body step back up to the diamond. Label every exit from every diamond.

### 5. Trace it with test values

Pick a real input and follow the arrows with your finger, writing down each variable as it changes. Then do the same with the pseudocode. If the two traces disagree, one of them is wrong, and finding where they diverge tells you exactly which shape or line to fix.

Steps 1 and 2 are really a sorting job, and it helps to do them somewhere other than your final diagram. In [Mindmap AI](https://sakura5.app/mindmapai/) you can put the program name in the central node and add a branch for each family — inputs, processes, decisions, outputs — then drag lines of pseudocode under the right one. The outline view then shows the classified list in order, which is exactly the list you draw from.

## A worked example: a five-score grade calculator

A common introductory task: a program reads five test scores, works out the average, and prints “Pass” if the average is 60 or more, otherwise “Fail”.

![A worked example: a five-score grade calculator — pseudo code/flowchart symbols](https://sakura5.app/img/blog/inline/pseudo-code-flowchart-symbols-3.jpg)

*The pseudocode, written as a numbered list: Applying the method gives this mapping.*

The pseudocode, written as a numbered list:

1. START
2. SET total ← 0
3. FOR count ← 1 TO 5
4. INPUT score
5. SET total ← total + score
6. NEXT count
7. SET average ← total / 5
8. IF average &ge; 60 THEN
9. OUTPUT “Pass”
10. ELSE
11. OUTPUT “Fail”
12. ENDIF
13. END

Applying the method gives this mapping. Line 1 is an oval labeled Start. Line 2 is a rectangle. Line 3 is the loop control: draw it either as a hexagon labeled *count ← 1 to 5* or, if your course does not use the hexagon, as a rectangle setting count to 1 followed by a diamond asking *count &le; 5?*. Line 4 is a parallelogram, Input score. Line 5 is a rectangle, and with the diamond version you add *count ← count + 1* to it. Line 6 is not a shape. It is the arrow back up to the loop diamond.

The No exit of the loop diamond leads to line 7, a rectangle for the average. Line 8 is a second diamond, *average &ge; 60?*. Its Yes exit goes to a parallelogram for Output Pass, its No exit to a parallelogram for Output Fail. Line 12 is where both arrows join, and line 13 is the end oval.

Count the shapes in the diamond version: two ovals, three rectangles, three parallelograms, two diamonds. Ten shapes for thirteen lines of pseudocode, because ENDIF, ELSE and NEXT have no shape of their own and the counter update shares a rectangle.

Now trace it with the scores 70, 55, 80, 40 and 65. The total after five passes is 310, the average is 62, the diamond answers Yes, and the output is Pass. Try a second set that should fail, such as 50, 50, 50, 50 and 60, which averages 52, to check the other branch.

## Edge cases: loops, functions and nested decisions

**REPEAT UNTIL versus WHILE.** A WHILE loop tests first, so its diamond sits above the body. A REPEAT UNTIL loop tests last, so the body comes first and the diamond sits below it, with the return arrow going from the diamond back up to the first body step. Also note the wording flips: WHILE continues on Yes, UNTIL continues on No.

**Function calls.** When pseudocode says CALL calculateTax(price), draw one predefined process box labeled with the function name. Then draw the function as its own small chart, starting with an oval labeled with the function name and ending with an oval labeled Return. Do not paste the function body into the main chart.

**CASE statements.** A CASE with four options can be one diamond with four labeled exits or a chain of diamonds, each asking about one value. Either way, every option, including the OTHERWISE, needs its own exit.

**Nested IFs.** Each IF gets its own diamond and its own join point. If you find arrows crossing, use a connector circle with a letter in it rather than routing a long arrow around the page. Our guide on [which flowchart symbol means input or output](https://sakura5.app/blog/which-flowchart-symbol-means-input-output/) also covers when a READ from a file counts as input and when it should be a separate storage shape.

For longer assignments, sketch the structure before you commit to boxes. With a Pro subscription, Mindmap AI can draft a map from a typed topic such as “grade calculator logic”, and you can tap any node to expand it into sub-steps. Treat the draft as a checklist of steps to compare against your own pseudocode, then [export the outline as a PDF](https://sakura5.app/mindmapai/) if you want to hand in your planning alongside the chart.

## FAQ

**What symbol is used for IF in a flowchart?**

An IF statement in pseudocode becomes a diamond, the decision symbol. Write the condition inside it as a yes/no question, such as “average &ge; 60?”, and label the two exit arrows Yes and No. ELSE has no shape of its own; it is simply the No arrow, and ENDIF is the point where the two paths join again.

**How do you show a loop in a flowchart from pseudocode?**

Draw the loop condition as a diamond and the loop body as the shapes beneath it, then add an arrow from the last body step back to the diamond. WHILE loops test before the body, so the diamond comes first. REPEAT UNTIL loops test after it, so the diamond comes last. Counted FOR loops can use a hexagon.

**Is INPUT a process or an input/output symbol?**

INPUT, READ, PRINT, DISPLAY and OUTPUT all use the parallelogram, because data is crossing the boundary between the program and the outside world. Calculations and assignments, even ones phrased as “get the total”, use the rectangle. The test is simple: if the program produces the value itself, it is a process.

**Should I write the pseudocode or the flowchart first?**

Write pseudocode first for most programming tasks. It is faster to edit, and the conversion method gives you the flowchart mechanically. Draw the flowchart first only when the logic is mostly branching, such as a menu or a troubleshooting guide, because the shape of the decisions is easier to see than to describe.

About the app: [MindMap AI: Mind Map Maker](https://sakura5.app/mindmapai/) · App Store: https://sakura5.app/go/mindmapai?from=/blog/pseudo-code-flowchart-symbols/
