Nearly five million California residents have left the state in the past nine years.

The Sacramento Bee converted newly released tax return data from the Internal Revenue Service to plot out a map of the United States that approximates how many people left California for other states between 2004 and 2013.

Hoover Institute Fellow Carson Bruno told the publication that factors including California's high cost of living and tax structure has driven some of the change.

More Californians went to Texas than any other state (592,082, according to the data), followed by Arizona (461,601), Nevada (407,532), Washington (339,133), and Oregon (262.096).

The data also showed that 3.9 million people took up residence in California during the same time period.