Surplus variables are additional variables added to linear programming models to convert inequalities into equalities, ensuring that constraints can be expressed in a standard form. These variables represent the excess amount of a resource that is available beyond what is required or utilized in a given constraint. They play a crucial role in the formulation of linear programming problems, allowing for the proper representation of real-world situations where resources may not be fully utilized.