Consumer prices in the metropolitan area last month rose the most since January, year over year, on higher costs for housing.

The federal Bureau of Labor Statistics on Tuesday reported its consumer price index for the 31-county region that includes Long Island increased 1.9 percent in May compared with a year earlier.

advertisement | advertise on newsday

The price index also gained 1.9 percent in January, year over year.

In May, housing costs soared 3.2 percent compared with the same period in 2013, and drove the index's overall gain, said bureau economist Lisa Boily.

The cost of groceries and gasoline climbed 2.6 percent and 3.6 percent, respectively.

Electricity prices increased 6.3 percent last month compared with a year ago. Natural gas prices fell 1.8 percent.

advertisement | advertise on newsday

The cost of medical care climbed 3.2 percent, year over year.