How to Craft Rail in Minecraft

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
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
- 2
- 3
Railthis page
Gather this first
Step-by-Step Instructions
- 1
6x Iron Ingot - 2
Stick - 3
16x 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?
What do you need to make a Rail from scratch?
How many Rails do you get from one craft?
What is the item ID for Rail in Minecraft?
What is the give command for Rail?
Is the Rail recipe the same in Java and Bedrock Edition?
What version of Minecraft added the Rail?
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.