Lexmark International Inc posted a higher-than-expected quarterly profit on Tuesday on strong sales of printers and supplies, and as improved demand for services helped beef up margins.

Shares of Lexmark, whose larger rivals include Hewlett-Packard and Xerox, rose more than 6 percent after the company also gave an optimistic forecast for the current quarter.

Lexmark said second-quarter net income rose to $85.1 million, or $1.07 a share, from $17 million, or 22 cents a share, a year earlier.

Excluding costs for restructuring and acquisitions, the profit was $1.23 a share, beating the analysts' average estimate of 93 cents, according to Thomson Reuters I/B/E/S.

Revenue rose to $1.03 billion from $904.6 million, outpacing the analysts' view of $968.6 million.

The company's shares rose 6.3 percent to $37 in premarket trading.

(Reporting by Franklin Paul; Editing by Lisa Von Ahn)