BP-logoOil and gas giant BP PLC (NYSE: BP) released second-quarter earnings on Tuesday. The results were about as ugly as investors should have expected, given the steep drop in commodity prices over the past year. However, BP managed to beat analyst expectations, and the stock rose more than 3% after the company released its quarterly report.

It appears BP stock is enjoying a relief rally. The company suffered greatly under the pressure of collapsing oil and gas prices, but it made a lot of progress last quarter.

Here is a rundown of BP’s quarter, and why the worst may finally be behind it.

Write-offs, Low Commodity Prices Weigh on BP Profits

BP posted a net loss of $6.3 billion last quarter. Of course, low commodity prices weighed down BP last quarter. Its average Brent crude oil price was $62 per barrel last quarter, down from $110 per barrel in the same quarter last year.

Because of this, BP’s upstream profits collapsed to $500 million, down from $4.7 billion year-over-year. This makes the stock rally look very confusing, but it’s likely investors are looking past this scary number because the loss includes many one-time charges that are not expected to recur.

For example, BP took a non-operating pretax charge of $9.8 billion relating to its previously announced settlement with the government over the 2010 Gulf of Mexico oil spill. Until recently, the company was still involved in the civil trial stemming from the oil spill. In order to finally resolve the situation once and for all, BP settled for $18.7 billion, to be spread over an 18-year period.

While the huge charge contributed largely to BP’s net loss last quarter, it’s nonetheless a good sign that it can finally put the trial behind it. Investors now have a great deal more certainty about how much BP will owe.

Separately, BP took a $270 million business restructuring charge, which was also non-operating. It also wrote down the value of its Libyan assets by $600 million, due to the continued social unrest there.

Operations Remain Sound

While the slew of write-offs are discouraging, investors should instead focus on BP’s core underlying operations. Despite all of its various challenges, the company still generated $6.3 billion of operating cash flow. This represents a relatively modest decline from $7.9 billion in the same quarter last year.

Moreover, BP is taking the necessary steps to streamline its business and cut costs, in the event oil prices stay low for a prolonged period. For example, BP’s capital expenditure levels should come in below its previous target of $20 billion.

Across the company, year-to-date operational cash costs are about $1.7 billion less than the same period in 2014. This is helping to improve BP’s balance sheet. Total debt was reduced $293 million last quarter.

BP was also boosted by improving performance in its downstream unit. Downstream profits more than doubled to $1.9 billion from $700 million year-over-year. Refining profits actually tend to grow when oil prices are declining, because refining feedstock costs drop. This is a clear benefit of having an integrated business.

BP’s improving downstream business, cost cuts and resolution of the Gulf spill trial should allow the company to continue paying its hefty dividend. BP yields 6.5% based on its current stock price, which should be very attractive to income investors.

DISCLOSURE: Bob Ciura personally owns shares of BP PLC (NYSE: BP).

Fill up your car for free 

Here’s something you don’t see every day – the US Government actually doing something good for citizens. You may not know this, but there’s a special government program that forces certain oil companies to pay average Americans to help reduce the costs of fuel. It’s a form of gas rebate, paid exclusively by a select group of companies. And these payments mandated by the US Government. Find out if you’re eligible for the next payout – which could be up to $310.

Click here to start receiving Gas Rebate checks.

Published by Wyatt Investment Research at