Variable: Definition, Meaning, and Examples

Published on
November 1, 2026

Updated

Variable means able to change or not always the same. A variable is something that can differ, such as the temperature or the number of people in a room.

If you work 20 hours one week and 30 hours the next, your working hours are variable. They do not stay the same from week to week.

The word also has specific meanings in math, science, statistics and computer programming. The sections below explain each one.

On this page

What does “variable” mean?

As an adjective: able to change or differ

An adjective describes something. In “variable weather,” variable describes the weather.

“The quality of the peaches was variable.”

Some peaches were good, while others were not. Here, the word describes differences between things. It does not mean each peach changed over time.

Variable can also describe something that can be adjusted. A fan with a variable speed control lets you change how fast it turns.

As a noun: something that can differ

A noun names something. A variable can be a factor that may change and affect a situation.

“Traffic is one variable that affects our journey.”

The same drive may take longer when there is more traffic. Traffic is one variable to consider; weather is another.

How do you pronounce “variable”?

One common American pronunciation is VAIR-ee-uh-buhl, with the strongest emphasis on VAIR.

The first part sounds like air with a v in front. The remaining sounds are softer: ee-uh-buhl. Pronunciation varies somewhat by accent.

The noun and adjective are pronounced alike. You can listen to the pronunciation.

What is a variable in math?

In basic math, a variable is a letter or symbol representing a number. It may stand for a number you need to find or a number that can take different values. Here, value means the number the symbol stands for.

Suppose you have two buttons but need five. How many more do you need?

You could write the question with an empty box:

2 + □ = 5

A math book might use the letter x instead:

2 + x = 5

You need three more buttons, so x = 3. The variable is x, and its value in this problem is 3. The letter x does not mean multiplication here.

Calling x a variable does not mean any answer will work. Only 3 makes this particular statement true.

What is the difference between a variable and a constant?

A variable can have different values. A constant stays the same within the problem or situation being discussed.

Imagine a shop sells every notebook for $2. One customer buys one notebook; another buys three. The number of notebooks varies, but the price per notebook stays constant at $2 for these purchases.

“Constant” does not mean the shop can never change its price. It means the price stays the same in the comparison we are making.

How to tell a variable, its value and a constant apart

Imagine packing picnic bags. You put two sandwiches in every bag, but the number of bags depends on how many people are coming.

If you pack… Sandwiches in each bag Total sandwiches needed
3 bags 2 6
5 bags 2 10

There are three useful questions to ask:

What can differ? The number of bags. You might need three bags for one picnic and five for another. The number of bags is a variable.

What is its value this time? If you are packing three bags, the value of that variable is 3. The variable names what you are counting; the value gives the count for this particular picnic.

What stays fixed in this plan? You put two sandwiches in each bag, so that amount is constant. The total number of sandwiches is not constant: it changes from six to ten when you pack more bags.

You could write the rule in ordinary words:

Total sandwiches = number of bags × 2

The × sign means “multiply.” For three bags, calculate 3 × 2 = 6. For five bags, calculate 5 × 2 = 10.

This is why the number 3 is a value, not the name of the variable. “Number of bags” tells you what can differ; “3” tells you the amount in one case.

What is a variable in science?

In science, a variable is something that can differ, such as temperature, height or the amount of water used. In a simple experiment, variables have different roles.

Suppose you want to find out whether sugar dissolves faster in warm water than in cool water. You put sugar into each cup and time how long it takes to dissolve.

Type What you do In this experiment
Independent variable Deliberately change it Use different water temperatures
Dependent variable Measure it to see what happens Time how long the sugar takes to dissolve
Controlled variables Keep them the same for a fair comparison Use the same amount and type of sugar, amount of water and way of stirring

If you stir only the warm water, a difference could come from the temperature, the stirring or both. Keeping the stirring the same helps you test the effect of temperature.

A controlled variable is still called a variable because it could differ. You choose to keep it the same during that experiment.

These descriptions apply to this simple experiment. More complicated studies can involve several things changing at once.

What is a variable in statistics?

Statistics involves collecting and studying information. A variable is a characteristic you record, such as a person's age, height or preferred language.

Two important types are numerical and categorical variables:

  • Numerical: records an amount or measurement. “How many pets do you have?” might produce answers such as 0, 1 or 3.
  • Categorical: records a group or type. “What is your favorite fruit?” might produce answers such as apples, bananas or grapes.

A variable does not always have to be a number. The answers can differ between people, even if each person's answer stays the same over time.

Two terms describe different kinds of numerical variables:

  • Discrete: has separate possible values. A count of pets uses whole numbers, such as 0, 1 and 2.
  • Continuous: can be measured along a scale. Height might be 160.5 centimeters, with more detail possible if measured more precisely.

The distinction is not simply “whole numbers versus decimals.” A score that allows only whole or half points is still discrete: you can list the allowed steps. What matters is whether values come in separate steps or can fall anywhere along a continuous scale.

What is a variable in computer programming?

In programming, a variable associates a name with information the program can use. That information might be a number, some text or another kind of value. For example, Python lets a program assign a value to a variable.

Think about an online shopping cart. A program could use the name item_count, meaning “number of items,” to keep track of how many items you have added.

If your cart contains three items, its current value is 3. Add another item, and the program can update that value to 4.

The name item_count stays the same; the number associated with it changes. Another variable could hold your delivery name, such as “Maria,” rather than a number.

Examples of “variable” in a sentence

  1. “My working hours are variable.” The person does not work the same number of hours every week.
  2. “The weather has been variable today.” The weather has changed during the day.
  3. “The restaurant's food is of variable quality.” Some meals are better than others.
  4. “Traffic is an important variable when we plan the delivery.” Different traffic conditions can affect the plan.
  5. “The number of guests is still a variable.” The final guest count is not yet fixed.
  6. “Use a variable to represent the missing number.” A letter or symbol can stand for the number you need to find.
  7. “Water temperature was the independent variable.” In the sugar experiment above, this was what the person changed.
  8. “Age was one variable recorded in the survey.” The survey collected each person's age.
  9. “The program saves your name in a variable.” It keeps the name available for later use.
  10. “The fan has a variable speed control.” You can adjust how fast the fan turns.

Synonyms and antonyms of “variable”

Synonyms have similar meanings. Choose one that fits the particular use:

Similar word When it fits Example
Changeable Something can change Changeable weather
Fluctuating An amount rises and falls Fluctuating prices
Inconsistent Quality or behavior is not reliably the same Inconsistent service
Adjustable Someone can deliberately change a setting Adjustable speed

These words are not interchangeable in every sentence. “Adjustable weather” would suggest someone could control the weather.

Antonyms have opposite meanings. Depending on the sentence, opposites of variable include constant, fixed, steady, stable, uniform and unchanging.

Compare “variable hours” with “fixed hours,” or “variable quality” with “consistent quality.” Predictable is not always an opposite: something can change according to a known pattern.

Word forms and spelling

The singular noun is variable. The plural is variables: “We measured three variables.”

The adjective does not become plural: write variable temperatures, not “variables temperatures.” You can also compare things as more variable or less variable.

Related word Meaning Example
Vary To change or differ “Prices vary from shop to shop.”
Variation A difference or change “There is some variation in the sizes.”
Variability The extent to which something differs or changes “There is a lot of variability in the tomatoes' sizes.”
Variably In a way that differs or changes “The stones are variably colored.” They have different colors.
Variableness The quality of being changeable “The variableness of the weather made planning difficult.”

For spelling, break the word into vari + able. Remember the a after the i: variable, not “varible.” “Variabel” and “varriable” are also incorrect spellings of this English word.

Phrases that use “variable”

  • Variable speed: a speed that can change or be adjusted, as with a fan or drill.
  • Variable winds: winds that change direction; the phrase can also describe changes in wind strength in general use.
  • Variable interest rate: an interest rate that can change over time.
  • Variable cost: a business cost whose total changes with the amount produced, such as spending on ingredients when a bakery makes more bread.
  • Variable star: a star whose brightness as seen from Earth changes over time.
  • Variable geometry: a shape or arrangement that can be changed, such as an aircraft wing that can move to a different angle.
  • Environment variable: a named setting available to a computer program, such as a setting identifying a folder it should use. In this computing phrase, the usual term is environment variable, rather than environmental variable.

Where does “variable” come from?

The history of variable traces it through French to Latin variabilis, meaning “changeable.” The adjective is recorded in English from the late 1300s.

The mathematical noun developed later. Historical dictionaries record it from 1816. These dates concern recorded uses of particular meanings, not every modern use of the word.

Other questions about “variable”

Does “variable” mean “unpredictable”?

Not always. Variable means something can change or differ. Unpredictable means you cannot reliably tell what will happen next.

A planned work schedule might give you four hours on Monday and six on Tuesday. Your hours vary, but you know them in advance.

Can “variable” describe a person?

Yes, it can describe changeable behavior or moods. Naming what changes makes the meaning clearer.

“Her mood is variable” tells the reader more than “She is variable.” It describes her changing mood without making a broad claim about everything she does.

Check your understanding of “variable”

Choose an answer for each situation. You will see an explanation for your choice, and you can change your answer. There is no time limit.

Practice questions and answers

The interactive quiz needs JavaScript. You can still read every question, choice and explanation below.

Can something change and still be predictable?

A swimming pool opens at 7 a.m. on weekdays and 9 a.m. on weekends. The same schedule is posted every week.

Are its opening times variable across the week?

  • A. Yes, because the opening time differs between weekdays and weekends.

Correct. The opening time changes according to the day. The posted schedule makes the change predictable, but it does not make every opening time the same.

  • B. No, because the same weekly schedule repeats.

Not quite. The weekly pattern repeats, but the question asks about opening times on different days. Those times differ. A repeating pattern can contain variation.

Which number does the variable represent?

You need 12 chairs for a gathering. Seven chairs are already in the room. Let x stand for the number of extra chairs you need:

7 + x = 12

What is the value of x?

  • A. 12

Not quite. Twelve is the total number of chairs needed. The variable x represents only the extra chairs you must bring in.

  • B. 5

Correct. Seven chairs plus five more make twelve. The variable is x, and its value in this problem is 5.

  • C. 7

Not quite. Seven is the number of chairs already in the room. Adding seven more would give you fourteen, rather than twelve.

Can a variable have words as its values?

A survey asks people to name the color of their front door. Answers include blue, white and red.

What kind of variable is door color?

  • A. A categorical variable: the answers name types of color.

Correct. Blue, white and red are categories, rather than amounts. A variable can record which kind something is; it does not have to count or measure it.

  • B. A numerical variable: we can count how many people choose each answer.

Not quite. You can count the answers afterward, but each person's answer to this question is a color. “Door color” is categorical. “Number of blue doors” would be a different, numerical variable.

Which variable are you measuring in an experiment?

You want to find out whether the amount of water affects plant growth. You give similar plants different amounts of water. You use the same type and amount of soil and keep the light conditions alike. After two weeks, you measure how much each plant has grown in height.

Which is the dependent variable, the result you measure?

  • A. The amount of water each plant receives.

Not quite. That is what you deliberately change, so it is the independent variable in this experiment.

  • B. The amount of soil in each pot.

Not quite. You keep the amount of soil the same. It is a controlled variable that helps make the comparison fair.

  • C. How much each plant grows in height.

Correct. Growth in height is the result you measure to see whether it differs with the amount of water. That makes it the dependent variable here.

Copyright © 2026 - U.S. Dictionary
Privacy Policy
magnifier