Economic Production Quantity Calculator

Enter annual demand, available production rate, setup cost, holding cost, and working days to estimate a cost-minimizing production run. The results turn the lot size into a run frequency, production duration, inventory profile, and annual relevant cost.

Your numbers
Enter the number of finished units expected to be consumed or sold each year.
Enter the rate at which the item could be produced if production continued for the full year.
Include labor, cleaning, tooling, paperwork, and other costs incurred each time production starts.
Include storage, capital, insurance, shrinkage, and obsolescence attributable to one unit for one year.
Use the number of days on which this production process can operate.

What this calculator leaves out

  • This estimate assumes constant demand, constant production, fixed setup cost, no shortages, no quantity discounts, and consumption while production is running; it is not professional operations or financial advice.
  • The model does not account for scrap, rework, changeover capacity conflicts, safety stock, minimum batch sizes, or uncertain demand.
  • Validate the suggested lot against storage limits, shelf life, staffing, and machine availability before scheduling production.

By using this calculator you agree to the Terms of Use. Results are estimates, not professional advice.

Economic production quantity1,732

Production runs per year
6.93
Production time per run
14.43
Time between run starts
36.08
Maximum inventory
1,039.23
Average inventory
519.62
Annual setup cost
$3,117.69
Annual holding cost
$3,117.69
Minimum annual relevant cost
$6,235.38
Production utilization
0.4%

Uses constant demand and production, fixed setup and holding costs, no shortages, and consumption while production is running.

Fractional production runs describe an average planning frequency; turn them into a practical schedule with your production calendar.

How to use this calculator

  1. Enter the annual demand for the finished item.
  2. Enter the annual production rate available to this item, which must be higher than demand.
  3. Include every fixed cost incurred when a production run starts in the setup cost.
  4. Enter the annual cost of holding one finished unit and the operating days in your production calendar.
  5. Use the lot, timing, and inventory results as a starting point for a feasible production schedule.

How economic production quantity is calculated

Economic production quantity, or EPQ, estimates the production lot that balances the cost of starting a run against the cost of carrying inventory. It applies when units are made and consumed at the same time. Inventory therefore builds only at the difference between the production rate and the demand rate, rather than jumping to a full lot at once.

The calculator uses:

Q* = sqrt((2 × K × D) ÷ (h × (1 − D ÷ P)))

  • Q* is the economic production quantity.
  • D is annual demand.
  • P is the annual production rate.
  • K is setup cost for one production run.
  • h is annual holding cost for one unit.

Production rate must exceed demand. Otherwise production cannot replenish inventory, and the basic EPQ cycle has no finite answer. The calculator keeps the unrounded value of Q* for the cost and schedule calculations, while the headline displays a whole-unit lot. That avoids letting display rounding change the reported annual cost.

Turning the lot into a production schedule

Runs per year are D ÷ Q*. Production days per run are (Q* ÷ P) × W, where W is operating days per year. Days between run starts are (Q* ÷ D) × W. A result such as 6.93 runs per year is an average interval, not a literal partial setup. Use it to place whole runs around maintenance windows, customer commitments, and capacity constraints.

Maximum inventory is Q* × (1 − D ÷ P), and average inventory is half of that amount. This is why EPQ normally carries less maximum inventory than an EOQ lot of the same size: demand consumes units while the run is still underway. When production capacity is extremely high relative to demand, the factor approaches one and EPQ approaches ordinary EOQ.

What moves the result most

Higher setup cost or higher demand favors longer runs. Higher holding cost favors shorter runs. The result becomes especially sensitive when production rate is close to demand because there is little net capacity available to rebuild stock; the formula can produce a very large theoretical lot. Treat that as a capacity warning, not an instruction to fill storage.

What the model leaves out

This model assumes constant demand and production, fixed setup cost, no shortages, and no quantity discounts. It does not account for scrap, rework, safety stock, shelf life, minimum batch sizes, machine conflicts, uncertain demand, or a constrained changeover calendar. Check the suggested run against storage, staffing, machine availability, and actual operating rules before scheduling it.

Worked example

Suppose annual demand is 12,000 units, production capacity is 30,000 units per year, setup cost is $450 per run, annual holding cost is $6 per unit, and the process operates 250 days per year. The utilization is 40%, so inventory builds at 60% of the production quantity.

The EPQ formula gives 1,732.05 units, displayed as 1,732 units. That supports 6.93 runs per year. Each run takes 14.43 operating days, and run starts are 36.08 operating days apart on average. Maximum inventory is 1,039.23 units and average inventory is 519.62 units.

Annual setup cost and annual holding cost are each about $3,117.69, for a minimum relevant cost of $6,235.38. Production cost per unit is deliberately excluded because it does not change with the lot size under this model.

Common questions

What is the difference between EPQ and EOQ?

EOQ assumes replenishment arrives all at once, so inventory starts at the full order quantity. EPQ assumes production and consumption happen together, so inventory builds gradually and reaches a lower maximum. As production rate becomes very large compared with demand, the EPQ result approaches EOQ.

Why must the production rate exceed demand?

Production must outpace consumption while a run is active so inventory can rebuild between runs. If production rate is equal to or lower than demand, inventory never replenishes under the basic model. The EPQ formula then has no finite lot size.

How do I calculate annual holding cost per unit?

Add the yearly cost attributable to holding one unit: storage, capital tied up, insurance, shrinkage, obsolescence, and handling where appropriate. Use a monetary amount per unit per year in this calculator. If you start from a carrying-rate percentage, multiply it by the unit value first.

Why is maximum inventory smaller than the production lot?

Demand continues to consume finished units during the production run. The inventory increase is only the production rate minus the demand rate, so maximum inventory is the lot size times one minus demand divided by production rate. It is smaller than the lot whenever demand is positive.

Should the calculated production quantity be rounded?

Use a whole-unit lot when you schedule production, normally rounded to a feasible batch, pallet, or machine quantity. The displayed whole-unit value is suitable for that discussion, but this calculator retains the unrounded quantity for the cost results. Recalculate after applying a required minimum batch or multiple.

How often should production runs be scheduled?

Use the days-between-run-starts result as an average interval, then place whole runs on the real production calendar. A fractional runs-per-year result does not mean a partial setup should occur. Adjust the schedule for maintenance, staffing, changeover windows, demand seasonality, and capacity shared with other products.

Put this calculator on your site

Paste the snippet below where you want the calculator to appear. It stays up to date automatically and links back here.

<iframe src="https://countfolk.com/embed/economic-production-quantity-calculator/" title="Economic Production Quantity Calculator" width="100%" height="640" style="border:0;max-width:44rem" loading="lazy"></iframe>