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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2023 Workiva-->
<!--r:ebc5cae5-dd0c-4e25-bdf9-439f1f7ef230,g:ac3484d5-46c9-4efb-a8a6-90d14c181c28-->
<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.trimascorp.com/role/ConsolidatedBalanceSheetStatement" xlink:type="simple" xlink:href="trs-20221231.xsd#ConsolidatedBalanceSheetStatement"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/ConsolidatedBalanceSheetStatement" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_c87dff35-f380-4c8d-9b55-6027d31a5dd4" 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_4af5b12b-e63f-4e5c-aea5-32a6d3b81c54" 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_c87dff35-f380-4c8d-9b55-6027d31a5dd4" xlink:to="loc_us-gaap_LiabilitiesCurrent_4af5b12b-e63f-4e5c-aea5-32a6d3b81c54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_8a65fff3-01f8-4a7d-be24-63856860de4a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_c87dff35-f380-4c8d-9b55-6027d31a5dd4" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_8a65fff3-01f8-4a7d-be24-63856860de4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_2e4d4c53-b101-498a-b51f-f920b81f8aeb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c87dff35-f380-4c8d-9b55-6027d31a5dd4" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_2e4d4c53-b101-498a-b51f-f920b81f8aeb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_fe911014-f373-4a1a-962c-e8f601fd6311" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_c87dff35-f380-4c8d-9b55-6027d31a5dd4" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_fe911014-f373-4a1a-962c-e8f601fd6311" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_f0fe3d01-e7b1-4c70-99d5-4262aeba79f2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_c87dff35-f380-4c8d-9b55-6027d31a5dd4" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_f0fe3d01-e7b1-4c70-99d5-4262aeba79f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_55324f5f-c506-40e3-88c6-a5f9b031c62a" 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_CashAndCashEquivalentsAtCarryingValue_cfd7cc8f-7b9c-4826-982f-bec532786608" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_55324f5f-c506-40e3-88c6-a5f9b031c62a" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_cfd7cc8f-7b9c-4826-982f-bec532786608" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_cd826fcb-73c6-4b33-bee6-69b3595177fd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_55324f5f-c506-40e3-88c6-a5f9b031c62a" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_cd826fcb-73c6-4b33-bee6-69b3595177fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_570cb91b-5a8a-436f-a5b6-dd4f9c8811de" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_55324f5f-c506-40e3-88c6-a5f9b031c62a" xlink:to="loc_us-gaap_InventoryNet_570cb91b-5a8a-436f-a5b6-dd4f9c8811de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_914602cb-5c3c-4031-9efb-9c9a8f6ce6c8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_55324f5f-c506-40e3-88c6-a5f9b031c62a" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_914602cb-5c3c-4031-9efb-9c9a8f6ce6c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_97db448a-600b-4f9e-9c10-6ce07747308e" 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_StockholdersEquity_c8a5c800-6997-4517-9fab-f579976dd9b1" 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_LiabilitiesAndStockholdersEquity_97db448a-600b-4f9e-9c10-6ce07747308e" xlink:to="loc_us-gaap_StockholdersEquity_c8a5c800-6997-4517-9fab-f579976dd9b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_bd05932d-4384-4463-894f-231ccde3c61b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_97db448a-600b-4f9e-9c10-6ce07747308e" xlink:to="loc_us-gaap_Liabilities_bd05932d-4384-4463-894f-231ccde3c61b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_b9ae1659-90c2-45a8-9b74-ad4d5a9a5a8c" 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_AssetsCurrent_8e7e786c-5d41-4f69-9618-5e7561e2efc7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_b9ae1659-90c2-45a8-9b74-ad4d5a9a5a8c" xlink:to="loc_us-gaap_AssetsCurrent_8e7e786c-5d41-4f69-9618-5e7561e2efc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_2186d805-b09c-4874-a38a-9dffe9e6fcad" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_b9ae1659-90c2-45a8-9b74-ad4d5a9a5a8c" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_2186d805-b09c-4874-a38a-9dffe9e6fcad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_32725868-fbc2-418f-9a3d-d9229c9f9822" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_b9ae1659-90c2-45a8-9b74-ad4d5a9a5a8c" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_32725868-fbc2-418f-9a3d-d9229c9f9822" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_6c7369db-2c2a-477f-961d-0536515e4713" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_b9ae1659-90c2-45a8-9b74-ad4d5a9a5a8c" xlink:to="loc_us-gaap_Goodwill_6c7369db-2c2a-477f-961d-0536515e4713" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_9f2979dd-8067-4eb2-9525-0f814607f63a" 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_b9ae1659-90c2-45a8-9b74-ad4d5a9a5a8c" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_9f2979dd-8067-4eb2-9525-0f814607f63a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_04921cef-639d-42e6-a9e2-8ff292011f23" 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_b9ae1659-90c2-45a8-9b74-ad4d5a9a5a8c" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_04921cef-639d-42e6-a9e2-8ff292011f23" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_fd0bdaff-9a9a-4c59-8821-9e933f279178" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_b9ae1659-90c2-45a8-9b74-ad4d5a9a5a8c" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_fd0bdaff-9a9a-4c59-8821-9e933f279178" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_5ada398e-c8e0-443f-88e9-0a7ccd4033de" 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_AccountsPayableCurrent_cab83906-f3b2-4040-b0c5-42bd305d3fbe" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_5ada398e-c8e0-443f-88e9-0a7ccd4033de" xlink:to="loc_us-gaap_AccountsPayableCurrent_cab83906-f3b2-4040-b0c5-42bd305d3fbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_85234178-0bc7-443f-86c1-078321107b8a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_5ada398e-c8e0-443f-88e9-0a7ccd4033de" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_85234178-0bc7-443f-86c1-078321107b8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_7fc8efa8-9a12-4974-8bcf-2e88c94e888f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_5ada398e-c8e0-443f-88e9-0a7ccd4033de" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_7fc8efa8-9a12-4974-8bcf-2e88c94e888f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_ef3733b8-1c41-41c2-8c6f-49688bfc7f4f" 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_PreferredStockValue_fb9ee2b0-d223-49ed-9db9-fe803e6f6115" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_ef3733b8-1c41-41c2-8c6f-49688bfc7f4f" xlink:to="loc_us-gaap_PreferredStockValue_fb9ee2b0-d223-49ed-9db9-fe803e6f6115" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_524d4a90-9938-43e1-ad3d-336509cc1058" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_ef3733b8-1c41-41c2-8c6f-49688bfc7f4f" xlink:to="loc_us-gaap_CommonStockValue_524d4a90-9938-43e1-ad3d-336509cc1058" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_f51325aa-ec44-40d5-90c9-3dde853ad9d0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_ef3733b8-1c41-41c2-8c6f-49688bfc7f4f" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_f51325aa-ec44-40d5-90c9-3dde853ad9d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_283e3d78-7773-4b80-8033-257a828362d1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_ef3733b8-1c41-41c2-8c6f-49688bfc7f4f" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_283e3d78-7773-4b80-8033-257a828362d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_66f59fc8-6db5-4ac0-b8f4-5c117668ba49" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_ef3733b8-1c41-41c2-8c6f-49688bfc7f4f" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_66f59fc8-6db5-4ac0-b8f4-5c117668ba49" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/ConsolidatedStatementofOperations" xlink:type="simple" xlink:href="trs-20221231.xsd#ConsolidatedStatementofOperations"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/ConsolidatedStatementofOperations" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_59e81d69-ddf3-44d4-8dbd-de19bb135e39" 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_OperatingIncomeLoss_093dd7c0-fa9f-42dd-b1dd-9d51c1be34d4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_59e81d69-ddf3-44d4-8dbd-de19bb135e39" xlink:to="loc_us-gaap_OperatingIncomeLoss_093dd7c0-fa9f-42dd-b1dd-9d51c1be34d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_88446c28-98ce-4c08-9d05-d245e8bcd1a1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_59e81d69-ddf3-44d4-8dbd-de19bb135e39" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_88446c28-98ce-4c08-9d05-d245e8bcd1a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_a93e90d9-adb4-47bb-9aff-c39c99c74fdc" 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_IncomeLossFromContinuingOperations_9e7adf6e-0593-4346-8926-2df0e7e04517" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperations"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a93e90d9-adb4-47bb-9aff-c39c99c74fdc" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperations_9e7adf6e-0593-4346-8926-2df0e7e04517" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_efed87cf-58cd-4654-92c0-a0e02093fba4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a93e90d9-adb4-47bb-9aff-c39c99c74fdc" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_efed87cf-58cd-4654-92c0-a0e02093fba4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperations_66873ccd-13b5-4329-82cd-17d365bebc5d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_474353ea-12a3-4993-827f-d49f00605837" 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_IncomeLossFromContinuingOperations_66873ccd-13b5-4329-82cd-17d365bebc5d" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_474353ea-12a3-4993-827f-d49f00605837" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_fe6f8db0-2e7d-409c-9059-d49cedf0da85" 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_IncomeLossFromContinuingOperations_66873ccd-13b5-4329-82cd-17d365bebc5d" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_fe6f8db0-2e7d-409c-9059-d49cedf0da85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_583e9c74-a894-4cd4-a048-c700c028a2e6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_d10af33c-9848-4d8f-9890-b83ced99cc3b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_583e9c74-a894-4cd4-a048-c700c028a2e6" xlink:to="loc_us-gaap_Revenues_d10af33c-9848-4d8f-9890-b83ced99cc3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_b2aab9b7-f444-46b3-869c-a581a3619664" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_583e9c74-a894-4cd4-a048-c700c028a2e6" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_b2aab9b7-f444-46b3-869c-a581a3619664" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_6e310a35-1a78-4033-b046-3e752806c488" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_7804d5f1-20ff-46b4-97e6-2cb9501188bb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_6e310a35-1a78-4033-b046-3e752806c488" xlink:to="loc_us-gaap_InterestExpense_7804d5f1-20ff-46b4-97e6-2cb9501188bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_b81b063d-0658-4ca2-8dda-95b9ebc0b734" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_6e310a35-1a78-4033-b046-3e752806c488" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_b81b063d-0658-4ca2-8dda-95b9ebc0b734" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_86154c65-dc62-4c20-8808-09ec6477e639" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_6e310a35-1a78-4033-b046-3e752806c488" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_86154c65-dc62-4c20-8808-09ec6477e639" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_b5b8476a-2a33-4b6e-8963-7306cdf15beb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_cc0ace07-66c5-4a7a-9a24-fee7d04292bc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GrossProfit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_b5b8476a-2a33-4b6e-8963-7306cdf15beb" xlink:to="loc_us-gaap_GrossProfit_cc0ace07-66c5-4a7a-9a24-fee7d04292bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_0cd59014-c8b4-4f2e-a684-d61b81b59495" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_b5b8476a-2a33-4b6e-8963-7306cdf15beb" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_0cd59014-c8b4-4f2e-a684-d61b81b59495" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets_6a6574f8-5513-458f-90d5-af6f285cae2b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnDispositionOfAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_b5b8476a-2a33-4b6e-8963-7306cdf15beb" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets_6a6574f8-5513-458f-90d5-af6f285cae2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_3f8891e8-0db2-4083-bff7-7c4843f25e6f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_b5b8476a-2a33-4b6e-8963-7306cdf15beb" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_3f8891e8-0db2-4083-bff7-7c4843f25e6f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/ConsolidatedStatementofComprehensiveIncome" xlink:type="simple" xlink:href="trs-20221231.xsd#ConsolidatedStatementofComprehensiveIncome"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/ConsolidatedStatementofComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_6c36021e-afc5-4894-9a9a-a17fca89d90a" 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_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditNetOfTax_158bb332-c92d-4405-9a6b-01c1bae15ddd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_6c36021e-afc5-4894-9a9a-a17fca89d90a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditNetOfTax_158bb332-c92d-4405-9a6b-01c1bae15ddd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_ad030271-2609-4caf-9015-d3c0c8113795" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_OtherComprehensiveIncomeLossNetOfTax_6c36021e-afc5-4894-9a9a-a17fca89d90a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_ad030271-2609-4caf-9015-d3c0c8113795" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_OtherComprehensiveIncomeLossNetInvestmentDerivativesNetOfTax_d17e2898-4837-4464-9202-7e3ebe6f7c1f" xlink:href="trs-20221231.xsd#trs_OtherComprehensiveIncomeLossNetInvestmentDerivativesNetOfTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_6c36021e-afc5-4894-9a9a-a17fca89d90a" xlink:to="loc_trs_OtherComprehensiveIncomeLossNetInvestmentDerivativesNetOfTax_d17e2898-4837-4464-9202-7e3ebe6f7c1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_7b2b68f1-321c-4ed6-8a00-3302b62c9e31" 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_NetIncomeLoss_67976517-a49f-4aba-8eec-eaa1a16346b3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ComprehensiveIncomeNetOfTax_7b2b68f1-321c-4ed6-8a00-3302b62c9e31" xlink:to="loc_us-gaap_NetIncomeLoss_67976517-a49f-4aba-8eec-eaa1a16346b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_1b9a1223-1bd9-4592-942d-04d122b72693" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_7b2b68f1-321c-4ed6-8a00-3302b62c9e31" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_1b9a1223-1bd9-4592-942d-04d122b72693" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/ConsolidatedStatementofCashFlowsStatement" xlink:type="simple" xlink:href="trs-20221231.xsd#ConsolidatedStatementofCashFlowsStatement"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/ConsolidatedStatementofCashFlowsStatement" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_bf9b1276-943b-4af7-a8b1-98003b3284ba" 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_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_6bfa28a3-eb0e-4ddb-bc87-de847905c222" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_bf9b1276-943b-4af7-a8b1-98003b3284ba" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_6bfa28a3-eb0e-4ddb-bc87-de847905c222" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashProvidedByUsedInFinancingActivitiesDiscontinuedOperations_21739987-b231-45c3-b75d-97ba6b472fa2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashProvidedByUsedInFinancingActivitiesDiscontinuedOperations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_bf9b1276-943b-4af7-a8b1-98003b3284ba" xlink:to="loc_us-gaap_CashProvidedByUsedInFinancingActivitiesDiscontinuedOperations_21739987-b231-45c3-b75d-97ba6b472fa2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_9a304102-09d3-47e0-b2f8-4007f3a5b1ae" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperations_475c024a-4c85-40c8-bf68-50f2bd36b2d7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperations"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_9a304102-09d3-47e0-b2f8-4007f3a5b1ae" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperations_475c024a-4c85-40c8-bf68-50f2bd36b2d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_7be4b0f1-3ca5-4b7d-954e-025e3e07a42f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_9a304102-09d3-47e0-b2f8-4007f3a5b1ae" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_7be4b0f1-3ca5-4b7d-954e-025e3e07a42f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_576aeb33-fab6-413e-add1-c6ae98874b1c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_9a304102-09d3-47e0-b2f8-4007f3a5b1ae" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_576aeb33-fab6-413e-add1-c6ae98874b1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_1c745d3d-caf2-4572-a4c2-09eb17c2b09d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Depreciation"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_9a304102-09d3-47e0-b2f8-4007f3a5b1ae" xlink:to="loc_us-gaap_Depreciation_1c745d3d-caf2-4572-a4c2-09eb17c2b09d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_08f7d89b-5039-4804-a2dc-f34a89d0626b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_9a304102-09d3-47e0-b2f8-4007f3a5b1ae" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_08f7d89b-5039-4804-a2dc-f34a89d0626b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_a23f3cb8-b987-4c1d-90f0-ca512d627a4b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_9a304102-09d3-47e0-b2f8-4007f3a5b1ae" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_a23f3cb8-b987-4c1d-90f0-ca512d627a4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_ddaff801-2855-482e-ab15-0923dbabbd23" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxesAndTaxCredits"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_9a304102-09d3-47e0-b2f8-4007f3a5b1ae" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_ddaff801-2855-482e-ab15-0923dbabbd23" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_d9bb0b3b-5d69-491d-aa95-17436efdbf90" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_9a304102-09d3-47e0-b2f8-4007f3a5b1ae" xlink:to="loc_us-gaap_ShareBasedCompensation_d9bb0b3b-5d69-491d-aa95-17436efdbf90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts_74354cdb-887d-48cd-8ede-cf764dd260d5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_9a304102-09d3-47e0-b2f8-4007f3a5b1ae" xlink:to="loc_us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts_74354cdb-887d-48cd-8ede-cf764dd260d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_Increasedecreaseinasbestosliability_d306291d-1dbc-44f4-9058-efae3cf83972" xlink:href="trs-20221231.xsd#trs_Increasedecreaseinasbestosliability"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_9a304102-09d3-47e0-b2f8-4007f3a5b1ae" xlink:to="loc_trs_Increasedecreaseinasbestosliability_d306291d-1dbc-44f4-9058-efae3cf83972" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInReceivables_f0084900-ff10-46d7-8804-c393ed16e170" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInReceivables"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_9a304102-09d3-47e0-b2f8-4007f3a5b1ae" xlink:to="loc_us-gaap_IncreaseDecreaseInReceivables_f0084900-ff10-46d7-8804-c393ed16e170" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_b6a43e30-70cf-461a-927d-8ca6617d0dbf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_9a304102-09d3-47e0-b2f8-4007f3a5b1ae" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_b6a43e30-70cf-461a-927d-8ca6617d0dbf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_312c525d-d16f-413e-a6a3-d3229c9850fd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_9a304102-09d3-47e0-b2f8-4007f3a5b1ae" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_312c525d-d16f-413e-a6a3-d3229c9850fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_58ed9938-e005-4501-ac14-e5acae48277c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_9a304102-09d3-47e0-b2f8-4007f3a5b1ae" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_58ed9938-e005-4501-ac14-e5acae48277c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_103f7431-f367-480f-9385-8d51e794dfb2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_9a304102-09d3-47e0-b2f8-4007f3a5b1ae" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_103f7431-f367-480f-9385-8d51e794dfb2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_05bf8fd1-3d4e-45d1-a7b3-7b6301cd49f2" 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_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_1d36fab9-208f-481f-8f23-4e5d12b03d0e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_05bf8fd1-3d4e-45d1-a7b3-7b6301cd49f2" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_1d36fab9-208f-481f-8f23-4e5d12b03d0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashProvidedByUsedInInvestingActivitiesDiscontinuedOperations_b3ebd668-d098-48ee-ba93-0d4a94de4f6d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashProvidedByUsedInInvestingActivitiesDiscontinuedOperations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_05bf8fd1-3d4e-45d1-a7b3-7b6301cd49f2" xlink:to="loc_us-gaap_CashProvidedByUsedInInvestingActivitiesDiscontinuedOperations_b3ebd668-d098-48ee-ba93-0d4a94de4f6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_97030285-79f0-4dc7-ae79-55fddd19604d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarlyRepaymentOfSeniorDebt_7dad926e-4f27-45d1-b1cc-f79587ed5c26" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EarlyRepaymentOfSeniorDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_97030285-79f0-4dc7-ae79-55fddd19604d" xlink:to="loc_us-gaap_EarlyRepaymentOfSeniorDebt_7dad926e-4f27-45d1-b1cc-f79587ed5c26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_cdb41a19-b985-4357-9a2e-292fc5f3df49" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_97030285-79f0-4dc7-ae79-55fddd19604d" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_cdb41a19-b985-4357-9a2e-292fc5f3df49" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromBankDebt_50d50b96-c4b0-4145-aa8f-5c062503b7aa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromBankDebt"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_97030285-79f0-4dc7-ae79-55fddd19604d" xlink:to="loc_us-gaap_ProceedsFromBankDebt_50d50b96-c4b0-4145-aa8f-5c062503b7aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_05c0319f-a23c-4e4e-b65b-22975aa59955" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_97030285-79f0-4dc7-ae79-55fddd19604d" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_05c0319f-a23c-4e4e-b65b-22975aa59955" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_0684a376-b4ee-4d2c-9e7c-4a58bfdcb672" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromLinesOfCredit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_97030285-79f0-4dc7-ae79-55fddd19604d" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_0684a376-b4ee-4d2c-9e7c-4a58bfdcb672" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_f9d5fd30-1596-404f-a1e9-34ad359c7f61" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfLinesOfCredit"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_97030285-79f0-4dc7-ae79-55fddd19604d" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_f9d5fd30-1596-404f-a1e9-34ad359c7f61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_6e2dbcf0-be67-46d8-8611-622e52f11579" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_97030285-79f0-4dc7-ae79-55fddd19604d" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_6e2dbcf0-be67-46d8-8611-622e52f11579" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_e30b355a-458b-411b-84a8-b97a1aa729bd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_97030285-79f0-4dc7-ae79-55fddd19604d" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_e30b355a-458b-411b-84a8-b97a1aa729bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_e2d5451a-74b2-40fb-9d41-c3a460538547" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_97030285-79f0-4dc7-ae79-55fddd19604d" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_e2d5451a-74b2-40fb-9d41-c3a460538547" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_38017251-db3e-4c17-a8ae-7fdccd266072" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDividends"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_97030285-79f0-4dc7-ae79-55fddd19604d" xlink:to="loc_us-gaap_PaymentsOfDividends_38017251-db3e-4c17-a8ae-7fdccd266072" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_900d8f19-b96a-40c8-959c-160ec91fe1ce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromPaymentsForOtherFinancingActivities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_97030285-79f0-4dc7-ae79-55fddd19604d" xlink:to="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_900d8f19-b96a-40c8-959c-160ec91fe1ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_0db7012f-a663-43a3-8f1d-0f3334ef517e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireProductiveAssets_4e54f949-c22a-4b4c-92d8-a5a4fe99b46d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireProductiveAssets"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_0db7012f-a663-43a3-8f1d-0f3334ef517e" xlink:to="loc_us-gaap_PaymentsToAcquireProductiveAssets_4e54f949-c22a-4b4c-92d8-a5a4fe99b46d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_62e53c77-4b53-41bd-ad56-7b6c3237e16e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_0db7012f-a663-43a3-8f1d-0f3334ef517e" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_62e53c77-4b53-41bd-ad56-7b6c3237e16e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSalesOfBusinessAffiliateAndProductiveAssets_97e862b5-73c6-4116-83a1-b87e8372ad4f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSalesOfBusinessAffiliateAndProductiveAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_0db7012f-a663-43a3-8f1d-0f3334ef517e" xlink:to="loc_us-gaap_ProceedsFromSalesOfBusinessAffiliateAndProductiveAssets_97e862b5-73c6-4116-83a1-b87e8372ad4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromHedgeInvestingActivities_60ec883d-7a79-43e4-ba2c-3a33509a13c3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromHedgeInvestingActivities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_0db7012f-a663-43a3-8f1d-0f3334ef517e" xlink:to="loc_us-gaap_ProceedsFromHedgeInvestingActivities_60ec883d-7a79-43e4-ba2c-3a33509a13c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8a140ab6-a44c-45a4-b768-f7908dcdc372" 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_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_0a82ebdc-7f5d-4909-9b93-b6b4c061484d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8a140ab6-a44c-45a4-b768-f7908dcdc372" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_0a82ebdc-7f5d-4909-9b93-b6b4c061484d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations_06a2182f-a8c0-4267-b531-7731d3a7fa3e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8a140ab6-a44c-45a4-b768-f7908dcdc372" xlink:to="loc_us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations_06a2182f-a8c0-4267-b531-7731d3a7fa3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_aafbbcab-d389-4b93-b57b-93c5cea3f634" 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_NetCashProvidedByUsedInFinancingActivities_8e399568-380c-459f-b618-56e4744cf429" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_aafbbcab-d389-4b93-b57b-93c5cea3f634" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_8e399568-380c-459f-b618-56e4744cf429" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bb369636-8793-4c16-9b48-86c0886ef8cd" 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_aafbbcab-d389-4b93-b57b-93c5cea3f634" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bb369636-8793-4c16-9b48-86c0886ef8cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_576b236d-858f-4446-a356-56f16164c3f8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_aafbbcab-d389-4b93-b57b-93c5cea3f634" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_576b236d-858f-4446-a356-56f16164c3f8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/DiscontinuedOperationsResultsofDiscontinuedOperationsDetails" xlink:type="simple" xlink:href="trs-20221231.xsd#DiscontinuedOperationsResultsofDiscontinuedOperationsDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/DiscontinuedOperationsResultsofDiscontinuedOperationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_858a7843-648f-4dcb-9588-c92ffe9e5a54" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue_84ab1b48-e07f-470a-ac2e-5181e6254e34" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_858a7843-648f-4dcb-9588-c92ffe9e5a54" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue_84ab1b48-e07f-470a-ac2e-5181e6254e34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold_b9b6e6f8-e955-497a-a776-c3786ffe7ef1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_858a7843-648f-4dcb-9588-c92ffe9e5a54" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold_b9b6e6f8-e955-497a-a776-c3786ffe7ef1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_6ae0c4c9-931b-456b-8b7e-5423824ca2ac" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_5352e3dd-5210-4944-917d-a62cb3bf1d84" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_6ae0c4c9-931b-456b-8b7e-5423824ca2ac" xlink:to="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_5352e3dd-5210-4944-917d-a62cb3bf1d84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation_9ed43ae9-565c-4be8-a6ab-d6cc8c54691b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_6ae0c4c9-931b-456b-8b7e-5423824ca2ac" xlink:to="loc_us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation_9ed43ae9-565c-4be8-a6ab-d6cc8c54691b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_238f2e95-163a-45e7-b668-ee91315eab72" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_a7da70a2-e8f6-4100-9d9e-61f983142da6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_238f2e95-163a-45e7-b668-ee91315eab72" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_a7da70a2-e8f6-4100-9d9e-61f983142da6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_DisposalGroupIncludingDiscontinuedOperationsSGA_76f5fa9e-c8a9-4b88-b94e-1f840ed116fe" xlink:href="trs-20221231.xsd#trs_DisposalGroupIncludingDiscontinuedOperationsSGA"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_238f2e95-163a-45e7-b668-ee91315eab72" xlink:to="loc_trs_DisposalGroupIncludingDiscontinuedOperationsSGA_76f5fa9e-c8a9-4b88-b94e-1f840ed116fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets_df13fc54-3e59-4ce7-9426-01fd69e505d0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnDispositionOfAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_238f2e95-163a-45e7-b668-ee91315eab72" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets_df13fc54-3e59-4ce7-9426-01fd69e505d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_DisposalGroupIncludingDiscontinuedOperationsNonoperatingExpense_55cee5f8-aa43-4334-a92e-633fa7d95fdc" xlink:href="trs-20221231.xsd#trs_DisposalGroupIncludingDiscontinuedOperationsNonoperatingExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationInterestExpense_091a1aaf-e1ad-4b9e-83ea-11985892c032" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationInterestExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_trs_DisposalGroupIncludingDiscontinuedOperationsNonoperatingExpense_55cee5f8-aa43-4334-a92e-633fa7d95fdc" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationInterestExpense_091a1aaf-e1ad-4b9e-83ea-11985892c032" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_DisposalGroupIncludingDiscontinuedOperationsOtherExpensenet_38efc848-b41b-40d3-b771-6a06d10fcea3" xlink:href="trs-20221231.xsd#trs_DisposalGroupIncludingDiscontinuedOperationsOtherExpensenet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_trs_DisposalGroupIncludingDiscontinuedOperationsNonoperatingExpense_55cee5f8-aa43-4334-a92e-633fa7d95fdc" xlink:to="loc_trs_DisposalGroupIncludingDiscontinuedOperationsOtherExpensenet_38efc848-b41b-40d3-b771-6a06d10fcea3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/CashandCashEquivalentsDetails" xlink:type="simple" xlink:href="trs-20221231.xsd#CashandCashEquivalentsDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/CashandCashEquivalentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5c9ec58b-cd55-44e7-a92c-f85192727dcb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_df8f2a27-5d14-4d5f-9295-9800172e27a3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedCash"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5c9ec58b-cd55-44e7-a92c-f85192727dcb" xlink:to="loc_us-gaap_RestrictedCash_df8f2a27-5d14-4d5f-9295-9800172e27a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_CashAndCashEquivalentsUnrestricted_2914d01b-cb9a-41a1-aaa5-fdd53bbbbf13" xlink:href="trs-20221231.xsd#trs_CashAndCashEquivalentsUnrestricted"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5c9ec58b-cd55-44e7-a92c-f85192727dcb" xlink:to="loc_trs_CashAndCashEquivalentsUnrestricted_2914d01b-cb9a-41a1-aaa5-fdd53bbbbf13" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/InventoriesDetails" xlink:type="simple" xlink:href="trs-20221231.xsd#InventoriesDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/InventoriesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_560264f8-5c92-4d3a-8430-6b1cce34df1c" 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_InventoryFinishedGoodsNetOfReserves_0b45e815-b9b8-4c87-a776-91c281e4d03b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryFinishedGoodsNetOfReserves"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_560264f8-5c92-4d3a-8430-6b1cce34df1c" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_0b45e815-b9b8-4c87-a776-91c281e4d03b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_43450002-7c51-42f2-ba3e-191a476a744e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryWorkInProcessNetOfReserves"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_560264f8-5c92-4d3a-8430-6b1cce34df1c" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_43450002-7c51-42f2-ba3e-191a476a744e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsNetOfReserves_f4a9412d-a330-4b29-b35b-3bcb57755b66" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryRawMaterialsNetOfReserves"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_560264f8-5c92-4d3a-8430-6b1cce34df1c" xlink:to="loc_us-gaap_InventoryRawMaterialsNetOfReserves_f4a9412d-a330-4b29-b35b-3bcb57755b66" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/PropertyandEquipmentNetPropertyandEquipmentTableDetails" xlink:type="simple" xlink:href="trs-20221231.xsd#PropertyandEquipmentNetPropertyandEquipmentTableDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/PropertyandEquipmentNetPropertyandEquipmentTableDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_8dd14d0c-0248-463c-85f6-7654155c0993" 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_1f6ad390-4668-4117-88fa-513964c2c1de" 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_8dd14d0c-0248-463c-85f6-7654155c0993" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_1f6ad390-4668-4117-88fa-513964c2c1de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_33aae016-b874-46b9-a583-2cc8aa216a5e" 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_8dd14d0c-0248-463c-85f6-7654155c0993" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_33aae016-b874-46b9-a583-2cc8aa216a5e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/AccruedLiabilitiesDetails" xlink:type="simple" xlink:href="trs-20221231.xsd#AccruedLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/AccruedLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_ce64b85a-f98f-48a2-9f8e-6233754f103c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedInsuranceCurrent_28d7f18f-4d54-40d6-97f3-bf32c09afdab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedInsuranceCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_ce64b85a-f98f-48a2-9f8e-6233754f103c" xlink:to="loc_us-gaap_AccruedInsuranceCurrent_28d7f18f-4d54-40d6-97f3-bf32c09afdab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_4fe1e141-db82-4c75-9877-dcc88c5e2dec" 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_AccruedLiabilitiesCurrent_ce64b85a-f98f-48a2-9f8e-6233754f103c" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_4fe1e141-db82-4c75-9877-dcc88c5e2dec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_eae5f44e-ed9e-468a-8915-0b27627371f7" 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_AccruedLiabilitiesCurrent_ce64b85a-f98f-48a2-9f8e-6233754f103c" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_eae5f44e-ed9e-468a-8915-0b27627371f7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/LeasesOperatingLeaseLiabilityMaturityTableDetails" xlink:type="simple" xlink:href="trs-20221231.xsd#LeasesOperatingLeaseLiabilityMaturityTableDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/LeasesOperatingLeaseLiabilityMaturityTableDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_763d64e6-a2c8-4daf-8fb9-eee37d1ecad6" 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_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_72906109-797b-48fc-a6f3-c771f1a3d930" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_763d64e6-a2c8-4daf-8fb9-eee37d1ecad6" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_72906109-797b-48fc-a6f3-c771f1a3d930" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_85814c68-4cf8-4436-bb38-92435dadd1bb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_763d64e6-a2c8-4daf-8fb9-eee37d1ecad6" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_85814c68-4cf8-4436-bb38-92435dadd1bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_42e35e46-6b93-425f-a034-74d5e7a35d8c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_763d64e6-a2c8-4daf-8fb9-eee37d1ecad6" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_42e35e46-6b93-425f-a034-74d5e7a35d8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_797306cd-8385-46b4-8b24-5026717cb31a" 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_763d64e6-a2c8-4daf-8fb9-eee37d1ecad6" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_797306cd-8385-46b4-8b24-5026717cb31a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_4b28150e-96cc-429a-8074-9d87aeb43b26" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_763d64e6-a2c8-4daf-8fb9-eee37d1ecad6" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_4b28150e-96cc-429a-8074-9d87aeb43b26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_8a25b435-3b56-4cab-90eb-186013a43a88" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_763d64e6-a2c8-4daf-8fb9-eee37d1ecad6" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_8a25b435-3b56-4cab-90eb-186013a43a88" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/OtherLongtermLiabilitiesDetails" xlink:type="simple" xlink:href="trs-20221231.xsd#OtherLongtermLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/OtherLongtermLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_d9aa53a8-0d47-4c2b-9909-e9564c82acd8" 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_trs_AsbestosRelatedLiabilityNoncurrent_d16d5b87-4471-42fb-9f8c-d7c35d449c93" xlink:href="trs-20221231.xsd#trs_AsbestosRelatedLiabilityNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_d9aa53a8-0d47-4c2b-9909-e9564c82acd8" xlink:to="loc_trs_AsbestosRelatedLiabilityNoncurrent_d16d5b87-4471-42fb-9f8c-d7c35d449c93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_OtherLongTermLiabilitiesOtherThanAsbestosLiability_f2e80135-43ca-435f-b465-f0f8ba77914f" xlink:href="trs-20221231.xsd#trs_OtherLongTermLiabilitiesOtherThanAsbestosLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_d9aa53a8-0d47-4c2b-9909-e9564c82acd8" xlink:to="loc_trs_OtherLongTermLiabilitiesOtherThanAsbestosLiability_f2e80135-43ca-435f-b465-f0f8ba77914f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/EmployeeBenefitPlansNetPeriodicPensionandPostretirementBenefitCostsDetails" xlink:type="simple" xlink:href="trs-20221231.xsd#EmployeeBenefitPlansNetPeriodicPensionandPostretirementBenefitCostsDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/EmployeeBenefitPlansNetPeriodicPensionandPostretirementBenefitCostsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_a55bc437-8fda-45be-b151-84ee00927119" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_b35f65e3-f8a6-45b5-b2d8-17317f70b533" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_a55bc437-8fda-45be-b151-84ee00927119" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_b35f65e3-f8a6-45b5-b2d8-17317f70b533" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_8c7d6003-61dd-4aa8-9302-202d01599c1d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_a55bc437-8fda-45be-b151-84ee00927119" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_8c7d6003-61dd-4aa8-9302-202d01599c1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_49f7fa4a-0d2b-4810-9fc4-c90e339940d5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_a55bc437-8fda-45be-b151-84ee00927119" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_49f7fa4a-0d2b-4810-9fc4-c90e339940d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_1b54edf1-c486-40bf-9a8a-f025505c037e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_a55bc437-8fda-45be-b151-84ee00927119" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_1b54edf1-c486-40bf-9a8a-f025505c037e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_6dce2053-bb13-4596-ac9a-4108e9ce9ae2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_a55bc437-8fda-45be-b151-84ee00927119" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_6dce2053-bb13-4596-ac9a-4108e9ce9ae2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_f9cf354b-2104-4116-8694-acb0a6daef90" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_a55bc437-8fda-45be-b151-84ee00927119" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_f9cf354b-2104-4116-8694-acb0a6daef90" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/EmployeeBenefitPlansDefinedBenefitPlanChangeinBenefitObligationsandPlanAssetsTableDetails" xlink:type="simple" xlink:href="trs-20221231.xsd#EmployeeBenefitPlansDefinedBenefitPlanChangeinBenefitObligationsandPlanAssetsTableDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/EmployeeBenefitPlansDefinedBenefitPlanChangeinBenefitObligationsandPlanAssetsTableDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_5e2a8b2b-3058-4dfa-81a5-dd0976dc847a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_b9934957-6152-495e-bc6e-e01649b3bee0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_5e2a8b2b-3058-4dfa-81a5-dd0976dc847a" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_b9934957-6152-495e-bc6e-e01649b3bee0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_0cf87623-cf82-4436-8f4b-e2c5fe9f3387" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_5e2a8b2b-3058-4dfa-81a5-dd0976dc847a" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_0cf87623-cf82-4436-8f4b-e2c5fe9f3387" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/EmployeeBenefitPlansAmountsRecognizedonBalanceSheetTableDetails" xlink:type="simple" xlink:href="trs-20221231.xsd#EmployeeBenefitPlansAmountsRecognizedonBalanceSheetTableDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/EmployeeBenefitPlansAmountsRecognizedonBalanceSheetTableDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet_358f0699-2695-4e5a-b9cf-d7420b6479f5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent_a57d054e-9aaf-4db9-95ae-f4eee07f2740" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet_358f0699-2695-4e5a-b9cf-d7420b6479f5" xlink:to="loc_us-gaap_DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent_a57d054e-9aaf-4db9-95ae-f4eee07f2740" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_ecc91ba6-75ef-479b-a746-5e9b2c1978f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet_358f0699-2695-4e5a-b9cf-d7420b6479f5" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_ecc91ba6-75ef-479b-a746-5e9b2c1978f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_ecf61bdf-40ba-401b-a26a-ec8f1c42ddee" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet_358f0699-2695-4e5a-b9cf-d7420b6479f5" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_ecf61bdf-40ba-401b-a26a-ec8f1c42ddee" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/EmployeeBenefitPlansAmountsRecognizedinAccumulatedOtherComprehensiveIncomeLossDetails" xlink:type="simple" xlink:href="trs-20221231.xsd#EmployeeBenefitPlansAmountsRecognizedinAccumulatedOtherComprehensiveIncomeLossDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/EmployeeBenefitPlansAmountsRecognizedinAccumulatedOtherComprehensiveIncomeLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_e01f043c-5865-4269-b26d-95da6a32ff33" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditAfterTax_4ca4ac70-9075-440c-bd79-adc16f08c43a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditAfterTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_e01f043c-5865-4269-b26d-95da6a32ff33" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditAfterTax_4ca4ac70-9075-440c-bd79-adc16f08c43a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax_eac36a82-6566-4c5a-b17e-ad3fa02141f7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_e01f043c-5865-4269-b26d-95da6a32ff33" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax_eac36a82-6566-4c5a-b17e-ad3fa02141f7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/OtherComprehensiveIncomeDetails" xlink:type="simple" xlink:href="trs-20221231.xsd#OtherComprehensiveIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/OtherComprehensiveIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_afeba5da-8301-42ba-9ba8-330b76cf16ad" 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_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_7108adba-d846-4e45-9987-69c139230210" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_afeba5da-8301-42ba-9ba8-330b76cf16ad" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_7108adba-d846-4e45-9987-69c139230210" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_9fc04f1a-4b70-4f6f-a33f-365d4bb9419a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_afeba5da-8301-42ba-9ba8-330b76cf16ad" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_9fc04f1a-4b70-4f6f-a33f-365d4bb9419a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/IncomeTaxesIncomeTaxbyJurisdictionDetails" xlink:type="simple" xlink:href="trs-20221231.xsd#IncomeTaxesIncomeTaxbyJurisdictionDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/IncomeTaxesIncomeTaxbyJurisdictionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_da64df9d-56c0-4f6a-b529-db5d5fa4da1c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_cc1b4422-5d90-4606-95f6-44e1900e7f97" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_da64df9d-56c0-4f6a-b529-db5d5fa4da1c" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_cc1b4422-5d90-4606-95f6-44e1900e7f97" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_bd64ff22-e83b-47ed-b69c-69c390c0e0ee" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_da64df9d-56c0-4f6a-b529-db5d5fa4da1c" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_bd64ff22-e83b-47ed-b69c-69c390c0e0ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_cce5e68b-8077-46e6-acdc-e200d5fe85c2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_da64df9d-56c0-4f6a-b529-db5d5fa4da1c" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_cce5e68b-8077-46e6-acdc-e200d5fe85c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_8b46c9f2-3a25-47bb-b08d-b3fa51b53552" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d1439f9c-d593-4a76-823d-5847bcd188b5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_8b46c9f2-3a25-47bb-b08d-b3fa51b53552" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d1439f9c-d593-4a76-823d-5847bcd188b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_a06e49ca-b446-452a-aea4-458f255d619f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_8b46c9f2-3a25-47bb-b08d-b3fa51b53552" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_a06e49ca-b446-452a-aea4-458f255d619f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_e8dac56c-3ac0-4a7f-8fb3-4fe057f4bd6f" 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_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_56d6d923-2f9f-4f74-a6ce-b82628e2724f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_e8dac56c-3ac0-4a7f-8fb3-4fe057f4bd6f" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_56d6d923-2f9f-4f74-a6ce-b82628e2724f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_3d18e0d3-1e60-4063-82d6-1d06d12e332e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_e8dac56c-3ac0-4a7f-8fb3-4fe057f4bd6f" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_3d18e0d3-1e60-4063-82d6-1d06d12e332e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_3835b602-8963-4ac6-bd31-e3b6a8737480" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_c5ab4265-1d63-4a2e-b2e2-41de9362e9b6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_3835b602-8963-4ac6-bd31-e3b6a8737480" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_c5ab4265-1d63-4a2e-b2e2-41de9362e9b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_8a5d2c2e-9904-4619-b20d-b629d8b3f88c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_3835b602-8963-4ac6-bd31-e3b6a8737480" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_8a5d2c2e-9904-4619-b20d-b629d8b3f88c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_261fa944-8873-45a3-a688-cb12f31dd87a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_3835b602-8963-4ac6-bd31-e3b6a8737480" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_261fa944-8873-45a3-a688-cb12f31dd87a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/IncomeTaxesComponentsofDeferredTaxesDetails" xlink:type="simple" xlink:href="trs-20221231.xsd#IncomeTaxesComponentsofDeferredTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/IncomeTaxesComponentsofDeferredTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_282f0b82-edef-44d9-a3a4-013f44b7f6f7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_ecd965c3-b7c2-4d5e-902f-c7eca01dfc94" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_282f0b82-edef-44d9-a3a4-013f44b7f6f7" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_ecd965c3-b7c2-4d5e-902f-c7eca01dfc94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_980194aa-a136-48d7-8816-e7ee10f688ef" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_282f0b82-edef-44d9-a3a4-013f44b7f6f7" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_980194aa-a136-48d7-8816-e7ee10f688ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_a7844b69-a13c-43d7-b64c-6c8afeb47bff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts_976b5e24-c0d5-4b00-9a94-d0ab7392402d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a7844b69-a13c-43d7-b64c-6c8afeb47bff" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts_976b5e24-c0d5-4b00-9a94-d0ab7392402d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsInventory_e418f5d2-561d-4de2-933c-d81f8e97237d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsInventory"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a7844b69-a13c-43d7-b64c-6c8afeb47bff" xlink:to="loc_us-gaap_DeferredTaxAssetsInventory_e418f5d2-561d-4de2-933c-d81f8e97237d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsOther_66f5f8e1-d651-4468-8ba9-c62310954913" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsOther"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a7844b69-a13c-43d7-b64c-6c8afeb47bff" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsOther_66f5f8e1-d651-4468-8ba9-c62310954913" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_DeferredTaxAssetsOperatingleaseliability_5b049766-cd31-43bb-b45f-aa2ca61a62c6" xlink:href="trs-20221231.xsd#trs_DeferredTaxAssetsOperatingleaseliability"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a7844b69-a13c-43d7-b64c-6c8afeb47bff" xlink:to="loc_trs_DeferredTaxAssetsOperatingleaseliability_5b049766-cd31-43bb-b45f-aa2ca61a62c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_DeferredTaxAssetsOperatingLossAndCreditCarryforwards_65ebaecc-8fbb-46b2-bc5f-0a8ca3aa05a1" xlink:href="trs-20221231.xsd#trs_DeferredTaxAssetsOperatingLossAndCreditCarryforwards"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a7844b69-a13c-43d7-b64c-6c8afeb47bff" xlink:to="loc_trs_DeferredTaxAssetsOperatingLossAndCreditCarryforwards_65ebaecc-8fbb-46b2-bc5f-0a8ca3aa05a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_47472e18-f636-4669-81a9-d6260aaf9f83" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsOther"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a7844b69-a13c-43d7-b64c-6c8afeb47bff" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_47472e18-f636-4669-81a9-d6260aaf9f83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets_4c476c0c-494c-483e-bf5d-79c5436347f3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_DeferredTaxAssetsGross_a7844b69-a13c-43d7-b64c-6c8afeb47bff" xlink:to="loc_us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets_4c476c0c-494c-483e-bf5d-79c5436347f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_DeferredTaxAssetsResearchAndExperimentation_327c6033-7bb9-49f1-be47-d8e09422631a" xlink:href="trs-20221231.xsd#trs_DeferredTaxAssetsResearchAndExperimentation"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a7844b69-a13c-43d7-b64c-6c8afeb47bff" xlink:to="loc_trs_DeferredTaxAssetsResearchAndExperimentation_327c6033-7bb9-49f1-be47-d8e09422631a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_f4f306cb-9eda-4063-958c-62df7420895f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_f7b5ee2c-4b8c-471d-aed0-ad644846e9d9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f4f306cb-9eda-4063-958c-62df7420895f" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_f7b5ee2c-4b8c-471d-aed0-ad644846e9d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_DeferredTaxLiabilitiesRightofUseAsset_c7dd32c5-3554-4fa7-8b1f-cb6146b4641d" xlink:href="trs-20221231.xsd#trs_DeferredTaxLiabilitiesRightofUseAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_f4f306cb-9eda-4063-958c-62df7420895f" xlink:to="loc_trs_DeferredTaxLiabilitiesRightofUseAsset_c7dd32c5-3554-4fa7-8b1f-cb6146b4641d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets_103c48c3-7f0b-43fa-8c9a-68073f9a88e9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_f4f306cb-9eda-4063-958c-62df7420895f" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets_103c48c3-7f0b-43fa-8c9a-68073f9a88e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_DeferredTaxLiabilitiesInvestmentinForeignAffiliatesIncludingWithholdingTax_46b4072d-bee6-48c2-839e-29d3bb293c19" xlink:href="trs-20221231.xsd#trs_DeferredTaxLiabilitiesInvestmentinForeignAffiliatesIncludingWithholdingTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_f4f306cb-9eda-4063-958c-62df7420895f" xlink:to="loc_trs_DeferredTaxLiabilitiesInvestmentinForeignAffiliatesIncludingWithholdingTax_46b4072d-bee6-48c2-839e-29d3bb293c19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_b3468e5b-d9ff-4901-a381-7c73c12a9a3d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxLiabilitiesOther"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_f4f306cb-9eda-4063-958c-62df7420895f" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_b3468e5b-d9ff-4901-a381-7c73c12a9a3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_4c0788ee-be82-4416-9ff3-074772ea8979" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_e93ad4f4-c275-4be7-aa7d-6bb5a074e6ac" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4c0788ee-be82-4416-9ff3-074772ea8979" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_e93ad4f4-c275-4be7-aa7d-6bb5a074e6ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_3de01435-3df8-447f-8c06-017675a1ba80" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_4c0788ee-be82-4416-9ff3-074772ea8979" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_3de01435-3df8-447f-8c06-017675a1ba80" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/IncomeTaxesIncomeTaxExpenseReconciliationDetails" xlink:type="simple" xlink:href="trs-20221231.xsd#IncomeTaxesIncomeTaxExpenseReconciliationDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/IncomeTaxesIncomeTaxExpenseReconciliationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_4a12ffde-f320-4ff1-add1-ca9584850cb5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_ade52854-c05a-4117-9b00-b806960f9bd1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_4a12ffde-f320-4ff1-add1-ca9584850cb5" xlink:to="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_ade52854-c05a-4117-9b00-b806960f9bd1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_6931f1fa-48c6-4023-8369-3f594c06c5d8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_4a12ffde-f320-4ff1-add1-ca9584850cb5" xlink:to="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_6931f1fa-48c6-4023-8369-3f594c06c5d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential_c381c3b2-f0d8-4d16-a3ca-48855d8495a9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_4a12ffde-f320-4ff1-add1-ca9584850cb5" xlink:to="loc_us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential_c381c3b2-f0d8-4d16-a3ca-48855d8495a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxContingencies_84f5a590-b9ae-430e-b075-79d7afed13e9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxReconciliationTaxContingencies"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_4a12ffde-f320-4ff1-add1-ca9584850cb5" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxContingencies_84f5a590-b9ae-430e-b075-79d7afed13e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseImpairmentLosses_e660b08b-64ce-4d3d-9e7e-2a887c5b6380" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseImpairmentLosses"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_4a12ffde-f320-4ff1-add1-ca9584850cb5" xlink:to="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseImpairmentLosses_e660b08b-64ce-4d3d-9e7e-2a887c5b6380" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxExemptIncome_d62826ff-b4de-4894-9ef9-27e34d9b32dc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxReconciliationTaxExemptIncome"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_4a12ffde-f320-4ff1-add1-ca9584850cb5" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxExemptIncome_d62826ff-b4de-4894-9ef9-27e34d9b32dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxCreditsResearch_ead0803e-1917-4628-8684-af2d63268377" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxReconciliationTaxCreditsResearch"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_4a12ffde-f320-4ff1-add1-ca9584850cb5" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxCreditsResearch_ead0803e-1917-4628-8684-af2d63268377" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_IncomeTaxReconciliationTaxonUndistributedForeignEarnings_765cebd8-9f75-4572-a8b1-b2dc662cc4a1" xlink:href="trs-20221231.xsd#trs_IncomeTaxReconciliationTaxonUndistributedForeignEarnings"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_4a12ffde-f320-4ff1-add1-ca9584850cb5" xlink:to="loc_trs_IncomeTaxReconciliationTaxonUndistributedForeignEarnings_765cebd8-9f75-4572-a8b1-b2dc662cc4a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_4faf6d34-25e4-4edf-b533-c99e88db2cf4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_4a12ffde-f320-4ff1-add1-ca9584850cb5" xlink:to="loc_us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_4faf6d34-25e4-4edf-b533-c99e88db2cf4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_IncomeTaxReconciliationTaxReform_d6fdd2fe-0c70-4e7d-aa25-f036346db701" xlink:href="trs-20221231.xsd#trs_IncomeTaxReconciliationTaxReform"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_4a12ffde-f320-4ff1-add1-ca9584850cb5" xlink:to="loc_trs_IncomeTaxReconciliationTaxReform_d6fdd2fe-0c70-4e7d-aa25-f036346db701" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost_243e40b1-f526-4146-9421-4d94901c5da1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_4a12ffde-f320-4ff1-add1-ca9584850cb5" xlink:to="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost_243e40b1-f526-4146-9421-4d94901c5da1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationOtherAdjustments_ce68f472-d120-48a4-9866-d37e4414bdc5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxReconciliationOtherAdjustments"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_4a12ffde-f320-4ff1-add1-ca9584850cb5" xlink:to="loc_us-gaap_IncomeTaxReconciliationOtherAdjustments_ce68f472-d120-48a4-9866-d37e4414bdc5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseRestructuringCharges_493c3b15-9a4a-4283-9884-20f14f77df59" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseRestructuringCharges"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_4a12ffde-f320-4ff1-add1-ca9584850cb5" xlink:to="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseRestructuringCharges_493c3b15-9a4a-4283-9884-20f14f77df59" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
