Heijunka is the Lean technique that levels production: it distributes the quantities and types of products to be made evenly over time, instead of following orders as they arrive. It lets the factory work at a constant pace even when demand changes every week: less overtime and downtime, lower inventory and lead time, and regular requests to upstream departments and suppliers.
In practice, you produce a little of every product each day, at the same cadence. Order fluctuations are absorbed by a small finished goods inventory and by flexibility rules set in advance. Below we look at how to recognize the problem, how volume and mix are leveled, what role the heijunka box and Kanban play, and when it is better to wait.
When production follows orders as they arrive, every peak brings overtime, urgent orders, and last-minute schedule changes. On low-demand days, by contrast, people and equipment are partly idle or produce for inventory.
Lean calls this irregularity Mura and considers it one of the main causes of Muda, or waste: waiting, inventory, and excess movement all stem from the alternation of peaks and troughs. A few signs help you tell whether the problem is present:
Heijunka is the Japanese term for production leveling. In practice, it means distributing customer demand evenly over time, in terms of both quantity and product variety. Leveling is done at the point that sets the pace for the entire flow. The Lean Lexicon of the Lean Enterprise Institute defines it in a similar way, as the leveling of the type and quantity of production over a fixed period. For a short definition, you can also see the Heijunka entry in our glossary.
Leveling does not mean ignoring the market. It means decoupling the pace of the factory from the pace at which orders arrive. Demand is read over a longer horizon, for example a week or a month, converted into a regular cadence, and reviewed at set intervals, not every day. The reference for this cadence is Takt Time, the pace required by demand in the available time.
In practical terms, Heijunka helps you to:
Leveling is done at a single point in the flow, the pacemaker process: it is the only one that receives the schedule and sets the pace for all the others. It is usually located toward the end, for example at assembly, while the upstream departments replenish what it pulls. It should not be confused with the bottleneck: the pacemaker sets the pace, while the bottleneck is the resource with the least capacity.
Leveling works on two dimensions, always at the pacemaker process. It is best to tackle them in this order.
Instead of freezing and launching the schedule for an entire week, small quantities at regular intervals are released to the pacemaker. The same quantity is produced every day, equal to the average demand of the period. The differences between what is produced and what is ordered day by day are absorbed by a small finished-goods inventory, sized on actual fluctuations and not on the worst case.
Once volume is stabilized, you work on the sequence. Instead of producing all of model A, then all of B, then all of C, you produce a share of each model every day. The sequence repeats and respects the proportions of demand: for example A-B-A-C-A-B-A. The finer the sequence, the more closely production resembles actual demand, and the more inventory and lead time are reduced.
The limit is changeover time. If a changeover takes hours, a machine cannot produce every product every day, and the mix can only be leveled over several days. To reach "every product, every day," and then every shift, you must first reduce changeover times with SMED.
Let's look at an example built for illustrative purposes. An assembly line produces three models on one shift with 450 net minutes. Weekly demand is 350 pieces: 200 of model A, 100 of B, and 50 of C. On average that is 70 pieces per day (40 A, 20 B, 10 C), and the takt time is 450 ÷ 70 ≈ 6.4 minutes per piece.
The line produces model A from Monday through Wednesday morning, B until Thursday, and C on Friday. A customer who orders model C on Monday waits until Friday, or must be served from inventory that covers an entire week. Upstream, the components for A are consumed for three days and then nothing more.
Volume fluctuates too. Here are the orders for the five days:
| Mon | Tue | Wed | Thu | Fri | Total | |
|---|---|---|---|---|---|---|
| Orders received | 55 | 60 | 90 | 60 | 85 | 350 |
| Leveled production | 70 | 70 | 70 | 70 | 70 | 350 |
| Finished goods inventory at end of day (starting from zero) | +15 | +25 | +5 | +15 | 0 | – |
To produce exactly what is ordered each day, you would need capacity for 90 pieces, 29% more than the average. On slow days, part of that capacity would sit idle. By producing 70 pieces per day, you instead need only an inventory that, in this week, does not exceed 25 pieces. That is a little more than a third of daily production, plus a small safety stock for less regular weeks.
The mix remains to be leveled. We will look at it on the same line after explaining the tool that makes it possible: the heijunka box.
The visual tool of Heijunka is the heijunka box, or leveling box. It is a board, physical or digital, with a row for each product and a column for each interval of the day. In each slot you place the Kanban card for what is to be produced in that interval. The card tells you what to produce, how much, and in what time.
The duration of each column is the pitch: the time needed to produce one container or shipping unit.
Interval = Takt Time × pieces per container
At each interval, an internal logistics operator picks up the next card from the heijunka box and takes it to the pacemaker process. On the same round, the operator collects the container produced in the previous interval. In this way:
There is, however, a less obvious risk: without leveling, Kanban itself can create batches. If the customer picks up once a week, all the cards for that shipment arrive together at the department that must replenish them. That department produces in batches and passes the wave on to the upstream stages, where replenishment lead times lengthen and inventory grows.
The link with Kanban is the most important point. The heijunka box intercepts the cards that arrive together and distributes them across the intervals of the day. In this way, replenishments become regular along the entire value stream.
Let's return to the line in the example. The parts travel in containers of 10, so the pitch is 6.4 × 10 ≈ 64 minutes. In one shift there are 7 intervals, that is, 7 containers per day: 4 of A, 2 of B, and 1 of C. The day's heijunka box becomes:
| Interval (≈64 min) | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|
| Model A | ● | ● | ● | ● | |||
| Model B | ● | ● | |||||
| Model C | ● |
Every day the line produces the three models in the sequence A-B-A-C-A-B-A. A customer order for model C is served immediately from inventory, which now covers about one day and is replenished the same day. The inventory of each model thus drops from one week to about one day. Components are pulled every day in the same quantities, so the cards to the upstream departments and suppliers become predictable. The price is six model changeovers per day instead of two or three per week: this is why changeover times must be reduced before starting.
Heijunka is not the right answer in every situation. It is worth pausing to evaluate in these cases:
There is also an organizational limit: Heijunka only works if planning respects it. If the ERP system keeps releasing large batches, or if every urgent order jumps the sequence, the heijunka box becomes a decorative element.
Introducing Heijunka does not require revolutionizing the factory. A practical path can be:
Leveling, however, does not stop at the department. It depends on how the company reads demand, builds the master production schedule, and allocates capacity. These are the topics of the Lean Factory School® course Effective Production Planning, dedicated to those who plan and manage production. The course goes from Sales & Operations Planning (the joint planning of sales and production) to the Master Production Schedule, through to capacity planning. The course can also be requested in a version dedicated to your company.
Lean Factory School® brings these methods into the classroom and onto the shop floor: the Supply Chain Management courses cover production planning, materials management, and procurement.
Volume leveling means producing the same quantity every day, equal to the average demand of the period, absorbing fluctuations with a small finished-product inventory. Mix leveling, instead, distributes the different models each day in proportion to demand, for example with the sequence A-B-A-C-A-B-A, reducing inventory and lead time.
The heijunka box, or leveling box, is a physical or digital grid with one row per product and one column per time interval of the day, in which kanban cards are placed. The interval is calculated as Takt Time times pieces per container: with a takt of 6.4 minutes and containers of 10 pieces, that is about 64 minutes.
The pacemaker process is the only point in the flow that receives the leveled schedule and sets the pace for the other processes, usually toward the end, such as assembly. The bottleneck, instead, is the resource with the least available capacity. The two roles should not be confused: the first sets the pace, the second limits its maximum.
Without leveling, kanban can generate batches: if the customer picks up once a week, all the cards for that shipment arrive together at the department that has to replenish them. That department produces in batches and passes the wave upstream, lengthening replenishment times and increasing inventory. The heijunka box distributes the cards across the intervals of the day.
Heijunka is of limited value with long, costly changeovers, which should first be reduced with SMED, and with processes made unstable by breakdowns, minor stops, and scrap, where you need to work on OEE and maintenance. Strong seasonality, perishable products, and orders with entirely different codes also matter; in those cases, you level the load on critical resources.
You start by analyzing the demand of a product family, distinguishing real variability from variability created by how orders are collected and released, and setting the customer service level. Then you choose the pacemaker process, calculate takt time, interval, and sequence, define the flexibility levers, and level the volume first, then the mix.