A characteristic that takes on different values. In a class where some students are male and others are female, gender is a variable.

Variables can be discrete or continuous.
Within a given study, they can also be independent or dependent, predictor or criterion, active or assigned, manipulated (treatment) or attribute, moderator, mediator.