In the energy industry, the merit order principle refers to the order in which power plants are deployed on an electricity trading platform in order to ensure the economically optimal supply of electricity to the grid. The merit order is based on the lowest marginal costs, i.e. the (operating) costs incurred by a power plant for the last megawatt hour produced. These variable costs are usually the fuel costs of conventional power plants. The merit order does not take into account the fixed costs of an electricity generation technology - for example, the construction or dismantling costs of a power plant are irrelevant for the order of deployment of power-generating capacity in the context of the merit order principle.
The power plants that continuously produce electricity at very low cost are the first to feed power into the grid in accordance with the merit order. Power plants with higher marginal costs are then added until demand is covered.
The merit order is just one possible model for describing a functional electricity market. It assumes that power plant operators are always trying to cover the cost of the next megawatt hour produced; they would not produce it otherwise. Power plants with low marginal costs can therefore offer a lower price for their electricity, and they are in turn called upon more often than power plants with higher marginal costs. The merit order is designed to shed light on how pricing works in a liberalized electricity market; it is not a fixed "law" or regulation that coordinates the use of power plants.