The refining margin is the difference between the wholesale value of the oil products a refinery produces and the value of the crude oil from which they were refined.
See also: Crack Spread, Netback