<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />
Skip Navigation

Definition of Variable

A variable can be any unknown value, and will be a critical part of our curriculum beginning with algebra all the way up through calculus!

Atoms Practice
Practice Definition of Variable
Practice Now
Definition of Variable

Imagine you have a jar filled with dimes and quarters, and know that the total of the 56 coins in the jar is $8.60. It is possible to determine how many of each coin the jar contains by using Algebra if you know how to represent the situation mathematically. After completing this Concept, you'll be able to use variables to write equations with unknown quantities like this one. In another Concept, you can also learn to solve equations like this.

Watch This

CK-12 Foundation: 0101S Language of Algebra


No one likes doing the same problem over and over again, that’s why mathematicians invented algebra. Algebra takes the basic principles of math and makes them more general, so a problem can be solved once and then that solution used to solve a group of similar problems.

In arithmetic, you’ve dealt with numbers and their arithmetical operations (such as ). In algebra, we often use symbols called variables (which are usually letters, such as ) to represent numbers, and sometimes processes.

For example, we might use the letter to represent some number we don’t know yet, but need to identify in the course of a problem. Or we might use two letters, like and  to show a relationship between two numbers without needing to know what the actual numbers are. The same letters can represent a wide range of possible numbers, and the same letter may represent completely different numbers when used in two different problems.

Using variables offers advantages over solving each problem “from scratch.” With variables, we can:

  • Formulate arithmetical laws such as  that apply to all real numbers in place of  and .
  • Refer to “unknown” numbers. For instance: find a number such that .
  • Write more compactly about functional relationships such as, “If you sell tickets, then your profit will be dollars, or , where  is the profit function, and is the input (how many tickets you sell).

Example A

Write an algebraic equation for the perimeter and area of the rectangle below.

To find the perimeter, we add the lengths of all 4 sides. We can still do this even if we don’t know the side lengths in numbers, because we can use variables like and to represent the unknown length and width. If we start at the top left and work clockwise, and if we use the letter to represent the perimeter, then we can say:

Since we are adding two  and two , we can say that:

It's customary in algebra to omit multiplication symbols whenever possible. For example, means the same thing as or . We can therefore also write:

Area is length multiplied by width. In algebraic terms we get:

Note: by itself is an example of a variable expression, whereas  is an example of an equation. The difference between expressions and equations is the presence of an equals sign (=).

In the above example, we found the simplest possible ways to express the perimeter and area of a rectangle when we don’t yet know what its length and width actually are. Now, when we encounter a rectangle whose dimensions we do know, we can simply substitute (or "plug in") those values in the above equations. In Algebra, you will encounter many expressions that can be evaluated by substituting values for the given variables.

Example B

Eric has some money in his savings account. How much more money does he need in order to buy a game that costs $98?


Let represent the money that Eric still needs, and let be the money that he has in his savings account. Then, by subtracting the money he already has from the total cost of the game, we can figure out how much money he still needs:

Example C

Write an equation for the sum of 3 times some number and 5.


Let be the total sum. Let be "some number." Then "3 times some number" is and then the sum of  and 5 is:

Watch this video for help with the Examples above.

CK-12 Foundation: The Language of Algebra

Guided Practice

Alex has a certain amount of nickels and dimes in a jar. Write an algebraic equation for how much money she has, in terms of the number of nickels and dimes.


Let be the number of nickels, and be the number of dimes, that Alex has in the jar. Since each nickel is worth $0.05, the amount of money she has in nickels will be:

Since each dime is worth $0.10, the amount of money she has in dimes will be:

This means that the total amount of money, , that Alex has is:

Simplifying the expressions, we get:

Explore More

For 1-4, write the following in a more condensed form by leaving out the multiplication symbol.

For 5-10, write an equation for the following situations.

  1. The amount of money Andrea has in a jar full of quarters and dimes.
  2. The amount of money Michelle has in her coin purse if it only contains quarters, dimes and pennies.
  3. The sum of 7 and 6 times some number.
  4. 4 less than 20 times some number.
  5. The amount of money you will earn if you are paid $10.25 an hour and spend $4.00 round trip to get to and from work.
  6. A father earns a $2000 dividend from an oil investment and distributes it equally amongst his children.

Answers for Explore More Problems

To view the Explore More answers, open this PDF file and look for section 1.1. 




An equation is a mathematical sentence that describes two equal quantities. Equations contain equals signs.


In algebra, to substitute means to replace a variable or term with a specific value.


A variable is a symbol used to represent an unknown or changing quantity. The most common variables are a, b, x, y, m, and n.
Variable Expression

Variable Expression

A variable expression is a mathematical phrase that contains at least one variable or unknown quantity.

Image Attributions


Please wait...
Please wait...

Original text