What is this?

The IRS publishes data on migration patterns within the US based on changes in taxpayers' return addresses. This is an ongoing project to visualize and explore that data, with special attention on San Francisco. Eventually, the project might be modified to explore any county in the US.

The data contains the aggregate number of returns that are filed within a particular county one year and a particular county the next. In this way it is possible to track the migration of taxpayers between specific counties. In this project, I concentrate on migration patterns into and out of San Francisco.

Use the controls on the left to change the displayed statistic available in the data:
Year: The years between which a move took place.
Direction: Here, immigration means migration into San Francisco and emigration means migration out of San Francisco
Statistic:

  • Number of Returns filed, which approximates the number of households that migrated
  • Number of Personal Exemptions claimed, which approximates the number of individuals
  • Total Adjusted Gross Income, value in thousands of dollars
  • Mean AGI, calculated by dividing Total AGI by Number of Returns.

County Map

The map currently shows the counties where taxpayers lived in 2014 before moving to San Francisco in 2015, shaded by the number of returns filed. The more people, the darker the county is shaded.

Mouse over a county to see the value associated with that county. Click to zoom in on a county, then click again to zoom back out. You can also use the mouse wheel to zoom.

People moving into and out of San Francisco tend to move from within California. Out of state sources and destinations tend to be counties with large cities.


Top Counties

Year to year, people tend to move to and San Francisco from the same several counties in California: San Mateo, Alameda, Santa Clara, Los Angeles, Contra Costa, Marin, San Diego, Orange, Sacramento, Sonoma.

The top five county destinations for exiting San Francisco are consistently Alameda, San Mateo, Contra Costa, Santa Clara, Los Angeles, and Marin.

A few counties outside of California tend to make the top 15 sources of immigrants: New York NY, Cook IL, King WA, Kings NY, Middlesex MA, Washington DC, and overseas


Top Counties (out of state)

Since 2009-2010, new Californians have come to San Francisco from New York NY, Cook IL, and King WA. Before 2009, the top out of state source of immigration tended to be overseas, then New York NY, then either Cook IL or King WA.

San Franciscans tend to leave for a consistent few counties: New York NY, overseas, King WA, Cook IL, Kings NY, and Multnomah OR have dominated the top 5 since 2004-2005.


Top States (out of state)

Most people come to San Francisco from somewhere else in California. After California, they come from New York. Since 2009-2010 the out-of-staters have come from New York by almost twofold, then Massachusetts, Washington, or Illinois. Before then, people moved here from overseas or Massachusetts.

San Franciscans overwhelmingly leave for New York. After New York, they will move overseas.


Source/Destination State