Calculate utility optimization with a ratio solver, budget allocator, and Cobb-Douglas optimizer for prices, budgets, and marginal utility.

An interior equal-MU/price condition. This solver does not determine an optimal quantity bundle.

Use one currency for all prices and the budget, and one consistent utility scale. Presets are illustrative.

Maximum Utility Formula

At an interior optimum for differentiable, suitably concave utility and positive prices, marginal utility per price is equal across goods. Corner solutions and indivisible goods require separate checks.

Mu(a) / P(a) = Mu(b) / P(b)
  • Where Mu(a) is the marginal utility of product A
  • Mu(b) is the marginal utility of product B
  • P(a) is the price of product A
  • P(b) is the price of product B

Rearranged: P(b) = MU(b) x P(a) / MU(a). The quantity MU/P is called marginal utility per dollar and is the standard unit for comparing competing goods at any price point.

How Budget Allocation Works

A consumer with a $25 budget and two goods priced at $5 each selects units in order of highest marginal utility per dollar. With these equal prices and diminishing marginal utilities, this sequence finds the best whole-unit bundle. Arbitrary whole-unit prices require comparing affordable bundles rather than assuming a greedy ranking is optimal:

Purchase #MU(a) availableMU(b) availableMU/$ (A)MU/$ (B)BuySpent
11082.01.6A$5
2781.41.6B$10
3761.41.2A$15
4561.01.2B$20
5541.00.8A$25
Result: 3 units of A, 2 units of B. Total utility = 10+7+5 + 8+6 = 36 utils. Any other combination with the same $25 budget yields lower total utility.

Maximum Utility Definition

Utility maximization is the process of allocating a limited income to achieve the highest possible total satisfaction. For continuous goods with positive marginal utility, the budget is exhausted; an interior optimum also satisfies equal marginal utility per dollar. These are not universal conditions: corners, indivisible units, finite availability or negative marginal utility can leave unequal ratios or an unspent budget. The whole-unit allocator compares every affordable prefix bundle in the supplied lists. The Cobbโ€“Douglas mode assumes U = A^ฮฑ B^ฮฒ and allocates expenditure in shares ฮฑ/(ฮฑ+ฮฒ) and ฮฒ/(ฮฑ+ฮฒ).

When MU(a)/P(a) exceeds MU(b)/P(b), shifting one dollar from B to A raises total utility. This reallocation continues until the ratios equalize. Because each additional unit consumed yields less satisfaction (diminishing marginal utility), the equilibrium is self-correcting and stable.

Corner solutions: When one good always delivers more utility per dollar than another across every consumption level, the optimal strategy is to spend the entire budget on that one good. This corner solution occurs with perfect substitutes (e.g., two identical products at different prices) and means the equal-ratio condition is never reached.

Price changes and re-optimization: A price drop in good A raises MU(a)/P(a), making A temporarily the better buy. The consumer increases purchases of A, which lowers its marginal utility through diminishing returns until the ratio re-equalizes at a higher quantity of A. This adjustment is the microeconomic mechanism behind the downward-sloping demand curve: a lower relative price favors substitution toward that good, while the income effect can reinforce or offset it; quantity demanded does not always rise for every type of good.

Example Problem

How to calculate utility maximization?

  1. First, determine the marginal utility of the first product.

    For this example problem, the marginal utility of product A is .75.

  2. Next, determine the price of the product at this marginal utility.

    The price is found to be $5.00 at this utility.

  3. Next, determine the marginal utility of product B.

    For this problem, the marginal utility of B is found to be .60.

  4. Finally, calculate the price of product B using utility maximization.

    Re-arranging the equation above, we get P(b) = MU(b) / (MU(a)/P(a)) = .60/(.75/5) = $4.00.

FAQ

Why is maximum utility important?

The utility maximization theory is an important concept to understand for both businesses and consumers. The theory states that consumers will spend in a way that maximizes their utility. Knowing this, businesses can price products to try to entice consumers to buy their products. On the flip side, consumers can understand that businesses will do this and make more conscious decisions on spending.

What is the utility-maximizing rule?

For a differentiable interior optimum with positive prices and suitably concave utility, MU(a)/P(a) = MU(b)/P(b). Whole-unit and corner choices must instead be evaluated against all feasible alternatives. If one good provides more utility per dollar than another, reallocating spending toward that good increases total satisfaction until the ratios equalize.

What breaks the utility maximization equilibrium?

Any price change disrupts the equilibrium ratio. A price decrease on good A raises MU(a)/P(a), making A temporarily the superior buy. Consumers increase consumption of A, which lowers its marginal utility through diminishing returns, until the ratio re-equalizes at higher quantity. The substitution effect supports the law of demand; the total response also depends on the income effect and the goodโ€™s characteristics.

How does utility maximization differ from profit maximization?

Utility maximization applies to consumers allocating income across goods to maximize satisfaction. Profit maximization chooses output and inputs to maximize revenue minus cost. Equal marginal product per input price is an interior condition for cost minimization at a given output, while equal marginal utility per price is an interior consumer condition; neither condition by itself guarantees a global optimum.