The law of equimarginal utility states that a consumer will allocate their spending across different goods in a way that equalizes the marginal utility derived from the last unit of each good purchased. This ensures the consumer maximizes their total utility given their budget constraint.