Online furniture retailer Wayfair has reported it will cut about 870 jobs, or 5% of its global workforce, as it looks to cut back operating expenses and realign investment priorities.

Shares of the company were down about 8% in premarket trading.

Wayfair pegged costs to be in the range of $30 million to $40 million, mainly due to employee severance and benefit expenses.

All of these costs are expected to be substantially in the third-quarter of 2022, the company said.