Berkshire Hathaway Chairman Warren Buffett wanders the company trade show before his company's annual meeting in Omaha, Nebraska April 30, 2011. REUTERS/Rick WilkingWarren Buffett’s Berkshire Hathaway will invest $5 billion in Bank of America, stepping in to shore up the company in the same way he helped prop up Goldman Sachs during the financial crisis.

Buffett called Bank of America Chief Executive Brian Moynihan this week and offered to make the investment, a Bank of America spokesman said, adding that the deal was negotiated and consummated in a couple of days.

Bank of America will sell Berkshire 50,000 shares of cumulative perpetual preferred stock with a 6 percent annual dividend, it said in a statement on Thursday. Bank of America can buy back the investment at any time by paying Buffett a 5 percent premium.

Berkshire Hathaway also will get warrants to buy 700 million BAC shares at an exercise price of just over $7.14 a share, with the ability to exercise any time in the next 10 years.

“We are building the best franchise in financial services and we have laid out a clear plan to deliver long-term shareholder value,” said Bank of America Chief Executive Officer Brian Moynihan. “I remain confident that we have the capital and liquidity we need to run our business. At the same time, I also recognize that a large investment by Warren Buffett is a strong endorsement in our vision and our strategy.”

“Bank of America is a strong, well-led company, and I called Brian to tell him I wanted to invest in it,” said Berkshire Hathaway Chairman and Chief Executive Officer Warren Buffett. “I am impressed with the profit-generating abilities of this franchise, and that they are acting aggressively to put their challenges behind them. Bank of America is focused on their customers and on serving them well. That’s what customers want, and that’s the company’s strategy.”