One-third of the housing sales in Arizona in the second quarter this year were foreclosed or bank-owned properties, a foreclosure tracking company reported.

The state had 16,837 sales of house in some stage of foreclosure or owned by a bank, RealtyTrac reported. That was down 38.9 percent from one year earlier and 12.1 percent lower than in the first quarter of 2012.

The company tracks housing foreclosures and releases monthly and quarterly reports on such activity nationally.

The share of foreclosed or bank-owned homes being sold ranked Arizona fifth nationally. Georgia had the highest percentage 43.4, RealtyTrac said.

The average sale price for a foreclosed home in the state for the second quarter was $141,449, representing an average discount of 24 percent, the company reported.

Nationally, foreclosure sales declined as a share of all home sales in raw numbers, while the percentage rose from 22 to 23.

Since 2010, Arizona has consistently ranked near the bottom of RealtyTrac’s statistics for number of foreclosure filings active in a given month.