Americans are leaving the costliest metro areas for more affordable parts of the country at a faster rate than they are being replaced, according to an analysis of census data, reflecting the impact of housing costs on domestic migration patterns.

Those mostly likely to move from expensive to inexpensive metro areas were at the lower end of the income scale, under the age of 40 and without a bachelor’s degree, the analysis by home-tracker Trulia found.

Looking...