DUBAI, United Arab Emirates — Saudi Arabia's oil and gas giant Aramco announced Tuesday third quarter profits of nearly $12 billion, a significantly higher net income from its dramatically lower second quarter earnings.

Still, its third quarter earnings of $11.8 billion are down nearly 45% compared to last year's $21.3 billion for the same quarter.

Aramco, like other energy producers globally, is wading through a tough year amid the coronavirus outbreak, which has seen countries impose various forms of lockdowns and travel restrictions that ultimately impact the demand for oil.

The company, which is mostly state-owned, said it produced the equivalent of 9.2 million barrels per day of crude oil for the first nine months of the year.

The price of Brent crude hovers just under $39 a barrel, significantly less than before the pandemic but up from a low of around $21 a barrel in April.

Aramco's third quarter earnings are notably higher than it's second quarter earnings of $6.6 billion, reflecting the higher summer demand for oil as countries began easing restrictions, particularly in countries like China and India that are among Saudi Arabia's top oil importers.

Aramco CEO Amin H. Nasser said the company "saw early signs of a recovery in the third quarter due to improved economic activity, despite the headwinds facing global energy markets."

He attributed the company's overall strength in part to its low production costs, which at under $3 a barrel is among the cheapest in the world.

The global outlook for the winter, however, is far from certain with countries like the U.S. and across Europe experiencing a sharp rise in coronavirus cases. Major cities in Europe have announced new lockdown measures and curfews to stem the alarming spread of the virus.

Aramco's net income had plunged by 50% in the first half of the year, with profits for the first six months dipping to $23.2 billion.

The company has vowed, though, to uphold its commitment to pay out dividends of $18.75 billion for the third quarter as part of its promise to pay $75 billion in annual dividends to shareholders. Aramco floated a sliver of its shares on the local Saudi stock market last year, with the rest of its shares still owned by the state.

The company's financial health is crucial to Saudi Arabia's stability. Despite massive efforts by Saudi Crown Prince Mohammed bin Salman to diversify the economy, the kingdom still depends heavily on oil exports to fuel government spending. Saudi Arabia has the Middle East's largest economy and is a member of the Group of 20 nations representing the world's wealthiest countries.

The Saudi-based Jadwa Investment said the country's fiscal deficit of nearly $11 billion during the third quarter pushed its year-to-date deficit to $49 billion. The government projects a full year gap between spending and revenue to reach $79.5 billion.

Despite oil revenue being sharply down, government revenue was up 4% in the third quarter compared to last year. That's in part because of Aramco's sizeable dividend payouts and a tripling of value-added taxes this year to 15% on consumer goods and services.

Jadwa Investment notes, however, that government expenses rose 7% year-on-year in the third quarter due largely to spending on subsidies, grants and social services aimed at supporting the private sector and citizens against the pandemic's economic fallout.