The Optimal Price Calculator estimates a profit-maximizing selling price using your marginal cost and the change in sales quantity between two prices. It also estimates demand at the suggested price and compares contribution profit at the initial, final, and calculated prices.
The result is a model-based pricing estimate—not a guarantee of the most profitable real-world price. Its usefulness depends on whether your sales data captures how customers respond to price changes.

How to use the optimal price calculator
- Select the Marginal Costs method. The calculation explained below uses the incremental cost of selling one additional unit.
- Enter Marginal Costs in dollars per unit. Include relevant incremental production or fulfillment costs. Do not enter a total monthly expense or the selling price.
- Enter the Initial Price and Initial Quantity. Use the price per unit and the number of units sold at that price.
- Enter the Final Price and Final Quantity. These should represent a second price and the corresponding sales volume for the same product.
- Review the elasticity, suggested price, quantity, and profit comparisons. Check the model’s limitations before using the result to change prices.
About the method selector: although the form also offers a Marginal Revenue method and input, the current calculation formulas use Marginal Costs. They do not use the Marginal Revenue value, so it should not be treated as an alternative basis for this estimate.
Use comparable sales observations
Both quantities should cover the same length of time and a comparable customer population—for example, units sold during two similar weeks. Keep currency, product size, and tax treatment consistent.
Use positive prices and quantities, with different initial and final prices. Avoid comparing a normal sales period with one affected by stockouts, major advertising changes, holiday demand, or a new sales channel. Otherwise, the calculator may attribute those effects to price.
The optimal pricing formula
The calculator first estimates price elasticity using the midpoint method, then applies a constant-elasticity demand model to estimate the optimal selling price and quantity.
1. Estimate price elasticity of demand
ε = [(Q2 − Q1) / ((Q2 + Q1) / 2)] / [(P2 − P1) / ((P2 + P1) / 2)]
- P1 and Q1: initial price and quantity.
- P2 and Q2: final price and quantity.
- ε: signed price elasticity of demand, a unitless measure.
Ordinary downward-sloping demand produces a negative elasticity: quantity falls when price rises. The calculator retains that negative sign rather than reporting only the absolute value.
2. Calculate the optimal price
Popt = c × ε / (ε + 1)
Here, c is marginal cost per unit. With positive marginal cost, this formula gives a meaningful profit-maximizing price under the model when ε < −1. This corresponds to elastic demand: quantity changes proportionally more than price.
For the assumed demand curve, this price is where marginal revenue equals marginal cost. It maximizes modeled total contribution profit, not the profit margin percentage or sales revenue alone.
3. Estimate quantity and contribution profit
Qopt = Q2 × (Popt / P2)ε
The quantity forecast is anchored to the final price and final quantity. It assumes the estimated elasticity stays constant as price changes.
The three profit outputs use these formulas:
- Profit at initial price: (P1 − c) × Q1
- Profit at final price: (P2 − c) × Q2
- Profit at optimal price: (Popt − c) × Qopt
These outputs are contribution profit before fixed costs. The calculator applies the same marginal cost to every unit. It does not subtract rent, fixed salaries, or other fixed overhead. To estimate operating profit, subtract fixed costs for the same period, provided your per-unit cost already includes all relevant variable expenses.
Worked example: finding an optimal price point
Suppose your marginal cost is $8 per unit. You sell 100 units at $10 during one period and 20 units at $20 during a comparable period.
The midpoint quantity change is −80 / 60, and the midpoint price change is 10 / 15. Dividing them gives an elasticity of −2.
| Result | Calculation | Value |
|---|---|---|
| Optimal price | $8 × (−2) / (−2 + 1) | $16 |
| Optimal quantity | 20 × ($16 / $20)−2 | 31.25 units |
| Profit at initial price | ($10 − $8) × 100 | $200 |
| Profit at final price | ($20 − $8) × 20 | $240 |
| Profit at optimal price | ($16 − $8) × 31.25 | $250 |
The model suggests testing a $16 price, with expected contribution profit of $250 for the same sales period. That is $10 above the contribution calculated from the final observation. The fractional quantity represents expected sales, not an instruction to produce part of a unit.
How to interpret your results

Check whether elasticity supports a meaningful estimate
| Calculated elasticity | Interpretation |
|---|---|
| ε < −1 | Elastic demand. With positive marginal cost, the model supports a finite, positive optimal price. |
| ε = −1 | Unit-elastic demand. The optimal price formula divides by zero and does not produce a finite price. |
| −1 < ε < 0 | Inelastic demand. The formula produces a negative price, which is not a usable pricing recommendation. |
| ε ≥ 0 | No measured demand response, or price and quantity moved together. This does not support the conventional downward-sloping demand model used here. |
Within the valid range, more price-sensitive demand generally implies a smaller markup over marginal cost. An estimate close to −1 can generate an extremely high suggested price, making the result particularly sensitive to small errors in the sales data.
Understand what the model does not prove
- Two observations do not establish a complete demand curve. The calculator uses midpoint elasticity as a constant-elasticity assumption. The resulting curve passes through the final observation but need not reproduce the initial one exactly.
- Observed and projected profit are different types of evidence. Initial and final contribution use your entered quantities; optimal contribution uses a forecast. If the forecast is below an observed result, do not treat it as a proven improvement.
- Costs may change with volume. Overtime, bulk discounts, shipping thresholds, or additional equipment can invalidate the constant-cost assumption.
- Large extrapolations are uncertain. A suggested price far outside your observed range assumes customer behavior remains unchanged beyond the available evidence.
Use the estimate to plan a pricing test
Treat the calculated price as a candidate to test, especially when it differs substantially from current pricing. Compare nearby practical price points and monitor units sold, contribution profit, returns, and customer retention over comparable periods.
You can also rerun the calculator with different marginal costs to assess supplier price increases or fulfillment changes. Before adopting the suggested quantity, check whether inventory and capacity can support it—and whether additional volume would change your costs.

For your own business website, Calcopolis lets you build a customized pricing calculator with your cost assumptions and pricing rules, helping visitors estimate purchases before requesting a quote.
Related calculators for pricing decisions
- Marginal Cost Calculator: estimate the incremental cost needed for this pricing model.
- Price Elasticity of Demand Calculator: examine how sales volume responds to a price change.
- Break-Even Calculator: account for fixed costs and determine the sales volume needed to cover total costs.
- Marginal Revenue Calculator: measure the additional revenue associated with selling additional units.