<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:01d80720-1334-4a70-b8a5-5a4304a91fc9,g:84ad83a7-0648-4bd6-bca0-342eb62df886-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.kla-tencor.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="simple" xlink:href="klac-20220930.xsd#CondensedConsolidatedBalanceSheetsUnaudited"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_a88e3407-26cd-4ec7-8154-60b8d04bcdb0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent_bc1c570a-9db0-47ee-bad9-1f1e2e2bf302" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_a88e3407-26cd-4ec7-8154-60b8d04bcdb0" xlink:to="loc_us-gaap_OtherLiabilitiesCurrent_bc1c570a-9db0-47ee-bad9-1f1e2e2bf302" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_ContractWithCustomerLiabilityCurrentSystemRevenue_9432c4bb-af2f-4064-848b-2ca59d2780d7" xlink:href="klac-20220930.xsd#klac_ContractWithCustomerLiabilityCurrentSystemRevenue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_a88e3407-26cd-4ec7-8154-60b8d04bcdb0" xlink:to="loc_klac_ContractWithCustomerLiabilityCurrentSystemRevenue_9432c4bb-af2f-4064-848b-2ca59d2780d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_ContractWithCustomerLiabilityCurrentServiceRevenue_dd5b5b87-4e68-4710-879e-cd2b6fc5769d" xlink:href="klac-20220930.xsd#klac_ContractWithCustomerLiabilityCurrentServiceRevenue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_a88e3407-26cd-4ec7-8154-60b8d04bcdb0" xlink:to="loc_klac_ContractWithCustomerLiabilityCurrentServiceRevenue_dd5b5b87-4e68-4710-879e-cd2b6fc5769d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_805898be-a401-4843-8189-833e3707645b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_a88e3407-26cd-4ec7-8154-60b8d04bcdb0" xlink:to="loc_us-gaap_AccountsPayableCurrent_805898be-a401-4843-8189-833e3707645b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_c6794859-79c0-4504-b2bc-cd9441c7df01" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_1810ef05-4c69-4c09-ab87-00e41a028e27" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_c6794859-79c0-4504-b2bc-cd9441c7df01" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_1810ef05-4c69-4c09-ab87-00e41a028e27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a38a7ef7-8102-47be-83eb-e79a285faa66" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_c6794859-79c0-4504-b2bc-cd9441c7df01" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a38a7ef7-8102-47be-83eb-e79a285faa66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStocksIncludingAdditionalPaidInCapital_cdb9f1d9-2679-4de0-bd6d-5e3265d94e3b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStocksIncludingAdditionalPaidInCapital"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_c6794859-79c0-4504-b2bc-cd9441c7df01" xlink:to="loc_us-gaap_CommonStocksIncludingAdditionalPaidInCapital_cdb9f1d9-2679-4de0-bd6d-5e3265d94e3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_a6df88f4-6a10-4038-ae8e-fc1405cd71bb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_9b23282d-be68-44cf-a407-c5aa1bc6caa6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_a6df88f4-6a10-4038-ae8e-fc1405cd71bb" xlink:to="loc_us-gaap_OtherAssetsCurrent_9b23282d-be68-44cf-a407-c5aa1bc6caa6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DebtSecuritiesAvailableForSaleAndEquitySecuritiesFairValue_020f47b6-694a-4f73-a586-69087dd2fa78" xlink:href="klac-20220930.xsd#klac_DebtSecuritiesAvailableForSaleAndEquitySecuritiesFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_a6df88f4-6a10-4038-ae8e-fc1405cd71bb" xlink:to="loc_klac_DebtSecuritiesAvailableForSaleAndEquitySecuritiesFairValue_020f47b6-694a-4f73-a586-69087dd2fa78" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_9547d078-e34f-48a2-99e5-d4e38865dcff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_a6df88f4-6a10-4038-ae8e-fc1405cd71bb" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_9547d078-e34f-48a2-99e5-d4e38865dcff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_8ce566fe-fc63-45c2-93cd-4666456c94f2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_a6df88f4-6a10-4038-ae8e-fc1405cd71bb" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_8ce566fe-fc63-45c2-93cd-4666456c94f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_7bb5a607-1921-43bc-872a-fb69bbcc01a4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_a6df88f4-6a10-4038-ae8e-fc1405cd71bb" xlink:to="loc_us-gaap_InventoryNet_7bb5a607-1921-43bc-872a-fb69bbcc01a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_eaafd468-2165-4ab5-b202-0892ee31b789" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_1d965095-2c6a-4916-9aed-3135257a315e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_eaafd468-2165-4ab5-b202-0892ee31b789" xlink:to="loc_us-gaap_Liabilities_1d965095-2c6a-4916-9aed-3135257a315e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_39446b28-73c5-43eb-8e09-eca4de900730" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_eaafd468-2165-4ab5-b202-0892ee31b789" xlink:to="loc_us-gaap_CommitmentsAndContingencies_39446b28-73c5-43eb-8e09-eca4de900730" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_26da502e-1f01-43b6-9100-5eb3b7a3cf96" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_eaafd468-2165-4ab5-b202-0892ee31b789" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_26da502e-1f01-43b6-9100-5eb3b7a3cf96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_78915224-e7b9-4ce3-97db-dc19a5685cd5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_c12f0708-8544-48f6-8d4d-3124eb8bcf33" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_78915224-e7b9-4ce3-97db-dc19a5685cd5" xlink:to="loc_us-gaap_Goodwill_c12f0708-8544-48f6-8d4d-3124eb8bcf33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_68fd8f22-ae48-4442-aab3-9fc5da47c8db" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_78915224-e7b9-4ce3-97db-dc19a5685cd5" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_68fd8f22-ae48-4442-aab3-9fc5da47c8db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_5296b6d6-8a54-47c4-803d-d96f54c852f3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_78915224-e7b9-4ce3-97db-dc19a5685cd5" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_5296b6d6-8a54-47c4-803d-d96f54c852f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_5764863b-f82d-4830-993c-661500a2c791" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_78915224-e7b9-4ce3-97db-dc19a5685cd5" xlink:to="loc_us-gaap_AssetsCurrent_5764863b-f82d-4830-993c-661500a2c791" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_f13e90e1-cd36-4d7c-a677-a3ee0e7eac4e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_78915224-e7b9-4ce3-97db-dc19a5685cd5" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_f13e90e1-cd36-4d7c-a677-a3ee0e7eac4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_ddb7f438-83c4-4703-b094-c785ee8365b9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_78915224-e7b9-4ce3-97db-dc19a5685cd5" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_ddb7f438-83c4-4703-b094-c785ee8365b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_d33574ff-d05e-496e-8759-0aa78fa60209" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_dec792e6-8f00-439d-bf41-ebfaf9f0496f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d33574ff-d05e-496e-8759-0aa78fa60209" xlink:to="loc_us-gaap_LiabilitiesCurrent_dec792e6-8f00-439d-bf41-ebfaf9f0496f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_cf3f7ccc-830f-465d-910b-fe31bf2c0487" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d33574ff-d05e-496e-8759-0aa78fa60209" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_cf3f7ccc-830f-465d-910b-fe31bf2c0487" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_7368f6d2-c90d-4445-906e-d9ddd2f67535" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d33574ff-d05e-496e-8759-0aa78fa60209" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_7368f6d2-c90d-4445-906e-d9ddd2f67535" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_bd8ca4d3-2d5a-44a5-91b0-29a1eb83b16e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d33574ff-d05e-496e-8759-0aa78fa60209" xlink:to="loc_us-gaap_LongTermDebt_bd8ca4d3-2d5a-44a5-91b0-29a1eb83b16e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_0e6920ba-81d0-4f94-b5f1-5eb2282514be" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerLiabilityNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d33574ff-d05e-496e-8759-0aa78fa60209" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_0e6920ba-81d0-4f94-b5f1-5eb2282514be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_c520f227-c20b-4de9-b9c7-c036f54d8c40" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_7e54361b-d787-4f5a-8164-c95a4b485931" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_c520f227-c20b-4de9-b9c7-c036f54d8c40" xlink:to="loc_us-gaap_StockholdersEquity_7e54361b-d787-4f5a-8164-c95a4b485931" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterest_f13b8bbf-a4a0-4c9c-96fb-b3db826e8918" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MinorityInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_c520f227-c20b-4de9-b9c7-c036f54d8c40" xlink:to="loc_us-gaap_MinorityInterest_f13b8bbf-a4a0-4c9c-96fb-b3db826e8918" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/CondensedConsolidatedStatementsofOperationsUnaudited" xlink:type="simple" xlink:href="klac-20220930.xsd#CondensedConsolidatedStatementsofOperationsUnaudited"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/CondensedConsolidatedStatementsofOperationsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_65bdd29c-738a-4797-8a17-0cc067afb61a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_750a730e-b395-4e98-adc4-c834c47aea55" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_65bdd29c-738a-4797-8a17-0cc067afb61a" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_750a730e-b395-4e98-adc4-c834c47aea55" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_e1722ee8-689a-4fe2-aaee-d7c88554323a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_65bdd29c-738a-4797-8a17-0cc067afb61a" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_e1722ee8-689a-4fe2-aaee-d7c88554323a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ec11eda2-22b7-4a36-817b-4d8eab9b1ef7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_dde9be64-1a00-4d1b-ac73-9d9bae8ef42a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ec11eda2-22b7-4a36-817b-4d8eab9b1ef7" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_dde9be64-1a00-4d1b-ac73-9d9bae8ef42a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_c145e418-0a39-4668-93f6-30e56665bf97" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CostOfRevenue"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ec11eda2-22b7-4a36-817b-4d8eab9b1ef7" xlink:to="loc_us-gaap_CostOfRevenue_c145e418-0a39-4668-93f6-30e56665bf97" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_fdbba835-ee29-4c39-bb97-5ee8d0dc2c71" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ec11eda2-22b7-4a36-817b-4d8eab9b1ef7" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_fdbba835-ee29-4c39-bb97-5ee8d0dc2c71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_e89b221b-19d1-4b71-afd9-ff98d6eb69a6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ec11eda2-22b7-4a36-817b-4d8eab9b1ef7" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_e89b221b-19d1-4b71-afd9-ff98d6eb69a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_f7a8e09d-b23c-42ec-959a-3f5347ce3496" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ec11eda2-22b7-4a36-817b-4d8eab9b1ef7" xlink:to="loc_us-gaap_InterestExpense_f7a8e09d-b23c-42ec-959a-3f5347ce3496" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_5945f95d-c9aa-4637-8a69-7d98cf4bed11" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ec11eda2-22b7-4a36-817b-4d8eab9b1ef7" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_5945f95d-c9aa-4637-8a69-7d98cf4bed11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_a381751f-904d-40d1-bc42-c2075d75addc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ec11eda2-22b7-4a36-817b-4d8eab9b1ef7" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_a381751f-904d-40d1-bc42-c2075d75addc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_e15e1cfa-af50-4942-ad54-9d766ff9bedc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_2425a154-0565-4077-8fb5-6fd87f1f04b0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_e15e1cfa-af50-4942-ad54-9d766ff9bedc" xlink:to="loc_us-gaap_ProfitLoss_2425a154-0565-4077-8fb5-6fd87f1f04b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_10e144d3-4652-4f08-9c2c-6911a0f641d2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_e15e1cfa-af50-4942-ad54-9d766ff9bedc" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_10e144d3-4652-4f08-9c2c-6911a0f641d2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeUnaudited" xlink:type="simple" xlink:href="klac-20220930.xsd#CondensedConsolidatedStatementsofComprehensiveIncomeUnaudited"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_6da435dd-7457-4fe2-a83e-1e5380e4ca8e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_16bede2e-a135-424c-9ca6-5a5fd8e7b864" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_6da435dd-7457-4fe2-a83e-1e5380e4ca8e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_16bede2e-a135-424c-9ca6-5a5fd8e7b864" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_d9242dfa-d860-4810-9e9f-0f783b570974" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_6da435dd-7457-4fe2-a83e-1e5380e4ca8e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_d9242dfa-d860-4810-9e9f-0f783b570974" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_f7ceae98-4f30-4bd4-ba5d-c3d79b089dbf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_6da435dd-7457-4fe2-a83e-1e5380e4ca8e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_f7ceae98-4f30-4bd4-ba5d-c3d79b089dbf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax_8da5a785-4036-4262-9a7b-d67214a57aa0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_6da435dd-7457-4fe2-a83e-1e5380e4ca8e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax_8da5a785-4036-4262-9a7b-d67214a57aa0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_93baa2e5-e7d4-427b-b729-bcb591d1f431" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_eb044495-6a27-46f2-b29f-6da6491af385" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_93baa2e5-e7d4-427b-b729-bcb591d1f431" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_eb044495-6a27-46f2-b29f-6da6491af385" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_520a6f3e-157d-47a4-8148-06f5070978d1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_93baa2e5-e7d4-427b-b729-bcb591d1f431" xlink:to="loc_us-gaap_ProfitLoss_520a6f3e-157d-47a4-8148-06f5070978d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_8e4d5866-aa9e-4859-8150-b10d97f6d412" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_93baa2e5-e7d4-427b-b729-bcb591d1f431" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_8e4d5866-aa9e-4859-8150-b10d97f6d412" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_154ab7da-9c74-4143-ae82-b6fb02760fbc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_8bdb4000-7227-4410-963b-aa9453a3cd80" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_154ab7da-9c74-4143-ae82-b6fb02760fbc" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_8bdb4000-7227-4410-963b-aa9453a3cd80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_f1f385f1-fe36-4d28-bba9-e99434241ffb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_154ab7da-9c74-4143-ae82-b6fb02760fbc" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_f1f385f1-fe36-4d28-bba9-e99434241ffb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesTax_36c817a5-950a-40f1-be2e-1af89ae71584" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_154ab7da-9c74-4143-ae82-b6fb02760fbc" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesTax_36c817a5-950a-40f1-be2e-1af89ae71584" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_58fd743c-be77-4a02-973f-8609103a9e68" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax_a613a876-d8c2-49c1-90cc-3137aa2433d5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_58fd743c-be77-4a02-973f-8609103a9e68" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax_a613a876-d8c2-49c1-90cc-3137aa2433d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_81bf9214-3507-4a9a-99cb-73153c164e62" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_58fd743c-be77-4a02-973f-8609103a9e68" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_81bf9214-3507-4a9a-99cb-73153c164e62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax_9acd35d2-68c4-4ffb-9b92-cc6f9833ee75" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTax_893a5b2c-6c1d-4c3a-8d78-b93c696c6773" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax_9acd35d2-68c4-4ffb-9b92-cc6f9833ee75" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTax_893a5b2c-6c1d-4c3a-8d78-b93c696c6773" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_e636dc7a-5e10-497d-9d18-af03f27d9d91" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax_9acd35d2-68c4-4ffb-9b92-cc6f9833ee75" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_e636dc7a-5e10-497d-9d18-af03f27d9d91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_5dee5277-405c-430a-b6b8-a96eff4cd0f3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax_9acd35d2-68c4-4ffb-9b92-cc6f9833ee75" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_5dee5277-405c-430a-b6b8-a96eff4cd0f3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/CondensedConsolidatedStatementsofCashFlowsUnaudited" xlink:type="simple" xlink:href="klac-20220930.xsd#CondensedConsolidatedStatementsofCashFlowsUnaudited"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/CondensedConsolidatedStatementsofCashFlowsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_ce675c05-cc72-4841-a449-8c26792506b1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b15f4042-fd8c-4ec3-ad6b-e148bf8e030a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_ce675c05-cc72-4841-a449-8c26792506b1" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b15f4042-fd8c-4ec3-ad6b-e148bf8e030a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a2be9b88-eae0-4022-890a-c448a3b39e8d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_ce675c05-cc72-4841-a449-8c26792506b1" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a2be9b88-eae0-4022-890a-c448a3b39e8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_c3665fbf-5550-4f62-bfaf-822083234d04" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_ce675c05-cc72-4841-a449-8c26792506b1" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_c3665fbf-5550-4f62-bfaf-822083234d04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_94e8bcc4-18f4-4b97-82e0-59ddde34fe25" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_ce675c05-cc72-4841-a449-8c26792506b1" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_94e8bcc4-18f4-4b97-82e0-59ddde34fe25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a0a2e160-f2a5-4505-b037-fefdfa6fd42f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_a8004d47-b31f-4e35-a087-502516e3ed81" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a0a2e160-f2a5-4505-b037-fefdfa6fd42f" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_a8004d47-b31f-4e35-a087-502516e3ed81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireOtherInvestments_ef35ff65-2998-41ca-9c47-d5351ae0ad22" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireOtherInvestments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a0a2e160-f2a5-4505-b037-fefdfa6fd42f" xlink:to="loc_us-gaap_PaymentsToAcquireOtherInvestments_ef35ff65-2998-41ca-9c47-d5351ae0ad22" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_2127bc12-7fc3-4897-b59a-e09326c4ef7b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromDivestitureOfBusinesses"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a0a2e160-f2a5-4505-b037-fefdfa6fd42f" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_2127bc12-7fc3-4897-b59a-e09326c4ef7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_2a9f25da-e88c-4eaf-b394-de1d8d3a9ad7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a0a2e160-f2a5-4505-b037-fefdfa6fd42f" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_2a9f25da-e88c-4eaf-b394-de1d8d3a9ad7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_b51fe786-2e5f-4067-af52-69bd7604eb24" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a0a2e160-f2a5-4505-b037-fefdfa6fd42f" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_b51fe786-2e5f-4067-af52-69bd7604eb24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_7f7bf0e6-b770-44ec-a113-eea3ddb37bc6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a0a2e160-f2a5-4505-b037-fefdfa6fd42f" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_7f7bf0e6-b770-44ec-a113-eea3ddb37bc6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_deea7773-3ec5-4ce3-9ebd-1766562f5db7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a0a2e160-f2a5-4505-b037-fefdfa6fd42f" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_deea7773-3ec5-4ce3-9ebd-1766562f5db7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_0bb72c2c-3eac-4de4-8a8b-5d72277f7e5b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a0a2e160-f2a5-4505-b037-fefdfa6fd42f" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_0bb72c2c-3eac-4de4-8a8b-5d72277f7e5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfOtherInvestments_b9aa763e-eb80-4126-bbd0-ac9ba4394b28" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleAndMaturityOfOtherInvestments"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a0a2e160-f2a5-4505-b037-fefdfa6fd42f" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfOtherInvestments_b9aa763e-eb80-4126-bbd0-ac9ba4394b28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_IncreaseDecreaseInAccountsReceivableExcludingAcquisitionRelated_58c144e8-2c42-4692-a589-0ebc0c42d6e8" xlink:href="klac-20220930.xsd#klac_IncreaseDecreaseInAccountsReceivableExcludingAcquisitionRelated"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:to="loc_klac_IncreaseDecreaseInAccountsReceivableExcludingAcquisitionRelated_58c144e8-2c42-4692-a589-0ebc0c42d6e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetImpairmentCharges_baf9edfb-a1c2-498b-90d8-2c57e3164e53" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetImpairmentCharges"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:to="loc_us-gaap_OtherAssetImpairmentCharges_baf9edfb-a1c2-498b-90d8-2c57e3164e53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_2863f3a1-c4a7-49b8-a9aa-d1dc90c50233" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:to="loc_us-gaap_ShareBasedCompensation_2863f3a1-c4a7-49b8-a9aa-d1dc90c50233" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_caee4943-af3d-41bf-b5de-9181d3c6a830" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_caee4943-af3d-41bf-b5de-9181d3c6a830" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_IncreaseDecreaseInContractWithCustomerLiabilitySystemRevenue_f92e6daf-2b7a-4f61-a784-807d68a061ed" xlink:href="klac-20220930.xsd#klac_IncreaseDecreaseInContractWithCustomerLiabilitySystemRevenue"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:to="loc_klac_IncreaseDecreaseInContractWithCustomerLiabilitySystemRevenue_f92e6daf-2b7a-4f61-a784-807d68a061ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_149c3ce9-24d5-4868-80ae-bf55899f48f3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_149c3ce9-24d5-4868-80ae-bf55899f48f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfBusiness_0e9f61e7-11e8-4ca3-9400-344bf6ae5a12" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnSaleOfBusiness"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:to="loc_us-gaap_GainLossOnSaleOfBusiness_0e9f61e7-11e8-4ca3-9400-344bf6ae5a12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_ce57481b-a240-4aef-9cb3-b296ff58bc07" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:to="loc_us-gaap_ProfitLoss_ce57481b-a240-4aef-9cb3-b296ff58bc07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_06816926-502d-478b-adda-4de70cb8c69d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_06816926-502d-478b-adda-4de70cb8c69d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_0f6d4989-3269-44e7-8b0e-85be7999664b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_0f6d4989-3269-44e7-8b0e-85be7999664b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_86a32429-ff4b-43f7-bb75-c30dc2f00d0f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_86a32429-ff4b-43f7-bb75-c30dc2f00d0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_1238c92c-ae51-4b1b-bb5d-94341eac9a85" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_1238c92c-ae51-4b1b-bb5d-94341eac9a85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_IncreaseDecreaseInContractWithCustomerLiabilityServiceRevenue_53a139da-9745-441a-8e83-80fa62ea0742" xlink:href="klac-20220930.xsd#klac_IncreaseDecreaseInContractWithCustomerLiabilityServiceRevenue"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:to="loc_klac_IncreaseDecreaseInContractWithCustomerLiabilityServiceRevenue_53a139da-9745-441a-8e83-80fa62ea0742" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossUnrealized_337c4ccc-7342-4092-ab83-2b9b797ecc2b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignCurrencyTransactionGainLossUnrealized"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossUnrealized_337c4ccc-7342-4092-ab83-2b9b797ecc2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_afa9f4a3-8dbf-4ed5-bc37-7ed9baabe44a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_afa9f4a3-8dbf-4ed5-bc37-7ed9baabe44a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_ProceedsFromDisposalOfNonControllingInterest_f70b61f5-4e6c-430b-9e04-ca15cdfd6cc3" xlink:href="klac-20220930.xsd#klac_ProceedsFromDisposalOfNonControllingInterest"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b63e02a3-3737-4a44-a12c-928b9beb512b" xlink:to="loc_klac_ProceedsFromDisposalOfNonControllingInterest_f70b61f5-4e6c-430b-9e04-ca15cdfd6cc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a379d39b-cb7a-414c-b385-2672bce1b795" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_c4d0d141-d10e-48a8-9b6f-72c5d156f23f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a379d39b-cb7a-414c-b385-2672bce1b795" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_c4d0d141-d10e-48a8-9b6f-72c5d156f23f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_b6e83d27-511f-4801-a21f-b25d69becede" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromLongTermLinesOfCredit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a379d39b-cb7a-414c-b385-2672bce1b795" xlink:to="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_b6e83d27-511f-4801-a21f-b25d69becede" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_bf55b67b-16ff-42fe-8d20-a5ce8c6af367" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a379d39b-cb7a-414c-b385-2672bce1b795" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_bf55b67b-16ff-42fe-8d20-a5ce8c6af367" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_6feba9b9-b515-4c5e-8c05-29c2c62f5054" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a379d39b-cb7a-414c-b385-2672bce1b795" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_6feba9b9-b515-4c5e-8c05-29c2c62f5054" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_ec7f9dbc-0974-4b6c-ab29-1a895e281bde" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a379d39b-cb7a-414c-b385-2672bce1b795" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_ec7f9dbc-0974-4b6c-ab29-1a895e281bde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_f912fd19-09e3-49cb-a8ca-b3d9e2da6140" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a379d39b-cb7a-414c-b385-2672bce1b795" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_f912fd19-09e3-49cb-a8ca-b3d9e2da6140" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_c6f9d0c8-ed98-4921-ab85-b531668e9364" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a379d39b-cb7a-414c-b385-2672bce1b795" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_c6f9d0c8-ed98-4921-ab85-b531668e9364" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToMinorityShareholders_e439d79b-3614-4abb-a0a6-8cbefc891d68" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToMinorityShareholders"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a379d39b-cb7a-414c-b385-2672bce1b795" xlink:to="loc_us-gaap_PaymentsToMinorityShareholders_e439d79b-3614-4abb-a0a6-8cbefc891d68" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/FAIRVALUEMEASUREMENTSDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#FAIRVALUEMEASUREMENTSDetails"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/FAIRVALUEMEASUREMENTSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_4fb99fbd-bc3d-4278-b62a-b83e87821688" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_ExecutiveDeferredSavingsPlan_860591ab-a848-419e-a132-1cda17ff5158" xlink:href="klac-20220930.xsd#klac_ExecutiveDeferredSavingsPlan"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_4fb99fbd-bc3d-4278-b62a-b83e87821688" xlink:to="loc_klac_ExecutiveDeferredSavingsPlan_860591ab-a848-419e-a132-1cda17ff5158" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_81cb0dee-04e8-4834-961f-6d38e4a762cb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_4fb99fbd-bc3d-4278-b62a-b83e87821688" xlink:to="loc_us-gaap_DerivativeAssets_81cb0dee-04e8-4834-961f-6d38e4a762cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CashEquivalentsAndMarketableSecuritiesFairValueDisclosure_1fa910f1-e87c-4312-9e79-c62281d131ac" xlink:href="klac-20220930.xsd#klac_CashEquivalentsAndMarketableSecuritiesFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_4fb99fbd-bc3d-4278-b62a-b83e87821688" xlink:to="loc_klac_CashEquivalentsAndMarketableSecuritiesFairValueDisclosure_1fa910f1-e87c-4312-9e79-c62281d131ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CashEquivalentsAndMarketableSecuritiesFairValueDisclosure_daf18025-d46c-4d3a-867b-230da36d69ef" xlink:href="klac-20220930.xsd#klac_CashEquivalentsAndMarketableSecuritiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_a93bd145-ba4c-4f45-9e7d-d0b31efd99f5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_klac_CashEquivalentsAndMarketableSecuritiesFairValueDisclosure_daf18025-d46c-4d3a-867b-230da36d69ef" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_a93bd145-ba4c-4f45-9e7d-d0b31efd99f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_fd62d6f7-2bd9-4002-b561-cd250e1aec85" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InvestmentsFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_klac_CashEquivalentsAndMarketableSecuritiesFairValueDisclosure_daf18025-d46c-4d3a-867b-230da36d69ef" xlink:to="loc_us-gaap_InvestmentsFairValueDisclosure_fd62d6f7-2bd9-4002-b561-cd250e1aec85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_b1b02bd9-0985-47ff-9541-d08bc3b3ab48" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_36327635-54a8-42ab-a4da-5e5446027de1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_b1b02bd9-0985-47ff-9541-d08bc3b3ab48" xlink:to="loc_us-gaap_DerivativeLiabilities_36327635-54a8-42ab-a4da-5e5446027de1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_b01ab5b9-3ad2-454f-ac8e-0c843bc3a9f9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_b1b02bd9-0985-47ff-9541-d08bc3b3ab48" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_b01ab5b9-3ad2-454f-ac8e-0c843bc3a9f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_BusinessCombinationContingentConsiderationLiabilityDeferredPayment_78c74709-1ffc-4ed2-868d-fcee0cd36eb7" xlink:href="klac-20220930.xsd#klac_BusinessCombinationContingentConsiderationLiabilityDeferredPayment"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_b1b02bd9-0985-47ff-9541-d08bc3b3ab48" xlink:to="loc_klac_BusinessCombinationContingentConsiderationLiabilityDeferredPayment_78c74709-1ffc-4ed2-868d-fcee0cd36eb7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/FINANCIALSTATEMENTCOMPONENTSBalanceSheetComponentsDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#FINANCIALSTATEMENTCOMPONENTSBalanceSheetComponentsDetails"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/FINANCIALSTATEMENTCOMPONENTSBalanceSheetComponentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent_54c42b05-50af-486b-a733-6ca646697307" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPensionPlanLiabilitiesCurrent_2480a3d4-8fbd-40b6-9588-baaa3b653802" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPensionPlanLiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_54c42b05-50af-486b-a733-6ca646697307" xlink:to="loc_us-gaap_DefinedBenefitPensionPlanLiabilitiesCurrent_2480a3d4-8fbd-40b6-9588-baaa3b653802" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_24692c96-c131-4ccb-abba-ec23530e7a69" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_54c42b05-50af-486b-a733-6ca646697307" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_24692c96-c131-4ccb-abba-ec23530e7a69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_5113024d-1048-4be3-8d5a-199983a8a6c4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_54c42b05-50af-486b-a733-6ca646697307" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_5113024d-1048-4be3-8d5a-199983a8a6c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedMarketingCostsCurrent_12845f0e-287b-457f-b727-8e7ada9f43c2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedMarketingCostsCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_54c42b05-50af-486b-a733-6ca646697307" xlink:to="loc_us-gaap_AccruedMarketingCostsCurrent_12845f0e-287b-457f-b727-8e7ada9f43c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesPayableCurrent_264d29d5-0cdc-4633-bc62-d39d810436fd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TaxesPayableCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_54c42b05-50af-486b-a733-6ca646697307" xlink:to="loc_us-gaap_TaxesPayableCurrent_264d29d5-0cdc-4633-bc62-d39d810436fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendsPayableCurrent_677ed4bc-6700-4987-a150-29d972d0ac25" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestAndDividendsPayableCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_54c42b05-50af-486b-a733-6ca646697307" xlink:to="loc_us-gaap_InterestAndDividendsPayableCurrent_677ed4bc-6700-4987-a150-29d972d0ac25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_5483bcc9-3177-4442-b7ae-ed57e65d8a66" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_54c42b05-50af-486b-a733-6ca646697307" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_5483bcc9-3177-4442-b7ae-ed57e65d8a66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_f612f715-842a-4b60-b13f-fb1cb07e3658" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationPlanAssets_1801997b-c855-4f1b-a026-0fad27089db6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredCompensationPlanAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_f612f715-842a-4b60-b13f-fb1cb07e3658" xlink:to="loc_us-gaap_DeferredCompensationPlanAssets_1801997b-c855-4f1b-a026-0fad27089db6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_19d75bad-bcd0-4ae9-b0c6-81f7eb0ae5cc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_f612f715-842a-4b60-b13f-fb1cb07e3658" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_19d75bad-bcd0-4ae9-b0c6-81f7eb0ae5cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_d93dc310-4d5c-4262-b824-fa0b8b45a059" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsMiscellaneousNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_f612f715-842a-4b60-b13f-fb1cb07e3658" xlink:to="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_d93dc310-4d5c-4262-b824-fa0b8b45a059" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_b1277864-f123-4144-876c-dfb187298f62" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPensionPlanLiabilitiesNoncurrent_b82d2050-4d2c-4ad7-ba7d-86166f4c03d1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPensionPlanLiabilitiesNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_b1277864-f123-4144-876c-dfb187298f62" xlink:to="loc_us-gaap_DefinedBenefitPensionPlanLiabilitiesNoncurrent_b82d2050-4d2c-4ad7-ba7d-86166f4c03d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesNoncurrent_a9c8ff32-6492-4b76-8cc7-05f02e7829f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedIncomeTaxesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_b1277864-f123-4144-876c-dfb187298f62" xlink:to="loc_us-gaap_AccruedIncomeTaxesNoncurrent_a9c8ff32-6492-4b76-8cc7-05f02e7829f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_OtherLiabilitiesMiscellaneousNoncurrent_c7739bed-1f79-44a6-85b5-41d53f6c27f7" xlink:href="klac-20220930.xsd#klac_OtherLiabilitiesMiscellaneousNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_b1277864-f123-4144-876c-dfb187298f62" xlink:to="loc_klac_OtherLiabilitiesMiscellaneousNoncurrent_c7739bed-1f79-44a6-85b5-41d53f6c27f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_344faa92-79fc-4f6d-9842-d7a6f9fa5925" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_b1277864-f123-4144-876c-dfb187298f62" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_344faa92-79fc-4f6d-9842-d7a6f9fa5925" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CustomerCreditsAndAdvancesNoncurrent_edbda697-62b8-4566-ad77-b63daa506637" xlink:href="klac-20220930.xsd#klac_CustomerCreditsAndAdvancesNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_b1277864-f123-4144-876c-dfb187298f62" xlink:to="loc_klac_CustomerCreditsAndAdvancesNoncurrent_edbda697-62b8-4566-ad77-b63daa506637" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_f8627f00-ef83-4db3-92ca-53cf477f8e5d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableGrossCurrent_947c8f12-438e-43b0-892d-d2ce7367b8a7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsReceivableGrossCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_f8627f00-ef83-4db3-92ca-53cf477f8e5d" xlink:to="loc_us-gaap_AccountsReceivableGrossCurrent_947c8f12-438e-43b0-892d-d2ce7367b8a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_54d43ef8-e860-4bd1-899b-334b4876eb19" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_f8627f00-ef83-4db3-92ca-53cf477f8e5d" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_54d43ef8-e860-4bd1-899b-334b4876eb19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_4e21a75c-eefe-4738-9242-71fa67fc9dad" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_c1f1ea82-3a97-4ebf-8749-ba929cbafc0a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_4e21a75c-eefe-4738-9242-71fa67fc9dad" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_c1f1ea82-3a97-4ebf-8749-ba929cbafc0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_9e1f3eed-a6b5-472b-98c4-249456a0c44e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_4e21a75c-eefe-4738-9242-71fa67fc9dad" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_9e1f3eed-a6b5-472b-98c4-249456a0c44e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_1af36919-21b2-45dd-8f04-8b113919a1cc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetCurrent_3c6fee8c-2c9d-487c-a490-39737bdf47f1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerAssetNetCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsCurrent_1af36919-21b2-45dd-8f04-8b113919a1cc" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetCurrent_3c6fee8c-2c9d-487c-a490-39737bdf47f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostNet_0146a10a-499a-4165-bfe9-0c5de9d2f8c4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CapitalizedContractCostNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsCurrent_1af36919-21b2-45dd-8f04-8b113919a1cc" xlink:to="loc_us-gaap_CapitalizedContractCostNet_0146a10a-499a-4165-bfe9-0c5de9d2f8c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrent_1e5c1bf5-516c-47b0-973c-2183e0102cca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PrepaidExpenseCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsCurrent_1af36919-21b2-45dd-8f04-8b113919a1cc" xlink:to="loc_us-gaap_PrepaidExpenseCurrent_1e5c1bf5-516c-47b0-973c-2183e0102cca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidTaxes_bbdd7fef-cf9c-4bba-a62a-03b521b2a1d3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PrepaidTaxes"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsCurrent_1af36919-21b2-45dd-8f04-8b113919a1cc" xlink:to="loc_us-gaap_PrepaidTaxes_bbdd7fef-cf9c-4bba-a62a-03b521b2a1d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneousCurrent_92a6e678-6084-4b4d-8870-6e57e20f9e5d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsMiscellaneousCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsCurrent_1af36919-21b2-45dd-8f04-8b113919a1cc" xlink:to="loc_us-gaap_OtherAssetsMiscellaneousCurrent_92a6e678-6084-4b4d-8870-6e57e20f9e5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_9600d63d-f2ae-478e-847a-0f97a4e602a9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Land_9b54696f-f0c1-4bb9-ae9a-a1223d51b852" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Land"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_9600d63d-f2ae-478e-847a-0f97a4e602a9" xlink:to="loc_us-gaap_Land_9b54696f-f0c1-4bb9-ae9a-a1223d51b852" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_BuildingsAndLeaseholdImprovementsGross_37cfe00d-5c4d-43ce-8e66-954939b369db" xlink:href="klac-20220930.xsd#klac_BuildingsAndLeaseholdImprovementsGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_9600d63d-f2ae-478e-847a-0f97a4e602a9" xlink:to="loc_klac_BuildingsAndLeaseholdImprovementsGross_37cfe00d-5c4d-43ce-8e66-954939b369db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentGross_1af56ed6-d5db-4528-8b29-05a9a840d30b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MachineryAndEquipmentGross"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_9600d63d-f2ae-478e-847a-0f97a4e602a9" xlink:to="loc_us-gaap_MachineryAndEquipmentGross_1af56ed6-d5db-4528-8b29-05a9a840d30b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesGross_85591d1f-7667-4809-9363-be9c355487fd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FurnitureAndFixturesGross"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_9600d63d-f2ae-478e-847a-0f97a4e602a9" xlink:to="loc_us-gaap_FurnitureAndFixturesGross_85591d1f-7667-4809-9363-be9c355487fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressGross_0e420823-6ace-4fd8-bed1-d1325d204227" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConstructionInProgressGross"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_9600d63d-f2ae-478e-847a-0f97a4e602a9" xlink:to="loc_us-gaap_ConstructionInProgressGross_0e420823-6ace-4fd8-bed1-d1325d204227" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_849c9ae6-882b-40fc-b144-59bfced4732b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInventoriesSpareParts_97145c45-0f60-4f89-849f-8555147bcbee" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherInventoriesSpareParts"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_849c9ae6-882b-40fc-b144-59bfced4732b" xlink:to="loc_us-gaap_OtherInventoriesSpareParts_97145c45-0f60-4f89-849f-8555147bcbee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterials_0fdc0ba2-4f13-401d-9d44-2ccfcbd32540" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryRawMaterials"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_849c9ae6-882b-40fc-b144-59bfced4732b" xlink:to="loc_us-gaap_InventoryRawMaterials_0fdc0ba2-4f13-401d-9d44-2ccfcbd32540" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcess_a58e741a-2d48-43f2-a669-1e53c8a9d5d6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryWorkInProcess"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_849c9ae6-882b-40fc-b144-59bfced4732b" xlink:to="loc_us-gaap_InventoryWorkInProcess_a58e741a-2d48-43f2-a669-1e53c8a9d5d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoods_a84609fb-2c1d-4588-a08f-251ce026ffc4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryFinishedGoods"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_849c9ae6-882b-40fc-b144-59bfced4732b" xlink:to="loc_us-gaap_InventoryFinishedGoods_a84609fb-2c1d-4588-a08f-251ce026ffc4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/MARKETABLESECURITIESAmortizedCostandFairValueDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#MARKETABLESECURITIESAmortizedCostandFairValueDetails"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/MARKETABLESECURITIESAmortizedCostandFairValueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_244dcdd4-30f7-4a4c-8359-fba0f3f56ef8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_7d91b439-cd9b-4add-9fa2-35ae1fff2296" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_244dcdd4-30f7-4a4c-8359-fba0f3f56ef8" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_7d91b439-cd9b-4add-9fa2-35ae1fff2296" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_d143659f-12a0-4060-9c2e-553d062ec71e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_244dcdd4-30f7-4a4c-8359-fba0f3f56ef8" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_d143659f-12a0-4060-9c2e-553d062ec71e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_651a077a-16f1-44e0-9d0e-15ad3167a9ae" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_244dcdd4-30f7-4a4c-8359-fba0f3f56ef8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_651a077a-16f1-44e0-9d0e-15ad3167a9ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashEquivalentsAtCarryingValue_fc925075-3b44-48ae-a2be-e9e6bc004cf2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashEquivalentsAtCarryingValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CashEquivalentsFairValueDisclosure_6d2a862b-e752-499d-b8c5-f1ac79a6ffd2" xlink:href="klac-20220930.xsd#klac_CashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashEquivalentsAtCarryingValue_fc925075-3b44-48ae-a2be-e9e6bc004cf2" xlink:to="loc_klac_CashEquivalentsFairValueDisclosure_6d2a862b-e752-499d-b8c5-f1ac79a6ffd2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CashEquivalentsGrossUnrealizedGains_fa50c521-ef66-4549-9574-f9092ed365af" xlink:href="klac-20220930.xsd#klac_CashEquivalentsGrossUnrealizedGains"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashEquivalentsAtCarryingValue_fc925075-3b44-48ae-a2be-e9e6bc004cf2" xlink:to="loc_klac_CashEquivalentsGrossUnrealizedGains_fa50c521-ef66-4549-9574-f9092ed365af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CashEquivalentsGrossUnrealizedLosses_825cea3c-9b65-4f00-aced-022fbefb7091" xlink:href="klac-20220930.xsd#klac_CashEquivalentsGrossUnrealizedLosses"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashEquivalentsAtCarryingValue_fc925075-3b44-48ae-a2be-e9e6bc004cf2" xlink:to="loc_klac_CashEquivalentsGrossUnrealizedLosses_825cea3c-9b65-4f00-aced-022fbefb7091" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_MarketableSecuritiesExcludingTimeDepositsAmortizedCost_3334f5d8-0437-4e8c-814f-7ef8356db293" xlink:href="klac-20220930.xsd#klac_MarketableSecuritiesExcludingTimeDepositsAmortizedCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_8faf3ac1-c973-467e-9236-8d7c5cd67d65" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_klac_MarketableSecuritiesExcludingTimeDepositsAmortizedCost_3334f5d8-0437-4e8c-814f-7ef8356db293" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_8faf3ac1-c973-467e-9236-8d7c5cd67d65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiCost_9bb1385a-6483-48a8-acbe-4b3d49b8a3d9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquitySecuritiesFvNiCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_klac_MarketableSecuritiesExcludingTimeDepositsAmortizedCost_3334f5d8-0437-4e8c-814f-7ef8356db293" xlink:to="loc_us-gaap_EquitySecuritiesFvNiCost_9bb1385a-6483-48a8-acbe-4b3d49b8a3d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_MoneyMarketFundsAndOther_eedcdaf2-cdab-4500-b3ca-05a3e6929455" xlink:href="klac-20220930.xsd#klac_MoneyMarketFundsAndOther"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_klac_MarketableSecuritiesExcludingTimeDepositsAmortizedCost_3334f5d8-0437-4e8c-814f-7ef8356db293" xlink:to="loc_klac_MoneyMarketFundsAndOther_eedcdaf2-cdab-4500-b3ca-05a3e6929455" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiCost_0b4c4b36-bd13-436a-8f7f-2f627ec961b0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquitySecuritiesFvNiCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_EquitySecuritiesFVNIAccumulatedGrossUnrealizedGain_24a61e7a-a0c7-45a5-b0c1-1d46fc150b84" xlink:href="klac-20220930.xsd#klac_EquitySecuritiesFVNIAccumulatedGrossUnrealizedGain"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EquitySecuritiesFvNiCost_0b4c4b36-bd13-436a-8f7f-2f627ec961b0" xlink:to="loc_klac_EquitySecuritiesFVNIAccumulatedGrossUnrealizedGain_24a61e7a-a0c7-45a5-b0c1-1d46fc150b84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_EquitySecuritiesFVNIAccumulatedGrossUnrealizedLoss_37c79ca2-65c4-4706-b354-f5c5a8b6e0cf" xlink:href="klac-20220930.xsd#klac_EquitySecuritiesFVNIAccumulatedGrossUnrealizedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EquitySecuritiesFvNiCost_0b4c4b36-bd13-436a-8f7f-2f627ec961b0" xlink:to="loc_klac_EquitySecuritiesFVNIAccumulatedGrossUnrealizedLoss_37c79ca2-65c4-4706-b354-f5c5a8b6e0cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiCurrentAndNoncurrent_621a727d-987f-4030-82d6-aab37b8ac015" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquitySecuritiesFvNiCurrentAndNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EquitySecuritiesFvNiCost_0b4c4b36-bd13-436a-8f7f-2f627ec961b0" xlink:to="loc_us-gaap_EquitySecuritiesFvNiCurrentAndNoncurrent_621a727d-987f-4030-82d6-aab37b8ac015" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/MARKETABLESECURITIESContinuousUnrealizedLossPositionDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#MARKETABLESECURITIESContinuousUnrealizedLossPositionDetails"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/MARKETABLESECURITIESContinuousUnrealizedLossPositionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_e051fd8f-0331-4241-b288-7e43a865f564" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_6000a3a4-bc71-41d5-aa63-532e40492492" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_e051fd8f-0331-4241-b288-7e43a865f564" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_6000a3a4-bc71-41d5-aa63-532e40492492" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_63106854-7308-4f9c-ab4c-5343db9b8dd1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_e051fd8f-0331-4241-b288-7e43a865f564" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_63106854-7308-4f9c-ab4c-5343db9b8dd1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_832cabf7-8247-4f9b-97fc-ae289d87c3e5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_b0ef62c3-4000-4fa6-bbca-9d516de88d0f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_832cabf7-8247-4f9b-97fc-ae289d87c3e5" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_b0ef62c3-4000-4fa6-bbca-9d516de88d0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_784a7fad-7fdd-4edf-970a-0e1f9e0ecba4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_832cabf7-8247-4f9b-97fc-ae289d87c3e5" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_784a7fad-7fdd-4edf-970a-0e1f9e0ecba4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/MARKETABLESECURITIESContractualMaturitiesDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#MARKETABLESECURITIESContractualMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/MARKETABLESECURITIESContractualMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_f4380987-a7d3-43a3-8ba2-37f1c3bd0744" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_41f555d4-d606-4df2-8a16-de5cdd298210" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_f4380987-a7d3-43a3-8ba2-37f1c3bd0744" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_41f555d4-d606-4df2-8a16-de5cdd298210" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DebtSecuritiesAvailableForSaleMaturityAllocatedAndSingleMaturityDateAfterOneThroughThreeYearsFairValue_e02c09a9-5f14-4c1c-949b-c50141b91688" xlink:href="klac-20220930.xsd#klac_DebtSecuritiesAvailableForSaleMaturityAllocatedAndSingleMaturityDateAfterOneThroughThreeYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_f4380987-a7d3-43a3-8ba2-37f1c3bd0744" xlink:to="loc_klac_DebtSecuritiesAvailableForSaleMaturityAllocatedAndSingleMaturityDateAfterOneThroughThreeYearsFairValue_e02c09a9-5f14-4c1c-949b-c50141b91688" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_d47aec0b-c66e-4359-a6b9-90fd60ea3fce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DebtSecuritiesAvailableForSaleMaturityAllocatedAndSingleMaturityDateAfterOneThroughThreeYearsAmortizedCost_2b66e732-b98a-47f4-af59-2e6d1ec87b0d" xlink:href="klac-20220930.xsd#klac_DebtSecuritiesAvailableForSaleMaturityAllocatedAndSingleMaturityDateAfterOneThroughThreeYearsAmortizedCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_d47aec0b-c66e-4359-a6b9-90fd60ea3fce" xlink:to="loc_klac_DebtSecuritiesAvailableForSaleMaturityAllocatedAndSingleMaturityDateAfterOneThroughThreeYearsAmortizedCost_2b66e732-b98a-47f4-af59-2e6d1ec87b0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_d6cc0560-504d-42ca-bff9-b3888ee00aa4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_d47aec0b-c66e-4359-a6b9-90fd60ea3fce" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_d6cc0560-504d-42ca-bff9-b3888ee00aa4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSPurchasedIntangibleAssetsDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#GOODWILLANDPURCHASEDINTANGIBLEASSETSPurchasedIntangibleAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSPurchasedIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0ce13124-e869-47d8-8ba2-2aec1098d7ba" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_8501eacb-4ca2-4c10-b14d-f1c42b74e79b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0ce13124-e869-47d8-8ba2-2aec1098d7ba" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_8501eacb-4ca2-4c10-b14d-f1c42b74e79b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_FiniteLivedIntangibleAssetsAccumulatedAmortizationAndOtherAccumulatedAdjustment_5d538d5e-156e-4dd9-ab96-cdfb32649bfb" xlink:href="klac-20220930.xsd#klac_FiniteLivedIntangibleAssetsAccumulatedAmortizationAndOtherAccumulatedAdjustment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0ce13124-e869-47d8-8ba2-2aec1098d7ba" xlink:to="loc_klac_FiniteLivedIntangibleAssetsAccumulatedAmortizationAndOtherAccumulatedAdjustment_5d538d5e-156e-4dd9-ab96-cdfb32649bfb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_b06a5e04-cd1b-4e5b-9ff0-676b2f35ccb5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_d1ee9564-827d-4fca-9c27-6ada9b682b34" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_b06a5e04-cd1b-4e5b-9ff0-676b2f35ccb5" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_d1ee9564-827d-4fca-9c27-6ada9b682b34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_dc9cc1b6-bb3a-4014-a80f-470811f66a05" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_b06a5e04-cd1b-4e5b-9ff0-676b2f35ccb5" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_dc9cc1b6-bb3a-4014-a80f-470811f66a05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_f6ae5b8d-cf6d-42a2-b900-62a24da3c626" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_3729a631-8e51-4195-90fb-afd7b9a085c0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_f6ae5b8d-cf6d-42a2-b900-62a24da3c626" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_3729a631-8e51-4195-90fb-afd7b9a085c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_58610ab3-d235-43c4-8359-4bae45e145b3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_f6ae5b8d-cf6d-42a2-b900-62a24da3c626" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_58610ab3-d235-43c4-8359-4bae45e145b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_FiniteLivedIntangibleAssetsAccumulatedAmortizationAndOtherAccumulatedAdjustment_f8e788d8-be05-457a-a1e0-3776d3f139c3" xlink:href="klac-20220930.xsd#klac_FiniteLivedIntangibleAssetsAccumulatedAmortizationAndOtherAccumulatedAdjustment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_9f46e4f6-d026-4bb8-a5bb-c15c51f87e30" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_klac_FiniteLivedIntangibleAssetsAccumulatedAmortizationAndOtherAccumulatedAdjustment_f8e788d8-be05-457a-a1e0-3776d3f139c3" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_9f46e4f6-d026-4bb8-a5bb-c15c51f87e30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_IntangibleAssetsOtherAccumulatedAdjustments_baec4694-ed64-4919-b235-d24ad3d0f917" xlink:href="klac-20220930.xsd#klac_IntangibleAssetsOtherAccumulatedAdjustments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_klac_FiniteLivedIntangibleAssetsAccumulatedAmortizationAndOtherAccumulatedAdjustment_f8e788d8-be05-457a-a1e0-3776d3f139c3" xlink:to="loc_klac_IntangibleAssetsOtherAccumulatedAdjustments_baec4694-ed64-4919-b235-d24ad3d0f917" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_IndefiniteLivedIntangibleAssetsExcludingGoodwillNetOfOtherAccumulatedAdjustment_5d207fec-f8d9-40fd-8b2b-9f181dd0963c" xlink:href="klac-20220930.xsd#klac_IndefiniteLivedIntangibleAssetsExcludingGoodwillNetOfOtherAccumulatedAdjustment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_1deeb519-173f-4bea-9308-bba31fda2b20" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_klac_IndefiniteLivedIntangibleAssetsExcludingGoodwillNetOfOtherAccumulatedAdjustment_5d207fec-f8d9-40fd-8b2b-9f181dd0963c" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_1deeb519-173f-4bea-9308-bba31fda2b20" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_IntangibleAssetsOtherAccumulatedAdjustments_e0e855ff-e546-4f38-b8e5-cac70bfbb053" xlink:href="klac-20220930.xsd#klac_IntangibleAssetsOtherAccumulatedAdjustments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_klac_IndefiniteLivedIntangibleAssetsExcludingGoodwillNetOfOtherAccumulatedAdjustment_5d207fec-f8d9-40fd-8b2b-9f181dd0963c" xlink:to="loc_klac_IntangibleAssetsOtherAccumulatedAdjustments_e0e855ff-e546-4f38-b8e5-cac70bfbb053" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSPurchasedIntangibleAssetsDetails_1" xlink:type="simple" xlink:href="klac-20220930.xsd#GOODWILLANDPURCHASEDINTANGIBLEASSETSPurchasedIntangibleAssetsDetails_1"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSPurchasedIntangibleAssetsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_cdd1b02a-f57c-46cf-82a3-683568bef18a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_4c9e4ede-40f6-4700-a7c9-229111aaea9c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_cdd1b02a-f57c-46cf-82a3-683568bef18a" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_4c9e4ede-40f6-4700-a7c9-229111aaea9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_IndefiniteLivedIntangibleAssetsExcludingGoodwillNetOfOtherAccumulatedAdjustment_7641725e-1e35-406d-bba1-eff8676437b8" xlink:href="klac-20220930.xsd#klac_IndefiniteLivedIntangibleAssetsExcludingGoodwillNetOfOtherAccumulatedAdjustment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_cdd1b02a-f57c-46cf-82a3-683568bef18a" xlink:to="loc_klac_IndefiniteLivedIntangibleAssetsExcludingGoodwillNetOfOtherAccumulatedAdjustment_7641725e-1e35-406d-bba1-eff8676437b8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSFutureEstimatedAmortizationExpenseDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#GOODWILLANDPURCHASEDINTANGIBLEASSETSFutureEstimatedAmortizationExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSFutureEstimatedAmortizationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_33da3c18-ede5-41ef-9dce-93cb7b4a45d8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_e4f50f3d-5339-492c-b1d5-3f15b9d6e404" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_33da3c18-ede5-41ef-9dce-93cb7b4a45d8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_e4f50f3d-5339-492c-b1d5-3f15b9d6e404" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_9f670f57-e64a-45e8-8af4-2938af5b1eb1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_33da3c18-ede5-41ef-9dce-93cb7b4a45d8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_9f670f57-e64a-45e8-8af4-2938af5b1eb1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_01005f48-c906-43a4-8072-574d90979724" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_33da3c18-ede5-41ef-9dce-93cb7b4a45d8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_01005f48-c906-43a4-8072-574d90979724" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_505853b4-5719-4881-86e7-8935fa60edff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_33da3c18-ede5-41ef-9dce-93cb7b4a45d8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_505853b4-5719-4881-86e7-8935fa60edff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_04aaf6c7-c61b-44d4-a065-2f29f4167467" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_33da3c18-ede5-41ef-9dce-93cb7b4a45d8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_04aaf6c7-c61b-44d4-a065-2f29f4167467" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_FiniteLivedIntangibleAssetExpectedAmortizationYearFiveAndThereafter_e5eab596-1594-4a91-bbd4-c100ba98b23f" xlink:href="klac-20220930.xsd#klac_FiniteLivedIntangibleAssetExpectedAmortizationYearFiveAndThereafter"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_33da3c18-ede5-41ef-9dce-93cb7b4a45d8" xlink:to="loc_klac_FiniteLivedIntangibleAssetExpectedAmortizationYearFiveAndThereafter_e5eab596-1594-4a91-bbd4-c100ba98b23f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/DEBTScheduleofDebtDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#DEBTScheduleofDebtDetails"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/DEBTScheduleofDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_klac_DebtLongTermAndShortTermCombinedAmountGross_453ad8f5-3c84-4872-a759-964b2387bdcf" xlink:href="klac-20220930.xsd#klac_DebtLongTermAndShortTermCombinedAmountGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_7107cc8b-3bc1-4144-b753-028fc7bd2656" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_klac_DebtLongTermAndShortTermCombinedAmountGross_453ad8f5-3c84-4872-a759-964b2387bdcf" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_7107cc8b-3bc1-4144-b753-028fc7bd2656" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_b18f7ab0-e25a-47cb-8ca4-a92e96698d1f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtLongtermAndShorttermCombinedAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DebtLongTermAndShortTermCombinedAmountGross_056d78b9-7d27-42f8-9d59-17b7a734be3a" xlink:href="klac-20220930.xsd#klac_DebtLongTermAndShortTermCombinedAmountGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_b18f7ab0-e25a-47cb-8ca4-a92e96698d1f" xlink:to="loc_klac_DebtLongTermAndShortTermCombinedAmountGross_056d78b9-7d27-42f8-9d59-17b7a734be3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_c63087d1-8583-4ae7-a6d5-5a5c6e2accec" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_b18f7ab0-e25a-47cb-8ca4-a92e96698d1f" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_c63087d1-8583-4ae7-a6d5-5a5c6e2accec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_07291d0b-a963-4876-ae13-ac9e6fe60177" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentUnamortizedDiscount"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_b18f7ab0-e25a-47cb-8ca4-a92e96698d1f" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_07291d0b-a963-4876-ae13-ac9e6fe60177" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/DEBTScheduleofDebtDetails_1" xlink:type="simple" xlink:href="klac-20220930.xsd#DEBTScheduleofDebtDetails_1"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/DEBTScheduleofDebtDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_d6c5ceda-da51-45ee-8f0a-4b562806e479" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtLongtermAndShorttermCombinedAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_2362f634-2576-4613-9a1d-5c9b5c9b75a4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_d6c5ceda-da51-45ee-8f0a-4b562806e479" xlink:to="loc_us-gaap_LongTermDebt_2362f634-2576-4613-9a1d-5c9b5c9b75a4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/LEASESMaturitiesofLeaseLiabilitiesDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#LEASESMaturitiesofLeaseLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/LEASESMaturitiesofLeaseLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_71ee6dfb-3011-4323-83de-e28bc69aed3e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_3842401c-adbc-487b-a838-1b826e461139" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_71ee6dfb-3011-4323-83de-e28bc69aed3e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_3842401c-adbc-487b-a838-1b826e461139" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_5da74ded-a5a9-471d-ab45-10316265773d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_71ee6dfb-3011-4323-83de-e28bc69aed3e" xlink:to="loc_us-gaap_OperatingLeaseLiability_5da74ded-a5a9-471d-ab45-10316265773d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/LEASESMaturitiesofLeaseLiabilitiesDetails_1" xlink:type="simple" xlink:href="klac-20220930.xsd#LEASESMaturitiesofLeaseLiabilitiesDetails_1"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/LEASESMaturitiesofLeaseLiabilitiesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_a3df1e44-0fb2-43f3-bf4e-9aac9b96b231" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_d1d1b959-174c-401b-a52d-1d1f87f15edf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_a3df1e44-0fb2-43f3-bf4e-9aac9b96b231" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_d1d1b959-174c-401b-a52d-1d1f87f15edf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_d3a93045-4d10-4346-89e2-4db8df00288f" xlink:href="klac-20220930.xsd#klac_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_a3df1e44-0fb2-43f3-bf4e-9aac9b96b231" xlink:to="loc_klac_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_d3a93045-4d10-4346-89e2-4db8df00288f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_1db20def-350f-4490-9395-1b721f1996ea" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_a3df1e44-0fb2-43f3-bf4e-9aac9b96b231" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_1db20def-350f-4490-9395-1b721f1996ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_8eb4b99a-2d09-4f44-abd9-93d65496cded" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_a3df1e44-0fb2-43f3-bf4e-9aac9b96b231" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_8eb4b99a-2d09-4f44-abd9-93d65496cded" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_8ae4dd51-2b96-4a63-9484-ae459dfd2c5e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_a3df1e44-0fb2-43f3-bf4e-9aac9b96b231" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_8ae4dd51-2b96-4a63-9484-ae459dfd2c5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_ae752106-d197-48af-a2bb-3e0b89b08701" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_a3df1e44-0fb2-43f3-bf4e-9aac9b96b231" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_ae752106-d197-48af-a2bb-3e0b89b08701" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/NETINCOMEPERSHAREDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#NETINCOMEPERSHAREDetails"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/NETINCOMEPERSHAREDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_94ee3b83-76b9-4d54-b193-c78ce828c406" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_72bb6f8a-38c2-4b8b-aa2d-5f3ebbaec5c5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_94ee3b83-76b9-4d54-b193-c78ce828c406" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_72bb6f8a-38c2-4b8b-aa2d-5f3ebbaec5c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_f4f88b94-86b6-4d84-ad8d-50f4cf3f71c2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_94ee3b83-76b9-4d54-b193-c78ce828c406" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_f4f88b94-86b6-4d84-ad8d-50f4cf3f71c2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESOffsettingofDerivativeAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESOffsettingofDerivativeAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESOffsettingofDerivativeAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_47aff073-e347-4ddc-a1db-fd1fe618ec53" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_ba05e0c7-594a-4c11-b858-adc48305ad93" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_47aff073-e347-4ddc-a1db-fd1fe618ec53" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_ba05e0c7-594a-4c11-b858-adc48305ad93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_754fd71d-c962-45dc-863f-ad6425b9db0c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssetFairValueGrossLiability"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_47aff073-e347-4ddc-a1db-fd1fe618ec53" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_754fd71d-c962-45dc-863f-ad6425b9db0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueOffsetAgainstCollateralNetOfNotSubjectToMasterNettingArrangementPolicyElection_151e682e-8c4e-4155-883b-e35fda22900a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssetFairValueOffsetAgainstCollateralNetOfNotSubjectToMasterNettingArrangementPolicyElection"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_00fdd158-b253-42dc-b70e-c40c0fb66524" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetFairValueOffsetAgainstCollateralNetOfNotSubjectToMasterNettingArrangementPolicyElection_151e682e-8c4e-4155-883b-e35fda22900a" xlink:to="loc_us-gaap_DerivativeAssets_00fdd158-b253-42dc-b70e-c40c0fb66524" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_b4f15b1e-ec35-41dd-a454-4c49f10d6d9f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetFairValueOffsetAgainstCollateralNetOfNotSubjectToMasterNettingArrangementPolicyElection_151e682e-8c4e-4155-883b-e35fda22900a" xlink:to="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_b4f15b1e-ec35-41dd-a454-4c49f10d6d9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnCash_4ac7c724-d162-4ba8-b5be-8382e6c08459" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeCollateralObligationToReturnCash"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetFairValueOffsetAgainstCollateralNetOfNotSubjectToMasterNettingArrangementPolicyElection_151e682e-8c4e-4155-883b-e35fda22900a" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnCash_4ac7c724-d162-4ba8-b5be-8382e6c08459" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueOffsetAgainstCollateralNetOfNotSubjectToMasterNettingArrangementPolicyElection_785f8757-c4da-4bd8-af3d-cde1287e0f7c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLiabilityFairValueOffsetAgainstCollateralNetOfNotSubjectToMasterNettingArrangementPolicyElection"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_579d865a-37a1-4681-b677-2e794f92108a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilityFairValueOffsetAgainstCollateralNetOfNotSubjectToMasterNettingArrangementPolicyElection_785f8757-c4da-4bd8-af3d-cde1287e0f7c" xlink:to="loc_us-gaap_DerivativeLiabilities_579d865a-37a1-4681-b677-2e794f92108a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_a4fcabb8-0b80-40af-ad65-94d1a393e43a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilityFairValueOffsetAgainstCollateralNetOfNotSubjectToMasterNettingArrangementPolicyElection_785f8757-c4da-4bd8-af3d-cde1287e0f7c" xlink:to="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_a4fcabb8-0b80-40af-ad65-94d1a393e43a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimCash_c19ee5d6-d3a8-4de3-97c0-508787b7eb76" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeCollateralRightToReclaimCash"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilityFairValueOffsetAgainstCollateralNetOfNotSubjectToMasterNettingArrangementPolicyElection_785f8757-c4da-4bd8-af3d-cde1287e0f7c" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimCash_c19ee5d6-d3a8-4de3-97c0-508787b7eb76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_c69c1951-f2b6-4fd4-9a7f-c513c332ce5b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_975489f8-1d36-4724-9219-33d65bbbd9ec" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilities_c69c1951-f2b6-4fd4-9a7f-c513c332ce5b" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_975489f8-1d36-4724-9219-33d65bbbd9ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_cfbda222-2978-4dbe-80d4-bed750094b29" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilities_c69c1951-f2b6-4fd4-9a7f-c513c332ce5b" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_cfbda222-2978-4dbe-80d4-bed750094b29" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
