The company was a late entrant to the business of cloud services, a segment now dominated by Amazon.com Inc and Microsoft Corp, and Rometty, a 40-year IBM veteran and one of the highest profile women in U.S. business, bet on acquisitions to cut the lead.

During her eight years at the helm, the Big Blue completed 65 acquisitions, culminating in the $34 billion deal for Red Hat last year - the biggest purchase in its 108-year history - while selling some of its legacy businesses.

She leaves on a recent high note, days after IBM reported its first revenue growth in six quarters, but shares have lost about a quarter in value since she took charge, and the turnaround she began remains a work in progress.

Arvind Krishna, 57, who spearheaded the Red Hat deal, will take over in April.

IBM will likely continue its trajectory under Krishna, but may pursue more small acquisitions in the cloud and analytics space, said Tim Hubbard, assistant professor at the University of Notre Dame and a former IBM consultant.

Shares of the company were up nearly 5% in extended trading.

IBM also said Red Hat CEO James Whitehurst will become its president.

Rometty, 62, will continue as executive chairman and will retire at the end of the year.

"Arvind is the right CEO for the next era at IBM," Rometty said in a statement.

(Reporting by Munsif Vengattil and Uday Sampath Kumar in Bengaluru; Editing by Maju Samuel and Sriraj Kalluvila)

By Munsif Vengattil