3D Printing Generator
DeutschEnglish

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:

DimensionValue
Width × thickness40 × 12 mm
Grooves6 mm wide, 3 mm deep
Groove center distance26 mm
Peghead Ø 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 lengths54, 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:

  1. Print the double peg; it takes only 2.1 g and 13 minutes.
  2. Push it into a store-bought piece and into a printed hole.
  3. If it jams, reduce “Peg Ø” under “Connectors & fit” by 0.1 mm; if it wobbles, increase it.
  4. 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:

PieceSizeFilamentPrint time
Straight 144 mm161.5 × 40 × 12 mm28.9 g55 min
Straight 72 mm89.5 × 40 × 12 mm15.1 g32 min
Straight 54 mm71.5 × 40 × 12 mm11.7 g27 min
Curve 45°, R 198 mm, double-sided154 × 92 × 12 mm32.0 g1 h 8 min
Y switch154 × 144 × 12 mm55.8 g1 h 46 min
90° crossing161.5 × 161.5 × 12 mm49.7 g1 h 39 min
Bridge ramp 24 mm161.5 × 40 × 36 mm47.1 g1 h 45 min
Buffer stop 54 mm54 × 40 × 34 mm16.6 g48 min
Double peg35 × 11.5 × 12 mm2.1 g13 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.

ParameterDefaultRangeMeaning
Piece
Length144 mm20 – 216 mmLength of the straight without the peg. Standard: 54, 72, 108, 144 and 216 mm.
Radius198 mm60 – 400 mmRadius at the track center. Large standard curves use 198 mm, small ones 106 mm.
Angle45 °5 – 90 °How far the curve turns. Eight 45° curves make a circle.
Crossing angle90 °30 – 90 °Angle between the two tracks of the crossing.
Track length144 mm54 – 216 mmLength of each of the two crossing tracks.
Track spacing50 mm40 – 80 mmDistance between the two track centers of a double track.
Elevation0 mm0 – 64 mmRamp: how high it climbs. Straight and curve: how high the track sits above the floor, like an embankment.
Buffer height22 mm12 – 40 mmHow far the buffer block rises above the track.
Profile
Width40 mm36 – 44 mmWidth of the track, standard 40 mm.
Thickness12 mm8 – 16 mmThickness of the track, standard 12 mm.
Groove width6 mm4 – 8 mmWidth of one groove, standard 6 mm.
Groove depth3 mm1.5 – 5 mmDepth of one groove, standard 3 mm.
Groove spacing26 mm20 – 32 mmDistance between the groove centers, standard 26 mm.
Rounding3 mm0 – 4 mmRadius of the rounded long edges.
Chamfer2 mm0 – 4 mmSize of the 45° chamfer on chamfered edges.
Connectors & fit
Peg Ø11.5 mm9 – 14 mmDiameter of the peg head. Smaller = looser.
Peg neck6.5 mm5 – 9 mmWidth of the neck between the track and the peg head.
Peg length17.5 mm14 – 22 mmHow far the peg sticks out of the track end.
Hole Ø12.5 mm10 – 15 mmDiameter of the round hole. Larger = looser.
Hole neck7.5 mm6 – 10 mmWidth of the slot between the track end and the hole.
Hole depth18 mm14 – 22 mmHow far the hole reaches into the track from its end.
Peg edge1 mm0 – 2 mmRounding of the peg’s top edge so it slides in more easily.
Road
Road width32 mm24 – 36 mmWidth of the recessed road.
Road depth3 mm1 – 5 mmHow deep the road is recessed.
Dash width3 mm1 – 6 mmWidth of one dash.
Dash length15 mm5 – 30 mmLength of one dash.
Dash gap12 mm5 – 30 mmGap between two dashes.
Dash height1 mm0.4 – 2 mmHow far the dashes stand out of the road.
Name, color & bed
Text size7 mm4 – 14 mmHeight of the capital letters. Names that are too long are scaled down.
Colored groove floor0 mm0 – 1.2 mmThickness of the groove floor layer in its own color, 0 = off.
Print bed180 mm120 – 400 mmEdge 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)