A variable in mathematics is a letter used in place of an unspecified number in algebraic equations. There are two basic types namely; dependent variable and independent variable.