# Symbol (Programming)

> A named thing in code, like a function or a class, that tools can find and track.

**Field:** Software Development  
**Category:** Code Intelligence  
**Also known as:** Code Symbol, Symbol Table, Identifier

## Think of it like

It is like a name tag. Each thing in the code wears one, so tools can find it.

## Definition

A symbol is a named thing in code, such as a function, a class, a variable or a type. Each symbol has a name, a kind and a place where it is defined. Tools collect them into a list called a symbol table. Two symbols can share a name if they live in different files or scopes. Code intelligence tells them apart by where they are defined, not just by their name.

## Example

In a shop app, the function getPrice is a symbol. Its kind is function, and it is defined in prices.py on line 22.

## Why it matters

Every jump, rename and search in a smart editor works on symbols. They are the nouns of a codebase.

## Common mistake

Thinking two symbols with the same name are the same thing. A save function in two classes is two symbols.

## Three principles

- **Has a name.** Like getPrice or User.
- **Has a kind.** Function, class, variable, type.
- **Has a home.** The file and line it lives on.

## Related terms

- [Code Intelligence](https://learn.benibix.com/term/development/code-intelligence)
- [Code Index](https://learn.benibix.com/term/development/code-index)
- [Go to Definition](https://learn.benibix.com/term/development/go-to-definition)
- [Function](https://learn.benibix.com/term/development/function)
- [Variable](https://learn.benibix.com/term/development/variable)
- [Abstract Syntax Tree (AST)](https://learn.benibix.com/term/development/abstract-syntax-tree)

![A pipeline from left to right. Source files go into a parser, which builds a syntax tree for each file. From the trees, the symbols are pulled out: functions, classes and variables, each with its file and line. They are stored in a code index, lit up. Four users read from the index: go to definition, find all references, code search and an AI agent.](https://learn.benibix.com/diagrams/dev4-code-intel.svg)

---

Source: https://learn.benibix.com/term/development/code-symbol
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
