NEW YORK - Microsoft has posted its first ever loss, shedding $889 million in the fourth quarter because of a massive $11.5 billion write-down to reflect the slump in value of its online operations.
Microsoft still posted an annual profit of $31.6 billion and said the results reflected "solid revenue growth and rigorous cost discipline".
The Redmond, Washington-based firm had announced earlier this month it would take the $11.57bn write-down, which is required by accounting rules and does not affect the company's cash position.
Taking out one-time charges, Microsoft showed a profit of 73 US cents a share, well ahead of Wall Street expectations of 62 US cents.
Revenue also beat expectations, rising four per cent to $32.5bn in the quarter to June 30.
For the full year, revenues were up 5 per cent at $133.1bn.
"We delivered record fourth quarter and annual revenue, and we're fast approaching the most exciting launch season in Microsoft history," said Steve Ballmer, chief executive of Microsoft.
The company is preparing to release a new version of its leading Windows operating system and a new tablet computer, while making an aggressive move into smartphones.
"The combination of solid revenue growth and rigorous cost discipline drove double-digit operating income growth for the quarter, adjusting for the goodwill impairment and deferred revenue," said Peter Klein, chief financial officer.
"We are focusing our resources in strategic areas that will deliver shareholder value and long-term growth opportunities."
Microsoft shares rose 2.14 per cent to $US31.32 in after-hours electronic trades.
The fourth quarter losses stemmed from a charge reflecting a write-down related to the 2007 acquisition of a Quantive, a digital advertising firm aimed at helping Microsoft compete against Google and others.
Microsoft announced the deal in August 2007 in a move aimed at seizing market share from rivals Yahoo! and Google in the lucrative market that tailors advertising to Internet search results.
Microsoft's Windows remains the dominant platform for personal computers, but it has lost ground to rivals such as Google and Apple in newer devices, which use rival operating systems.
The company's search and online services have struggled, while its Xbox gaming system has become among the hottest in the industry.