The public Carload Waybill Sample can support bounded analysis of freight movements and their characteristics. It cannot supply a verified offer for a particular customer’s shipment. The file is sampled, transformed for public use, and subject to limits that include potentially masked freight revenue.
Before calculating an average “rail rate,” establish which file you have, what its fields mean and what population the calculation is intended to describe. A spreadsheet can calculate the wrong answer very efficiently when those three things remain unspecified.
Choose the file and the guide together
The STB’s Waybill page distinguishes its confidential sample from the public-use version. It warns that the freight-revenue field may be masked rather than the actual revenue on a freight waybill. It also records historical file corrections and the sampling changes effective in 2021.
For the worked inspection here, the source is the 2024 public-use download and the 2024 reference guide dated April 10, 2026. The guide identifies a 247-byte public-use record layout. A check of the first 64 public text rows confirmed the layout for that bounded inspection; the rows were not used to estimate the national market.
Keep the year and guide version with any saved work. An older introductory document linked from the same page describes a manual sampling process, while the current page says manual reporting was eliminated under the requirements effective in 2021. Do not combine an old description’s sampling rates with a newer file simply because both are on an official website.
One row is not one carload
In the 2024 public layout, field 3 records carloads on the sampled waybill. Fields 29 and 30 are expansion factors, while later fields provide expanded quantities. These distinguish a sampled record from its contribution to an expanded statistical total.
The first inspected public row contains one carload, a theoretical expansion factor of five and five expanded carloads. The original check is 1 × 5 = 5. That does not mean five separately identified shipments were read. It means the row’s fields distinguish the sampled amount from an expanded amount under the file’s method.
Summing the expanded-carload field and then multiplying it by the expansion factor again would expand the quantity twice. Counting each row as one carload would ignore records covering a different number of carloads. The correct operation follows the field definition and the precise statistic being constructed.
The guide separately defines exact and theoretical expansion factors. The exact factor has an implied decimal format; the theoretical factor is an integer inverse of the sampling rate. Preserve those definitions rather than letting a spreadsheet silently infer a number format from the first few rows.
Check the weight and revenue fields
The guide distinguishes billed weight from actual weight, if provided, and identifies expanded tons separately. In the first inspected row, the billed and actual weight fields both contain 100 tons and expanded tons contain 500. That reconciles for this row under the stated factor. It does not authorize treating every missing or zero-coded field as a confirmed physical measurement.
The freight-revenue field describes line-haul revenue, with transit and miscellaneous charges in separate fields. The STB’s masking warning still applies. Dividing a copied revenue field by a copied weight field does not make the result an unmasked transaction price or an all-in logistics cost.
For a proposed statistic, state which revenue and quantity fields enter it, how the expansion is handled and which records are excluded. Ask whether the numerator and denominator cover compatible movements. The first 64 rows are suitable for the layout check here; their order was not treated as a random subsample for rate estimation.
Read the reported movement boundary
The guide contains separate waybill-date and accounting-period fields. It also describes rebill codes that affect the routing and revenues represented for certain interline movements. Those definitions matter before treating a date as the date of physical delivery or assuming each record covers an identical end-to-end journey.
The public geography is not a list of private customers and delivery addresses. Missing or generalized location information should remain missing or generalized. Do not attempt to reverse the disclosure protections by combining a rare record with outside clues.
A business seeking to understand a broad commodity pattern can frame a compatible aggregate question. A business seeking a quote for its own origin, destination, product and service requirements needs the applicable commercial offer. The public file does not quietly become that offer when filtered to a convenient region.
Make a data-use plan before an average
Write down the file year, guide version, movement population, commodity definition, geography and chosen fields. Identify the expansion method, missing-data treatment and the conclusion the revenue-masking limitation prevents. Then reproduce a small field-level check before scaling a calculation.
For a cross-year comparison, read the change notes and relevant guides for both years. The STB’s page specifically identifies the 2021 sampling change and corrections to car-ownership coding in the 2015–2018 public files. Those are concrete reasons to retain the revision history rather than treating downloaded filenames as the whole data lineage.
Public datasets have different observation units. The SEC fails-to-deliver guide, for example, concerns an outstanding balance; this file requires its own sampling, expansion and masking checks.
The first 64 rows provide a useful limited result: the selected public text has the expected 247-character records, and simple fields can be reconciled to the guide. That is the beginning of a reproducible analysis. It is not a freight-price verdict, a customer identification or a national estimate.
Explore Infinite Upside
For Vijay Sheth’s personal accounts, read Infinite Upside: Building Wealth With Room to Live, published by Sheth Capital, Inc.
Read the related guide
What does a stock’s failure-to-deliver data actually show?