<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>614</ContextCount>
  <ElementCount>482</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>128</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>10</UnitCount>
  <MyReports>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001002 - Statement - Condensed Consolidated Balance Sheets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/CondensedConsolidatedBalanceSheetsUnaudited</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1002003 - Statement - Condensed Consolidated Statements of Operations (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/CondensedConsolidatedStatementsofOperationsUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Operations (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1003004 - Statement - Condensed Consolidated Statements of Comprehensive Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1004005 - Statement - Condensed Consolidated Statements of Stockholders' Equity (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/CondensedConsolidatedStatementsofStockholdersEquityUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Stockholders' Equity (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1005006 - Statement - Condensed Consolidated Statements of Stockholders' Equity (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/CondensedConsolidatedStatementsofStockholdersEquityUnauditedParenthetical</Role>
      <ShortName>Condensed Consolidated Statements of Stockholders' Equity (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1006007 - Statement - Condensed Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/CondensedConsolidatedStatementsofCashFlowsUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>2101101 - Disclosure - BASIS OF PRESENTATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/BASISOFPRESENTATION</Role>
      <ShortName>BASIS OF PRESENTATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2103102 - Disclosure - REVENUE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/REVENUE</Role>
      <ShortName>REVENUE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2108103 - Disclosure - FAIR VALUE MEASUREMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/FAIRVALUEMEASUREMENTS</Role>
      <ShortName>FAIR VALUE MEASUREMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2111104 - Disclosure - FINANCIAL STATEMENT COMPONENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/FINANCIALSTATEMENTCOMPONENTS</Role>
      <ShortName>FINANCIAL STATEMENT COMPONENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2116105 - Disclosure - MARKETABLE SECURITIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/MARKETABLESECURITIES</Role>
      <ShortName>MARKETABLE SECURITIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2121106 - Disclosure - BUSINESS COMBINATIONS AND DISPOSITIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/BUSINESSCOMBINATIONSANDDISPOSITIONS</Role>
      <ShortName>BUSINESS COMBINATIONS AND DISPOSITIONS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2127107 - Disclosure - GOODWILL AND PURCHASED INTANGIBLE ASSETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETS</Role>
      <ShortName>GOODWILL AND PURCHASED INTANGIBLE ASSETS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2134108 - Disclosure - DEBT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/DEBT</Role>
      <ShortName>DEBT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2141109 - Disclosure - LEASES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/LEASES</Role>
      <ShortName>LEASES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2146110 - Disclosure - EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTEREST</Role>
      <ShortName>EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2157111 - Disclosure - STOCK REPURCHASE PROGRAM</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/STOCKREPURCHASEPROGRAM</Role>
      <ShortName>STOCK REPURCHASE PROGRAM</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2160112 - Disclosure - NET INCOME PER SHARE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/NETINCOMEPERSHARE</Role>
      <ShortName>NET INCOME PER SHARE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2163113 - Disclosure - INCOME TAXES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/INCOMETAXES</Role>
      <ShortName>INCOME TAXES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2167114 - Disclosure - LITIGATION AND OTHER LEGAL MATTERS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/LITIGATIONANDOTHERLEGALMATTERS</Role>
      <ShortName>LITIGATION AND OTHER LEGAL MATTERS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2168115 - Disclosure - COMMITMENTS AND CONTINGENCIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/COMMITMENTSANDCONTINGENCIES</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2171116 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIES</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2180117 - Disclosure - RELATED PARTY TRANSACTIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/RELATEDPARTYTRANSACTIONS</Role>
      <ShortName>RELATED PARTY TRANSACTIONS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2183118 - Disclosure - SEGMENT REPORTING AND GEOGRAPHIC INFORMATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATION</Role>
      <ShortName>SEGMENT REPORTING AND GEOGRAPHIC INFORMATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2192119 - Disclosure - RESTRUCTURING CHARGES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/RESTRUCTURINGCHARGES</Role>
      <ShortName>RESTRUCTURING CHARGES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2202201 - Disclosure - BASIS OF PRESENTATION (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/BASISOFPRESENTATIONPolicies</Role>
      <ShortName>BASIS OF PRESENTATION (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2304301 - Disclosure - REVENUE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/REVENUETables</Role>
      <ShortName>REVENUE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/REVENUE</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2309302 - Disclosure - FAIR VALUE MEASUREMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/FAIRVALUEMEASUREMENTSTables</Role>
      <ShortName>FAIR VALUE MEASUREMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/FAIRVALUEMEASUREMENTS</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2312303 - Disclosure - FINANCIAL STATEMENT COMPONENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/FINANCIALSTATEMENTCOMPONENTSTables</Role>
      <ShortName>FINANCIAL STATEMENT COMPONENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/FINANCIALSTATEMENTCOMPONENTS</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2317304 - Disclosure - MARKETABLE SECURITIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/MARKETABLESECURITIESTables</Role>
      <ShortName>MARKETABLE SECURITIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/MARKETABLESECURITIES</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2322305 - Disclosure - BUSINESS COMBINATIONS AND DISPOSITIONS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/BUSINESSCOMBINATIONSANDDISPOSITIONSTables</Role>
      <ShortName>BUSINESS COMBINATIONS AND DISPOSITIONS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/BUSINESSCOMBINATIONSANDDISPOSITIONS</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2328306 - Disclosure - GOODWILL AND PURCHASED INTANGIBLE ASSETS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSTables</Role>
      <ShortName>GOODWILL AND PURCHASED INTANGIBLE ASSETS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETS</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2335307 - Disclosure - DEBT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/DEBTTables</Role>
      <ShortName>DEBT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/DEBT</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2342308 - Disclosure - LEASES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/LEASESTables</Role>
      <ShortName>LEASES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/LEASES</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2347309 - Disclosure - EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTTables</Role>
      <ShortName>EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTEREST</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2358310 - Disclosure - STOCK REPURCHASE PROGRAM (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/STOCKREPURCHASEPROGRAMTables</Role>
      <ShortName>STOCK REPURCHASE PROGRAM (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/STOCKREPURCHASEPROGRAM</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2361311 - Disclosure - NET INCOME PER SHARE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/NETINCOMEPERSHARETables</Role>
      <ShortName>NET INCOME PER SHARE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/NETINCOMEPERSHARE</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2364312 - Disclosure - INCOME TAXES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/INCOMETAXESTables</Role>
      <ShortName>INCOME TAXES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/INCOMETAXES</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2369313 - Disclosure - COMMITMENTS AND CONTINGENCIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/COMMITMENTSANDCONTINGENCIESTables</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/COMMITMENTSANDCONTINGENCIES</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2372314 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESTables</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIES</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2381315 - Disclosure - RELATED PARTY TRANSACTIONS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/RELATEDPARTYTRANSACTIONSTables</Role>
      <ShortName>RELATED PARTY TRANSACTIONS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/RELATEDPARTYTRANSACTIONS</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2384316 - Disclosure - SEGMENT REPORTING AND GEOGRAPHIC INFORMATION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONTables</Role>
      <ShortName>SEGMENT REPORTING AND GEOGRAPHIC INFORMATION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATION</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2405401 - Disclosure - REVENUE - Schedule of Contract Balances (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/REVENUEScheduleofContractBalancesDetails</Role>
      <ShortName>REVENUE - Schedule of Contract Balances (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2406402 - Disclosure - REVENUE - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/REVENUEAdditionalInformationDetails</Role>
      <ShortName>REVENUE - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2407403 - Disclosure - REVENUE - Remaining Performance Obligations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/REVENUERemainingPerformanceObligationsDetails</Role>
      <ShortName>REVENUE - Remaining Performance Obligations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2410404 - Disclosure - FAIR VALUE MEASUREMENTS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/FAIRVALUEMEASUREMENTSDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/FAIRVALUEMEASUREMENTSTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2413405 - Disclosure - FINANCIAL STATEMENT COMPONENTS - Balance Sheet Components (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/FINANCIALSTATEMENTCOMPONENTSBalanceSheetComponentsDetails</Role>
      <ShortName>FINANCIAL STATEMENT COMPONENTS - Balance Sheet Components (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2414406 - Disclosure - FINANCIAL STATEMENT COMPONENTS - Accumulated Other Comprehensive Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/FINANCIALSTATEMENTCOMPONENTSAccumulatedOtherComprehensiveIncomeDetails</Role>
      <ShortName>FINANCIAL STATEMENT COMPONENTS - Accumulated Other Comprehensive Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2415407 - Disclosure - FINANCIAL STATEMENT COMPONENTS - Effects on Net Income (Loss) of Amounts Reclassified from AOCI (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/FINANCIALSTATEMENTCOMPONENTSEffectsonNetIncomeLossofAmountsReclassifiedfromAOCIDetails</Role>
      <ShortName>FINANCIAL STATEMENT COMPONENTS - Effects on Net Income (Loss) of Amounts Reclassified from AOCI (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2418408 - Disclosure - MARKETABLE SECURITIES - Amortized Cost and Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/MARKETABLESECURITIESAmortizedCostandFairValueDetails</Role>
      <ShortName>MARKETABLE SECURITIES - Amortized Cost and Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2419409 - Disclosure - MARKETABLE SECURITIES - Continuous Unrealized Loss Position (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/MARKETABLESECURITIESContinuousUnrealizedLossPositionDetails</Role>
      <ShortName>MARKETABLE SECURITIES - Continuous Unrealized Loss Position (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2420410 - Disclosure - MARKETABLE SECURITIES - Contractual Maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/MARKETABLESECURITIESContractualMaturitiesDetails</Role>
      <ShortName>MARKETABLE SECURITIES - Contractual Maturities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2423411 - Disclosure - BUSINESS COMBINATIONS AND DISPOSITIONS - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/BUSINESSCOMBINATIONSANDDISPOSITIONSAdditionalInformationDetails</Role>
      <ShortName>BUSINESS COMBINATIONS AND DISPOSITIONS - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2424412 - Disclosure - BUSINESS COMBINATIONS AND DISPOSITIONS - Schedule of Aggregate Purchase Consideration and Preliminary Purchase Price Allocation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/BUSINESSCOMBINATIONSANDDISPOSITIONSScheduleofAggregatePurchaseConsiderationandPreliminaryPurchasePriceAllocationDetails</Role>
      <ShortName>BUSINESS COMBINATIONS AND DISPOSITIONS - Schedule of Aggregate Purchase Consideration and Preliminary Purchase Price Allocation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2425413 - Disclosure - BUSINESS COMBINATIONS AND DISPOSITIONS - Schedule of Estimated Fair Value and Weighted Average Useful Life of Acquired Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/BUSINESSCOMBINATIONSANDDISPOSITIONSScheduleofEstimatedFairValueandWeightedAverageUsefulLifeofAcquiredIntangibleAssetsDetails</Role>
      <ShortName>BUSINESS COMBINATIONS AND DISPOSITIONS - Schedule of Estimated Fair Value and Weighted Average Useful Life of Acquired Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2426414 - Disclosure - BUSINESS COMBINATIONS AND DISPOSITIONS - Schedule of Disclosure of Long Lived Assets Held-for-sale (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/BUSINESSCOMBINATIONSANDDISPOSITIONSScheduleofDisclosureofLongLivedAssetsHeldforsaleDetails</Role>
      <ShortName>BUSINESS COMBINATIONS AND DISPOSITIONS - Schedule of Disclosure of Long Lived Assets Held-for-sale (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2429415 - Disclosure - GOODWILL AND PURCHASED INTANGIBLE ASSETS - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSAdditionalInformationDetails</Role>
      <ShortName>GOODWILL AND PURCHASED INTANGIBLE ASSETS - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2430416 - Disclosure - GOODWILL AND PURCHASED INTANGIBLE ASSETS - Schedule of Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSScheduleofGoodwillDetails</Role>
      <ShortName>GOODWILL AND PURCHASED INTANGIBLE ASSETS - Schedule of Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2431417 - Disclosure - GOODWILL AND PURCHASED INTANGIBLE ASSETS - Purchased Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSPurchasedIntangibleAssetsDetails</Role>
      <ShortName>GOODWILL AND PURCHASED INTANGIBLE ASSETS - Purchased Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2432418 - Disclosure - GOODWILL AND PURCHASED INTANGIBLE ASSETS - Amortization Expense for Purchased Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSAmortizationExpenseforPurchasedIntangibleAssetsDetails</Role>
      <ShortName>GOODWILL AND PURCHASED INTANGIBLE ASSETS - Amortization Expense for Purchased Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2433419 - Disclosure - GOODWILL AND PURCHASED INTANGIBLE ASSETS - Future Estimated Amortization Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSFutureEstimatedAmortizationExpenseDetails</Role>
      <ShortName>GOODWILL AND PURCHASED INTANGIBLE ASSETS - Future Estimated Amortization Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2436420 - Disclosure - DEBT - Schedule of Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/DEBTScheduleofDebtDetails</Role>
      <ShortName>DEBT - Schedule of Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2437421 - Disclosure - DEBT - Future Principal Payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/DEBTFuturePrincipalPaymentsDetails</Role>
      <ShortName>DEBT - Future Principal Payments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>2438422 - Disclosure - DEBT - Senior Notes and Debt Redemption (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.kla-tencor.com/role/DEBTSeniorNotesandDebtRedemptionDetails</Role>
      <ShortName>DEBT - Senior Notes and Debt Redemption (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>2439423 - Disclosure - DEBT - Revolving Credit Facility (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/DEBTRevolvingCreditFacilityDetails</Role>
      <ShortName>DEBT - Revolving Credit Facility (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>2440424 - Disclosure - DEBT - Notes Payable (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.kla-tencor.com/role/DEBTNotesPayableDetails</Role>
      <ShortName>DEBT - Notes Payable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>2443425 - Disclosure - LEASES - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/LEASESAdditionalInformationDetails</Role>
      <ShortName>LEASES - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>2444426 - Disclosure - LEASES - Supplemental Cash Flow Information Related to Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/LEASESSupplementalCashFlowInformationRelatedtoLeasesDetails</Role>
      <ShortName>LEASES - Supplemental Cash Flow Information Related to Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>2445427 - Disclosure - LEASES - Maturities of Lease Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/LEASESMaturitiesofLeaseLiabilitiesDetails</Role>
      <ShortName>LEASES - Maturities of Lease Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>2448428 - Disclosure - EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Equity Incentive Program and Assumed Equity Plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTEquityIncentiveProgramandAssumedEquityPlansDetails</Role>
      <ShortName>EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Equity Incentive Program and Assumed Equity Plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>2449429 - Disclosure - EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Equity Incentive Plans General Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTEquityIncentivePlansGeneralInformationDetails</Role>
      <ShortName>EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Equity Incentive Plans General Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>2450430 - Disclosure - EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Share-based Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTSharebasedCompensationExpenseDetails</Role>
      <ShortName>EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Share-based Compensation Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>2451431 - Disclosure - EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Restricted Stock Unit Activities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTRestrictedStockUnitActivitiesDetails</Role>
      <ShortName>EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Restricted Stock Unit Activities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>2452432 - Disclosure - EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Weighted-Average Grant Date Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTWeightedAverageGrantDateFairValueDetails</Role>
      <ShortName>EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Weighted-Average Grant Date Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>2453433 - Disclosure - EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Cash-Based Long-Term Incentive Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTCashBasedLongTermIncentiveCompensationDetails</Role>
      <ShortName>EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Cash-Based Long-Term Incentive Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>2454434 - Disclosure - EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Employee Stock Purchase Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTEmployeeStockPurchasePlanDetails</Role>
      <ShortName>EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Employee Stock Purchase Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>2455435 - Disclosure - EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Quarterly Cash Dividends (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTQuarterlyCashDividendsDetails</Role>
      <ShortName>EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Quarterly Cash Dividends (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>2456436 - Disclosure - EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Non-Controlling Interest (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTNonControllingInterestDetails</Role>
      <ShortName>EQUITY, LONG-TERM INCENTIVE COMPENSATION PLANS AND NON-CONTROLLING INTEREST - Non-Controlling Interest (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>2459437 - Disclosure - STOCK REPURCHASE PROGRAM (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/STOCKREPURCHASEPROGRAMDetails</Role>
      <ShortName>STOCK REPURCHASE PROGRAM (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/STOCKREPURCHASEPROGRAMTables</ParentRole>
      <Position>80</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>2462438 - Disclosure - NET INCOME PER SHARE (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/NETINCOMEPERSHAREDetails</Role>
      <ShortName>NET INCOME PER SHARE (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/NETINCOMEPERSHARETables</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>2465439 - Disclosure - INCOME TAXES - Details of Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/INCOMETAXESDetailsofIncomeTaxesDetails</Role>
      <ShortName>INCOME TAXES - Details of Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>2466440 - Disclosure - INCOME TAXES - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/INCOMETAXESAdditionalInformationDetails</Role>
      <ShortName>INCOME TAXES - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>2470441 - Disclosure - COMMITMENTS AND CONTINGENCIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/COMMITMENTSANDCONTINGENCIESDetails</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/COMMITMENTSANDCONTINGENCIESTables</ParentRole>
      <Position>84</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>2473442 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESAdditionalInformationDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>2474443 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Gains (Losses) on Derivatives in Cash Flow Hedging Relationships Recognized in OCI (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESGainsLossesonDerivativesinCashFlowHedgingRelationshipsRecognizedinOCIDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Gains (Losses) on Derivatives in Cash Flow Hedging Relationships Recognized in OCI (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESTables</ParentRole>
      <Position>86</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>2475444 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Locations and Amounts of Designated and Non-Designated Derivative's Gains and Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESLocationsandAmountsofDesignatedandNonDesignatedDerivativesGainsandLossesDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Locations and Amounts of Designated and Non-Designated Derivative's Gains and Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>2476445 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Schedule of Notional Amount (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESScheduleofNotionalAmountDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Schedule of Notional Amount (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>2477446 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Schedule of Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESScheduleofDerivativeInstrumentsDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Schedule of Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>2478447 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Changes of OCI, Before Taxes, Related to Derivatives (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESChangesofOCIBeforeTaxesRelatedtoDerivativesDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Changes of OCI, Before Taxes, Related to Derivatives (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>2479448 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Offsetting of Derivative Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESOffsettingofDerivativeAssetsandLiabilitiesDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Offsetting of Derivative Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>2482449 - Disclosure - RELATED PARTY TRANSACTIONS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/RELATEDPARTYTRANSACTIONSDetails</Role>
      <ShortName>RELATED PARTY TRANSACTIONS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/RELATEDPARTYTRANSACTIONSTables</ParentRole>
      <Position>92</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>2485450 - Disclosure - SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONAdditionalInformationDetails</Role>
      <ShortName>SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>2486451 - Disclosure - SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Summary of Results for Reportable Segments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONSummaryofResultsforReportableSegmentsDetails</Role>
      <ShortName>SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Summary of Results for Reportable Segments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>2487452 - Disclosure - SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Reconciliation of Total Reportable Segments Revenue to Total Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONReconciliationofTotalReportableSegmentsRevenuetoTotalRevenueDetails</Role>
      <ShortName>SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Reconciliation of Total Reportable Segments Revenue to Total Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>2488453 - Disclosure - SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Reconciliation of Total Segment Gross Margin to Total Income Before Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONReconciliationofTotalSegmentGrossMargintoTotalIncomeBeforeIncomeTaxesDetails</Role>
      <ShortName>SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Reconciliation of Total Segment Gross Margin to Total Income Before Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>2489454 - Disclosure - SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Schedule of Revenue from External Customers (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONScheduleofRevenuefromExternalCustomersDetails</Role>
      <ShortName>SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Schedule of Revenue from External Customers (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>2490455 - Disclosure - SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Revenue from External Customers by Products and Services (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONRevenuefromExternalCustomersbyProductsandServicesDetails</Role>
      <ShortName>SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Revenue from External Customers by Products and Services (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>2491456 - Disclosure - SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Land, Property and Equipment, Net by Geographic Region (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONLandPropertyandEquipmentNetbyGeographicRegionDetails</Role>
      <ShortName>SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Land, Property and Equipment, Net by Geographic Region (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>2493457 - Disclosure - RESTRUCTURING CHARGES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.kla-tencor.com/role/RESTRUCTURINGCHARGESDetails</Role>
      <ShortName>RESTRUCTURING CHARGES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.kla-tencor.com/role/RESTRUCTURINGCHARGES</ParentRole>
      <Position>100</Position>
    </Report>
    <Report instance="klac-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9999.htm</HtmlFileName>
      <LongName>Uncategorized Items - klac-20220331.htm</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/role/uncategorizedFacts</Role>
      <ShortName>Uncategorized Items - klac-20220331.htm</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>101</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" original="klac-20220331.htm">klac-20220331.htm</File>
    <File>klac-20220331.xsd</File>
    <File>klac-20220331_cal.xml</File>
    <File>klac-20220331_def.xml</File>
    <File>klac-20220331_lab.xml</File>
    <File>klac-20220331_pre.xml</File>
    <File>klac10-qex311033122.htm</File>
    <File>klac10-qex312033122.htm</File>
    <File>klac10-qex32033122.htm</File>
    <File>klac10qex101033122.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1">http://fasb.org/srt/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="1655">http://fasb.org/us-gaap/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2021</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
