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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:49149fab-c4a9-40c1-90f0-36f8acfaf3a2,g:4f131a97-4df1-441f-aae1-59f8c71e1794-->
<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-20240630.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_AssetsCurrent_813ccd60-50ed-4aea-9322-f50a747d118a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_3766a363-04f9-47a2-81b7-94605c3b17de" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_813ccd60-50ed-4aea-9322-f50a747d118a" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_3766a363-04f9-47a2-81b7-94605c3b17de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_a3ebd226-bd5c-402f-92db-a54ebc90e969" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_813ccd60-50ed-4aea-9322-f50a747d118a" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_a3ebd226-bd5c-402f-92db-a54ebc90e969" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_0f3cb696-8e83-4684-94ef-e3cdb85a8e82" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_813ccd60-50ed-4aea-9322-f50a747d118a" xlink:to="loc_us-gaap_InventoryNet_0f3cb696-8e83-4684-94ef-e3cdb85a8e82" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_5723d9f2-e1fe-4af6-a4a2-d106af9b62bb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_813ccd60-50ed-4aea-9322-f50a747d118a" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_5723d9f2-e1fe-4af6-a4a2-d106af9b62bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_75e93e06-3c14-49f0-8a51-af72ff1fd972" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtCurrent_528cce36-0790-4f70-8555-28182f9d85f3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_75e93e06-3c14-49f0-8a51-af72ff1fd972" xlink:to="loc_us-gaap_DebtCurrent_528cce36-0790-4f70-8555-28182f9d85f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_dcdfc015-e5b5-452b-bf96-c113bbc622a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_75e93e06-3c14-49f0-8a51-af72ff1fd972" xlink:to="loc_us-gaap_AccountsPayableCurrent_dcdfc015-e5b5-452b-bf96-c113bbc622a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_01256d2e-0429-4762-a0f1-60d30dcc1889" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_75e93e06-3c14-49f0-8a51-af72ff1fd972" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_01256d2e-0429-4762-a0f1-60d30dcc1889" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_LeaseLiabilitiesCurrentPortion_03f66161-b7dc-45cc-92ce-28b8931258f8" xlink:href="trs-20240630.xsd#trs_LeaseLiabilitiesCurrentPortion"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_75e93e06-3c14-49f0-8a51-af72ff1fd972" xlink:to="loc_trs_LeaseLiabilitiesCurrentPortion_03f66161-b7dc-45cc-92ce-28b8931258f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_83c634c4-2059-447f-bb86-ad66d83a659b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_e6d3af6d-fc4d-46ee-bd58-5b225e05d9c9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_83c634c4-2059-447f-bb86-ad66d83a659b" xlink:to="loc_us-gaap_LiabilitiesCurrent_e6d3af6d-fc4d-46ee-bd58-5b225e05d9c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_1aa4d4fb-3255-4f89-8963-855b53546e76" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_83c634c4-2059-447f-bb86-ad66d83a659b" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_1aa4d4fb-3255-4f89-8963-855b53546e76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_LeaseLiabilitiesNoncurrent_7bb7026e-36c3-4bbe-917e-ef303a2365b0" xlink:href="trs-20240630.xsd#trs_LeaseLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_83c634c4-2059-447f-bb86-ad66d83a659b" xlink:to="loc_trs_LeaseLiabilitiesNoncurrent_7bb7026e-36c3-4bbe-917e-ef303a2365b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_3fc1d44c-2d45-4da6-b7a8-be3e7ccc6fd8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_83c634c4-2059-447f-bb86-ad66d83a659b" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_3fc1d44c-2d45-4da6-b7a8-be3e7ccc6fd8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_589412e8-8511-4210-a86a-30e5e8da2c98" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_83c634c4-2059-447f-bb86-ad66d83a659b" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_589412e8-8511-4210-a86a-30e5e8da2c98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_810a5875-73be-4614-915e-b4a1ffd94b42" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_cc677762-d68f-4d3c-a89a-d06e43a1e13a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_810a5875-73be-4614-915e-b4a1ffd94b42" xlink:to="loc_us-gaap_PreferredStockValue_cc677762-d68f-4d3c-a89a-d06e43a1e13a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_6b14cbbc-bf3d-4f25-b8c4-02627542591f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_810a5875-73be-4614-915e-b4a1ffd94b42" xlink:to="loc_us-gaap_CommonStockValue_6b14cbbc-bf3d-4f25-b8c4-02627542591f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_30e2679b-74bc-4d33-9373-07d32304b322" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_810a5875-73be-4614-915e-b4a1ffd94b42" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_30e2679b-74bc-4d33-9373-07d32304b322" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_47411f11-833b-4533-b6b5-0780395866d9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_810a5875-73be-4614-915e-b4a1ffd94b42" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_47411f11-833b-4533-b6b5-0780395866d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_360f2ed5-d266-4b22-8def-4a0ffafcf948" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_810a5875-73be-4614-915e-b4a1ffd94b42" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_360f2ed5-d266-4b22-8def-4a0ffafcf948" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_3187aa0b-8071-449f-a457-c1f41ea308e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_c7545079-94aa-42b4-93d5-5e067398ac6c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_3187aa0b-8071-449f-a457-c1f41ea308e7" xlink:to="loc_us-gaap_StockholdersEquity_c7545079-94aa-42b4-93d5-5e067398ac6c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_3983d95b-3dfa-4412-9204-ddfeeb9aade0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_3187aa0b-8071-449f-a457-c1f41ea308e7" xlink:to="loc_us-gaap_Liabilities_3983d95b-3dfa-4412-9204-ddfeeb9aade0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_30539a30-6534-4ae4-b470-55d9638aa605" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_920cd8e5-5104-4ff7-a509-6a1b6777d689" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_30539a30-6534-4ae4-b470-55d9638aa605" xlink:to="loc_us-gaap_AssetsCurrent_920cd8e5-5104-4ff7-a509-6a1b6777d689" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_d25447e6-e0cd-417d-b9c1-0e7c95f35b06" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_30539a30-6534-4ae4-b470-55d9638aa605" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_d25447e6-e0cd-417d-b9c1-0e7c95f35b06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_5df7a0b3-7053-44c8-a6e3-4cacdccc7c91" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_30539a30-6534-4ae4-b470-55d9638aa605" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_5df7a0b3-7053-44c8-a6e3-4cacdccc7c91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_efd6b6b9-b452-431b-b13a-6ddcd73be69c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_30539a30-6534-4ae4-b470-55d9638aa605" xlink:to="loc_us-gaap_Goodwill_efd6b6b9-b452-431b-b13a-6ddcd73be69c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_208dbb30-8bd5-413d-84a3-2b8a01666875" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_30539a30-6534-4ae4-b470-55d9638aa605" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_208dbb30-8bd5-413d-84a3-2b8a01666875" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_2d4cac0c-6c96-45ea-86a0-534723d774eb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_30539a30-6534-4ae4-b470-55d9638aa605" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_2d4cac0c-6c96-45ea-86a0-534723d774eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_207817b4-85ea-4181-9e47-0d757e388ed0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_30539a30-6534-4ae4-b470-55d9638aa605" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_207817b4-85ea-4181-9e47-0d757e388ed0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/ConsolidatedStatementofIncome" xlink:type="simple" xlink:href="trs-20240630.xsd#ConsolidatedStatementofIncome"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/ConsolidatedStatementofIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_f292f4b3-7a57-4d57-a29f-3d3d45a048d9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_5a2d51de-c5eb-4296-be62-32bdb674938d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_f292f4b3-7a57-4d57-a29f-3d3d45a048d9" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_5a2d51de-c5eb-4296-be62-32bdb674938d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_bc84e387-eb45-4558-9c4a-f87598673775" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_f292f4b3-7a57-4d57-a29f-3d3d45a048d9" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_bc84e387-eb45-4558-9c4a-f87598673775" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax_4e678d2c-4458-42b1-88b8-fda29fc90311" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_f292f4b3-7a57-4d57-a29f-3d3d45a048d9" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax_4e678d2c-4458-42b1-88b8-fda29fc90311" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_bf74ecf8-423e-429b-b93c-d79a17cc3d5c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_10bd8fee-981f-4ce2-8c4e-5fef5d5b5bc8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_bf74ecf8-423e-429b-b93c-d79a17cc3d5c" xlink:to="loc_us-gaap_InterestExpense_10bd8fee-981f-4ce2-8c4e-5fef5d5b5bc8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_f6c531d4-eb20-4269-9cf4-287bbc94a522" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_bf74ecf8-423e-429b-b93c-d79a17cc3d5c" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_f6c531d4-eb20-4269-9cf4-287bbc94a522" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_0b449fe4-ab73-4689-ace3-38d708bd5d6d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_bf74ecf8-423e-429b-b93c-d79a17cc3d5c" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_0b449fe4-ab73-4689-ace3-38d708bd5d6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c8efc0a2-7b7c-4d92-8615-fd89682b3da8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_6ea277e7-e15a-4fd1-bacf-996f8acb8fa4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_c8efc0a2-7b7c-4d92-8615-fd89682b3da8" xlink:to="loc_us-gaap_OperatingIncomeLoss_6ea277e7-e15a-4fd1-bacf-996f8acb8fa4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_88fdb203-bb72-4b64-803c-576f2e93c581" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_c8efc0a2-7b7c-4d92-8615-fd89682b3da8" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_88fdb203-bb72-4b64-803c-576f2e93c581" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_888dc87c-9e39-4f42-b5ca-4b53c56e094e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_4a61e50f-aa65-4721-bbce-82ff7aa3ccb7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_888dc87c-9e39-4f42-b5ca-4b53c56e094e" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_4a61e50f-aa65-4721-bbce-82ff7aa3ccb7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_4be14ed2-28ab-49ac-909c-ab7c2ba73096" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_888dc87c-9e39-4f42-b5ca-4b53c56e094e" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_4be14ed2-28ab-49ac-909c-ab7c2ba73096" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_ebc346fa-751d-46f3-bd99-82b41731640f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_8ea182a8-9c7f-4f42-a92c-7f2a8c8c5926" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_ebc346fa-751d-46f3-bd99-82b41731640f" xlink:to="loc_us-gaap_Revenues_8ea182a8-9c7f-4f42-a92c-7f2a8c8c5926" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_f58fa31b-8583-4d7a-bfdb-933b90fc3218" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_ebc346fa-751d-46f3-bd99-82b41731640f" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_f58fa31b-8583-4d7a-bfdb-933b90fc3218" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_fe65b05d-344c-41e3-b84f-a82e2ba2f88c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_a89db6a8-58ad-4ace-8bab-0b3d6deb4f2d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_fe65b05d-344c-41e3-b84f-a82e2ba2f88c" xlink:to="loc_us-gaap_GrossProfit_a89db6a8-58ad-4ace-8bab-0b3d6deb4f2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_62166370-874c-470b-9519-67d6d511e7ca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_fe65b05d-344c-41e3-b84f-a82e2ba2f88c" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_62166370-874c-470b-9519-67d6d511e7ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_474ff560-47b3-4737-8bdb-cc844c6a06d7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_fe65b05d-344c-41e3-b84f-a82e2ba2f88c" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_474ff560-47b3-4737-8bdb-cc844c6a06d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_314a840a-c5c0-4d3f-8222-6e3b29b9153b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_fe65b05d-344c-41e3-b84f-a82e2ba2f88c" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_314a840a-c5c0-4d3f-8222-6e3b29b9153b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/ConsolidatedStatementofComprehensiveIncome" xlink:type="simple" xlink:href="trs-20240630.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_ComprehensiveIncomeNetOfTax_a35f4766-2e40-46f6-a362-173b0da82afc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_cf71ea05-da7e-4e6c-b05b-7d4d7860bd01" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_a35f4766-2e40-46f6-a362-173b0da82afc" xlink:to="loc_us-gaap_ProfitLoss_cf71ea05-da7e-4e6c-b05b-7d4d7860bd01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_92c0d737-4d32-465b-b21c-ae5c46a34d64" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_a35f4766-2e40-46f6-a362-173b0da82afc" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_92c0d737-4d32-465b-b21c-ae5c46a34d64" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_b7728c19-d00d-4b2e-8367-608ea5481cf3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditNetOfTax_140f3acf-f3bc-4f6c-a91f-a12132b40d65" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_b7728c19-d00d-4b2e-8367-608ea5481cf3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditNetOfTax_140f3acf-f3bc-4f6c-a91f-a12132b40d65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_384b7c43-771f-4ff4-a533-0d1aecc49144" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_b7728c19-d00d-4b2e-8367-608ea5481cf3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_384b7c43-771f-4ff4-a533-0d1aecc49144" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_OtherComprehensiveIncomeLossNetInvestmentDerivativesNetOfTax_8f1296a6-0796-4712-b01d-ebc35e2eae82" xlink:href="trs-20240630.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_b7728c19-d00d-4b2e-8367-608ea5481cf3" xlink:to="loc_trs_OtherComprehensiveIncomeLossNetInvestmentDerivativesNetOfTax_8f1296a6-0796-4712-b01d-ebc35e2eae82" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/ConsolidatedStatementofCashFlowsStatement" xlink:type="simple" xlink:href="trs-20240630.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_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_0071d525-dea6-4ec2-9f05-0ae450c18b9a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_7b2d4dcc-52e5-4108-9d77-b22e365403aa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_0071d525-dea6-4ec2-9f05-0ae450c18b9a" xlink:to="loc_us-gaap_ProfitLoss_7b2d4dcc-52e5-4108-9d77-b22e365403aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_24116b54-f4aa-4aed-b477-30f87e5f48e0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_0071d525-dea6-4ec2-9f05-0ae450c18b9a" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_24116b54-f4aa-4aed-b477-30f87e5f48e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_5ea35586-faa5-4855-bf4f-f717bb7feade" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Depreciation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_0071d525-dea6-4ec2-9f05-0ae450c18b9a" xlink:to="loc_us-gaap_Depreciation_5ea35586-faa5-4855-bf4f-f717bb7feade" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_e1554bbc-b35c-424a-9a47-bfdb465db48d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_0071d525-dea6-4ec2-9f05-0ae450c18b9a" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_e1554bbc-b35c-424a-9a47-bfdb465db48d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_823bb6c4-bf0f-405f-a818-b493a4681a2c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_0071d525-dea6-4ec2-9f05-0ae450c18b9a" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_823bb6c4-bf0f-405f-a818-b493a4681a2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_2b225a70-c471-432e-952a-44d38e3e4cbc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxesAndTaxCredits"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_0071d525-dea6-4ec2-9f05-0ae450c18b9a" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_2b225a70-c471-432e-952a-44d38e3e4cbc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_2a684f7b-9137-47ce-b1cd-eb4e37ef1ff6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_0071d525-dea6-4ec2-9f05-0ae450c18b9a" xlink:to="loc_us-gaap_ShareBasedCompensation_2a684f7b-9137-47ce-b1cd-eb4e37ef1ff6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_Increasedecreaseinasbestosliability_322b8f58-1489-42af-b424-7a14ac999638" xlink:href="trs-20240630.xsd#trs_Increasedecreaseinasbestosliability"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_0071d525-dea6-4ec2-9f05-0ae450c18b9a" xlink:to="loc_trs_Increasedecreaseinasbestosliability_322b8f58-1489-42af-b424-7a14ac999638" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts_df9d894b-b7bb-4241-a53a-f628c6cabc57" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_0071d525-dea6-4ec2-9f05-0ae450c18b9a" xlink:to="loc_us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts_df9d894b-b7bb-4241-a53a-f628c6cabc57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInReceivables_12f9ff5f-ed14-4e13-9647-3d04908117ce" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInReceivables"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_0071d525-dea6-4ec2-9f05-0ae450c18b9a" xlink:to="loc_us-gaap_IncreaseDecreaseInReceivables_12f9ff5f-ed14-4e13-9647-3d04908117ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_2dd7728c-4e56-454f-bcab-655270706a21" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_0071d525-dea6-4ec2-9f05-0ae450c18b9a" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_2dd7728c-4e56-454f-bcab-655270706a21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_a784d644-043a-4816-8fdb-9dc512c91f97" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_0071d525-dea6-4ec2-9f05-0ae450c18b9a" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_a784d644-043a-4816-8fdb-9dc512c91f97" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_a067d790-9331-4fc8-b9db-5c5b9c745c10" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_0071d525-dea6-4ec2-9f05-0ae450c18b9a" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_a067d790-9331-4fc8-b9db-5c5b9c745c10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_95c7f07c-e0e3-4314-9068-0cdd4ac4dec8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_0071d525-dea6-4ec2-9f05-0ae450c18b9a" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_95c7f07c-e0e3-4314-9068-0cdd4ac4dec8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_d88c59d8-5579-45ab-b9cd-66700089a0a4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarlyRepaymentOfSeniorDebt_1f5fb365-d834-4614-b515-861aa65cd1e0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_d88c59d8-5579-45ab-b9cd-66700089a0a4" xlink:to="loc_us-gaap_EarlyRepaymentOfSeniorDebt_1f5fb365-d834-4614-b515-861aa65cd1e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_d09ba9b2-f2b0-48e0-b210-7f31b402e024" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_d88c59d8-5579-45ab-b9cd-66700089a0a4" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_d09ba9b2-f2b0-48e0-b210-7f31b402e024" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_84488704-c6ec-48b0-af17-7afc6e08e5fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromLinesOfCredit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_d88c59d8-5579-45ab-b9cd-66700089a0a4" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_84488704-c6ec-48b0-af17-7afc6e08e5fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_83d086d0-a58b-4aa7-90df-ed5edf6a4a05" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RepaymentsOfLinesOfCredit"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_d88c59d8-5579-45ab-b9cd-66700089a0a4" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_83d086d0-a58b-4aa7-90df-ed5edf6a4a05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtExtinguishmentCosts_6d939089-79b7-4291-9b16-118d83daa04f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDebtExtinguishmentCosts"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_d88c59d8-5579-45ab-b9cd-66700089a0a4" xlink:to="loc_us-gaap_PaymentsOfDebtExtinguishmentCosts_6d939089-79b7-4291-9b16-118d83daa04f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_5780f264-e0ac-49c0-b344-ad76a5f8e1f3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_d88c59d8-5579-45ab-b9cd-66700089a0a4" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_5780f264-e0ac-49c0-b344-ad76a5f8e1f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_a8415d69-b276-4c93-a0b6-e9332351cefe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_d88c59d8-5579-45ab-b9cd-66700089a0a4" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_a8415d69-b276-4c93-a0b6-e9332351cefe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_7cec9403-eb1e-41b5-ada4-838395f7d57d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDividends"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_d88c59d8-5579-45ab-b9cd-66700089a0a4" xlink:to="loc_us-gaap_PaymentsOfDividends_7cec9403-eb1e-41b5-ada4-838395f7d57d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_cb405abf-ff9e-4699-a145-8aa0d6333044" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromPaymentsForOtherFinancingActivities"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_d88c59d8-5579-45ab-b9cd-66700089a0a4" xlink:to="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_cb405abf-ff9e-4699-a145-8aa0d6333044" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_278ee57b-126a-4009-9556-a799758e1de3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_c6096d0a-9a64-4a20-8ec7-afd69d75e488" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_278ee57b-126a-4009-9556-a799758e1de3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_c6096d0a-9a64-4a20-8ec7-afd69d75e488" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashProvidedByUsedInInvestingActivitiesDiscontinuedOperations_dc5bc360-a4b5-4cd9-b2ff-e01bbd3aed5d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_278ee57b-126a-4009-9556-a799758e1de3" xlink:to="loc_us-gaap_CashProvidedByUsedInInvestingActivitiesDiscontinuedOperations_dc5bc360-a4b5-4cd9-b2ff-e01bbd3aed5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_65809d92-5209-437f-b868-d12f5a0d31bf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_616ebe29-bede-4896-bb58-a04c4e64b43a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_65809d92-5209-437f-b868-d12f5a0d31bf" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_616ebe29-bede-4896-bb58-a04c4e64b43a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c5c92408-379a-4fb9-b6ed-6362c2ed24dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_65809d92-5209-437f-b868-d12f5a0d31bf" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c5c92408-379a-4fb9-b6ed-6362c2ed24dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_75afa426-4a90-478a-b98d-7bfdd5298e06" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_65809d92-5209-437f-b868-d12f5a0d31bf" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_75afa426-4a90-478a-b98d-7bfdd5298e06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_aba6214d-fbaa-4012-8e07-10493e493cba" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_us-gaap_ProfitLoss_aba6214d-fbaa-4012-8e07-10493e493cba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_9d819b4c-2de6-4d1b-aee9-897e9ca099cb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_9d819b4c-2de6-4d1b-aee9-897e9ca099cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_8d36dc55-d50a-42c9-ba8e-61e8ced519c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Depreciation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_us-gaap_Depreciation_8d36dc55-d50a-42c9-ba8e-61e8ced519c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_cf387372-59b9-41da-93bc-173e5c0667ca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_cf387372-59b9-41da-93bc-173e5c0667ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_53f4f748-ff63-454b-bfeb-4c3df2f37892" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_53f4f748-ff63-454b-bfeb-4c3df2f37892" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_8293bb5f-3558-4ac5-9788-d592f9e373e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxesAndTaxCredits"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_8293bb5f-3558-4ac5-9788-d592f9e373e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_1dccdff9-f11b-429d-93c9-5ff413431d6d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_us-gaap_ShareBasedCompensation_1dccdff9-f11b-429d-93c9-5ff413431d6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_546864ce-918a-447c-9c2f-9f43a571a05b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProvisionForDoubtfulAccounts"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_546864ce-918a-447c-9c2f-9f43a571a05b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_Increasedecreaseinasbestosliability_6285d0de-2032-4413-895f-ce425feb57b5" xlink:href="trs-20240630.xsd#trs_Increasedecreaseinasbestosliability"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_trs_Increasedecreaseinasbestosliability_6285d0de-2032-4413-895f-ce425feb57b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts_748d9f49-b758-4dc6-966f-a3011062cc7f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts_748d9f49-b758-4dc6-966f-a3011062cc7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInReceivables_fbfb6faf-673a-4b55-b45c-b098dcda268a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_us-gaap_IncreaseDecreaseInReceivables_fbfb6faf-673a-4b55-b45c-b098dcda268a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_c4cd3c40-1484-4132-b8b8-82b47f76f27c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_c4cd3c40-1484-4132-b8b8-82b47f76f27c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_56c499bb-2d3e-4433-97c7-e7678c831e96" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_56c499bb-2d3e-4433-97c7-e7678c831e96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_310128ee-b511-4ac3-8245-507eab742b90" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_310128ee-b511-4ac3-8245-507eab742b90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_9a2b4c69-a93c-4b4f-960d-c80d68a464bc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_9a2b4c69-a93c-4b4f-960d-c80d68a464bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations_a5bc85d1-a1dd-451a-a0bb-39ba9cb5e04e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations_a5bc85d1-a1dd-451a-a0bb-39ba9cb5e04e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_5a15e94b-72e9-4525-888c-82cd41e66a5f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bc7e60e5-ef9d-4457-94ed-b2eb2045e088" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_5a15e94b-72e9-4525-888c-82cd41e66a5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_040b4884-10d8-4355-a271-2c454109754b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireProductiveAssets_d026e17d-4bbf-423d-abf5-5423994b3e67" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_040b4884-10d8-4355-a271-2c454109754b" xlink:to="loc_us-gaap_PaymentsToAcquireProductiveAssets_d026e17d-4bbf-423d-abf5-5423994b3e67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_5e2f9168-2f70-46d6-83b7-75f9c3198b96" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_040b4884-10d8-4355-a271-2c454109754b" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_5e2f9168-2f70-46d6-83b7-75f9c3198b96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSalesOfBusinessAffiliateAndProductiveAssets_ecd05ea7-e988-4237-b345-1ac6a2503513" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_040b4884-10d8-4355-a271-2c454109754b" xlink:to="loc_us-gaap_ProceedsFromSalesOfBusinessAffiliateAndProductiveAssets_ecd05ea7-e988-4237-b345-1ac6a2503513" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromHedgeInvestingActivities_ebba5ece-33d6-4a9a-88b8-d84a94776964" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForProceedsFromHedgeInvestingActivities"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_040b4884-10d8-4355-a271-2c454109754b" xlink:to="loc_us-gaap_PaymentsForProceedsFromHedgeInvestingActivities_ebba5ece-33d6-4a9a-88b8-d84a94776964" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromDerivativeInstrumentInvestingActivities_80ec3a7c-1efb-4a9e-884d-c0cba42f22d6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForProceedsFromDerivativeInstrumentInvestingActivities"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_040b4884-10d8-4355-a271-2c454109754b" xlink:to="loc_us-gaap_PaymentsForProceedsFromDerivativeInstrumentInvestingActivities_80ec3a7c-1efb-4a9e-884d-c0cba42f22d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3ae746a0-ed0d-4df2-a9b9-29816feae034" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_2eed555f-e7c9-466a-8149-fbfee5bf22d0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_3ae746a0-ed0d-4df2-a9b9-29816feae034" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_2eed555f-e7c9-466a-8149-fbfee5bf22d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashProvidedByUsedInFinancingActivitiesDiscontinuedOperations_7c8876fe-ae2a-40cf-b4d7-58b833ee83c0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_3ae746a0-ed0d-4df2-a9b9-29816feae034" xlink:to="loc_us-gaap_CashProvidedByUsedInFinancingActivitiesDiscontinuedOperations_7c8876fe-ae2a-40cf-b4d7-58b833ee83c0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/DiscontinuedOperationsResultsofDiscontinuedOperationsDetails" xlink:type="simple" xlink:href="trs-20240630.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_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_87b86c09-8ad6-4a43-9cec-695d40bd6193" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_5a97717d-65b5-4b5d-8efe-cba8672db466" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_87b86c09-8ad6-4a43-9cec-695d40bd6193" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_5a97717d-65b5-4b5d-8efe-cba8672db466" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_DisposalGroupIncludingDiscontinuedOperationsSGA_177b3e0f-c521-42c0-9954-86704e6184b4" xlink:href="trs-20240630.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_87b86c09-8ad6-4a43-9cec-695d40bd6193" xlink:to="loc_trs_DisposalGroupIncludingDiscontinuedOperationsSGA_177b3e0f-c521-42c0-9954-86704e6184b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_9dae4b77-0a0c-4eeb-b97c-0dcf18aa79d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_953c053c-96e8-4ca8-b460-a068faa02462" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_9dae4b77-0a0c-4eeb-b97c-0dcf18aa79d1" xlink:to="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_953c053c-96e8-4ca8-b460-a068faa02462" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation_7dfefe18-19a6-429c-86f6-828e8c35c1fe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_9dae4b77-0a0c-4eeb-b97c-0dcf18aa79d1" xlink:to="loc_us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation_7dfefe18-19a6-429c-86f6-828e8c35c1fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_d1742770-b9ef-46af-9123-6c97ef427f8b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue_deb9519d-5171-4d87-bca6-a55e7f870365" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_d1742770-b9ef-46af-9123-6c97ef427f8b" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue_deb9519d-5171-4d87-bca6-a55e7f870365" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold_2c288e08-951e-4361-b927-be1a6f005819" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_d1742770-b9ef-46af-9123-6c97ef427f8b" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold_2c288e08-951e-4361-b927-be1a6f005819" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/InventoriesDetails" xlink:type="simple" xlink:href="trs-20240630.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_c20974d8-0878-4caf-8a25-4e35645ab190" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_b739f7e8-5630-4e0a-9d44-c27129c704b2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_c20974d8-0878-4caf-8a25-4e35645ab190" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_b739f7e8-5630-4e0a-9d44-c27129c704b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_7b9d5fe5-2aac-4a6c-ad4b-81415dd492a3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_c20974d8-0878-4caf-8a25-4e35645ab190" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_7b9d5fe5-2aac-4a6c-ad4b-81415dd492a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsNetOfReserves_67933597-1299-4b6c-b3a3-8edb9e6860ec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_c20974d8-0878-4caf-8a25-4e35645ab190" xlink:to="loc_us-gaap_InventoryRawMaterialsNetOfReserves_67933597-1299-4b6c-b3a3-8edb9e6860ec" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/PropertyandEquipmentNetPropertyandEquipmentTableDetails" xlink:type="simple" xlink:href="trs-20240630.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_8c0da016-3d69-4f7e-a7bc-df40efb172c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_6ffa62d0-083a-4236-ad47-3a4bd3c7f76b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_8c0da016-3d69-4f7e-a7bc-df40efb172c6" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_6ffa62d0-083a-4236-ad47-3a4bd3c7f76b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_ede93067-eaac-417e-87d0-b3cb5258f54c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_8c0da016-3d69-4f7e-a7bc-df40efb172c6" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_ede93067-eaac-417e-87d0-b3cb5258f54c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/LeasesSupplementalBalanceSheetInformationRelatedtoLeasesDetails" xlink:type="simple" xlink:href="trs-20240630.xsd#LeasesSupplementalBalanceSheetInformationRelatedtoLeasesDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/LeasesSupplementalBalanceSheetInformationRelatedtoLeasesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_trs_LeaseLiabilities_bc743226-1e38-4260-81ba-d9cc6be61c1e" xlink:href="trs-20240630.xsd#trs_LeaseLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_a05bc54b-b7d1-45b4-9868-35db5ff03512" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_trs_LeaseLiabilities_bc743226-1e38-4260-81ba-d9cc6be61c1e" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_a05bc54b-b7d1-45b4-9868-35db5ff03512" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_07d16cb5-6645-476f-878c-39d858532095" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_trs_LeaseLiabilities_bc743226-1e38-4260-81ba-d9cc6be61c1e" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_07d16cb5-6645-476f-878c-39d858532095" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_78ef9e43-648d-452e-b325-6c7b9c27ab8d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_trs_LeaseLiabilities_bc743226-1e38-4260-81ba-d9cc6be61c1e" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_78ef9e43-648d-452e-b325-6c7b9c27ab8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_8660b2f2-281c-4435-b3d0-a61f3ffbf36d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_trs_LeaseLiabilities_bc743226-1e38-4260-81ba-d9cc6be61c1e" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_8660b2f2-281c-4435-b3d0-a61f3ffbf36d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_LeaseRightOfUseAssets_136655db-4b33-4ee1-a22c-86c733491419" xlink:href="trs-20240630.xsd#trs_LeaseRightOfUseAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_4794384d-8c7f-4982-a1b2-8e2ad2bf90ef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_trs_LeaseRightOfUseAssets_136655db-4b33-4ee1-a22c-86c733491419" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_4794384d-8c7f-4982-a1b2-8e2ad2bf90ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAsset_20d8fdff-a815-4ea0-a096-290d831e04c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseRightOfUseAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_trs_LeaseRightOfUseAssets_136655db-4b33-4ee1-a22c-86c733491419" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAsset_20d8fdff-a815-4ea0-a096-290d831e04c8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/LeasesMaturitiesofLeaseLiabilitiesDetails" xlink:type="simple" xlink:href="trs-20240630.xsd#LeasesMaturitiesofLeaseLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/LeasesMaturitiesofLeaseLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_86ede88c-b4fa-45fc-9943-0b2c0114dc0c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_e141f11a-baf3-4780-9c1a-67033f556fde" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_86ede88c-b4fa-45fc-9943-0b2c0114dc0c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_e141f11a-baf3-4780-9c1a-67033f556fde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_214ccab8-e224-4361-a71f-c62a1de6822a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_86ede88c-b4fa-45fc-9943-0b2c0114dc0c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_214ccab8-e224-4361-a71f-c62a1de6822a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_657c801e-e93c-4afa-8b51-ee96b485c6a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_86ede88c-b4fa-45fc-9943-0b2c0114dc0c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_657c801e-e93c-4afa-8b51-ee96b485c6a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_688edf8f-9a2b-4c7a-8cb0-28ea6ea5e672" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_86ede88c-b4fa-45fc-9943-0b2c0114dc0c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_688edf8f-9a2b-4c7a-8cb0-28ea6ea5e672" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_1d4e8256-ef53-4b4f-9cdc-693381b3371b" xlink:href="trs-20240630.xsd#trs_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_86ede88c-b4fa-45fc-9943-0b2c0114dc0c" xlink:to="loc_trs_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_1d4e8256-ef53-4b4f-9cdc-693381b3371b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_660740ba-02ae-45f5-8a17-fbb454f13319" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_86ede88c-b4fa-45fc-9943-0b2c0114dc0c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_660740ba-02ae-45f5-8a17-fbb454f13319" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_8fa2ba92-3bdd-45b3-9696-7ed4671064f7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_26b25f5c-389f-41b5-b106-5276ff8b756e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_8fa2ba92-3bdd-45b3-9696-7ed4671064f7" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_26b25f5c-389f-41b5-b106-5276ff8b756e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_90096eb5-1bad-48ee-a5f9-a1f204cdc5e8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_8fa2ba92-3bdd-45b3-9696-7ed4671064f7" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_90096eb5-1bad-48ee-a5f9-a1f204cdc5e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_a8455ab7-1b16-45d4-a76b-2041739244ef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_8fa2ba92-3bdd-45b3-9696-7ed4671064f7" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_a8455ab7-1b16-45d4-a76b-2041739244ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_bb689846-fdac-4018-83d7-585e3c50f685" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_8fa2ba92-3bdd-45b3-9696-7ed4671064f7" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_bb689846-fdac-4018-83d7-585e3c50f685" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_a7941c5f-936b-4a68-84b3-bde6b04c5619" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_8fa2ba92-3bdd-45b3-9696-7ed4671064f7" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_a7941c5f-936b-4a68-84b3-bde6b04c5619" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_FinanceLeaseLiabilityToBePaidAfterYearFour_4894253b-6729-49ee-a0ee-7a226e913713" xlink:href="trs-20240630.xsd#trs_FinanceLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_8fa2ba92-3bdd-45b3-9696-7ed4671064f7" xlink:to="loc_trs_FinanceLeaseLiabilityToBePaidAfterYearFour_4894253b-6729-49ee-a0ee-7a226e913713" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/OtherLongtermLiabilitiesDetails" xlink:type="simple" xlink:href="trs-20240630.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_7953929d-94fb-4c10-ac4b-a1b4cd12af51" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_Asbestosrelatedliabilitynoncurrent_26fe66d7-e7c8-464f-a67d-3a414c4a4327" xlink:href="trs-20240630.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_7953929d-94fb-4c10-ac4b-a1b4cd12af51" xlink:to="loc_trs_Asbestosrelatedliabilitynoncurrent_26fe66d7-e7c8-464f-a67d-3a414c4a4327" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_Otherlongtermliabilitiesotherthanasbestosliability_27202ae2-59bd-4f38-bcca-8581eb49fa6c" xlink:href="trs-20240630.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_7953929d-94fb-4c10-ac4b-a1b4cd12af51" xlink:to="loc_trs_Otherlongtermliabilitiesotherthanasbestosliability_27202ae2-59bd-4f38-bcca-8581eb49fa6c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/DefinedBenefitPlansNetPeriodicPensionCostsDetails" xlink:type="simple" xlink:href="trs-20240630.xsd#DefinedBenefitPlansNetPeriodicPensionCostsDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/DefinedBenefitPlansNetPeriodicPensionCostsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_b71c7bca-cab3-421b-b297-ce76b2cede07" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_2e6decef-aeea-4c0f-b7c4-f84c6305d6da" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_b71c7bca-cab3-421b-b297-ce76b2cede07" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_2e6decef-aeea-4c0f-b7c4-f84c6305d6da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_8696eff6-4498-4941-8f1e-bfaaaf11aee2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_b71c7bca-cab3-421b-b297-ce76b2cede07" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_8696eff6-4498-4941-8f1e-bfaaaf11aee2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_e36f76de-f4f9-4ad2-ae9f-e2f1276ad604" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_b71c7bca-cab3-421b-b297-ce76b2cede07" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_e36f76de-f4f9-4ad2-ae9f-e2f1276ad604" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_5e246a02-5a74-4f0f-9b61-6ec5787b5393" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_b71c7bca-cab3-421b-b297-ce76b2cede07" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_5e246a02-5a74-4f0f-9b61-6ec5787b5393" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_9ae89ded-04ec-4c36-8c5b-454e619c44e8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_b71c7bca-cab3-421b-b297-ce76b2cede07" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_9ae89ded-04ec-4c36-8c5b-454e619c44e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_8f460f98-f5a4-44b3-a711-a750fd622a3c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_b71c7bca-cab3-421b-b297-ce76b2cede07" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_8f460f98-f5a4-44b3-a711-a750fd622a3c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/OtherComprehensiveIncomeLossDetails" xlink:type="simple" xlink:href="trs-20240630.xsd#OtherComprehensiveIncomeLossDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/OtherComprehensiveIncomeLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_67dcb0dd-4d36-43d5-bc5d-f3bb4daecfe9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_b2e4a2f2-1b04-4e3f-907c-cb6c715d4919" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_67dcb0dd-4d36-43d5-bc5d-f3bb4daecfe9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_b2e4a2f2-1b04-4e3f-907c-cb6c715d4919" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_9c3ba528-a733-4829-93ef-15720295343c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_67dcb0dd-4d36-43d5-bc5d-f3bb4daecfe9" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_9c3ba528-a733-4829-93ef-15720295343c" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
