# State Diagram

*noun*

say it: **“STAYT DY-uh-gram”** **/steɪt ˈdaɪəɡræm/**

A UML diagram of the states something can be in, drawn as rounded boxes, with arrows labeled by the events that move it from one state to another and a solid dot where it starts.

## What is a **state diagram**?

A **state diagram** (a *state machine diagram* in UML) draws everything something can be as rounded boxes, the events that move it as labeled arrows, and where it starts as a solid dot. If no arrow for an event leaves a state, that event isn't allowed there: a package's only "cancel" arrow leaves "ordered", so a shipped package can't be canceled.

## In a sentence

- “We drew the package's **state diagram** before writing one line of the new status.”
- “The **state diagram** showed no cancel arrow out of shipped, so the bug was plain to see.”

Level: Journeyman · [More Software Development terms at this level](https://www.ask-codey.com/glossary?category=software-development&level=3)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/state-diagram
