From Tax Foundation:

As such, all companies, including fossil fuel companies, should be able to deduct their costs—from salaries for employees to new parts for an oil derrick. The R Street Institute put together a useful guide of which energy tax provisions constitute appropriate cost recovery, and which are subsidies.