s6y Phillips 66 S-8

Phillips 66 S-8, filed May 12, 2022: Consent of experts

Exhibit 23.2

Consent of Independent Registered Public Accounting Firm

We consent to the incorporation by reference in the Registration Statement (Form S-8) pertaining to the 2022 Omnibus Stock and Performance Incentive Plan of Phillips 66 of our reports dated February 18, 2022, with respect to the consolidated financial statements of Phillips 66 and the effectiveness of internal control over financial reporting of Phillips 66 included in its Annual Report (Form 10-K) for the year ended December 31, 2021, filed with the Securities and Exchange Commission.

/s/ Ernst & Young LLP

Houston, Texas

May 12, 2022