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.
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.
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.
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.
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.
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.
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.
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.
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:
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:
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.
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.
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.
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.
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.
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.
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.
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.
A variable is something that can differ. Its value is what it is in a particular case.
A predictable pattern can still contain changes. In an experiment, the dependent variable is the result you measure.
The interactive quiz needs JavaScript. You can still read every question, choice and explanation below.
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?
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.
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.
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?
Not quite. Twelve is the total number of chairs needed. The variable x represents only the extra chairs you must bring in.
Correct. Seven chairs plus five more make twelve. The variable is x, and its value in this problem is 5.
Not quite. Seven is the number of chairs already in the room. Adding seven more would give you fourteen, rather than twelve.
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?
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.
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.
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?
Not quite. That is what you deliberately change, so it is the independent variable in this experiment.
Not quite. You keep the amount of soil the same. It is a controlled variable that helps make the comparison fair.
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.
