<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>233</ContextCount>
  <ElementCount>416</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>63</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Document And Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document And Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETS</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - CONSOLIDATED BALANCE SHEETS (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSParentheticals</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFOPERATIONS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Statement - CONSOLIDATED STATEMENTS OF SHAREHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF SHAREHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Disclosure - Nature of Operations and Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureNatureOfOperationsAndBasisOfPresentation</Role>
      <ShortName>Nature of Operations and Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Recent Accounting Pronouncements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureRecentAccountingPronouncements</Role>
      <ShortName>Recent Accounting Pronouncements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Acquisitions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureAcquisitions</Role>
      <ShortName>Acquisitions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Revenues</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureRevenues</Role>
      <ShortName>Revenues</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Sales of Receivables</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureSalesOfReceivables</Role>
      <ShortName>Sales of Receivables</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureInventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Goodwill and Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureGoodwillAndIntangibleAssets</Role>
      <ShortName>Goodwill and Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Property, Plant and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosurePropertyPlantAndEquipment</Role>
      <ShortName>Property, Plant and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureFairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureDebt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Composition of Certain Financial Statement Captions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureCompositionOfCertainFinancialStatementCaptions</Role>
      <ShortName>Composition of Certain Financial Statement Captions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureEarningsPerShare</Role>
      <ShortName>Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureStockBasedCompensation</Role>
      <ShortName>Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Retirement Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureRetirementPlans</Role>
      <ShortName>Retirement Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Business Segments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureBusinessSegments</Role>
      <ShortName>Business Segments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Revenues (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureRevenuesTables</Role>
      <ShortName>Revenues (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureRevenues</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Sales of Receivables (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureSalesOfReceivablesTables</Role>
      <ShortName>Sales of Receivables (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureSalesOfReceivables</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureInventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureInventories</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Goodwill and Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureGoodwillAndIntangibleAssets</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Property, Plant and EquipmentT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosurePropertyPlantAndEquipmenttTables</Role>
      <ShortName>Property, Plant and EquipmentT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosurePropertyPlantAndEquipment</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureLeases</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureFairValueMeasurements</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureDebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureDebt</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Composition of Certain Financial Statement Captions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureCompositionOfCertainFinancialStatementCaptionsTables</Role>
      <ShortName>Composition of Certain Financial Statement Captions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureCompositionOfCertainFinancialStatementCaptions</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureEarningsPerShareTables</Role>
      <ShortName>Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureEarningsPerShare</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureStockBasedCompensationTables</Role>
      <ShortName>Stock-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureStockBasedCompensation</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureIncomeTaxes</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Business Segments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureBusinessSegmentsTables</Role>
      <ShortName>Business Segments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureBusinessSegments</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Summary of Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Acquisitions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureAcquisitionsDetails</Role>
      <ShortName>Acquisitions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureAcquisitions</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100420 - Disclosure - Revenues - Disaggregation of Revenue (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureRevenuesDisaggregationOfRevenueDetail</Role>
      <ShortName>Revenues - Disaggregation of Revenue (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Revenues (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureRevenuesDetails</Role>
      <ShortName>Revenues (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureRevenuesTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Revenues - Remaining Performance Obligations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureRevenuesRemainingPerformanceObligationsDetail</Role>
      <ShortName>Revenues - Remaining Performance Obligations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Revenues - Remaining Performance Obligations (Detail 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureRevenuesRemainingPerformanceObligationsDetail1</Role>
      <ShortName>Revenues - Remaining Performance Obligations (Detail 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Revenues - Contract Assets and Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureRevenuesContractAssetsAndLiabilitiesDetail</Role>
      <ShortName>Revenues - Contract Assets and Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Sales of Receivables (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureSalesOfReceivablesDetails</Role>
      <ShortName>Sales of Receivables (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureSalesOfReceivablesTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Sales of Receivables - Summary of MARPA Activity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureSalesOfReceivablesSummaryOfMARPAActivityDetail</Role>
      <ShortName>Sales of Receivables - Summary of MARPA Activity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100490 - Disclosure - Sales of Receivables - Summary of MARPA Activity (Parentheticals) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureSalesOfReceivablesSummaryOfMARPAActivityParentheticalsDetail</Role>
      <ShortName>Sales of Receivables - Summary of MARPA Activity (Parentheticals) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Inventories - Components of Inventories (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureInventoriesComponentsOfInventoriesDetail</Role>
      <ShortName>Inventories - Components of Inventories (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Goodwill and Intangible Assets - Roll Forward of Goodwill (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsRollForwardOfGoodwillDetail</Role>
      <ShortName>Goodwill and Intangible Assets - Roll Forward of Goodwill (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Goodwill and Intangible Assets - Schedule of Intangible Assets Net (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsNetDetail</Role>
      <ShortName>Goodwill and Intangible Assets - Schedule of Intangible Assets Net (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Goodwill and Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Goodwill and Intangible Assets - Schedule of Estimated Annual Amortization Expense (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsScheduleOfEstimatedAnnualAmortizationExpenseDetail</Role>
      <ShortName>Goodwill and Intangible Assets - Schedule of Estimated Annual Amortization Expense (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100550 - Disclosure - Property, Plant and Equipment - Schedule of Property and Equipment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosurePropertyPlantAndEquipmentScheduleOfPropertyAndEquipmentDetail</Role>
      <ShortName>Property, Plant and Equipment - Schedule of Property and Equipment (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100560 - Disclosure - Property, Plant and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosurePropertyPlantAndEquipmentDetails</Role>
      <ShortName>Property, Plant and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosurePropertyPlantAndEquipmenttTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Leases - Summary of Lease Balances (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureLeasesSummaryOfLeaseBalancesDetail</Role>
      <ShortName>Leases - Summary of Lease Balances (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Leases - Summary of Lease Costs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureLeasesSummaryOfLeaseCostsDetail</Role>
      <ShortName>Leases - Summary of Lease Costs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>100590 - Disclosure - Leases - Schedule of Future Minimum Operating Lease Payments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureLeasesScheduleOfFutureMinimumOperatingLeasePaymentsDetail</Role>
      <ShortName>Leases - Schedule of Future Minimum Operating Lease Payments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>100610 - Disclosure - Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureLeasesDetails</Role>
      <ShortName>Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureLeasesTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>100620 - Disclosure - Fair Value Measurements - Recurring Fair Value Measurements (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsRecurringFairValueMeasurementsDetail</Role>
      <ShortName>Fair Value Measurements - Recurring Fair Value Measurements (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>100630 - Disclosure - Debt - Schedule of Long-term Debt (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureDebtScheduleOfLongTermDebtDetail</Role>
      <ShortName>Debt - Schedule of Long-term Debt (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>100650 - Disclosure - Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureDebtDetails</Role>
      <ShortName>Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureDebtTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>100660 - Disclosure - Debt - Aggregate Maturities of Long-Term Debt (Detail 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureDebtAggregateMaturitiesOfLongTermDebtDetail2</Role>
      <ShortName>Debt - Aggregate Maturities of Long-Term Debt (Detail 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Debt - Cash Flow Hedges (Detail 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureDebtCashFlowHedgesDetail3</Role>
      <ShortName>Debt - Cash Flow Hedges (Detail 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Composition of Certain Financial Statement Captions - Schedule of Accrued Compensation and Benefits (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureCompositionOfCertainFinancialStatementCaptionsScheduleOfAccruedCompensationAndBenefitsDetail</Role>
      <ShortName>Composition of Certain Financial Statement Captions - Schedule of Accrued Compensation and Benefits (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>100690 - Disclosure - Composition of Certain Financial Statement Captions - Schedule of Other Accrued Expenses and Current Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureCompositionOfCertainFinancialStatementCaptionsScheduleOfOtherAccruedExpensesAndCurrentLiabilitiesDetail</Role>
      <ShortName>Composition of Certain Financial Statement Captions - Schedule of Other Accrued Expenses and Current Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>100700 - Disclosure - Composition of Certain Financial Statement Captions - Schedule of Other Long-Term Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureCompositionOfCertainFinancialStatementCaptionsScheduleOfOtherLongTermLiabilitiesDetail</Role>
      <ShortName>Composition of Certain Financial Statement Captions - Schedule of Other Long-Term Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>100710 - Disclosure - Composition of Certain Financial Statement Captions - (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureCompositionOfCertainFinancialStatementCaptionsDetails</Role>
      <ShortName>Composition of Certain Financial Statement Captions - (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureCompositionOfCertainFinancialStatementCaptionsTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>100720 - Disclosure - Earnings Per Share - Calculation of Basic and Diluted Earnings per Share (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureEarningsPerShareCalculationOfBasicAndDilutedEarningsPerShareDetail</Role>
      <ShortName>Earnings Per Share - Calculation of Basic and Diluted Earnings per Share (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>100730 - Disclosure - Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureEarningsPerShareDetails</Role>
      <ShortName>Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureEarningsPerShareTables</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>100740 - Disclosure - Stock-Based Compensation - Components of Stock-Based Compensation Expense and Related Tax Benefits (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureStockBasedCompensationComponentsOfStockBasedCompensationExpenseAndRelatedTaxBenefitsDetail</Role>
      <ShortName>Stock-Based Compensation - Components of Stock-Based Compensation Expense and Related Tax Benefits (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>100750 - Disclosure - Stock-Based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureStockBasedCompensationDetails</Role>
      <ShortName>Stock-Based Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureStockBasedCompensationTables</ParentRole>
      <Position>74</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>100760 - Disclosure - Stock-Based Compensation - Annual Performance-Based Awards Granted (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureStockBasedCompensationAnnualPerformanceBasedAwardsGrantedDetail</Role>
      <ShortName>Stock-Based Compensation - Annual Performance-Based Awards Granted (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>100770 - Disclosure - Stock-Based Compensation (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureStockBasedCompensationDetails1</Role>
      <ShortName>Stock-Based Compensation (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureStockBasedCompensationTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>100780 - Disclosure - Stock-Based Compensation - Summary of Activity Related to Restricted Stock and RSUs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureStockBasedCompensationSummaryOfActivityRelatedToRestrictedStockAndRsusDetail</Role>
      <ShortName>Stock-Based Compensation - Summary of Activity Related to Restricted Stock and RSUs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>100790 - Disclosure - Stock-Based Compensation - Summary of Activity Related to MSPP (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureStockBasedCompensationSummaryOfActivityRelatedToMSPPDetail</Role>
      <ShortName>Stock-Based Compensation - Summary of Activity Related to MSPP (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>100800 - Disclosure - Income Taxes - Schedule of Income Loss Before Income Tax Expense (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeLossBeforeIncomeTaxExpenseDetail</Role>
      <ShortName>Income Taxes - Schedule of Income Loss Before Income Tax Expense (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>100810 - Disclosure - Income Taxes - Schedule of Components of Income Tax Expense (Detail 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureIncomeTaxesScheduleOfComponentsOfIncomeTaxExpenseDetail1</Role>
      <ShortName>Income Taxes - Schedule of Components of Income Tax Expense (Detail 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>100820 - Disclosure - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureIncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>100830 - Disclosure - Income Taxes - Schedule of Effective Income Tax Rate Reconciliation (Detail 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureIncomeTaxesScheduleOfEffectiveIncomeTaxRateReconciliationDetail2</Role>
      <ShortName>Income Taxes - Schedule of Effective Income Tax Rate Reconciliation (Detail 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>100840 - Disclosure - Income Taxes - Schedule of Deferred Tax Assets and Liabilities (Detail 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureIncomeTaxesScheduleOfDeferredTaxAssetsAndLiabilitiesDetail3</Role>
      <ShortName>Income Taxes - Schedule of Deferred Tax Assets and Liabilities (Detail 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>100850 - Disclosure - Income Taxes - Schedule of Unrecognized Tax Benefits (Detail 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureIncomeTaxesScheduleOfUnrecognizedTaxBenefitsDetail4</Role>
      <ShortName>Income Taxes - Schedule of Unrecognized Tax Benefits (Detail 4)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>100860 - Disclosure - Retirement Plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureRetirementPlansDetails</Role>
      <ShortName>Retirement Plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureRetirementPlans</ParentRole>
      <Position>85</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>100870 - Disclosure - Business Segments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureBusinessSegmentsDetails</Role>
      <ShortName>Business Segments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.caci.com/20220630/taxonomy/role/DisclosureBusinessSegmentsTables</ParentRole>
      <Position>86</Position>
    </Report>
    <Report instance="caci-10k_20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>100880 - Disclosure - Business Segments - Summarized Financial Information of Reportable Segments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.caci.com/20220630/taxonomy/role/DisclosureBusinessSegmentsSummarizedFinancialInformationOfReportableSegmentsDetail</Role>
      <ShortName>Business Segments - Summarized Financial Information of Reportable Segments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</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-K" original="caci-10k_20220630.htm">caci-10k_20220630.htm</File>
    <File>caci-20220630.xsd</File>
    <File>caci-20220630_cal.xml</File>
    <File>caci-20220630_def.xml</File>
    <File>caci-20220630_lab.xml</File>
    <File>caci-20220630_pre.xml</File>
    <File>caci-ex1013_177.htm</File>
    <File>caci-ex1015_178.htm</File>
    <File>caci-ex109_176.htm</File>
    <File>caci-ex211_11.htm</File>
    <File>caci-ex231_6.htm</File>
    <File>caci-ex311_7.htm</File>
    <File>caci-ex312_10.htm</File>
    <File>caci-ex321_8.htm</File>
    <File>caci-ex322_9.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>gse3l13xib4s000001.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1069">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="37">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
