Factorio Codexery

Straight Rail

One iron plate, one straight line, and the entire logistics empire begins to roll.

The Straight Rail is the most fundamental piece of track infrastructure in Factorio, serving as the building block for every rail network a player constructs. It is a simple, unpowered segment of steel-and-wood track laid flat on the terrain, designed to guide trains in a perfectly linear path. While it may look modest compared to the gleaming assemblers and roaring furnaces, no automated logistics operation in the game is possible without it. As the backbone of long-distance transport, Straight Rails connect train stops, junctions, and powered rail sections into continuous loops and routes. Players lay them by selecting the rail item in their inventory and clicking on the ground, snapping each piece into a grid-aligned orientation. It is the first rail type most players encounter after unlocking the Railway technology, and it remains the workhorse of every rail line from the earliest factory to the sprawling mega-bases of late game.

Type
Infrastructure – Rail piece
Recipe
1 Iron Plate
Unlocked by
Railway technology
Power usage
None (passive track)
Solid to entities
Yes (blocks walking; trains pass over)
Placement
Grid-aligned, placed from inventory

Lore & Background

In the industrial sprawl that the player builds atop the alien world, the Straight Rail is less a machine and more a promise: that whatever the factory chews out in bulk can be moved in bulk, too. Early on, a single loop of straight and curved rail connecting two train stops feels like a small triumph, a ribbon of steel stitching together the iron smelter and the first assemblers. The rhythmic clatter of a two-car train rounding the bend becomes the heartbeat of the base. As the factory scales, those neat little loops give way to multi-lane corridors, long-haul freight lines snaking across the map, and complex junctions where dozens of trains interleave. Yet every one of those elaborate networks is still, at its core, a chain of straight rail segments. The alien artifacts scattered across the terrain seem indifferent to the steel laid between them, but the player's growing empire of iron and steam is built, segment by segment, on the quiet reliability of that first straight piece of track. Fans often describe the moment of laying the first rail as a threshold: before it, the factory is a collection of static machines; after it, the base becomes a living system. The Straight Rail is the simplest expression of that transformation, the single straight line that says the factory is no longer just producing—it is moving.

In Their Own Story

The afternoon light hung low over the grass, gilding the tops of the iron smelters. Mara crouched at the edge of the clearing, iron plate in hand, and set the first straight rail down with a soft metallic click. She placed the second. The third. Each one snapped into the grid with a faint satisfying thunk, the little wooden sleepers and steel rails catching the light. By the time the sun dipped behind the distant alien artifact—its blue glow pulsing slow and patient—she had a full loop. Two stops, four straight sections, two curves. She hopped into the single-car train, pressed the start button, and felt the chassis shudder to life. The wheels bit the rail. The train rolled forward, round and round, a small iron heartbeat in the quiet field. She watched it go, three laps, four, and thought: tomorrow, the iron mine. Tomorrow, the second line. Tomorrow, the whole world on rails.

Reader's Guide

The Straight Rail is a passive infrastructure item, not a machine, so it has no input or output slots, no power draw, and no processing speed. Its sole function is to provide a continuous, walkable-by-train path on the terrain grid. Each placed segment occupies one tile and connects to adjacent rail pieces (straight, curved, or diagonal) to form a valid track network. It is unlocked by the Railway technology. The recipe is a single iron plate, making it one of the cheapest infrastructure items in the game. Because it is a solid object, it blocks the player and all non-train entities from passing through, so plan your layout to avoid trapping yourself or your workers inside a rail loop. When pairing with neighboring infrastructure, ensure that every rail segment in a route is contiguous—gaps will cause trains to stop or fail to path. Straight Rails connect seamlessly to Curved Rails at 90-degree turns and to Diagonal Rails for 45-degree angles. In later stages, they pair with Powered Rails (which add speed) and Signal Lights (which manage train traffic at junctions). Train Stops must be placed directly on a rail segment, and the stop's track orientation must match the rail beneath it. There are no stacking quirks, but remember that rails cannot be placed on top of other solid objects, water, or terrain features, so clear the ground before laying track.

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 →