Lego's Portugal Factory: Designing Intralogistics Around Automated Production

An automated production line can make parts faster than a poorly designed factory can feed, store, inspect, and ship them. That distinction matters as manufacturers invest in robotics and artificial intelligence: the business case depends on the complete flow of material, not the headline speed of one machine.
Lego's planned factory in Estarreja, Portugal, provides a useful design case. According to Supply Chain Dive, the site will cover 1.2 million square feet and combine molding, processing, and packing. Construction is expected to begin in the first half of 2027, with production starting in 2030 and 1,000 employees planned by then. Lego describes it as its most automated and advanced factory.
That scale creates an intralogistics challenge: every automated production asset needs timely inputs, controlled buffers, traceable work-in-process, and outbound capacity. Designing those flows after the machines are specified would turn logistics into the constraint.
Map four material streams before selecting equipmentโ
The factory's physical design should begin with a time-based material-flow model covering four streams.
Inbound materials include resin, colorants, packaging, labels, pallets, and maintenance supplies. Each has a different receiving profile, storage condition, replenishment frequency, and traceability requirement. Bulk resin may move through silos and closed conveying systems, while packaging travels by pallet or tote. The model should convert the production schedule into hourly dock, storage, and line-side demand.
Work-in-process connects molding, decoration or processing, quality inspection, and packing. High production speed makes uncontrolled accumulation expensive. Every handoff needs a defined container, quantity, identity, destination, and maximum dwell time. Automated storage can act as a decoupling buffer, but only if its retrieval capacity is sufficient during peaks and recovery periods.
Finished goods must move from packing to palletization, storage, staging, and dispatch without losing lot or order traceability. Warehouse capacity should be modeled in pallet positions and throughput by hourโnot just average daily volume. Seasonal demand can fill storage faster than outbound appointments release it.
Quality holds and exceptions require their own routes. Suspect material cannot simply remain beside a conveyor. The design needs secure locations, system status codes, inspection queues, and release or disposal workflows that prevent held inventory from being allocated.
Define the interfaces, not only the machinesโ
Automation projects often focus on individual assets: conveyors, automated storage and retrieval systems, robots, or molding cells. Operational performance is determined at the interfaces between them.
Each interface should have a written service contract. It should state the unit of transfer, required data, target cycle time, buffer limit, confirmation event, fault response, and owner. For example, when a packing line releases a pallet, the warehouse control system must receive a license plate, SKU, lot, quantity, quality status, and destination. The transport planning layer then needs inventory availability and dock-ready time before it can commit a shipment.
This is where production systems, warehouse execution, and transportation management must share a common clock. A production plan expressed in shifts is too coarse for a conveyor operating in seconds or a carrier appointment scheduled to a 30-minute window. Translating the plan into synchronized release times lets the plant protect line supply while avoiding excessive work-in-process.
The implementation should also be phased. MHI's robotics implementation guidance recommends moving from strategic alignment to pilots, integration and scaling, then continuous optimization. It cites one logistics provider that reduced autonomous-mobile-robot deployment time from six months to two weeks by using prebuilt integrations. The lesson is broader than AMRs: modular interfaces make it easier to test, replace, and scale equipment without rebuilding the entire control architecture.
Size buffers for recovery, not comfortโ
Buffers are necessary because molding, packing, storage, and shipping do not fail or recover at the same rate. But more buffer is not automatically safer. Excess work-in-process consumes floor space, lengthens quality containment, and conceals bottlenecks.
For each production segment, calculate buffer capacity from the downstream outage the plant intends to absorb. A two-hour packing interruption, for example, should translate into a defined number of containers and storage locations at the planned molding rate. Then test whether conveying and storage can clear that accumulation after packing restarts while normal production continues.
The same logic applies to outbound staging. Capacity should cover appointment variability and carrier delays without allowing staged pallets to block dock doors. Transportation planning should receive early warning when predicted staging occupancy or missed pickups threaten production flow.
Use ramp-up gates tied to end-to-end performanceโ
A new plant should not advance from commissioning to volume production because each machine passed an isolated acceptance test. Ramp-up gates should measure the complete system under representative product mix and exception conditions.
Four gates are especially important:
- Throughput: Demonstrate sustained good units per hour from material release through finished-goods receipt, not theoretical machine speed.
- Downtime and recovery: Record fault frequency, mean time to restore flow, accumulated inventory, and time to clear the backlog.
- Buffer capacity: Prove that storage and conveyors can absorb the designed outage and recover without starving or blocking adjacent processes.
- Outbound adherence: Measure the share of shipments staged and loaded by appointment, plus the effect of late production changes on carrier plans.
Quality, safety, and traceability remain non-negotiable gates across all four. A throughput target achieved by creating unscanned movements or bypassing holds is not a successful test.
Lego also intends to increase output per square meter through AI, robotics, and other technologies. Its COO told Supply Chain Dive that the Portugal site aims for solar coverage equivalent to around 80% of annual energy use. Those ambitions reinforce the need for coordinated operations: dense automation raises power, maintenance, and congestion dependencies, while renewable-energy goals make load visibility more valuable.
The practical takeaway is simple. Automated production and intralogistics are not separate projects connected during commissioning. They are one engineered flowโfrom inbound material to customer shipmentโwith shared data, buffers, recovery rules, and performance gates.
Planning an automated manufacturing or distribution network? Request a CXTMS demo to see how CXTMS connects transport planning, dock execution, shipment visibility, and operational exceptions.


