NATIONAL BUREAU OF ECONOMIC RESEARCH
NATIONAL BUREAU OF ECONOMIC RESEARCH

ZIP Code Distance Database -- ZIP Code Tabulation Area (ZCTA) Distance Database

ZIP Code Distances are great-circle distances calculated using the Haversine formula based on internal points in the geographic area.

If the size of the full data file is too large and distances for only a handful of ZIPs is required, then running the calculations for the necessary ZIP codes only using the ZCTA centroid data file might be one helpful approach.

ZIP Code Tabulation Areas (ZCTA) are from Census 2000 SF1, Census 2010 SF1, and Gazetteer files.

Jean Roth created the SAS, Stata, and CSV distance files to make the data easier to use.

The size of the file increases with the radius. Smaller files (<= 25 or <= 50 miles) may be easier to use if only ZIP Code distances <= 25 or <= 50 miles respectively are needed. The has all combinations of ZIP Codes.

Updates and changes.


Year
Source
ZCTA Centroid
Distance in Miles / (CSV file size)
25 (129M)
50 (411M)
100 (1.4G)
500 (16G)
(34G)
Stata
SAS
CSV
Desc
Stata
SAS
CSV
Desc
Stata
SAS
CSV
Desc
Stata
SAS
CSV
Desc
Stata
SAS
CSV
Desc
Stata
SAS
CSV
Desc
2015 Gazetteer
dta
sas7bdat
csv
desc
dta
sas7bdat
csv
desc
dta
sas7bdat
csv
desc
dta
sas7bdat
csv
desc
dta
sas7bdat
csv
desc
dta
sas7bdat
csv
desc
2010 SF1
dta
sas7bdat
csv
desc
dta
sas7bdat
csv
desc
dta
sas7bdat
csv
desc
dta
sas7bdat
csv
desc
dta
sas7bdat
csv
desc
dta
sas7bdat
csv
desc
2000 SF1
dta
sas7bdat
csv
desc
dta
sas7bdat
csv
desc
dta
sas7bdat
csv
desc
dta
sas7bdat
csv
desc
dta
sas7bdat
csv
desc
dta
sas7bdat
csv
desc

To report problems or if you have comments or suggestions , e-mail Jean Roth at jroth@nber.org

Last Update: December 4, 2015 Created by Jean Roth February 22, 2014
 
Publications
Activities
Meetings
NBER Videos
Themes
Data
People
About

National Bureau of Economic Research, 1050 Massachusetts Ave., Cambridge, MA 02138; 617-868-3900; email: info@nber.org

Contact Us