International Business Machines' revenue rose for the first time in 23 quarters, beating analysts' estimates, but the company warned that a higher tax rate this year would eat into its profit. 

IBM forecast stable margins and revenue growth for 2018, buoyed by growth in its newer businesses such as cloud computing and security services. 

But the company forecast an operating profit of at least $13.80 per share for 2018, compared with $13.80 in 2017 and market expectations of $13.92, according to Thomson Reuters.

IBM forecast a 2018 operating tax rate of 16%, plus or minus 2 percentage points, compared with a rate of 12% in 2017. 

"Tax will be a headwind in 2018," IBM veteran and new chief financial officer James Kavanaugh said on a conference call. 

Kavanaugh said IBM would continue to "maintain a high level of investment" in 2018 as it boosts its capabilities on its high-margin "strategic imperatives" such as cloud, mobile, cybersecurity and data analytics. 

That focus, started by chief executive Ginni Rometty, has helped IBM counter its faltering legacy hardware and software businesses and slow its revenue declines in recent quarters. 

The company's revenue finally rose in the latest fourth quarter, the first year-over-year increase since the first quarter of 2012, just after Rometty became CEO. 

Revenue from IBM's cloud business jumped 30% in the latest quarter. Revenue from all "strategic imperatives" rose 17%. 

Total revenue increased 3.6% to $22.54 billion, beating analysts' average estimate of $22.06 billion. 

IBM swung to a loss of $1.05 billion from a year-ago profit of $4.50 billion, due to a $5.5 billion tax reform-related charge. Its adjusted profit of $5.18 per share beat estimates by a cent.