The composition effect refers to the part of an overall gap explained by the makeup of the populations rather than by different treatment in an equal situation. For example, a raw pay gap can come from an unequal distribution across jobs or levels. Comparing by category separates the two effects.
Example
If women are more numerous in lower-paid jobs, the raw gap includes this composition effect.