<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>126</ContextCount>
  <ElementCount>80</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>17</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>4</UnitCount>
  <MyReports>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>75000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>75010 - Statement - Statements of Net Assets Available for Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/StatementStatementsOfNetAssetsAvailableForBenefits</Role>
      <ShortName>Statements of Net Assets Available for Benefits</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>75020 - Statement - Statement of Changes in Net Assets Available for Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/StatementStatementOfChangesInNetAssetsAvailableForBenefits</Role>
      <ShortName>Statement of Changes in Net Assets Available for Benefits</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>75030 - Disclosure - Plan Description</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosurePlanDescription</Role>
      <ShortName>Plan Description</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>75040 - Disclosure - Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureSignificantAccountingPolicies</Role>
      <ShortName>Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>75050 - Disclosure - Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureInvestments</Role>
      <ShortName>Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>75060 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureFairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>75070 - Disclosure - Investment Strategy</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureInvestmentStrategy</Role>
      <ShortName>Investment Strategy</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>75080 - Disclosure - Tax Status</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureTaxStatus</Role>
      <ShortName>Tax Status</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>75090 - Disclosure - Related-Party and Party-in-Interest Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureRelatedpartyAndPartyininterestTransactions</Role>
      <ShortName>Related-Party and Party-in-Interest Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>75100 - Disclosure - Plan Termination</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosurePlanTermination</Role>
      <ShortName>Plan Termination</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>75110 - Disclosure - Reconciliation of Financial Statements to Form 5500</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureReconciliationOfFinancialStatementsToForm5500</Role>
      <ShortName>Reconciliation of Financial Statements to Form 5500</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>75120 - Disclosure - Subsequent Event</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureSubsequentEvent</Role>
      <ShortName>Subsequent Event</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>75130 - Disclosure - Schedule of Assets Held at End of Year</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureScheduleOfAssetsHeldAtEndOfYear</Role>
      <ShortName>Schedule of Assets Held at End of Year</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>75140 - Disclosure - Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.phillips66.com/20251231/taxonomy/role/DisclosureSignificantAccountingPolicies</ParentRole>
      <Position>15</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>75150 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureFairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.phillips66.com/20251231/taxonomy/role/DisclosureFairValueMeasurements</ParentRole>
      <Position>16</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>75160 - Disclosure - Reconciliation of Financial Statements to Form 5500 (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureReconciliationOfFinancialStatementsToForm5500Tables</Role>
      <ShortName>Reconciliation of Financial Statements to Form 5500 (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.phillips66.com/20251231/taxonomy/role/DisclosureReconciliationOfFinancialStatementsToForm5500</ParentRole>
      <Position>17</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>75170 - Disclosure - Schedule of Assets Held at End of Year (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureScheduleOfAssetsHeldAtEndOfYearTables</Role>
      <ShortName>Schedule of Assets Held at End of Year (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.phillips66.com/20251231/taxonomy/role/DisclosureScheduleOfAssetsHeldAtEndOfYear</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>75180 - Disclosure - Plan Description - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosurePlanDescriptionAdditionalInformationDetails</Role>
      <ShortName>Plan Description - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>75190 - Disclosure - Fair Value Measurements - Schedule of Plan Investment Assets Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfPlanInvestmentAssetsFairValueDetails</Role>
      <ShortName>Fair Value Measurements - Schedule of Plan Investment Assets Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>75200 - Disclosure - Investment Strategy - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureInvestmentStrategyAdditionalInformationDetails</Role>
      <ShortName>Investment Strategy - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>75210 - Disclosure - Tax Status - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureTaxStatusAdditionalInformationDetails</Role>
      <ShortName>Tax Status - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>75220 - Disclosure - Reconciliation of Financial Statements to Form 5500 - Schedule of Reconciliation of Net Assets Available for Benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureReconciliationOfFinancialStatementsToForm5500ScheduleOfReconciliationOfNetAssetsAvailableForBenefitsDetails</Role>
      <ShortName>Reconciliation of Financial Statements to Form 5500 - Schedule of Reconciliation of Net Assets Available for Benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>75230 - Disclosure - Reconciliation of Financial Statements to Form 5500 - Schedule of Reconciliation of Net Increase (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureReconciliationOfFinancialStatementsToForm5500ScheduleOfReconciliationOfNetIncreaseDetails</Role>
      <ShortName>Reconciliation of Financial Statements to Form 5500 - Schedule of Reconciliation of Net Increase (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>75240 - Disclosure - Subsequent Event - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/DisclosureSubsequentEventAdditionalInformationDetails</Role>
      <ShortName>Subsequent Event - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="psx-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>75250 - Schedule - Schedule of Assets Held at End of Year (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.phillips66.com/20251231/taxonomy/role/ScheduleScheduleOfAssetsHeldAtEndOfYearDetails</Role>
      <ShortName>Schedule of Assets Held at End of Year (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.phillips66.com/20251231/taxonomy/role/DisclosureScheduleOfAssetsHeldAtEndOfYearTables</ParentRole>
      <Position>26</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="11-K" isDefinitelyFs="true" isUsgaap="true" original="psx-20251231.htm">psx-20251231.htm</File>
    <File>psx-20251231.xsd</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="225">http://fasb.org/us-gaap-ebp/2025</BaseTaxonomy>
    <BaseTaxonomy items="13">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>false</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
