NEW YORK (AP) — Berkshire Hathaway's MidAmerican Energy utility is buying Nevada electric and natural gas company NV Energy Inc. for $5.6 billion in a deal that the companies say will marry MidAmerican's expertise in renewable energy with Nevada's solar and wind resources.

MidAmerican is paying $23.75 per share, a 23 percent premium to NV's closing price on Wednesday. Including debt, the deal is valued at about $10.1 billion. Both companies' boards approved the sale, which will close in the first quarter of 2014, subject to approval by regulators and NV Energy shareholders.

NV Energy serves about 1.3 million customers through Nevada Power Co. and Sierra Pacific Power Co. Its shares spiked 23 percent to $23.67 in aftermarket trading on news of the deal.