BP Capital America Markets America Inc., 501 Westlake Boulevard, Houston, Texas 77079. Ladies and Gentlemen: In connection with the registration under the Securities Act of 1933, as amended (the “Act”), of U.S.$2,000,000,000 in aggregate principal amount of 2.721% Guaranteed Notes due 2032 (the “Securities”), of BP Capital Markets America Inc., a Delaware corporation (“BP Capital America”), and the related guarantees (the “Guarantees”) of the Securities by BP p.l.c., an English company (“BP”), pursuant to a Registration Statement on Form F-3 (the “Registration Statement”), as Managing Counsel – Treasury of BP, I have examined such corporate records, certificates and other documents and such questions of law as I have considered necessary or appropriate for the purposes of this opinion. Upon the basis of such examination, I advise you that, in my opinion: 1. BP is a public limited company duly incorporated and is a validly existing company under the laws of England and Wales; 2. the Indenture, dated as of June 4, 2003, among BP Capital America, BP and The Bank of New York Mellon Trust Company, N.A. (as successor to JPMorgan Chase Bank), as Trustee (the “Trustee”) (the “Base Indenture”), as supplemented by a Fourteenth Supplemental Indenture, dated as of January 12, 2022 (the “Fourteenth Supplemental Indenture” and, together with the Base Indenture, the “Indenture”), relating to the Securities has been duly authorised, executed and delivered by BP; and 3. when (a) the Securities and the Guarantees have been duly executed and, in the case of the Securities, authenticated in accordance with the Indenture relating thereto, and (b) the Securities and the Guarantees have been issued and sold as contemplated in the |