Skip to main content

How to Craft Rail in Minecraft

Rail in Minecraft, drawn from the game's own item texture. Track for minecarts.

Making Rails takes 6 Iron Ingots and 1 Stick at a Crafting Table. On the grid you want six Iron Ingots in the left and right columns and a single Stick in the centre cell. You end up with 16 Rails each time.

Rail Item ID and Give Command

The item ID for Rail is minecraft:rail. In commands the namespace may be left off, so rail works too. Checked against Minecraft Java 26.2.

Give yourself one
/give @p rail
Give a full stack of 64
/give @p rail 64
Give it to a named player
/give Steve rail 1

Cheats have to be on for Rail to appear this way, and the same command works on Bedrock Edition, where the name is written the same.

Overview

Rails provide track for minecarts. They can go straight, turn 90 degrees and slope up or down. Rail uses a shaped recipe: the ingredients only work in the pattern shown.

The rail was already in the game in Minecraft Beta 1.0, the oldest release with an English language file to read, so this recipe is at least that old.

The materials come together from a few sources: you will be working with iron ingot (smelt iron ore) and stick (craft from planks).

One Stack, Counted

Stack sum: 64 over 6 is 10 crafts, times 16 is 160 rails. Bring 10 sticks along for the ride. Left behind: 4 iron ingots.

Materials Needed

ItemAmountWhere to Find
Iron IngotIron IngotIron Ingot6xSmelt iron ore
StickStickStick1xCraft from planks

Gather 6x Iron Ingot (smelt iron ore) and Stick (craft from planks), then take the lot to a Crafting Table.

The Full Chain

Stick, then Iron Ingot, then the Rail. All in: 6 Iron Ore and 2 Planks.

  1. 1
  2. 2
  3. 3
    RailRailRailthis page

Gather this first

6Iron Ore2Planks

Step-by-Step Instructions

  1. 1

    Iron IngotIron Ingot6x Iron Ingot

  2. 2

    StickStickStick

  3. 3

    16x Rail

Minecraft crafting recipe for Rail: 6 x Iron Ingot, 1 x Stick in a crafting table, making 16 Rail.

Tips & Notes

  • Line up 6x Iron Ingot and 1x Stick before you open the Crafting Table. Iron Ingot: smelt iron ore.
  • You get 16 Rail per craft, so divide whatever you need by 16 to know how many times to repeat it.

Uses for Rail

  • Track for minecarts
  • Turns, slopes and connections

View detailed item stats, durability and properties for Rail on the Astroworld Items Database.

Frequently Asked Questions

What do I need to craft a Rail in Minecraft?
a Rail asks for 6 Iron Ingots and 1 Stick, and the work happens at a Crafting Table. Lay them out exactly as the grid above shows, and one craft produces 16 Rails.
What do you need to make a Rail from scratch?
From raw materials only, a Rail comes down to 6 Iron Ore and 2 Planks. The rest you make yourself, and it takes 3 crafts to get there.
How many Rails do you get from one craft?
The Rail recipe makes 16 Rails in a single craft.
What is the item ID for Rail in Minecraft?
Rail is registered as minecraft:rail. Commands accept the short form rail as well, and Bedrock spells it the same. Checked against Java 26.2.
What is the give command for Rail?
Use /give @p rail to put a Rail in your own inventory, or /give @p rail 64 for a full stack of 64. Cheats have to be on.
Is the Rail recipe the same in Java and Bedrock Edition?
Yes, the Rail recipe is the same in both editions. Java and Bedrock both build a Rail from 6 Iron Ingots and 1 Stick at a Crafting Table, in the same layout, 16 at a time.
What version of Minecraft added the Rail?
The files run out before the rail does. Minecraft Beta 1.0 is the oldest language file Mojang publishes and rail was listed in it. That pattern above is still the one the game uses.

Sources

Grid, ingredients and yield
6 Iron Ingots and 1 Stick in, 16 Rails out, Crafting Table. Java 26.2, .
That Bedrock agrees
Bedrock 1.26.40.05, same 2 ingredients.
How far back it goes
Present in Minecraft Java Beta 1.0, the oldest release that exists to check. From all 163 released Java clients, rd-132211 to 26.2.
Stack size
The Astroworld Items Database, built from the same jar.
The recipe book unlock
What unlocks it in the recipe book. Java 26.2.
The stack sum
Counted, not played: 16 Rails per craft against the stack size.

Related Recipes