NEW: English for Tech Bundle → Save 40%
Your progress

Loading your progress…

Home
Code & Deliverynoun · /ˈvɛriəbəl/

variable

In simple English

In software development, a variable is a named location in memory that holds a value. Think of it like a labeled box where you put information—you can put something in it, take it out, or change what is inside. Variables have names (like userName or totalPrice) and types (like integer, string, or boolean) that tell the program what kind of data they hold. Variables are essential because they allow code to be flexible and reusable. Instead of writing the same number over and over, you store it in a variable and reference that variable by name. This makes code easier to read, maintain, and change. In team meetings, developers constantly discuss variables—how to name them clearly, where to initialize them, and how they are passed between functions.

Understanding what a variable is, how to declare it, and why variables matter in programming.

At a glanceCEFR B2
Commonness5/5
Versatility5/5
FormalityCasualFormalNeutral
Spoken ↔ WrittenSpokenWrittenBoth
Directness ↔ DiplomaticDirectDiplomaticDirect
RegionUS and UK
New app · Free lessons

Speak up in meetings. Feel confident.

Standup vocabulary, native examples, and quick practice — 100+ free lessons

Start learning freeNo card needed · Google or email

Say it like this

Declare a variable
Initialize a variable with a value
The variable holds the user ID

Real examples

in a standup

"I created a new variable to track the request timeout, so we can adjust it without changing the code multiple times."

in a code review

"This variable name is too vague. Can you rename it from x to userCount for clarity?"

in a team meeting

"We should define that variable globally so all modules can access the database connection."

Don't say this

Handle with care. Non-native speakers sometimes confuse variable (a container for data) with parameter (input to a function). Also, do not use variable as a verb in tech English.

The parameter is a variable that holds the user data.
The parameter is a variable that receives the user data when the function is called.Parameter and variable are related but different—parameters are specifically function inputs, while variables are general data containers.
We need to variable this code section.
We need to extract this code section into a variable.Variable is a noun, not a verb in tech English. You declare or initialize a variable, but you do not variable something.
That variable is not flexible.
That variable name is not clear or that value is not flexible.Variables themselves are inherently flexible—you likely mean the name is unclear or the hardcoded value should be a variable.

Other forms

noun

variable

"The variable stores the user email address."

noun (plural)

variables

"We declared three variables at the top of the function."

adjective

variable

"The variable cost changes based on demand."

Often used with

declare a variableCreate and introduce a variable at the start of a scope.
initialize a variableSet the starting value of a variable when you declare it.
local variableA variable that exists only within a specific function or block of code.
global variableA variable accessible throughout the entire program.
variable nameThe label or identifier you give to a variable.
variable typeThe data type (int, string, boolean, etc.) a variable holds.

Similar words

parameterSpecifically refers to input values passed to a function; more narrow than variable.
fieldA variable that belongs to a class or object; more specific context.
data containerA generic term; less common in professional tech English than variable.

Opposites

constant

Practice

Try it

4 quick exercises

Pick the most natural phrasing

1. Your colleague is discussing naming conventions. Which sentence sounds most natural?

Complete the sentence

2. Before we use any data, we must _______ a _______ to store it.

Spot the mistake

3. Which sentence uses variable incorrectly?

Rewrite naturally

4. Rewrite this using variable naturally: 'We need a box to hold the number of items the user wants to buy.'

Questions

Quick poll

Have you said "variable" in a standup this week?

Want more structured practice like this? Our English for Programmers course covers real workplace English in depth.

Your badges