Wholesale egg prices have more than tripled as consumers’ coronavirus-driven buying clears supermarket shelves, piling up costs for grocers as they struggle to keep the staple in stock and affordable.

Egg prices for grocers across the U.S. averaged $3.01 a dozen at the end of last week, compared with 94 cents at the beginning of March, according to U.S. Department of Agriculture data.

That...