What Is the Marginal Rate of Substitution (MRS)? Formula and Examples

By Markets & Investing DeskUpdated Nov 10, 2026

Marginal Rate of Substitution (MRS)
Illustration · Fintrev

Definition

The marginal rate of substitution is how much of one good a consumer will give up for one more unit of another while staying equally satisfied, shown by the slope of the indifference curve.

Key takeaways

  • MRS measures how much of good Y a consumer will sacrifice for one more unit of good X, keeping total utility unchanged.
  • It equals the ratio of marginal utilities: MRS(xy) = MUx / MUy.
  • On a standard convex indifference curve, MRS falls as the consumer gets more X (diminishing MRS).
  • A utility-maximizing consumer chooses the bundle where MRS equals the price ratio, Px / Py.
  • MRS describes preferences on the demand side; the marginal rate of transformation (MRT) describes production trade-offs.

The marginal rate of substitution (MRS) is the amount of one good a consumer is willing to give up to get one more unit of another good while staying exactly as satisfied as before. Graphically, it is the slope (in absolute value) of the consumer’s indifference curve at a given point.

If a consumer would give up 3 cups of coffee for 1 extra pastry and feel no better or worse off, their MRS of pastries for coffee at that point is 3. The rate usually changes as the mix of goods changes, which is why the word “marginal” matters.

How the Marginal Rate of Substitution Works

MRS is built on indifference theory. An indifference curve connects every combination of two goods that gives a consumer the same level of utility, so moving along it is a pure swap: the consumer gains some of one good and loses some of the other, with no change in well-being.

The MRS at any point is the exchange rate the consumer would accept for a very small swap at that spot. A high MRS means the consumer will give up a lot of Y to get another unit of X; a low MRS means X is worth little more Y at the margin.

The MRS formula

For two goods, X on the horizontal axis and Y on the vertical axis:

MRS(xy) = −dY/dX = MUx / MUy

where:

  • dY/dX is the slope of the indifference curve (the derivative of Y with respect to X along a curve of constant utility)
  • MUx is the marginal utility of good X, the extra satisfaction from one more unit of X
  • MUy is the marginal utility of good Y

The slope of a downward-sloping indifference curve is negative, so economists either put a minus sign in front of it or report the absolute value. “The MRS is −2” and “the MRS is 2” describe the same trade-off: the consumer gives up 2 units of Y per extra unit of X.

The equality with the ratio of marginal utilities follows from holding utility constant. If the consumer gains a small amount of X (ΔX) and loses a small amount of Y (ΔY), the change in utility is approximately MUx × ΔX + MUy × ΔY. Setting that change to zero and rearranging gives −ΔY/ΔX = MUx / MUy.

How to calculate MRS from a utility function

  1. Write down the utility function, U(X, Y).
  2. Find MUx by taking the partial derivative of U with respect to X.
  3. Find MUy by taking the partial derivative of U with respect to Y.
  4. Divide: MRS(xy) = MUx / MUy.
  5. Plug in the quantities of the bundle you care about.

Without a utility function, you can approximate MRS from two bundles on the same indifference curve: divide the units of Y given up by the units of X gained.

Worked Example: Calculating MRS

Hypothetical example. Suppose a consumer’s utility from coffee (X) and pastries (Y) is U = X × Y.

  • MUx = Y
  • MUy = X
  • MRS(xy) = Y / X

Take three bundles that all give a utility of 16:

Bundle X (coffee) Y (pastries) Utility MRS = Y/X
A 2 8 16 4
B 4 4 16 1
C 8 2 16 0.25

At bundle A, on the steep part of the curve, the consumer has little coffee and many pastries, so they would give up 4 pastries for one more coffee. At bundle C, on the flat part, coffee is plentiful and pastries scarce, so one more coffee is worth only a quarter of a pastry. The same preferences yield a very different MRS depending on what the consumer already holds.

A discrete version works the same way. If a consumer is equally happy with 1 hamburger and 6 hot dogs or with 2 hamburgers and 4 hot dogs, they gave up 2 hot dogs for 1 hamburger, so their MRS of hamburgers for hot dogs over that range is 2.

MRS and the Indifference Curve

Diminishing MRS and convex curves

Standard indifference curves are convex to the origin: steep at the top left and flatter at the bottom right. Moving down such a curve, the consumer gains X and loses Y, and the slope flattens, so MRS falls. This pattern is the law of diminishing marginal rate of substitution. The intuition is that people tend to value balanced bundles: the more of X you already have, the less Y you will give up for yet another unit.

Constant MRS: perfect substitutes

If a consumer will always trade the goods at the same rate, the indifference curve is a straight downward-sloping line and MRS is constant. With a utility function U = aX + bY, MRS = a/b everywhere. When the slope is −1 (MRS = 1), one unit of either good gives the same satisfaction, as with two brands a consumer genuinely cannot tell apart.

Perfect complements

Goods used in fixed proportions, such as left and right shoes, produce L-shaped indifference curves, with utility U = min(X, Y). Along the vertical arm, extra Y adds nothing, so the curve is vertical and MRS is effectively infinite; along the horizontal arm, extra X adds nothing, so MRS is zero. At the corner, MRS is undefined because the slope changes abruptly.

Zero MRS and increasing MRS

An MRS of zero means the consumer would give up nothing of Y for more X: at the margin, X adds no utility. If X is a neutral good for that consumer, indifference curves are horizontal lines.

If MRS increases as the consumer gains X, the indifference curve is concave to the origin, signaling a preference for extremes over balanced bundles. Economic models usually assume convex preferences, so concave curves appear mainly as theoretical cases.

How MRS Is Used

Utility maximization: MRS equals the price ratio

The best-known application ties MRS to prices. A budget line shows every bundle a consumer can afford, and its slope is −Px/Py. The consumer’s optimal bundle is where the highest attainable indifference curve just touches the budget line. At that point of tangency:

MRS(xy) = MUx / MUy = Px / Py

Hypothetical example, continued. With U = X × Y, suppose coffee costs $2, pastries cost $1 and the consumer has $20 to spend. The tangency condition gives Y/X = 2/1, so Y = 2X. The budget 2X + Y = 20 becomes 4X = 20, so X = 5 and Y = 10, giving utility of 50. At any other affordable bundle, shifting spending toward the relatively undervalued good would raise utility.

This condition also explains why price changes alter behavior: if the price of X falls, Px/Py drops and the consumer moves to a bundle with more X until their MRS falls to match.

Business and policy analysis

Firms use the logic of MRS to judge how readily customers would switch between competing products, such as two soft-drink brands or chicken versus beef. A low willingness to substitute suggests customers stick with a product when its price rises; a high willingness suggests they switch quickly. Governments apply the same reasoning to policy. A tax credit for electric vehicles changes the relative price of electric and gasoline cars, and comparing consumers’ trade-offs with the new price ratio helps estimate how far purchases might shift and what the incentive would cost.

Exchange between two people

When two people hold different MRS values for the same goods, both can gain from trade: the one who values X more at the margin gives up some Y to the other. Trading benefits both until their MRS values are equal, which is the condition for an efficient (Pareto-optimal) allocation in exchange. In a competitive market, everyone facing the same prices sets MRS equal to the same price ratio, so this equality arises automatically.

MRS vs. marginal rate of transformation (MRT)

MRS is a demand-side measure: how much Y a consumer is willing to give up for X. The marginal rate of transformation is a supply-side measure: how much Y an economy or a firm must give up to produce one more unit of X, shown by the slope of the production possibilities frontier.

The two interact. If a flour shortage makes cakes costlier to produce relative to bread, bakers shift toward bread, cake prices rise, and consumers move along their indifference curves until their MRS matches the new relative price. In an efficient economy, the rate at which people are willing to trade goods equals the rate at which they can be produced: MRS = MRT.

MRS vs. marginal utility

Marginal utility is the extra satisfaction from one more unit of a single good. MRS is a ratio of two marginal utilities. A consumer’s marginal utilities could both double, for example, and MRS would not change, because only their relative size matters. This is why MRS works with ordinal utility: it needs only rankings of bundles, not a measurable unit of satisfaction.

MRS vs. opportunity cost

Opportunity cost is what you actually forgo, set by prices or production constraints. MRS is what you would be willing to forgo, set by your preferences. At a consumer’s optimal bundle the two line up, because MRS equals the price ratio, the market opportunity cost of X in units of Y. Away from the optimum they differ, and that gap signals a better bundle is available.

Limitations of the Marginal Rate of Substitution

  • Two goods at a time. Real choices involve many goods, and spending on a third item can shift the trade-off between the two being studied.
  • No ranking across curves. MRS describes swaps along one indifference curve. Preference between bundles on different curves comes from the utility function or the full map of indifference curves.
  • Assumed, not observed. Indifference curves and utility functions are modeling devices. Actual willingness to substitute is inferred from choices or surveys, and preferences can change over time.
  • Small changes only. For large swaps the rate changes along the way, so a single MRS value applied to a big trade can mislead.
  • Product differences hidden in units. A hamburger with toppings and a plain hot dog may not be one “unit” each in any meaningful sense, so the measured trade-off depends on how the goods are defined.
  • Shape assumptions. Corner solutions, perfect complements and kinked curves require different treatment, since the tangency condition MRS = Px/Py may not hold.

FAQs

What is MRS in macroeconomics?

MRS is primarily a microeconomic concept about individual consumer choice. It appears in macroeconomic models when they are built on household decisions, such as the trade-off between consumption today and consumption in the future, or between consumption and leisure.

The Bottom Line

Economics students, analysts and policymakers use MRS to see how readily consumers trade one good for another. It equals the ratio of marginal utilities, usually falls as a consumer gains more of a good, and at the optimal bundle it matches the price ratio. Apply it to small swaps between two goods, and treat corner solutions, perfect complements and kinked curves separately.

About this page

Written by Markets & Investing Desk

The Markets & Investing Desk covers investing guides, the financial dictionary, companies, people, economics and market data.

Published
Last updated

Spotted an error? Tell the editors. This page is general information, not financial advice.