Ever tried to map out where the nation’s goods travel and hit a dead‑end because you don’t know where the data lives?
In real terms, you’re not alone. In real terms, the short version is: the U. S. Census Bureau’s Commodity Flow Survey (CFS) is the goldmine, but you have to know the right portals, formats, and quirks to actually pull the numbers you need.
Quick note before moving on.
What Is a Commodity Flow Survey
When economists, planners, or logistics nerds talk about “commodity flow,” they’re really talking about the movement of physical goods between points—factories, warehouses, ports, you name it. The Census Bureau runs the CFS every five years, collecting detailed shipment data from thousands of businesses across the country.
It’s not just a spreadsheet of “how many trucks moved” – it breaks down weight, value, mode (truck, rail, air, water), and even the industry classification of the shipper and receiver. In practice, the survey paints a nationwide picture of supply‑chain arteries, letting you see bottlenecks, growth corridors, and regional trade patterns Worth keeping that in mind. That's the whole idea..
The Data Collected
- Weight & Value – How heavy a shipment was and its monetary worth.
- Mode of Transport – Truck, rail, water, air, or pipeline.
- Origin & Destination – State‑to‑state, county‑to‑county, even zip‑to‑zip in later releases.
- Industry Codes – NAICS codes that tell you what is moving (automotive parts, pharmaceuticals, etc.).
All of that ends up in a massive, multi‑layered dataset that’s useful for everyone from city planners to freight forwarders.
Why It Matters / Why People Care
If you’ve ever tried to argue for a new rail spur, a highway expansion, or a logistics hub, you need hard numbers to back it up. That’s where the CFS shines.
- Policy Makers use it to justify infrastructure budgets.
- Businesses lean on it to decide where to locate a distribution center.
- Researchers dig into it for academic papers on trade elasticity or regional economic resilience.
Without reliable flow data, you’re basically guessing which way the wind will blow your supply chain. And in a world where a single delay can cost millions, guessing isn’t good enough That's the part that actually makes a difference..
How to Get the Results
Below is the step‑by‑step roadmap for actually downloading the CFS results. It sounds more complicated than it is—once you know the portals, it’s a matter of a few clicks.
1. Start at the Census Bureau’s CFS Landing Page
Head to census.gov/programs-surveys/commodity-flow. This is the official hub where the Census Bureau posts every release.
- Look for the most recent survey year (2022 was the latest as of this writing).
- You’ll see three main tabs: Data, Methodology, and Publications. Click Data.
2. Choose the Data Format That Fits You
The Census offers three delivery styles:
- CSV/Excel Files – Good for quick analysis in Excel or Google Sheets.
- SAS Transport Files – Preferred by statisticians and those using SAS or R.
- API Access – For developers who want to pull data directly into a dashboard.
If you’re just exploring, start with the CSV packs. Day to day, they’re zipped and labeled clearly (e. , CFS_2022_State_to_State.g.csv).
3. handle the “Data Tables” Section
Inside the Data tab, you’ll find a list of table families:
- Table 1: Summary Statistics – Overall national totals.
- Table 2: State‑to‑State Flows – The classic matrix most people need.
- Table 3: County‑Level Flows – For hyper‑local projects.
- Table 4: Mode‑Specific Flows – Breaks down by truck, rail, etc.
Click the table you need, then hit the download button. The files are usually named with the year and table number, making them easy to sort later.
4. Use the Census API (If You’re Fancy)
For those who want live updates or integration into a custom app, the Census API is a hidden gem.
- Register for an API key at api.census.gov/data/key_signup.html.
- The endpoint for the CFS looks like:
https://api.census.gov/data/2022/cfs?get=VARIABLES&for=state:*&key=YOUR_KEY. - Replace
VARIABLESwith the specific fields you need (e.g.,WEIGHT,VALUE,MODE).
There are community‑built wrappers in Python and R that simplify the call, but the raw endpoint works fine for quick tests.
5. Check the “Methodology” Tab for Context
Numbers don’t speak for themselves. The methodology section explains sampling frames, weighting procedures, and known limitations. Skipping this step is a rookie mistake—especially if you’re comparing CFS data to other sources like the Freight Analysis Framework (FAF).
6. Grab Supporting Publications
The Census also releases a Technical Documentation PDF and a User Guide that walk you through variable definitions and recommended uses. Keep those PDFs handy; they’re lifesavers when you’re cleaning the data.
Common Mistakes / What Most People Get Wrong
Even after you’ve wrestled the files out of the Census site, a lot of folks trip over the same pitfalls.
Mistake #1: Ignoring Weight vs. Value
Many users treat total weight as a proxy for economic importance, but value tells a different story. So a low‑weight, high‑value shipment (think microchips) can be far more critical than a heavy, low‑value one (like sand). Always bring both metrics into your analysis That's the part that actually makes a difference..
Mistake #2: Overlooking Mode Aggregation
The raw tables sometimes bundle “truck” and “motor carrier” together, or they split “rail” into “freight rail” and “passenger rail” (the latter usually zero). If you sum across modes without checking the footnotes, you’ll double‑count or miss entire segments Which is the point..
Mistake #3: Forgetting the Sampling Weight
The CFS is a survey, not a census of every shipment. Each record carries a weight factor that scales it up to represent the entire universe. Dropping that weight turns your numbers into a tiny, meaningless subset.
Mistake #4: Mixing Years
Because the survey runs every five years, there’s a temptation to compare 2017 data directly to 2022 data. g.The underlying methodology changed slightly between those releases, so you need to adjust for any classification shifts (e., NAICS updates) Which is the point..
Mistake #5: Assuming County‑Level Data Is Complete
County‑to‑county tables have a higher non‑response rate than state‑to‑state ones. On top of that, if a county shows zero outflows, it might just be a data gap. Cross‑check with the FAF or state freight agencies for verification It's one of those things that adds up..
Practical Tips / What Actually Works
Here’s the distilled playbook that gets you from “I have the data” to “I have insights.”
-
Start with the State‑to‑State matrix – It’s the cleanest view of national patterns. Load it into a pivot table and slice by mode to see, for example, how much freight moves by rail from the Midwest to the Southeast.
-
Create a “value‑per‑ton” metric – Divide
VALUEbyWEIGHTfor each flow. This highlights high‑value corridors that might be invisible in a pure weight analysis. -
Map the flows – Tools like Tableau, Power BI, or even free QGIS can turn the CSV into a flow map. Visuals are worth a thousand spreadsheet rows when you’re pitching to stakeholders.
-
Layer with infrastructure data – Overlay the flow map with highway, rail, and port locations. Gaps between high‑value flows and existing infrastructure often point to investment opportunities.
-
Validate with the FAF – The Freight Analysis Framework, published by the Bureau of Transportation Statistics, uses a different model but covers similar ground. If your CFS‑derived numbers diverge wildly, dig into the assumptions That alone is useful..
-
Automate the download – Write a simple Python script that hits the Census API monthly (even though the CFS isn’t updated that often) to pull the latest releases of related datasets, like the Annual Survey of Manufacturers. Keeps your data pipeline fresh Surprisingly effective..
-
Document your weighting – When you publish results, include a footnote that explains you applied the Census‑provided weight factor. Transparency builds trust, especially if you’re sharing with policymakers.
FAQ
Q: How often is the Commodity Flow Survey released?
A: Every five years (most recent in 2022). The Census also releases interim updates and supplemental tables, but the full dataset comes on the five‑year cycle.
Q: Is the CFS free to use?
A: Yes. All tables, CSV files, and the API are publicly available at no cost.
Q: Can I get zip‑code level data?
A: Not directly from the CFS. The survey stops at county granularity. For zip‑level detail, you’ll need to combine CFS data with commercial freight datasets or use the FAF’s more granular estimates.
Q: What’s the difference between the CFS and the FAF?
A: The CFS is a survey of actual shipments reported by businesses. The FAF is a model‑based estimate that incorporates the CFS, traffic counts, and other sources. Use CFS for observed data; use FAF for forecasting and scenario analysis.
Q: Do I need special software to open the SAS transport files?
A: Not really. Free tools like Stat/Transfer or the open‑source R package haven can read them. But if you’re comfortable with CSV, stick to those—they’re easier to handle.
Wrapping It Up
Getting your hands on commodity flow survey results isn’t a treasure hunt if you know the right doors to knock on. Start at the Census’s CFS landing page, pick the format that matches your workflow, respect the weighting and methodology, and you’ll have a solid foundation for any supply‑chain or economic analysis Easy to understand, harder to ignore..
And remember: data is only as good as the story you tell with it. So once you’ve pulled the numbers, spend time visualizing, cross‑checking, and contextualizing. On top of that, that’s where the real insight lives. Happy digging!