The two main variables in an experiment are the independent and dependent variable. An independent variable is the variable that is changed or controlled in a study to test the effects on the dependent variable. As the independent variable changes, the effect on the dependent variable is observed and recorded.