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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2025 Workiva-->
<!--r:80357f92-d316-47ee-ae66-188db810132d,g:3351c787-d1d7-40ba-9475-62947560b06a-->
<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.matrixservicecompany.com/role/ConsolidatedStatementsofIncome" xlink:type="simple" xlink:href="mtrx-20250630.xsd#ConsolidatedStatementsofIncome"/>
  <link:calculationLink xlink:role="http://www.matrixservicecompany.com/role/ConsolidatedStatementsofIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_b452f41e-4ff5-4ea5-91cb-ad1694fd7076" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_a472ef57-ae7f-425b-b4fe-fe000848bfc9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_b452f41e-4ff5-4ea5-91cb-ad1694fd7076" xlink:to="loc_us-gaap_Revenues_a472ef57-ae7f-425b-b4fe-fe000848bfc9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_1faad1d2-b08e-47d3-a1ac-7c602f728fde" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_b452f41e-4ff5-4ea5-91cb-ad1694fd7076" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_1faad1d2-b08e-47d3-a1ac-7c602f728fde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_4460e7ce-6094-436b-962a-9d6a00c1972b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_c8ef8c8d-9f2a-4f14-b06d-105206022d64" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_NetIncomeLoss_4460e7ce-6094-436b-962a-9d6a00c1972b" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_c8ef8c8d-9f2a-4f14-b06d-105206022d64" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossAttributableToParent_9d62d18b-7eff-41fa-ae68-4ace9800709b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_4460e7ce-6094-436b-962a-9d6a00c1972b" xlink:to="loc_us-gaap_IncomeLossAttributableToParent_9d62d18b-7eff-41fa-ae68-4ace9800709b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_328ac7f2-4291-4548-a96c-807f31bc6752" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_a3bab2d6-5d8d-4ae9-8e10-d9af43a422e4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GoodwillImpairmentLoss"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_328ac7f2-4291-4548-a96c-807f31bc6752" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_a3bab2d6-5d8d-4ae9-8e10-d9af43a422e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCosts_c0d9f256-1d95-4773-bbe0-03ca93ff26e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringCosts"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_328ac7f2-4291-4548-a96c-807f31bc6752" xlink:to="loc_us-gaap_RestructuringCosts_c0d9f256-1d95-4773-bbe0-03ca93ff26e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_fd0d3fcd-aee3-43ac-972e-f73f2a5431b9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GrossProfit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_328ac7f2-4291-4548-a96c-807f31bc6752" xlink:to="loc_us-gaap_GrossProfit_fd0d3fcd-aee3-43ac-972e-f73f2a5431b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_23681a7d-05d6-4a91-b9d3-650b3215521b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_OperatingIncomeLoss_328ac7f2-4291-4548-a96c-807f31bc6752" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_23681a7d-05d6-4a91-b9d3-650b3215521b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossAttributableToParent_5f8700d8-60d6-4558-91cb-5737cce0e70d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_9d50f37c-eaf6-4898-be7f-baf53fcbadb9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossAttributableToParent_5f8700d8-60d6-4558-91cb-5737cce0e70d" xlink:to="loc_us-gaap_InvestmentIncomeInterest_9d50f37c-eaf6-4898-be7f-baf53fcbadb9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_fc0f7d0b-f29e-4710-9978-a1a50565cacd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossAttributableToParent_5f8700d8-60d6-4558-91cb-5737cce0e70d" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_fc0f7d0b-f29e-4710-9978-a1a50565cacd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_16567c45-8a80-410a-a812-0d284f88e13f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossAttributableToParent_5f8700d8-60d6-4558-91cb-5737cce0e70d" xlink:to="loc_us-gaap_OperatingIncomeLoss_16567c45-8a80-410a-a812-0d284f88e13f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_59da4a4d-d1d6-4f85-953e-6f21a4f67154" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossAttributableToParent_5f8700d8-60d6-4558-91cb-5737cce0e70d" xlink:to="loc_us-gaap_InterestExpense_59da4a4d-d1d6-4f85-953e-6f21a4f67154" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/ConsolidatedStatementsofComprehensiveIncome" xlink:type="simple" xlink:href="mtrx-20250630.xsd#ConsolidatedStatementsofComprehensiveIncome"/>
  <link:calculationLink xlink:role="http://www.matrixservicecompany.com/role/ConsolidatedStatementsofComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_aaf9cae0-fc15-4c9a-bd06-2196ca1aeca7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_637c0a55-4411-43ad-96e8-849786200dcd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_aaf9cae0-fc15-4c9a-bd06-2196ca1aeca7" xlink:to="loc_us-gaap_NetIncomeLoss_637c0a55-4411-43ad-96e8-849786200dcd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_0ef55a39-9b97-4845-92a1-e57e1eb0c3cc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_aaf9cae0-fc15-4c9a-bd06-2196ca1aeca7" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_0ef55a39-9b97-4845-92a1-e57e1eb0c3cc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="mtrx-20250630.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.matrixservicecompany.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_18f2b5ca-0cb5-4409-b7eb-c146a76ece76" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_901f58cc-75f1-49d8-a720-f5e9389b8138" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_18f2b5ca-0cb5-4409-b7eb-c146a76ece76" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_901f58cc-75f1-49d8-a720-f5e9389b8138" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_7dd92fa1-9360-45d3-99b9-28fb65734c00" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_18f2b5ca-0cb5-4409-b7eb-c146a76ece76" xlink:to="loc_us-gaap_Liabilities_7dd92fa1-9360-45d3-99b9-28fb65734c00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_5504de08-4893-4d6b-8e71-2aa902268959" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_379711d3-655e-4f9a-a400-571889c015c6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_5504de08-4893-4d6b-8e71-2aa902268959" xlink:to="loc_us-gaap_CommonStockValue_379711d3-655e-4f9a-a400-571889c015c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_bafaacd2-fc37-4674-911d-8c8e711bf1d2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_5504de08-4893-4d6b-8e71-2aa902268959" xlink:to="loc_us-gaap_AdditionalPaidInCapital_bafaacd2-fc37-4674-911d-8c8e711bf1d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_5ff7eb93-9db4-41ab-9bb7-207de9081b97" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_5504de08-4893-4d6b-8e71-2aa902268959" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_5ff7eb93-9db4-41ab-9bb7-207de9081b97" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax_9e81242e-4aca-41e1-a31d-a7721d4d780f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_5504de08-4893-4d6b-8e71-2aa902268959" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax_9e81242e-4aca-41e1-a31d-a7721d4d780f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_13dac14c-bfd3-4c37-ae20-ceedde2e043b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TreasuryStockValue"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_5504de08-4893-4d6b-8e71-2aa902268959" xlink:to="loc_us-gaap_TreasuryStockValue_13dac14c-bfd3-4c37-ae20-ceedde2e043b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_cd1045cf-05c4-4d39-a548-6dbb5e075073" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_15a15284-e9a4-4678-9df7-d70c7bc9017d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_cd1045cf-05c4-4d39-a548-6dbb5e075073" xlink:to="loc_us-gaap_AssetsCurrent_15a15284-e9a4-4678-9df7-d70c7bc9017d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashNoncurrent_d555ff01-1c13-4188-8efc-c0ff7f031cb4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCashNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_cd1045cf-05c4-4d39-a548-6dbb5e075073" xlink:to="loc_us-gaap_RestrictedCashNoncurrent_d555ff01-1c13-4188-8efc-c0ff7f031cb4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_02ca8824-f004-4232-a367-ff271a97f3ca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_cd1045cf-05c4-4d39-a548-6dbb5e075073" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_02ca8824-f004-4232-a367-ff271a97f3ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_4b8db1a3-f41e-4bb1-bfc0-a4a668fc3617" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_cd1045cf-05c4-4d39-a548-6dbb5e075073" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_4b8db1a3-f41e-4bb1-bfc0-a4a668fc3617" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_0acc0e91-1c3c-4f65-94c2-afd3ba10cf26" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_cd1045cf-05c4-4d39-a548-6dbb5e075073" xlink:to="loc_us-gaap_Goodwill_0acc0e91-1c3c-4f65-94c2-afd3ba10cf26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_6402e4d6-d474-452e-8312-799d8f79884a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_cd1045cf-05c4-4d39-a548-6dbb5e075073" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_6402e4d6-d474-452e-8312-799d8f79884a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_e4acd667-a4e0-4c30-b36a-484f5eec6cbe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_cd1045cf-05c4-4d39-a548-6dbb5e075073" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_e4acd667-a4e0-4c30-b36a-484f5eec6cbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_1e564846-13ee-4f46-9757-6806dc780f3e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_83cba1e4-6f00-47d5-8e78-0a498ef79ee2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1e564846-13ee-4f46-9757-6806dc780f3e" xlink:to="loc_us-gaap_LiabilitiesCurrent_83cba1e4-6f00-47d5-8e78-0a498ef79ee2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_cb472c57-9df0-4cd1-977c-6ddca883a9fc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_1e564846-13ee-4f46-9757-6806dc780f3e" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_cb472c57-9df0-4cd1-977c-6ddca883a9fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_3fd8a7e4-8861-4751-8caa-ad418ccd3697" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_1e564846-13ee-4f46-9757-6806dc780f3e" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_3fd8a7e4-8861-4751-8caa-ad418ccd3697" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_c7a34b0c-1f64-41ff-99b7-f7e34d3328d4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_1e564846-13ee-4f46-9757-6806dc780f3e" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_c7a34b0c-1f64-41ff-99b7-f7e34d3328d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_78e393a3-530e-4b63-9aa9-5548dd4b7f9a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_02383bb9-2671-43c0-aabf-06713f319959" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_78e393a3-530e-4b63-9aa9-5548dd4b7f9a" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_02383bb9-2671-43c0-aabf-06713f319959" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_5d88a8c1-262d-4960-92dc-26fd522e632b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_78e393a3-530e-4b63-9aa9-5548dd4b7f9a" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_5d88a8c1-262d-4960-92dc-26fd522e632b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetCurrent_3f021d48-019d-410f-ae7b-3c1fb34895f4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerAssetNetCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_78e393a3-530e-4b63-9aa9-5548dd4b7f9a" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetCurrent_3f021d48-019d-410f-ae7b-3c1fb34895f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_dd025402-bd8b-41c5-ab07-176e4a89476d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_78e393a3-530e-4b63-9aa9-5548dd4b7f9a" xlink:to="loc_us-gaap_InventoryNet_dd025402-bd8b-41c5-ab07-176e4a89476d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxesReceivable_0a553689-ac81-4f57-9b7f-f1b5a8307621" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxesReceivable"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_78e393a3-530e-4b63-9aa9-5548dd4b7f9a" xlink:to="loc_us-gaap_IncomeTaxesReceivable_0a553689-ac81-4f57-9b7f-f1b5a8307621" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrent_34443884-b7f9-4224-aea1-217314eadd3d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PrepaidExpenseCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_78e393a3-530e-4b63-9aa9-5548dd4b7f9a" xlink:to="loc_us-gaap_PrepaidExpenseCurrent_34443884-b7f9-4224-aea1-217314eadd3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_4dcd3e36-b9ea-420d-9b53-af919d6d222a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_abe91efd-ba19-4ab1-9c4a-b9d4380b0148" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4dcd3e36-b9ea-420d-9b53-af919d6d222a" xlink:to="loc_us-gaap_AccountsPayableCurrent_abe91efd-ba19-4ab1-9c4a-b9d4380b0148" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_a50e9fe6-e378-4d0a-8aca-a4ad45ab631e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4dcd3e36-b9ea-420d-9b53-af919d6d222a" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_a50e9fe6-e378-4d0a-8aca-a4ad45ab631e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_5046232d-9ccc-4007-a100-1ceb6e409c63" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4dcd3e36-b9ea-420d-9b53-af919d6d222a" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_5046232d-9ccc-4007-a100-1ceb6e409c63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedInsuranceCurrent_3ff327bd-e413-4a94-8df2-88560c84b30c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccruedInsuranceCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4dcd3e36-b9ea-420d-9b53-af919d6d222a" xlink:to="loc_us-gaap_AccruedInsuranceCurrent_3ff327bd-e413-4a94-8df2-88560c84b30c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_a5d27da8-04fd-4800-94ef-52fa6ef7cf2d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4dcd3e36-b9ea-420d-9b53-af919d6d222a" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_a5d27da8-04fd-4800-94ef-52fa6ef7cf2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent_faf48fb2-704d-4f62-b4dc-9366edca5c28" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilitiesCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4dcd3e36-b9ea-420d-9b53-af919d6d222a" xlink:to="loc_us-gaap_OtherLiabilitiesCurrent_faf48fb2-704d-4f62-b4dc-9366edca5c28" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="mtrx-20250630.xsd#ConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.matrixservicecompany.com/role/ConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4d869601-3649-4f7a-b3ed-634bcc45118c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_10e42c59-fb02-42f7-846d-504d98602a9a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromLongTermLinesOfCredit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4d869601-3649-4f7a-b3ed-634bcc45118c" xlink:to="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_10e42c59-fb02-42f7-846d-504d98602a9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_5d111921-54c4-4d0a-b513-3c38737a64c0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfLongTermLinesOfCredit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4d869601-3649-4f7a-b3ed-634bcc45118c" xlink:to="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_5d111921-54c4-4d0a-b513-3c38737a64c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_4b5bb05a-7572-48eb-b0a7-460d49b67933" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4d869601-3649-4f7a-b3ed-634bcc45118c" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_4b5bb05a-7572-48eb-b0a7-460d49b67933" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockPlans_191a7f10-5db7-45b6-9420-0b4bd11f860c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromStockPlans"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4d869601-3649-4f7a-b3ed-634bcc45118c" xlink:to="loc_us-gaap_ProceedsFromStockPlans_191a7f10-5db7-45b6-9420-0b4bd11f860c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfOtherEquity_1c13ab7c-5212-46e6-b062-7899082931e2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForRepurchaseOfOtherEquity"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4d869601-3649-4f7a-b3ed-634bcc45118c" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfOtherEquity_1c13ab7c-5212-46e6-b062-7899082931e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5e7df8d8-7fb6-4542-8ed2-7f31441249a7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_0e221e0c-81ae-4052-ae05-3c3639c418ae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5e7df8d8-7fb6-4542-8ed2-7f31441249a7" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_0e221e0c-81ae-4052-ae05-3c3639c418ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfProductiveAssets_41cdcfd6-1f5f-4cb1-b45e-e0c4bce2f901" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfProductiveAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5e7df8d8-7fb6-4542-8ed2-7f31441249a7" xlink:to="loc_us-gaap_ProceedsFromSaleOfProductiveAssets_41cdcfd6-1f5f-4cb1-b45e-e0c4bce2f901" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_31e0e1a6-bdec-4bd3-87da-c99e79af6c92" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_d7665154-35ea-4eff-9437-f7a79483ade2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_31e0e1a6-bdec-4bd3-87da-c99e79af6c92" xlink:to="loc_us-gaap_NetIncomeLoss_d7665154-35ea-4eff-9437-f7a79483ade2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_1807ac87-a9db-423d-b9d7-e11d6d72fc92" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_31e0e1a6-bdec-4bd3-87da-c99e79af6c92" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_1807ac87-a9db-423d-b9d7-e11d6d72fc92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_83378af7-04d4-4578-8037-432d0c57fec9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_31e0e1a6-bdec-4bd3-87da-c99e79af6c92" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_83378af7-04d4-4578-8037-432d0c57fec9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_f045b01c-22ff-4eb2-9596-d10591c588f2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_31e0e1a6-bdec-4bd3-87da-c99e79af6c92" xlink:to="loc_us-gaap_ShareBasedCompensation_f045b01c-22ff-4eb2-9596-d10591c588f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_8966ebd3-6d78-4d64-8173-1e3fc0bc04f9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_31e0e1a6-bdec-4bd3-87da-c99e79af6c92" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_8966ebd3-6d78-4d64-8173-1e3fc0bc04f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_c554d5f7-0241-44df-a6f9-39f930d46308" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_31e0e1a6-bdec-4bd3-87da-c99e79af6c92" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_c554d5f7-0241-44df-a6f9-39f930d46308" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_609db964-5696-4ab8-9a93-804e7618f999" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_31e0e1a6-bdec-4bd3-87da-c99e79af6c92" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_609db964-5696-4ab8-9a93-804e7618f999" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerAsset_aa1ebe2a-671f-4f93-9901-719b3805b727" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerAsset"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_31e0e1a6-bdec-4bd3-87da-c99e79af6c92" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerAsset_aa1ebe2a-671f-4f93-9901-719b3805b727" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_90ec25ee-41b8-4172-b883-99166fa0e47d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_31e0e1a6-bdec-4bd3-87da-c99e79af6c92" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_90ec25ee-41b8-4172-b883-99166fa0e47d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_6df17753-58ce-406d-8985-9b7cc0b1dd3a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_31e0e1a6-bdec-4bd3-87da-c99e79af6c92" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_6df17753-58ce-406d-8985-9b7cc0b1dd3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_a84e18cf-51aa-4185-a9dd-a795d42fa029" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_31e0e1a6-bdec-4bd3-87da-c99e79af6c92" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_a84e18cf-51aa-4185-a9dd-a795d42fa029" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_0231a113-794d-43a9-959f-e481db1f6e4e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_31e0e1a6-bdec-4bd3-87da-c99e79af6c92" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_0231a113-794d-43a9-959f-e481db1f6e4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_784cf8c2-7ed4-4401-bcb7-20aeb8f505a9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_31e0e1a6-bdec-4bd3-87da-c99e79af6c92" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_784cf8c2-7ed4-4401-bcb7-20aeb8f505a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffectContinuingOperations_76781a9b-2080-4fb9-9585-940b5f4e5494" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffectContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b6b965b-8c7c-47b9-abda-d2f0ed139d5e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffectContinuingOperations_76781a9b-2080-4fb9-9585-940b5f4e5494" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b6b965b-8c7c-47b9-abda-d2f0ed139d5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_fce064a1-6554-48e9-af55-b5b32cd6b1a9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffectContinuingOperations_76781a9b-2080-4fb9-9585-940b5f4e5494" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_fce064a1-6554-48e9-af55-b5b32cd6b1a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_61661997-bd0e-4ee5-949b-1116432403bc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffectContinuingOperations_76781a9b-2080-4fb9-9585-940b5f4e5494" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_61661997-bd0e-4ee5-949b-1116432403bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_534bf704-a36d-41bb-a995-6819c011c591" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffectContinuingOperations_76781a9b-2080-4fb9-9585-940b5f4e5494" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_534bf704-a36d-41bb-a995-6819c011c591" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/GoodwillandOtherIntangibleAssetsDetails1" xlink:type="simple" xlink:href="mtrx-20250630.xsd#GoodwillandOtherIntangibleAssetsDetails1"/>
  <link:calculationLink xlink:role="http://www.matrixservicecompany.com/role/GoodwillandOtherIntangibleAssetsDetails1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_fee9c542-cc65-4654-bafa-227feba5f91b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_eaab40c6-d05e-4af2-ae72-0a1299f63ff9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_fee9c542-cc65-4654-bafa-227feba5f91b" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_eaab40c6-d05e-4af2-ae72-0a1299f63ff9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_7533fafd-e0ef-436c-aedb-583b0b54823e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_fee9c542-cc65-4654-bafa-227feba5f91b" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_7533fafd-e0ef-436c-aedb-583b0b54823e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxSourcesDetails" xlink:type="simple" xlink:href="mtrx-20250630.xsd#IncomeTaxSourcesDetails"/>
  <link:calculationLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxSourcesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_5d341ca9-9478-48c0-baeb-f54e4cc3bf5a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_128c051c-35aa-4768-8d3e-cd09ac9e727c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_5d341ca9-9478-48c0-baeb-f54e4cc3bf5a" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_128c051c-35aa-4768-8d3e-cd09ac9e727c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_75bb0fcb-29fe-4da8-a6cf-f16e653f06bc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_5d341ca9-9478-48c0-baeb-f54e4cc3bf5a" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_75bb0fcb-29fe-4da8-a6cf-f16e653f06bc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CurrentandDeferredIncomeTaxesDetails" xlink:type="simple" xlink:href="mtrx-20250630.xsd#CurrentandDeferredIncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.matrixservicecompany.com/role/CurrentandDeferredIncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_e4d00ef7-f8b2-4255-b835-68956fb90fb2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_07b7cc5a-0c24-4224-87bd-44358f876ae6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_7b449469-a47b-43ad-bc73-734a75fc64d2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_07b7cc5a-0c24-4224-87bd-44358f876ae6" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_7b449469-a47b-43ad-bc73-734a75fc64d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_bdf09321-e23f-4ed9-8446-5f0aea747747" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_07b7cc5a-0c24-4224-87bd-44358f876ae6" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_bdf09321-e23f-4ed9-8446-5f0aea747747" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_b16a274f-f291-4637-a247-88ee359e064c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentForeignTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_07b7cc5a-0c24-4224-87bd-44358f876ae6" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_b16a274f-f291-4637-a247-88ee359e064c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_25becb86-15d6-4dcd-827b-aa5f8ed40bc0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_33f178ce-ac53-4eed-949f-767ec18f5119" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_25becb86-15d6-4dcd-827b-aa5f8ed40bc0" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_33f178ce-ac53-4eed-949f-767ec18f5119" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_d9ce27c2-64f3-4f6c-acbc-ccba4786e20f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_25becb86-15d6-4dcd-827b-aa5f8ed40bc0" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_d9ce27c2-64f3-4f6c-acbc-ccba4786e20f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxRateReconciliationDetails" xlink:type="simple" xlink:href="mtrx-20250630.xsd#IncomeTaxRateReconciliationDetails"/>
  <link:calculationLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxRateReconciliationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_9fa81a9e-c9b8-49e3-ab17-fcee781a734b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_b1a3f591-efeb-4414-a52a-53ba98eb9990" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_9fa81a9e-c9b8-49e3-ab17-fcee781a734b" xlink:to="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_b1a3f591-efeb-4414-a52a-53ba98eb9990" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_8cdbb6d4-4dee-4879-a74f-b671c62004a2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_9fa81a9e-c9b8-49e3-ab17-fcee781a734b" xlink:to="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_8cdbb6d4-4dee-4879-a74f-b671c62004a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_IncomeTaxReconciliationChargesWithoutTaxBenefit_3babdcfd-03da-4a70-91a8-7d68f1e570a4" xlink:href="mtrx-20250630.xsd#mtrx_IncomeTaxReconciliationChargesWithoutTaxBenefit"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_9fa81a9e-c9b8-49e3-ab17-fcee781a734b" xlink:to="loc_mtrx_IncomeTaxReconciliationChargesWithoutTaxBenefit_3babdcfd-03da-4a70-91a8-7d68f1e570a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_3e2f7c12-066c-47d8-b37a-f665e008a4dc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_9fa81a9e-c9b8-49e3-ab17-fcee781a734b" xlink:to="loc_us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_3e2f7c12-066c-47d8-b37a-f665e008a4dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_Effectofnewaccountingstandardcomparedtooldstandard_4c8b9c0a-ba97-4817-9ebf-e36dce4f56d3" xlink:href="mtrx-20250630.xsd#mtrx_Effectofnewaccountingstandardcomparedtooldstandard"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_9fa81a9e-c9b8-49e3-ab17-fcee781a734b" xlink:to="loc_mtrx_Effectofnewaccountingstandardcomparedtooldstandard_4c8b9c0a-ba97-4817-9ebf-e36dce4f56d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxCreditsResearch_bdfd9838-7c4a-4c2f-b915-514ba9b2ca66" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationTaxCreditsResearch"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_9fa81a9e-c9b8-49e3-ab17-fcee781a734b" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxCreditsResearch_bdfd9838-7c4a-4c2f-b915-514ba9b2ca66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential_04466b07-250d-464a-9679-d3ab10daed35" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_9fa81a9e-c9b8-49e3-ab17-fcee781a734b" xlink:to="loc_us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential_04466b07-250d-464a-9679-d3ab10daed35" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxContingenciesOther_6735a607-1768-4381-ad46-05ebe2f7ab66" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationTaxContingenciesOther"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_9fa81a9e-c9b8-49e3-ab17-fcee781a734b" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxContingenciesOther_6735a607-1768-4381-ad46-05ebe2f7ab66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationOtherAdjustments_1fae2ad8-6c71-4255-97ce-d9f6e64fb820" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationOtherAdjustments"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_9fa81a9e-c9b8-49e3-ab17-fcee781a734b" xlink:to="loc_us-gaap_IncomeTaxReconciliationOtherAdjustments_1fae2ad8-6c71-4255-97ce-d9f6e64fb820" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DeferredIncomeTaxAssetsandLiabilitiesDetailsDetails" xlink:type="simple" xlink:href="mtrx-20250630.xsd#DeferredIncomeTaxAssetsandLiabilitiesDetailsDetails"/>
  <link:calculationLink xlink:role="http://www.matrixservicecompany.com/role/DeferredIncomeTaxAssetsandLiabilitiesDetailsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_4fc368c0-23d9-4a82-ab11-8c66a0a9d95e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves_f75249cb-f7fd-414f-9071-4a119fba80f7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4fc368c0-23d9-4a82-ab11-8c66a0a9d95e" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves_f75249cb-f7fd-414f-9071-4a119fba80f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts_d9a676f7-03b6-4fcc-bf59-e85dda24ba9b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4fc368c0-23d9-4a82-ab11-8c66a0a9d95e" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts_d9a676f7-03b6-4fcc-bf59-e85dda24ba9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_DeferredTaxAssetsInsuranceReserve_465ad95d-de27-4f68-b8a7-d1294cf8cc70" xlink:href="mtrx-20250630.xsd#mtrx_DeferredTaxAssetsInsuranceReserve"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4fc368c0-23d9-4a82-ab11-8c66a0a9d95e" xlink:to="loc_mtrx_DeferredTaxAssetsInsuranceReserve_465ad95d-de27-4f68-b8a7-d1294cf8cc70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_66c5c6f2-4c86-4077-87c5-99e3d073525c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwards"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4fc368c0-23d9-4a82-ab11-8c66a0a9d95e" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_66c5c6f2-4c86-4077-87c5-99e3d073525c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions_d16b1ee3-0c3e-4f40-b884-e43dfc48152f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4fc368c0-23d9-4a82-ab11-8c66a0a9d95e" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions_d16b1ee3-0c3e-4f40-b884-e43dfc48152f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_9b751cdd-1f8f-4e91-a2b6-64c38262088a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4fc368c0-23d9-4a82-ab11-8c66a0a9d95e" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_9b751cdd-1f8f-4e91-a2b6-64c38262088a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets_5bd68920-3864-4a28-8d84-d3bfa4bbfa84" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4fc368c0-23d9-4a82-ab11-8c66a0a9d95e" xlink:to="loc_us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets_5bd68920-3864-4a28-8d84-d3bfa4bbfa84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedResearchAndDevelopmentCosts_6b1bcb2e-1e71-40c4-9888-7eaa22af2e8a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedResearchAndDevelopmentCosts"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4fc368c0-23d9-4a82-ab11-8c66a0a9d95e" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedResearchAndDevelopmentCosts_6b1bcb2e-1e71-40c4-9888-7eaa22af2e8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_cb39336a-4222-4744-9a40-c33a6abb3436" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsOther"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4fc368c0-23d9-4a82-ab11-8c66a0a9d95e" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_cb39336a-4222-4744-9a40-c33a6abb3436" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_ffae0a58-8741-4ae2-b551-74be8c01f6d3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4fc368c0-23d9-4a82-ab11-8c66a0a9d95e" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_ffae0a58-8741-4ae2-b551-74be8c01f6d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_41672f33-7663-44dd-a594-56839c0afe87" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_456f6f2d-994f-49e2-90cf-90d222a1ecfb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_41672f33-7663-44dd-a594-56839c0afe87" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_456f6f2d-994f-49e2-90cf-90d222a1ecfb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_5a4d469b-9874-42d8-aa1f-6f2a7e8c2adf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesOther"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_41672f33-7663-44dd-a594-56839c0afe87" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_5a4d469b-9874-42d8-aa1f-6f2a7e8c2adf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_fd3656ad-0621-4256-957a-4d7f9870b80f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_c0915179-c5cb-4baf-ae2a-8e1b559e1fd7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_fd3656ad-0621-4256-957a-4d7f9870b80f" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_c0915179-c5cb-4baf-ae2a-8e1b559e1fd7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_97e8f32b-440c-475d-803d-bf8630c1ee67" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_fd3656ad-0621-4256-957a-4d7f9870b80f" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_97e8f32b-440c-475d-803d-bf8630c1ee67" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/LeasesComponentsofLeaseCostsDetails" xlink:type="simple" xlink:href="mtrx-20250630.xsd#LeasesComponentsofLeaseCostsDetails"/>
  <link:calculationLink xlink:role="http://www.matrixservicecompany.com/role/LeasesComponentsofLeaseCostsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_b7338d02-3e3c-45bc-9565-eea13910d2d6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_f83835dd-3057-4ff6-a59d-feeaeee72d2d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_b7338d02-3e3c-45bc-9565-eea13910d2d6" xlink:to="loc_us-gaap_OperatingLeaseCost_f83835dd-3057-4ff6-a59d-feeaeee72d2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermLeaseCost_1c216c4d-74d2-4acf-b5e5-a1311b38aaa6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShortTermLeaseCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_b7338d02-3e3c-45bc-9565-eea13910d2d6" xlink:to="loc_us-gaap_ShortTermLeaseCost_1c216c4d-74d2-4acf-b5e5-a1311b38aaa6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsperCommonShareDetails" xlink:type="simple" xlink:href="mtrx-20250630.xsd#EarningsperCommonShareDetails"/>
  <link:calculationLink xlink:role="http://www.matrixservicecompany.com/role/EarningsperCommonShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_1d520d38-c0f8-45ef-9d38-73740c3ea276" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_1335ea21-bc64-4b6d-bc52-23a4a3ef826c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1d520d38-c0f8-45ef-9d38-73740c3ea276" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_1335ea21-bc64-4b6d-bc52-23a4a3ef826c" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
