Railroad tracks are laid in layers, starting from the ground up: prepared earth, a bed of crushed stone, wooden or concrete ties, steel rails, and fasteners that lock everything together. The process is methodical and surprisingly precise, with federal regulations allowing as little as half an inch of variation in the distance between rails on high-speed lines. Here’s how each layer comes together.
Preparing the Ground
Before anything else, crews shape the earth itself. The subgrade is the natural ground that supports everything above it, and it needs to be graded to the correct profile, compacted, and shaped to drain water away from the track. On flat terrain this might mean building the ground up into a raised embankment. Through hills, it means cutting through rock and soil. Either way, the finished subgrade has to be smooth, stable, and sloped so rainwater runs off rather than pooling beneath the track.
On top of the subgrade, crews often spread a layer of subballast, a transitional material made of finer crushed stone or gravel. This layer distributes the weight of passing trains more evenly across the softer earth below and acts as a filter to keep mud from pushing up into the stone bed above. Think of it as a buffer between the natural ground and the engineered structure sitting on top of it.
The Crushed Stone Bed
The layer of chunky rock you see between and around railroad ties is called ballast, and it’s one of the most important parts of the track structure. Ballast is made from crushed stone, typically granite, traprock, or limestone, sized so that most pieces fall between about three-quarters of an inch and an inch and a half across. Union Pacific’s specifications for main line ballast require that at least 90% of the stone passes through a 1.5-inch screen and almost none of it is smaller than a standard No. 4 sieve opening (about a quarter inch). The stones are angular and rough on purpose. Smooth, rounded gravel would slide around under load. Crushed, jagged pieces lock together and resist shifting when a train rolls over them.
Ballast serves three jobs at once. It spreads the enormous concentrated weight of a loaded train across the subgrade below. It allows rainwater to drain straight through rather than saturating the track bed. And it holds the ties in place by gripping them from all sides. Flat or elongated stones are limited to no more than 25% of the mix, because flatter pieces don’t interlock as well and tend to break under repeated loading. Secondary lines and rail yards use a slightly different grade of ballast with a wider range of stone sizes, since the traffic loads and speeds are lower.
Setting the Ties
Railroad ties (also called sleepers) sit directly on top of the ballast. Their job is to hold the two rails at the correct distance apart and transfer the weight of passing trains down into the stone bed. Traditional ties are made from hardwood treated with preservatives to resist rot and insects, but concrete ties have become increasingly common on main lines because they’re heavier, last longer, and hold the track gauge more consistently.
Ties are spaced roughly 19 to 20 inches apart on main lines, which works out to about 3,000 ties per mile. On curves or heavy-traffic corridors, spacing may be tighter. Each tie is set into the ballast so that several inches of stone surround it on all sides and fill the spaces between ties, which is called the crib. This packing is what keeps the ties from shifting sideways or rotating when a train pushes against the rails.
Laying and Welding the Rails
Steel rails arrive at the work site in long sections, typically 1,440 feet (a quarter mile) for continuously welded rail. They’re transported on specially designed trains with articulated cars that can flex around curves while carrying these enormous lengths of steel. Cranes or rail-laying machines lift the rails off the train and place them onto the ties, threading them into position along the route.
Once positioned, the individual rail sections are welded together into continuous strings that can stretch for miles without a joint. This is called continuously welded rail (CWR), and it’s now standard on main lines because it creates a smoother ride and reduces maintenance. Older jointed rail, where 39-foot sections were bolted together with joint bars, is still found on branch lines and lower-traffic routes.
The welding itself is done using either a flash-butt process, where the rail ends are pressed together under electrical current until they fuse, or thermite welding, where a chemical reaction melts iron into a mold around the joint. Flash-butt welding is the preferred method for new construction because it produces a stronger, more consistent joint. Each weld consumes about an inch and a half of rail material, so crews have to account for that lost length when cutting and fitting sections together.
Managing Thermal Expansion
Steel expands when it heats up and contracts when it cools down. A mile of rail can change length by several inches between a winter night and a summer afternoon. Since continuously welded rail is locked in place and can’t slide freely, those temperature swings create enormous internal forces: compression in the heat (which can buckle the track) and tension in the cold (which can snap it).
To manage this, crews install rail at a specific “neutral temperature,” the temperature at which the rail is neither compressed nor stretched. This target varies by region and climate. If the actual rail temperature during installation is below the target, crews use rail heaters or mechanical pullers to stretch the rail to the length it would naturally reach at the neutral temperature. They mark reference points along the rail and measure expansion at each station to make sure the stretching is uniform along the entire length. Only after achieving the correct expansion do they fasten the rail permanently and close the final weld.
The math behind it is straightforward. Steel expands at a rate of 0.000078 inches per foot per degree Fahrenheit. So for a 1,440-foot rail section that needs to be adjusted 20 degrees above the current temperature, crews would need to stretch it about 2.25 inches before locking it down. Getting this wrong in either direction increases the risk of a summer buckle or a winter rail break.
Fastening Rails to Ties
Rails don’t just sit loosely on the ties. They’re secured with fastening systems that hold them at the correct gauge, prevent the rail from creeping longitudinally, and absorb vibration. The specific system depends on whether the ties are wood or concrete.
On wooden ties, the traditional method uses cut spikes driven through a steel tie plate into the wood. The tie plate sits between the rail and the tie, spreading the load over a wider area and canting the rail slightly inward. More modern installations on wood ties use elastic clips instead of spikes, because clips maintain consistent pressure over time while spikes can loosen as the wood compresses.
On concrete ties, elastic clip systems are standard. One of the most widely used is the Pandrol e-Clip, a spring steel clip that snaps into a shoulder cast into the tie. The clip presses down on the rail foot with a controlled elastic force, and because it’s a spring rather than a threaded bolt, it’s self-tensioning. It doesn’t loosen over time and doesn’t need periodic retorquing. Between the clip and the rail sits a rubber pad that dampens vibration, and an insulator that prevents electrical contact between the rail and the concrete (important because railroads use the rails themselves to carry signal current). The whole assembly is sometimes described as a “fit and forget” system because it requires almost no maintenance over its lifespan.
Tamping and Final Alignment
After the rails are fastened, the track isn’t finished yet. It needs to be lifted, leveled, and aligned to precise geometry. This is done with a tamping machine, a large piece of equipment that straddles the track and works on one tie at a time.
The tamping process has three phases. First, hydraulic arms grip the rails and lift the entire track panel (rails plus ties) to a pre-calculated position, correcting both the vertical level and any horizontal misalignment. Then sets of vibrating metal tines called tamping picks plunge into the ballast on either side of each tie. Finally, the picks squeeze inward, compacting the loose ballast tightly under and around the tie to hold the track at its new position. The machine then moves forward to the next tie and repeats the process.
Modern tamping machines are guided by laser or satellite-based surveying systems that calculate exactly how far to lift and shift the track at each point. The goal is to produce a track surface that’s smooth enough for trains to run at the line’s design speed without excessive lateral or vertical forces. Federal regulations define different classes of track based on maximum speed, and the tolerances get tighter as speeds go up.
Track Gauge and Tolerance Standards
Standard gauge in the United States is 4 feet, 8.5 inches, measured between the inner faces of the rail heads, five-eighths of an inch below the top of the rail. Federal regulations set different tolerance bands depending on the track’s speed class. On Class 1 track (the lowest maintained class, with freight speeds up to 10 mph), the gauge can range from 4 feet 8 inches to 4 feet 10 inches. On Class 4 and 5 track, where passenger trains may run up to 90 mph, the allowable range narrows to between 4 feet 8 inches and 4 feet 9.5 inches. That means on high-speed track, the total allowable variation is just one and a half inches.
These tolerances matter because gauge that’s too wide causes wheels to drop between the rails, while gauge that’s too tight binds the wheelsets and increases the risk of derailment on curves. Track inspectors measure gauge regularly using both walking measurement tools and geometry cars, specialized rail vehicles equipped with sensors that record the track’s shape continuously at speed.
New Construction vs. Maintenance
The process described above applies to building a new railroad from scratch, but most track work today is maintenance and renewal of existing lines. In those cases, crews don’t start from bare ground. Instead, they might replace worn rail on existing ties, swap out deteriorated wooden ties for new ones (called tie renewal), add fresh ballast on top of contaminated stone (called surfacing), or do all three in a coordinated program.
Maintenance tamping follows the same principles as new construction tamping but happens more frequently. Every time a tamping machine lifts and packs the track, it disturbs the ballast particles that had settled into a stable arrangement. Over time, after repeated tamping cycles, the ballast breaks down into smaller fragments that clog the drainage paths. When that happens, the entire ballast layer needs to be cleaned or replaced, a process called undercutting, where a machine excavates the old stone from beneath the track, screens out the fines, and returns the clean stone along with fresh material.

