H.J. Heinz Co. (HNZ) agreed to be acquired by Warren Buffett's Berkshire Hathaway Inc. (BRKA, BRKB) and private-equity firm 3G Capital for more than $23 billion, a deal the companies pegged as the largest-ever in the food industry.

Mr. Buffett, who is well known as a value investor, had indicated in recent months he was eager to do another deal. In Heinz, he will get a packaged-foods company known for its iconic ketchup brand but now battling weaker North American sales.

"It's our kind of company," Mr. Buffett said in an interview on CNBC, noting its signature ketchup has been around for more than a century. "I've sampled it many times."

Heinz shareholders will receive $72.50 in cash for each share, a 20% premium to Wednesday's close. Shares of Heinz, which have been trading at all-time highs, surged 20% to $72.59 in early trading in New York, topping the offer price and suggesting investors might be looking for a higher bid.

Including debt assumption, the deal, which has been unanimously approved by Heinz's board, is worth $28 billion.

Berkshire Hathaway and 3G Capital, the Brazilian global investment firm that took over Burger King, have pledged to maintain Pittsburgh as the Heinz global headquarters.

The deal, which is subject to approval by Heinz shareholders and regulatory approvals, will be financed through a combination of cash, rollover of existing debt, as well as debt financing. It is expected to close in the third quarter.

Heinz, best known for its iconic ketchup, also sells numerous other brands including Classico pasta sauce, Ore-Ida potatoes, and Smart Ones frozen meals.

"The Heinz brand is one of the most respected brands in the global food industry and this historic transaction provides tremendous value to Heinz shareholders," Heinz Chief Executive William Johnson said.

Berkshire, for its part, also owns Burlington Northern Santa Fe railroad, Geico insurance, Benjamin Moore, Fruit of the Loom Cos., Dairy Queen and a series of newspapers, among other brands.

Heinz came under fire from activist investor Nelson Peltz of Trian Fund Management LP in 2006. Mr. Peltz thought Heinz didn't have its costs under control and wasn't marketing its products well enough. Mr. Peltz waged an acrimonious proxy fight with Heinz and eventually earned a seat on the board.

Mr. Peltz congratulated Berkshire and 3G Thursday, saying "they're buying a great company." Mr. Peltz, speaking on CNBC, said the deal really came about because of "the amazing performance that Heinz's has demonstrated" over the last seven years, adding that Heinz has had 30-plus straight quarters of organic sales increases.

He said while he was proud to have played a "very, very small" part in the success of Heinz as a board member, "kudos" should go to Mr. Johnson, Heinz's CEO, his management team and to the board in total.

The transaction will be financed through a combination of cash provided by Berkshire Hathaway and affiliates of 3G Capital, rollover of existing debt, as well as debt financing that has been committed by J.P. Morgan Chase & Co. and Wells Fargo & Co.

Heinz reported in November its fiscal second-quarter earnings jumped 22% as the company continued to get outsized sales growth in emerging markets and benefited from a substantially lower tax rate. But overall sales rose less than the company had expected, as the ketchup-maker continued to grapple with weak growth in developed markets, where it is spending heavily on marketing to try to improve results.

--Julie Jargon contributed to this article.

Write to Lauren Pollock at Lauren.Pollock@dowjones.com

Subscribe to WSJ: http://online.wsj.com?mod=djnwires

Great Elm Capital (NASDAQ:GEC)
Historical Stock Chart
From Feb 2024 to Mar 2024 Click Here for more Great Elm Capital Charts.
Great Elm Capital (NASDAQ:GEC)
Historical Stock Chart
From Mar 2023 to Mar 2024 Click Here for more Great Elm Capital Charts.