Economic Production Quantity (EPQ) Solver

Economic Production Quantity (EPQ) Solver

Compute optimal manufacturing lot sizes, machine setup costs, and finished goods inventory holding tradeoffs.

$
$
Optimal Batch Size (EPQ)
1,716 units

Min-cost production lot

Annual Setup & Holding Cost
$6,293

Combined minimum cost

Runs Per Year
7.0 runs

Every 52 days

Max Warehouse Stock
1,144 units

Peak inventory level

Production Lot Feasibility

Producing in runs of 1,716 units perfectly balances setup changeovers ($$3,146.853/yr) with warehouse carrying costs ($$3,146/yr), saving money compared to smaller or larger lot sizes.

At a Glance

Category
Operations
Best For
Production planners choosing batch sizes
Privacy
100% in your browser: nothing you enter is uploaded
Time Required
Under a minute
Cost
Free
Updated
November 2026

Quick Overview

What This Tool Does

Balances setup costs (small batches) against holding cost (large batches) when stock builds up during production.

Who Should Use It

Production planners, industrial engineers and supply chain analysts.

When to Use It

Setting lot sizes for items made in-house.

Why It Is Useful

Too many setups waste time; too large a batch ties up inventory.

Key Features & Capabilities

Optimal batch size

The economic production quantity, in units per run.

Cost breakdown

Annual setup and holding costs.

Runs per year

How often to produce.

How to Use This Tool

1

Enter annual demand

Type units demanded per year. Tip: Use a forecast.

2

Enter the production capacity

Type annual units if the line ran continuously. Tip: It must exceed demand.

3

Enter setup and holding costs

Type cost per setup and annual holding cost per unit. Tip: Include all setup costs.

4

Read the batch size

See the EPQ, runs per year and total cost. Tip: Round to practical lot sizes.

Worked Real-World Example

12,000 units a year

A plant has annual demand of 12,000 units and can make 36,000 a year. A setup costs 450 and holding costs 5.50 per unit per year.

Sample Inputs
Annual demand12,000 units
Production rate36,000 units per year
Setup cost per run450
Holding cost per unit5.50
Optimal batch size1,716 units (total cost about 6,293 a year)
Calculation Breakdown
Demand-to-capacity ratio: 12,000 ÷ 36,000 = 0.333
EPQ: √(2 × 12,000 × 450 ÷ (5.50 × 0.667)) = 1716.2 → 1,716 units
Runs and setup cost: 12,000 ÷ 1,716; × 450 = 6.99 runs; 3,147
Holding and total cost: (1,716 × 0.667 ÷ 2) × 5.50 = 3,146; total 6,293
The two costs are nearly equal at the optimum, which is a feature of the EPQ formula. About seven runs a year is the best compromise.

How It Works (Math & Calculation Logic)

Demand-to-capacity ratio = D ÷ P. EPQ = √(2 × D × S ÷ (H × (1 − D ÷ P))). Runs per year = D ÷ EPQ. Annual setup cost = runs × S. Maximum inventory = EPQ × (1 − D ÷ P). Annual holding cost = maximum inventory ÷ 2 × H. Total = setup + holding.

Formula / AlgorithmEPQ = √(2DS ÷ (H(1 − D/P)))
Variable & Logic Definitions
DAnnual demand - Units per year (units)
PProduction rate - Units per year (units)
SSetup cost - Per run (currency)
HHolding cost - Per unit per year (currency)

How to Interpret Your Results

Typical Benchmarks

Total cost is flat near the optimum, so rounding the batch is usually fine.

Evaluating Your Output

Reducing setup cost reduces the optimal batch size.

Recommended Next Action

Cut setup cost to justify smaller, more flexible batches.

Frequently Asked Questions

What is EPQ?
The production batch size that minimizes total setup and holding cost.
How is EPQ different from EOQ?
EPQ assumes gradual production; EOQ assumes instant delivery.
Why does capacity matter?
Inventory builds more slowly when production is slower.
What if setup costs fall?
The optimal batch size falls.
Can I round the batch size?
Yes, cost is flat near the optimum.

Complementary QuickForma Utilities

Operations, Logistics & Manufacturing

Kanban Container & Safety Card Quantity Solver

Calculate and analyze kanban container & safety card quantity solver with instant client-side business precision.

Open Tool
Operations, Logistics & Manufacturing

SMED Tooling Changeover Setup Loss Solver

Calculate and analyze smed tooling changeover setup loss solver with instant client-side business precision.

Open Tool
Operations, Logistics & Manufacturing

WIP Inventory Valuation & Production Flow

Calculate and analyze wip inventory valuation & production flow with instant client-side business precision.

Open Tool
Operations, Logistics & Manufacturing

Cube Utilization & Bin Storage Efficiency

Calculate and analyze cube utilization & bin storage efficiency with instant client-side business precision.

Open Tool
Operations, Logistics & Manufacturing

Warehouse Order Picker Travel Time Solver

Calculate and analyze warehouse order picker travel time solver with instant client-side business precision.

Open Tool
Operations, Logistics & Manufacturing

OTIF Supplier Delivery Performance Rating

Calculate and analyze otif supplier delivery performance rating with instant client-side business precision.

Open Tool
Operations, Logistics & Manufacturing

Chemical / Food Production Yield Loss Solver

Calculate and analyze chemical / food production yield loss solver with instant client-side business precision.

Open Tool
Operations, Logistics & Manufacturing

Asset Equipment Replacement Timing NPV

Calculate and analyze asset equipment replacement timing npv with instant client-side business precision.

Open Tool
Operations, Logistics & Manufacturing

Standard vs Actual Labor Hours Variance

Calculate and analyze standard vs actual labor hours variance with instant client-side business precision.

Open Tool
Operations, Logistics & Manufacturing

Net Material Requirements & Lead Time Solver

Calculate and analyze net material requirements & lead time solver with instant client-side business precision.

Open Tool
Operations, Logistics & Manufacturing

Critical MRO Spare Parts Safety Stock Solver

Calculate and analyze critical mro spare parts safety stock solver with instant client-side business precision.

Open Tool