
Nationally, the average dollar gain on the sale was $39,900, with an average 24.1% profit from the original purchase price. The median time properties were owned was seven years, five months, which puts the average annual dollar gain at approximately $5,400.
"The housing market can change a lot in 10 years, and you see that reflected in this top 10 list," said Zillow Chief Economist Svenja Gudell in a press release. "Buying a home is one of the biggest financial decisions people will make in their lifetime, and it really paid off for sellers in these cities."
"Every city on this list has been growing extremely fast over the past decade, with the majority passing
In
Here's a look at the 12 cities where homeowners who bought low during the housing crisis profited the most when they sold in 2016. The data, from Zillow, is ranked by average annual dollar gain on sale.

No. 12: New Orleans, La.
Percentage gain on sale: 51.5%
Median years owned: 8 years 7 months
Dollar gain on sale: $81,000

No. 11: Sacramento, Calif.
Percentage gain on sale: 53.6%
Median years owned: 6 years 11 months
Dollar gain on sale: $82,500

No. 10: Miami, Fla.
Percentage gain on sale: 37.4%
Median years owned: 5 years 8 months
Dollar gain on sale: $70,000

No. 9: Honolulu, Hawaii
Percentage gain on sale: 31.3%
Median years owned: 8 years 9 months
Dollar gain on sale: $115,000

No. 8: San Diego, Calif.
Percentage gain on sale: 33.3%
Median years owned: 8 years 11 months
Dollar gain on sale: $125,000

No. 7: Long Beach, Calif.
Percentage gain on sale: 43.7%
Median years owned: 10 years 1 month
Dollar gain on sale: $137,500

No. 6: Portland, Ore.
Percentage gain on sale: 64.7%
Median years owned: 9 years 1 month
Dollar gain on sale: $145,026

No. 5: Denver, Colo.
Percentage gain on sale: 56%
Median years owned: 7 years 7 months
Dollar gain on sale: $119,500

No. 4: Seattle, Wash.
Percentage gain on sale: 53.1%
Median years owned: 9 years 2 months
Dollar gain on sale: $185,000

No. 3: Boston, Mass.
Percentage gain on sale: 49.6%
Median years owned: 7 years 10 months
Dollar gain on sale: $182,500

No. 2: San Jose, Calif.
Percentage gain on sale: 56.5%
Median years owned: 9 years 8 months
Dollar gain on sale: $271,150

No. 1: Oakland, Calif.
Percentage gain on sale: 78%
Median years owned: 7 years 3 months
Dollar gain on sale: $235,000