Business and Freelancing

Newsvendor Order Quantity Calculator

Enter the cost, the price, what leftovers fetch and the demand you expect to find the order that earns the most on average.

Your numbers

What you can recover for a unit that does not sell, such as a clearance price. Use 0 if it is wasted.

How much demand usually varies from the average. The model uses a normal curve.

Result

Best order quantity

440 units

Exact value 440.19. Chance of not running out: 69.23%.

Expected profit
$3,234.29
Critical ratio
0.6923
Expected units sold
384.2
Expected leftover units
55.8
Expected unmet demand
15.8
Expected profit if you order the average demand
$3,185.10

Nearby orders compared

Order quantityExpected profitLeftover unitsUnmet demand
320$2,793.356.786.7
400$3,185.1031.931.9
440$3,234.2955.815.8
480$3,193.3586.76.7
How this was calculated
  1. Profit from one more unit sold: $15.00 - $6.00 = $9.00. Loss on one unsold unit: $6.00 - $2.00 = $4.00.
  2. Critical ratio = $9.00 / ($9.00 + $4.00) = 0.6923. Order up to the demand level that is not exceeded 69.23% of the time.
  3. That level is average demand + z x standard deviation = 400 + 0.5024 x 80 = 440.19; the nearest whole number with the higher expected profit is 440.
  4. Expected leftover units = standard deviation x (z x Phi(z) + phi(z)) with z = (order - average) / standard deviation; expected sold = order - leftover.
  • Demand is treated as a normal curve with the average and spread you enter, which can allow tiny negative demand. The model covers one selling period with one order and no goodwill cost for lost sales.

Calculated using SumPanda.com · https://sumpanda.com/newsvendor-order-quantity-calculator/

Results are estimates for general information. Verify important figures before relying on them.

Next step

How to use the newsvendor order quantity calculator

  1. Enter the cost per unit and the selling price per unit.
  2. Enter the value of a leftover unit, such as a clearance price, or 0 if leftovers are wasted.
  3. Enter the average demand and its standard deviation, the usual spread around the average.
  4. Read the best order quantity, the expected profit and the expected leftovers and unmet demand.

Formula

underage cost = price - cost, overage cost = cost - leftover value

critical ratio = underage / (underage + overage)

best order = average demand + z x standard deviation, where z has cumulative probability equal to the critical ratio

expected leftover = sd x (z x Phi(z) + phi(z))

Phi is the standard normal cumulative distribution and phi its density, with z = (order - average) / sd. Expected sales are the order less the expected leftover, and expected profit is price x sales + leftover value x leftovers - cost x order.

A seasonal item with uncertain demand

A unit costs $6 and sells for $15. Leftovers fetch $2. Demand averages 400 units with a standard deviation of 80. Selling one more unit earns $9, while a unit left over loses $4 ($6 cost less $2 recovered), so the critical ratio is 9 / (9 + 4) = 0.6923. The exact best order is 440.19 units, and 440 whole units has the higher expected profit.

At 440 units the expected profit is $3,234.29, with 384.2 units sold on average, 55.8 left over and 15.8 of demand unmet. Ordering the average demand of 400 instead gives an expected profit of $3,185.10, so the shift to 440 earns about $49 more. Ordering less loses sales and ordering more loses on leftovers.

The idea behind the critical ratio

Every extra unit ordered either sells, earning the margin, or does not, losing the part of its cost you cannot recover. The best order is the point where the chance that the last unit sells balances those two outcomes. That chance is the critical ratio, and it is higher when the margin is large and the loss on leftovers is small. The best order is then the demand level that is not exceeded that share of the time.

A high ratio calls for ordering above the average demand, and a low ratio for ordering below it. When the margin equals the loss on leftovers, the ratio is one half and the answer is the average.

When this model applies

It fits one selling period, one order and demand you can describe by an average and a spread: fashion, a seasonal food item, event stock or a daily bake. If you reorder through the year with steady demand, use the EOQ Calculator and the Reorder Point Calculator instead. For ordering with price breaks, use the EOQ with Quantity Discounts Calculator. The Expected Value Calculator helps weigh uncertain outcomes more generally.

Assumptions and limits

  • Demand follows a normal curve with the average and spread you enter. Real demand can be skewed, and the curve allows a little negative demand.
  • There is one selling period and one order. Lost sales carry no extra goodwill cost.
  • The cost, price and demand in the fields are examples. Use your own numbers.
  • The price must be above the cost and a leftover must be worth less than it cost.

Formulas reviewed October 10, 2026. See the calculation methodology for how SumPanda rounds, tests and sources its formulas.

Frequently asked questions

What does the critical ratio tell me?

It is the chance, at the best order, that demand will not be higher than what you ordered. A ratio of 0.69 means you plan to cover demand about 69% of the time.

Why does the page refuse a leftover value equal to the cost?

If a leftover is worth what it cost, there is no loss from ordering too much, so the best order would have no upper limit. The model needs a leftover value below the cost.

How do I find the standard deviation of demand?

Use the standard deviation of past demand for the same period, such as the units sold each week. It measures how much demand usually varies around its average.

Why is the answer a whole number when the exact value is not?

You can only order whole units, so the page compares the whole numbers on either side of the exact value and shows the one with the higher expected profit.