Price Optimization
Finding the profit-maximizing price by balancing margin per unit against the volume that the market will bear.
The Problem
A retailer stocks a product with a known unit cost . Raising the price increases the margin on every unit sold but depresses demand; lowering the price does the opposite. Somewhere between these two extremes lies a single price that maximizes total contribution—revenue minus variable cost. The challenge is to find that price, understand how it shifts when market conditions change, and quantify how far from optimal a price chosen without formal optimization actually is.
This is the foundational problem in pricing analytics. It is the single-product, single-period case: one SKU, one customer segment, no inventory constraint, no competition. It is deliberately simple so that clean closed-form results can be derived, yet the insights carry over to every richer model on this site.
Mathematical Formulation
The Price-Response Function
The price-response function maps a price to the expected quantity demanded. We require:
- is decreasing in (the law of demand).
- There exists a choke price above which demand is zero.
- (positive demand at a price of zero).
The simplest specification that satisfies these properties is the linear demand function:
where is the demand intercept (maximum demand when the product is free) and is the demand slope (units of demand lost per dollar of price increase).
The Optimization Problem
The firm’s objective is to choose a price that maximizes the total contribution (profit before fixed costs):
Expanding with the linear demand function gives a concave quadratic in :
First-Order Condition
Setting the derivative of to zero yields the first-order condition:
For linear demand where , this resolves to the closed-form optimal price:
Under linear demand with unit cost , the profit-maximizing price is the average of the choke price and the unit cost . Equivalently, the optimal margin equals exactly half the range from cost to choke price.
Beyond Linear: Optimizing Other Demand Models
The first-order condition (Eq. 4) applies to any differentiable demand function—not just linear demand. Different functional forms yield qualitatively different pricing rules. Below we derive the optimal price for three additional demand models, each of which is covered in detail on the demand models page.
Constant-Elasticity (Power) Demand
The constant-elasticity (or iso-elastic) demand function takes the form:
where is a scale parameter and is the (constant) price elasticity of demand.
Substituting into the first-order condition (Eq. 4) and noting that :
Dividing through by and solving for :
This is the celebrated Lerner markup rule. The markup fraction is:
The result requires ; when demand is inelastic (), no finite price maximizes profit because revenue increases without bound as price rises.
Let , .
- Optimal price:
- Margin: (100% markup on cost, 50% on price)
Exponential Demand
The exponential (or semi-log) demand function is:
where is the maximum demand (at price zero) and governs price sensitivity.
Here . Substituting into the first-order condition:
Dividing through by (which is always positive):
Solving immediately gives:
The optimal markup is a constant absolute amount , independent of the scale parameter . Doubling the market size does not change the optimal price—it only doubles the profit.
Let , .
- Optimal price:
- Markup: regardless of
Logit Demand
The logit (logistic) demand function models an S-shaped response:
where is the market size, controls the base attractiveness, and is the price-sensitivity parameter.
Let so that . After differentiation, . Substituting into the first-order condition and simplifying:
Dividing by :
Since itself depends on , this is an implicit equation with no closed-form solution. The optimal price must be found numerically—for example, via golden-section search over the interval .
Let , , , . The optimal price is computed numerically and lies in the interior of the feasible range. The capstone simulator below solves this case and lets you explore how the S-shaped response curve affects the profit landscape.
Comparison of Optimal Pricing Rules
| Demand Form | Formula | Optimal Price | Markup Rule | Closed Form? |
|---|---|---|---|---|
| Linear | Average of choke price and cost | Yes | ||
| Constant-elasticity | Constant percentage markup | Yes | ||
| Exponential | Constant absolute markup | Yes | ||
| Logit | Implicit equation | Depends on demand level | No |
The Elasticity Rule
The price elasticity of demand at price is defined as:
It measures the percentage decrease in demand for a one-percent increase in price.
Dividing the first-order condition (Eq. 4) through by produces an elegant relationship between the optimal price and elasticity:
This is the inverse-elasticity pricing rule (also known as the Amoroso–Robinson relation). At the optimum, the markup over cost expressed as a fraction of price equals the reciprocal of the elasticity. High elasticity (price-sensitive customers) implies a slim markup; low elasticity allows a wider margin.
Suppose , , .
- Choke price:
- Optimal price:
- Demand at : units
- Maximum contribution:
- Elasticity:
Try these values in the interactive explorer below and observe the curve confirming these numbers.
Interactive Explorer
Use the sliders to change the cost structure and demand parameters. The charts update in real time, showing the contribution curve, surplus decomposition, and sensitivity landscape.
The blue curve plots total contribution . The green dashed line shows total revenue for comparison. The red dashed vertical marks the optimal price .
Key Insights
1. The Margin–Volume Tradeoff
Drag the cost slider upward and observe that increases, but not dollar-for-dollar. A $1 increase in cost raises the optimal price by only $0.50 (half the cost pass-through). The firm absorbs the other half through lower volume. This 50% pass-through rate is characteristic of linear demand.
2. Demand Sensitivity Matters More Than Demand Level
Increasing the intercept (shifting the demand curve out) raises both the optimal price and the maximum profit. But increasing the slope (making customers more price-sensitive) compresses the margin. Compare the effect of doubling versus doubling on the metrics panel.
3. Elasticity at the Optimum Is Always Greater Than One
From the elasticity rule , and since (the firm must earn a positive margin), the ratio is always greater than one. The firm never prices on the inelastic portion of the demand curve—doing so would mean that a price increase would raise both revenue and margin simultaneously.
4. The Revenue-Maximizing Price Differs From the Profit-Maximizing Price
The revenue curve peaks at (the midpoint of the demand curve), while the contribution curve peaks at . When cost is zero the two coincide; as cost rises the profit-maximizing price moves to the right of the revenue-maximizing price.
Extensions
The linear model is a starting point. More general pricing problems extend it along several axes:
- Nonlinear demand—Logit, exponential, and power-law demand functions capture S-shaped response and constant-elasticity behavior. Closed-form solutions rarely exist, but numerical optimization (e.g., golden-section search) finds readily.
- Multiple products—When products are substitutes or complements, the demand for one depends on the prices of others. The first-order conditions become a system of equations.
- Customer heterogeneity—Different segments have different demand curves. This leads to price differentiation, the next topic in this series.
- Capacity constraints—When supply is fixed (airlines, hotels), the problem becomes revenue management.
- Dynamic pricing—When demand or inventory evolves over time, the firm solves a multi-period problem. The markdown management topic explores one important special case.
Capstone: Price Discovery Game
In Play mode, you act as a pricing manager setting prices across multiple rounds under different demand models. Watch how your choices affect contribution profit, compare against the analytically optimal price, and earn a grade based on cumulative performance. In Design mode, explore how demand parameters, cost structure, and demand model choice affect the optimal price and profit.
References
- Phillips, R. L. (2021). Pricing and Revenue Optimization, 2nd ed.. Stanford University Press.
- Shy, O. (2008). How to Price: A Guide to Pricing Techniques and Yield Management. Cambridge University Press.
- Talluri, K. T. & van Ryzin, G. J. (2004). The Theory and Practice of Revenue Management. Springer.