Factorio Codexery

Gate

A simple iron jaw on the track, holding the line until the signal says go.

The Gate is a compact rail-infrastructure entity in Factorio, serving as the physical on-track barrier that opens and closes to permit or block train passage. Unlike processing machines, it has no input or output slots and no production speed; its entire purpose is traffic management. Placed directly on a rail segment, it works in tandem with adjacent rail signals, which dictate whether the gate is in its open (permissive) or closed (blocking) state. In the broader context of a growing Factorio base, gates are the quiet sentinels of the rail network. As a player's logistics empire scales from a single hand-crafted train to a multi-line, multi-junction web of automated freight, gates become the essential mechanism that prevents collisions, deadlocks, and the chaotic pile-ups that would otherwise grind an industrial operation to a halt.

Type
Rail infrastructure entity
Function
Opens or closes a rail segment to permit or block train movement
Controlled by
Adjacent rail signals (red = closed, green = open)
Placement
On a rail segment, between two rail pieces
Processing role
None – non-production, no item slots
Power draw
None (passive mechanical entity)
Unlocked via
Early rail technology tree (Railway / Rail signals tier)

Lore & Background

In the Factorio world, the player arrives on a barren, grass-streaked expanse and begins assembling an industrial civilization from raw stone and iron. Early on, the first rails are laid by hand, and a single gate—little more than a pair of interlocking iron arms across the track—stands as the only traffic control in the entire operation. There is no dispatcher, no central computer; the gate simply obeys the red-and-green pulse of the nearest signal and does its job with mechanical indifference. As the base sprawls outward, the gate's role multiplies. At every junction, every branch, every point where two lines of freight might intersect, a gate is dropped into the track to ensure that only one train occupies a section at a time. The player learns, often the hard way after a spectacular multi-car pile-up, that a gate without a properly wired signal is just a permanent roadblock, and a signal without a gate is a polite suggestion that trains will happily ignore. There is a quiet satisfaction in watching a long freight train roll to a halt at a closed gate, its wheels clicking against the iron arms, while a second train passes through the adjacent green-lit section. In the Factorio world, where every machine hums and every belt shuffles, the gate is the one entity that simply waits—silent, still, and absolutely certain that it will not move until told.

In Their Own Story

The night shift at a mid-tier base is quiet. Lamps cast their pale yellow glow over a tangle of rails threading between storage tanks and assembler rows. A four-car iron-ore train crests the gentle rise in the track and rolls toward junction seven. The signal ahead flickers red. The gate's arms swing down with a soft metallic clank, locking into the rail bed. The train's brakes engage with a long, groaning hiss, and the whole thing shudders to a stop, its front buffer a hand's width from the closed gate. Across the junction, a single empty wagon train—just a locomotive and one cargo car—rolls through the green-lit section, its wheels clicking rhythmically over the sleepers. The gate on the other side swings open, arms lifting clear, and the empty train passes without slowing. A moment later, the signal at junction seven turns green. The gate's arms rise. The iron-ore train lurches forward, gathers speed, and disappears into the dark beyond the last lamp. The gate settles back into its open position, arms resting, waiting for the next red pulse. It has done this ten thousand times. It will do it ten thousand more.

Reader's Guide

The Gate is a non-production rail entity. It has no input or output item slots, no processing speed, and no power draw. Its sole function is to physically block or permit a train's passage through a single rail segment. Placement: the gate is built directly on a rail, occupying the space between two adjacent rail pieces. It must sit on a straight rail segment; it cannot be placed on a curve. It is controlled by the nearest rail signal on either side—when that signal shows red, the gate closes (arms drop into the track); when it shows green, the gate opens (arms lift clear). In a production line, the gate is not part of the item-transport chain but part of the train-traffic chain. It pairs with rail signals to create safe, non-overlapping track sections. At junctions, you typically place a gate on each approach leg so that only one train can enter the intersection at a time. Without gates, two trains can enter a junction from opposite directions and deadlock against each other, requiring manual intervention. Quirks and tips: a gate with no signal nearby will remain in its default (open) state and provide no protection. Multiple gates can be chained on the same line to create longer protected sections. Gates do not stack—each one controls exactly one rail segment. They are unlocked in the early rail technology tier alongside rails and signals, making them available well before advanced logistics are needed.

Did You Know?

More in Machines & Infrastructure

Elsewhere in the Factorio universe

Spotted an error? Know more?

This is a living reference — every entry is fact-audited, and reader corrections feed straight into our audit queue. Suggest an edit · See this site's audit record

Comments

Loading…
Open in the interactive codex →