A confounding variable is an external factor that can affect the outcome of an experiment but is not controlled by the researcher.