Oil giant Royal Dutch Shell posted a 42 percent rise in profits in the first quarter of 2018, underpinned by a recent uptick in oil and gas prices.



Net income attributable to shareholders on a current cost of supplies (CCS) basis, used as a proxy for net profit, and excluding identified items, came in at $5.322 billion from a year ago. This compared to a company-provided analyst consensus of $5.277 billion.



Over the same quarter last year, net income was $3.754 billion.



Here are the key first-quarter metrics: Net income attributable to shareholders (on a current cost of supplies basis and excluding identified items) came in at $5.3 billion, versus $3.8 billion in the previous quarter.

Capital investment of $5.183 million in the first three months of 2018 vs. $4.720 as reported a year ago.

The Anglo-Dutch oil company maintained its quarterly dividend at $0.47. "Shell's strong earnings this quarter were underpinned by higher oil and gas prices, the continued growth and very good performance of our Integrated Gas business, and improved profitability in our Upstream business," CEO Ben van Beurden said in a statement.

Royal Dutch Shell products in Torzhok, Russia. Andrey Rudakov | Bloomberg | Getty Images

Shell is seen making steady progress with its divestment program, while the Anglo-Dutch firm's free-cash-flow outlook is consistent with its target to buy back at least $25 billion of shares from 2018 to 2020, van Beurden said.



The world's leading oil firms are set to generate more cash in 2018 after a sustained period of cutbacks in recent years, though executives have tended to urge caution amid uncertainty over oil prices over the near and long-term.



'The problem is cash generation'