3D printing wooden train track: sizes and tips
Track for wooden toy railways, made to measure
A wooden railway keeps growing: first a circle, then a figure eight, and sooner or later the one piece that would close the loop is missing. This generator lets you 3D print wooden train track yourself: straights, curves, switches, crossings, double track, ramps, buffer stops and connectors. The dimensions follow the common standard, so the pieces are compatible with wooden railways such as BRIO® and other track with pegs and holes. Length, radius and angle are free, so you can also close gaps that no store-bought piece fills.
The generator runs in your browser and uploads nothing. Your settings live in the link, which you can pass on with “Share” or bookmark. For ready-made pieces, browse the examples, such as the 144 mm straight, the large 45° curve or the Y switch. One click opens any example in the generator, where you can change it.
The standard dimensions
Track from different makers fits together because a common size has settled over the years. The generator uses these values as its defaults:
| Dimension | Value |
|---|---|
| Width × thickness | 40 × 12 mm |
| Grooves | 6 mm wide, 3 mm deep |
| Groove center distance | 26 mm |
| Peg | head Ø 11.5 mm, neck 6.5 mm, sticks out 17.5 mm |
| Hole | Ø 12.5 mm, neck 7.5 mm, reaches 18 mm deep |
| Curve radius (centerline) | 106 mm small, 198 mm large |
| Straight lengths | 54, 72, 108, 144 and 216 mm |
Every profile value sits under “Profile” and can be changed if your track is built a little differently. When in doubt, measure with calipers: the width at the top, the distance from groove center to groove center and the groove depth.
The long edges are rounded on top, while the end faces stay square so two pieces butt together without a gap. Under “Edges” you pick “Round”, “Chamfer” or “Square”. The bottom edges are always 45° chamfers: a rounded edge would overhang there, and the chamfer also hides the elephant’s foot of the first layer.
Pieces and their settings
Under “Piece” you choose what to print. Each piece shows its own fields:
- Straight: “Length” from 20 to 216 mm, plus buttons for the standard lengths. The half straight at 72 mm and the short 54 mm piece are the classics for sidings.
- Curve: “Radius” from 60 to 400 mm and “Angle” from 5 to 90°. A custom 30° curve closes gaps that 45° pieces leave open.
- Switch: “Switch shape” Y, Left or Right. The Y switch is two mirrored arcs; the left and right switches combine a straight and an arc. The piece is solid, like store-bought switches.
- Crossing: “Crossing angle” from 30 to 90° and “Track length” for both tracks.
- Double track: two parallel tracks with an adjustable “Track spacing”, 50 mm by default.
- Ramp: climbs by the “Elevation” with a gentle start and end. The bridge ramp rises 24 mm over 144 mm.
- Buffer stop: a track end with a block and two buffers; set its height with “Buffer height”.
- Double peg: two pegs back to back, for joining two pieces whose holes face each other.
Straights and curves get a solid base with “Elevation”, which turns them into raised track like the 72 mm raised straight. Their pegs and holes then reach down to the floor, so nothing hangs in mid-air. That is also why the peg at the top end of the ramp runs all the way down to the bed.
For the way down, print a second ramp and set “Connector at the start” to Peg and “Connector at the end” to Hole; it then joins the raised track from the other side.
Getting the connector fit right
The single most important value for play is the fit: a peg that is too tight hardly goes in, one that is too loose falls out. With the defaults the peg head is 1 mm narrower than the hole, which gives 0.5 mm of play on each side, plus 0.5 mm at the tip. That suits most well-tuned printers.
To find your fit:
- Print the double peg; it takes only 2.1 g and 13 minutes.
- Push it into a store-bought piece and into a printed hole.
- If it jams, reduce “Peg Ø” under “Connectors & fit” by 0.1 mm; if it wobbles, increase it.
- If the neck jams, do the same with “Peg neck” and “Hole neck”.
When the play drops below 0.3 mm, the generator warns you. “Peg edge” rounds the top edge of the peg so it slides in more easily. With “Connector at the start” and “Connector at the end” you choose a peg, a hole or nothing for each end, which also gives you pieces with two holes.
Grooves, road and underside
Under “Top” you pick “Grooves”, “Road” or “Plain”. The road is a recessed lane 32 mm wide and 3 mm deep with a dashed center line, like the road piece with a white center line. The road stays clear above the hole and at the peg.
Under “Underside” you can put grooves on the bottom as well. A double-sided straight or curve can then simply be flipped: a left curve becomes a right curve, and peg and hole swap direction. This only works for pieces that are flat on both sides; ramps, buffer stops, raised track and double pegs stay plain underneath.
On a plain underside you can engrave a name with “Name underneath”, 0.6 mm deep and mirrored so it reads correctly from below. The buffer stop with a name shows this with “Emil”. If the name is too long, the generator scales it down.
Colors and multi-material printing
The track is the main part. Two layers can get a color of their own: the “Colored groove floor”, a layer under the grooves, and the road’s center line. Both are separate parts that touch the track without overlapping it. The left switch with gray grooves uses the groove floor.
Download “Multi-color 3MF (PrusaSlicer)” for an MMU3, XL or Core One, or “3MF (Bambu Studio / OrcaSlicer)” for an AMS; the parts are already assigned to extruders. “STL per color (ZIP)” gives you one file per color. With a single nozzle and an M600 color change this does not work cleanly: a color change recolors whole layers, including a stripe around the side walls. Print the track in one color instead; the grooves still show well.
Printing tips
Every piece lies flat on the bed and needs no supports. Overhangs are at most 45°, and the printer bridges the grooves on the underside, which span 6 mm. The numbers below come from real slices in PrusaSlicer for the Prusa MINI with input shaper, profile “0.20mm SPEED”, Prusament PLA, 2 walls and 15 % infill:
| Piece | Size | Filament | Print time |
|---|---|---|---|
| Straight 144 mm | 161.5 × 40 × 12 mm | 28.9 g | 55 min |
| Straight 72 mm | 89.5 × 40 × 12 mm | 15.1 g | 32 min |
| Straight 54 mm | 71.5 × 40 × 12 mm | 11.7 g | 27 min |
| Curve 45°, R 198 mm, double-sided | 154 × 92 × 12 mm | 32.0 g | 1 h 8 min |
| Y switch | 154 × 144 × 12 mm | 55.8 g | 1 h 46 min |
| 90° crossing | 161.5 × 161.5 × 12 mm | 49.7 g | 1 h 39 min |
| Bridge ramp 24 mm | 161.5 × 40 × 36 mm | 47.1 g | 1 h 45 min |
| Buffer stop 54 mm | 54 × 40 × 34 mm | 16.6 g | 48 min |
| Double peg | 35 × 11.5 × 12 mm | 2.1 g | 13 min |
None of these slices contained a support layer. Keep automatic supports off in your slicer; otherwise PrusaSlicer adds tiny supports in the grooves on the underside and in an engraved name, although the printer bridges both without trouble. For pieces that take a beating, use three walls and 20 % infill so the peg neck holds firm. PLA is hard and easy to print, PETG tougher, and wood-fill filament looks the most authentic. Long 216 mm pieces do not fit a 180 mm bed, not even diagonally; the generator then tells you the piece’s size, or by how many degrees to turn it when it only fits turned. Set your bed size under “Print bed”.
Safety
Printed parts are not a certified toy. The double peg and short pieces are small parts and must be kept away from children under 3. Sand off sharp edges, avoid toxic specialty filaments and check the pieces regularly: a cracked peg can splinter. Best of all, play along with your child.
Origin & license
The idea and the piece catalog come from OpenTrack by Andrew Chilton, a collection of OpenSCAD files for printable wooden railway track licensed under CC BY-SA 4.0. This generator takes no code or models from it: the geometry is an independent TypeScript implementation based on the widely known standard dimensions of wooden track. BRIO is a trademark of BRIO AB; this site is not affiliated with the maker, and the name only describes which track the pieces fit. All licenses are listed on the licenses page.
Get started: open the generator and print the missing piece for your layout. If you are after something for your pocket afterwards, have a look at the key fidget.
All parameters
The numeric settings of the generator with their default values and allowed ranges. Text, fonts, patterns and colors are set directly in the generator.
| Parameter | Default | Range | Meaning |
|---|---|---|---|
| Piece | |||
| Length | 144 mm | 20 – 216 mm | Length of the straight without the peg. Standard: 54, 72, 108, 144 and 216 mm. |
| Radius | 198 mm | 60 – 400 mm | Radius at the track center. Large standard curves use 198 mm, small ones 106 mm. |
| Angle | 45 ° | 5 – 90 ° | How far the curve turns. Eight 45° curves make a circle. |
| Crossing angle | 90 ° | 30 – 90 ° | Angle between the two tracks of the crossing. |
| Track length | 144 mm | 54 – 216 mm | Length of each of the two crossing tracks. |
| Track spacing | 50 mm | 40 – 80 mm | Distance between the two track centers of a double track. |
| Elevation | 0 mm | 0 – 64 mm | Ramp: how high it climbs. Straight and curve: how high the track sits above the floor, like an embankment. |
| Buffer height | 22 mm | 12 – 40 mm | How far the buffer block rises above the track. |
| Profile | |||
| Width | 40 mm | 36 – 44 mm | Width of the track, standard 40 mm. |
| Thickness | 12 mm | 8 – 16 mm | Thickness of the track, standard 12 mm. |
| Groove width | 6 mm | 4 – 8 mm | Width of one groove, standard 6 mm. |
| Groove depth | 3 mm | 1.5 – 5 mm | Depth of one groove, standard 3 mm. |
| Groove spacing | 26 mm | 20 – 32 mm | Distance between the groove centers, standard 26 mm. |
| Rounding | 3 mm | 0 – 4 mm | Radius of the rounded long edges. |
| Chamfer | 2 mm | 0 – 4 mm | Size of the 45° chamfer on chamfered edges. |
| Connectors & fit | |||
| Peg Ø | 11.5 mm | 9 – 14 mm | Diameter of the peg head. Smaller = looser. |
| Peg neck | 6.5 mm | 5 – 9 mm | Width of the neck between the track and the peg head. |
| Peg length | 17.5 mm | 14 – 22 mm | How far the peg sticks out of the track end. |
| Hole Ø | 12.5 mm | 10 – 15 mm | Diameter of the round hole. Larger = looser. |
| Hole neck | 7.5 mm | 6 – 10 mm | Width of the slot between the track end and the hole. |
| Hole depth | 18 mm | 14 – 22 mm | How far the hole reaches into the track from its end. |
| Peg edge | 1 mm | 0 – 2 mm | Rounding of the peg’s top edge so it slides in more easily. |
| Road | |||
| Road width | 32 mm | 24 – 36 mm | Width of the recessed road. |
| Road depth | 3 mm | 1 – 5 mm | How deep the road is recessed. |
| Dash width | 3 mm | 1 – 6 mm | Width of one dash. |
| Dash length | 15 mm | 5 – 30 mm | Length of one dash. |
| Dash gap | 12 mm | 5 – 30 mm | Gap between two dashes. |
| Dash height | 1 mm | 0.4 – 2 mm | How far the dashes stand out of the road. |
| Name, color & bed | |||
| Text size | 7 mm | 4 – 14 mm | Height of the capital letters. Names that are too long are scaled down. |
| Colored groove floor | 0 mm | 0 – 1.2 mm | Thickness of the groove floor layer in its own color, 0 = off. |
| Print bed | 180 mm | 120 – 400 mm | Edge length of your print bed for the size check. |
Frequently asked questions
Will the track fit the wooden railway I already have?
The dimensions match the common systems: 40 mm wide, 12 mm thick, grooves 26 mm apart and pegs with an 11.5 mm head. Print the double peg or a short piece first and test it with your track before you print large pieces.
The peg is too tight or too loose – what now?
Adjust “Peg Ø” or “Hole Ø” under “Connectors & fit” in 0.05 mm steps. If your printer makes holes a little small, 0.1 to 0.2 mm less on the peg is usually enough.
PLA or PETG – which filament is better?
PLA is the easiest to print and hard enough for a playroom. PETG is tougher and breaks less often when a piece falls off the table. Wood-fill filament looks authentic but is more brittle; use three walls with it.
Is it safe for toddlers?
Printed parts are not a certified toy. The double peg and short pieces are small parts and must be kept away from children under 3. Deburr the edges and check the pieces for cracks now and then.
Which curve radius matches standard curves?
Large curves have a centerline radius of about 198 mm, small ones about 106 mm, both over 45°. Eight curves make a circle. With “Radius” and “Angle” you can make any size in between.
Do I need supports or a large print bed?
No. Every piece lies flat and prints without supports; just leave automatic supports off in your slicer. Every example fits a 180 × 180 mm bed such as the Prusa MINI’s.
Origin & license
- OpenTrack by Andrew Chilton · CC BY-SA 4.0 · idea – idea and piece catalog; independent implementation from standard dimensions (no code taken)