<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>260</ContextCount>
  <ElementCount>296</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>64</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>9952151 - Statement - Consolidated Statements of Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/ConsolidatedStatementsofIncome</Role>
      <ShortName>Consolidated Statements of Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952152 - Statement - Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/ConsolidatedStatementsofComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952153 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952154 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952155 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/ConsolidatedStatementsofCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952156 - Disclosure - Basis of presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/Basisofpresentation</Role>
      <ShortName>Basis of presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952157 - Disclosure - New accounting pronouncements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/Newaccountingpronouncements</Role>
      <ShortName>New accounting pronouncements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952158 - Disclosure - Revenue recognition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/Revenuerecognition</Role>
      <ShortName>Revenue recognition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952159 - Disclosure - Acquisitions and divestitures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/Acquisitionsanddivestitures</Role>
      <ShortName>Acquisitions and divestitures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952160 - Disclosure - Earnings per share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/Earningspershare</Role>
      <ShortName>Earnings per share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - Non-trade and notes receivable</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://parkerhannifin.com/role/Nontradeandnotesreceivable</Role>
      <ShortName>Non-trade and notes receivable</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/Inventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952163 - Disclosure - Supply chain financing</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/Supplychainfinancing</Role>
      <ShortName>Supply chain financing</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - Business realignment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/Businessrealignment</Role>
      <ShortName>Business realignment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/Equity</Role>
      <ShortName>Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - Goodwill and intangible assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/Goodwillandintangibleassets</Role>
      <ShortName>Goodwill and intangible assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - Retirement benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/Retirementbenefits</Role>
      <ShortName>Retirement benefits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/Debt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - Income taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/Incometaxes</Role>
      <ShortName>Income taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9952170 - Disclosure - Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/FinancialInstruments</Role>
      <ShortName>Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9952171 - Disclosure - Business segment information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/Businesssegmentinformation</Role>
      <ShortName>Business segment information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9952172 - Disclosure - Other expense (income), net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/Otherexpenseincomenet</Role>
      <ShortName>Other expense (income), net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9955511 - Disclosure - New accounting pronouncements (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/NewaccountingpronouncementsPolicies</Role>
      <ShortName>New accounting pronouncements (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - Revenue recognition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/RevenuerecognitionTables</Role>
      <ShortName>Revenue recognition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/Revenuerecognition</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - Acquisitions and divestitures (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/AcquisitionsanddivestituresTables</Role>
      <ShortName>Acquisitions and divestitures (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/Acquisitionsanddivestitures</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Earnings per share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/EarningspershareTables</Role>
      <ShortName>Earnings per share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/Earningspershare</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - Non-trade and notes receivable (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://parkerhannifin.com/role/NontradeandnotesreceivableTables</Role>
      <ShortName>Non-trade and notes receivable (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/Nontradeandnotesreceivable</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/InventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/Inventories</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - Business realignment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/BusinessrealignmentTables</Role>
      <ShortName>Business realignment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/Businessrealignment</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/EquityTables</Role>
      <ShortName>Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/Equity</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - Goodwill and intangible assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/GoodwillandintangibleassetsTables</Role>
      <ShortName>Goodwill and intangible assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/Goodwillandintangibleassets</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - Retirement benefits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/RetirementbenefitsTables</Role>
      <ShortName>Retirement benefits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/Retirementbenefits</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/FinancialInstrumentsTables</Role>
      <ShortName>Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/FinancialInstruments</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - Business segment information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/BusinesssegmentinformationTables</Role>
      <ShortName>Business segment information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/Businesssegmentinformation</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - Other expense (income), net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/OtherexpenseincomenetTables</Role>
      <ShortName>Other expense (income), net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/Otherexpenseincomenet</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - Revenue recognition - Schedule of Revenues by Technology Platform (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/RevenuerecognitionScheduleofRevenuesbyTechnologyPlatformDetails</Role>
      <ShortName>Revenue recognition - Schedule of Revenues by Technology Platform (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - Revenue recognition - Schedule of Revenues by Market Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/RevenuerecognitionScheduleofRevenuesbyMarketSegmentDetails</Role>
      <ShortName>Revenue recognition - Schedule of Revenues by Market Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - Revenue recognition - Schedule of Total Revenue by Geographic Region (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/RevenuerecognitionScheduleofTotalRevenuebyGeographicRegionDetails</Role>
      <ShortName>Revenue recognition - Schedule of Total Revenue by Geographic Region (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Revenue recognition - Schedule of Total Contract Assets and Contract Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/RevenuerecognitionScheduleofTotalContractAssetsandContractLiabilitiesDetails</Role>
      <ShortName>Revenue recognition - Schedule of Total Contract Assets and Contract Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - Revenue recognition - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/RevenuerecognitionNarrativeDetails</Role>
      <ShortName>Revenue recognition - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Acquisitions and divestitures - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/AcquisitionsanddivestituresNarrativeDetails</Role>
      <ShortName>Acquisitions and divestitures - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Acquisitions and divestitures - Schedule of Preliminary Estimated Fair Values of Assets Acquired and Liabilities Assumed (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/AcquisitionsanddivestituresScheduleofPreliminaryEstimatedFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails</Role>
      <ShortName>Acquisitions and divestitures - Schedule of Preliminary Estimated Fair Values of Assets Acquired and Liabilities Assumed (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - Earnings per share - Schedule of Reconciliation of Numerator and Denominator of Basic and Diluted Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/EarningspershareScheduleofReconciliationofNumeratorandDenominatorofBasicandDilutedEarningsPerShareDetails</Role>
      <ShortName>Earnings per share - Schedule of Reconciliation of Numerator and Denominator of Basic and Diluted Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - Earnings per share - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/EarningspershareNarrativeDetails</Role>
      <ShortName>Earnings per share - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - Non-trade and notes receivable (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://parkerhannifin.com/role/NontradeandnotesreceivableDetails</Role>
      <ShortName>Non-trade and notes receivable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/NontradeandnotesreceivableTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - Inventories (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/InventoriesDetails</Role>
      <ShortName>Inventories (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/InventoriesTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - Supply chain financing (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/SupplychainfinancingDetails</Role>
      <ShortName>Supply chain financing (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/Supplychainfinancing</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - Business realignment - Schedule of Business Realignment Charges and Workforce Reductions by Business Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/BusinessrealignmentScheduleofBusinessRealignmentChargesandWorkforceReductionsbyBusinessSegmentDetails</Role>
      <ShortName>Business realignment - Schedule of Business Realignment Charges and Workforce Reductions by Business Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - Business realignment - Schedule of Business Realignment Charges (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/BusinessrealignmentScheduleofBusinessRealignmentChargesDetails</Role>
      <ShortName>Business realignment - Schedule of Business Realignment Charges (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - Business realignment - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/BusinessrealignmentNarrativeDetails</Role>
      <ShortName>Business realignment - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955539 - Disclosure - Equity - Schedule of Changes in Equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/EquityScheduleofChangesinEquityDetails</Role>
      <ShortName>Equity - Schedule of Changes in Equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955540 - Disclosure - Equity - Schedule of Changes in Accumulated Other Comprehensive Loss in Shareholders' Equity by Component (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/EquityScheduleofChangesinAccumulatedOtherComprehensiveLossinShareholdersEquitybyComponentDetails</Role>
      <ShortName>Equity - Schedule of Changes in Accumulated Other Comprehensive Loss in Shareholders' Equity by Component (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955541 - Disclosure - Equity - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/EquityNarrativeDetails</Role>
      <ShortName>Equity - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - Goodwill and intangible assets - Schedule of Changes in Carrying Amount of Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/GoodwillandintangibleassetsScheduleofChangesinCarryingAmountofGoodwillDetails</Role>
      <ShortName>Goodwill and intangible assets - Schedule of Changes in Carrying Amount of Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - Goodwill and intangible assets - Schedule of Gross Carrying Value and Accumulated Amortization for Each Category of Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/GoodwillandintangibleassetsScheduleofGrossCarryingValueandAccumulatedAmortizationforEachCategoryofIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and intangible assets - Schedule of Gross Carrying Value and Accumulated Amortization for Each Category of Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - Goodwill and intangible assets - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/GoodwillandintangibleassetsNarrativeDetails</Role>
      <ShortName>Goodwill and intangible assets - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - Retirement benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/RetirementbenefitsDetails</Role>
      <ShortName>Retirement benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/RetirementbenefitsTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/DebtDetails</Role>
      <ShortName>Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/Debt</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955547 - Disclosure - Income taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/IncometaxesDetails</Role>
      <ShortName>Income taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/Incometaxes</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955548 - Disclosure - Financial Instruments - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/FinancialInstrumentsNarrativeDetails</Role>
      <ShortName>Financial Instruments - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955549 - Disclosure - Financial Instruments - Schedule of Location and Fair Value of Derivative Financial Instruments Reported on Consolidated Balance Sheet (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/FinancialInstrumentsScheduleofLocationandFairValueofDerivativeFinancialInstrumentsReportedonConsolidatedBalanceSheetDetails</Role>
      <ShortName>Financial Instruments - Schedule of Location and Fair Value of Derivative Financial Instruments Reported on Consolidated Balance Sheet (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955550 - Disclosure - Financial Instruments - Schedule of Gains (Losses) on Derivative Financial Instruments Recorded in Consolidated Statement of Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/FinancialInstrumentsScheduleofGainsLossesonDerivativeFinancialInstrumentsRecordedinConsolidatedStatementofIncomeDetails</Role>
      <ShortName>Financial Instruments - Schedule of Gains (Losses) on Derivative Financial Instruments Recorded in Consolidated Statement of Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955551 - Disclosure - Financial Instruments - Schedule of Gains (Losses) on Derivative and Non-Derivative Financial Instruments Recorded in Accumulated Other Comprehensive (Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/FinancialInstrumentsScheduleofGainsLossesonDerivativeandNonDerivativeFinancialInstrumentsRecordedinAccumulatedOtherComprehensiveLossDetails</Role>
      <ShortName>Financial Instruments - Schedule of Gains (Losses) on Derivative and Non-Derivative Financial Instruments Recorded in Accumulated Other Comprehensive (Loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955552 - Disclosure - Financial Instruments - Schedule of Carrying Value and Estimated Fair Value of Long-Term Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/FinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueofLongTermDebtDetails</Role>
      <ShortName>Financial Instruments - Schedule of Carrying Value and Estimated Fair Value of Long-Term Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955553 - Disclosure - Financial Instruments - Schedule of Financial Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/FinancialInstrumentsScheduleofFinancialAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails</Role>
      <ShortName>Financial Instruments - Schedule of Financial Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9955554 - Disclosure - Business segment information - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/BusinesssegmentinformationNarrativeDetails</Role>
      <ShortName>Business segment information - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9955555 - Disclosure - Business segment information - Schedule of Business Segment Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/BusinesssegmentinformationScheduleofBusinessSegmentInformationDetails</Role>
      <ShortName>Business segment information - Schedule of Business Segment Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="ph-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9955556 - Disclosure - Other expense (income), net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://parkerhannifin.com/role/OtherexpenseincomenetDetails</Role>
      <ShortName>Other expense (income), net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://parkerhannifin.com/role/OtherexpenseincomenetTables</ParentRole>
      <Position>70</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="10-Q" isDefinitelyFs="true" isUsgaap="true" original="ph-20260331.htm">ph-20260331.htm</File>
    <File>ph-20260331.xsd</File>
    <File>ph-20260331_cal.xml</File>
    <File>ph-20260331_def.xml</File>
    <File>ph-20260331_lab.xml</File>
    <File>ph-20260331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>ph-20260331_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="2">http://fasb.org/srt/2025</BaseTaxonomy>
    <BaseTaxonomy items="932">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
