Maine’s real estate market continued its upward climb in August, following a nationwide trend of higher sales and median price for existing single-family homes compared with a year earlier.

A report issued Monday by Maine Listings found that 1,661 existing homes were sold in August, a 6.9 percent increase from August 2014. The statewide median sale price increased 4.9 percent to $187,000, it said. The median indicates that half of the homes were sold for more and half sold for less.

On the local level, Knox County experienced the biggest year-over-year increase in home sales for the three-month period ending Aug. 31. Sales were up 34.3 percent to 180 units, the report said. The biggest sales decline was in Franklin County, where the number of homes sold fell 15.9 percent to 90 units.

Franklin County also experienced the biggest boost in median sale price, up 15.5 percent to $136,250. The biggest drop in median price was in Knox County, where it fell 7.5 percent to $185,000.

Nationally, home sales increased 6.1 percent in August compared with a year earlier, according to the National Association of Realtors. It reported a national median sale price of $230,200 in August, a 5.1 percent increase from August 2014. Regional sales were up 6.1 percent and the median price in the northeastern U.S. increased 2.4 percent to $271,600, it said.