Shell's third-quarter earnings beat expectations.

The British oil and gas company announced on Thursday that it achieved profits in the third quarter of $6 billion, which exceeded expectations of $5.3 billion.

Shell's profits amounted to $6.2 billion during the third quarter of last year.

The company said higher gas sales offset weak refining and oil trading results.

Shell's adjusted earnings, or its definition of net profit, fell 4 percent compared with the previous three months.

Shell reported adjusted profits of $6.3 billion in the second quarter of this year.

The company said it will buy back $3.5 billion in shares over the next three months, while keeping its dividend unchanged at 34 cents per share.