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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2025 Workiva-->
<!--r:aedbf9a7-59f4-4fe5-bf95-becfdce49556,g:dfc8c3fc-45d4-40ea-8a47-6f7f577ea01a-->
<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-20250630.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_LiabilitiesCurrent_4bf7a394-aa51-4e7c-a02d-7ccf17f1f6eb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtCurrent_6a51811b-8c06-4787-97c1-002e216889af" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_4bf7a394-aa51-4e7c-a02d-7ccf17f1f6eb" xlink:to="loc_us-gaap_DebtCurrent_6a51811b-8c06-4787-97c1-002e216889af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_67c24e01-a95d-415a-9159-bd4897b8156f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_4bf7a394-aa51-4e7c-a02d-7ccf17f1f6eb" xlink:to="loc_us-gaap_AccountsPayableCurrent_67c24e01-a95d-415a-9159-bd4897b8156f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_1ecf3052-1179-4a6e-ae91-10a3ff30db4d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_4bf7a394-aa51-4e7c-a02d-7ccf17f1f6eb" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_1ecf3052-1179-4a6e-ae91-10a3ff30db4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_LeaseLiabilitiesCurrentPortion_f2f64eb2-5f4c-498f-afac-5bf677923d29" xlink:href="trs-20250630.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_4bf7a394-aa51-4e7c-a02d-7ccf17f1f6eb" xlink:to="loc_trs_LeaseLiabilitiesCurrentPortion_f2f64eb2-5f4c-498f-afac-5bf677923d29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_3fd4c8ef-12eb-4273-8c1f-a8e13559508a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_66cdc8c0-b0d7-44f1-ae36-afe7cb5f3403" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_3fd4c8ef-12eb-4273-8c1f-a8e13559508a" xlink:to="loc_us-gaap_AssetsCurrent_66cdc8c0-b0d7-44f1-ae36-afe7cb5f3403" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_c64d5ec1-63ab-4c0f-9e8d-eb10826c4db0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_3fd4c8ef-12eb-4273-8c1f-a8e13559508a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_c64d5ec1-63ab-4c0f-9e8d-eb10826c4db0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_8ec1f2aa-abd5-4f74-a1fa-c2d646044a52" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_3fd4c8ef-12eb-4273-8c1f-a8e13559508a" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_8ec1f2aa-abd5-4f74-a1fa-c2d646044a52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_acd530ae-c1be-47d7-a24e-d94e912ad378" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_3fd4c8ef-12eb-4273-8c1f-a8e13559508a" xlink:to="loc_us-gaap_Goodwill_acd530ae-c1be-47d7-a24e-d94e912ad378" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_c979ad5f-4940-44f3-b909-bed04beef588" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_3fd4c8ef-12eb-4273-8c1f-a8e13559508a" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_c979ad5f-4940-44f3-b909-bed04beef588" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_2723944f-5bab-4b1f-a04c-42f16c141a00" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_3fd4c8ef-12eb-4273-8c1f-a8e13559508a" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_2723944f-5bab-4b1f-a04c-42f16c141a00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_70e9baa8-15f0-4c32-b76f-51ae3ff5710d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_3fd4c8ef-12eb-4273-8c1f-a8e13559508a" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_70e9baa8-15f0-4c32-b76f-51ae3ff5710d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_49469c98-3796-409d-b01f-48ba0a68f582" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_99d158da-18ed-420c-9cb4-d3c1d2ac1ff0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_49469c98-3796-409d-b01f-48ba0a68f582" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_99d158da-18ed-420c-9cb4-d3c1d2ac1ff0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_278ab5b9-45f8-45da-a71e-e320a1c78c76" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_49469c98-3796-409d-b01f-48ba0a68f582" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_278ab5b9-45f8-45da-a71e-e320a1c78c76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_a26b80f0-b304-4fc1-9fdb-6192bf2158b8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_49469c98-3796-409d-b01f-48ba0a68f582" xlink:to="loc_us-gaap_InventoryNet_a26b80f0-b304-4fc1-9fdb-6192bf2158b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_da6407b0-c600-4eb7-9241-c044a0177d41" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_49469c98-3796-409d-b01f-48ba0a68f582" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_da6407b0-c600-4eb7-9241-c044a0177d41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_986aa422-5272-4136-8493-620132a66106" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_07188178-bc87-4789-9610-561d14075f96" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_986aa422-5272-4136-8493-620132a66106" xlink:to="loc_us-gaap_PreferredStockValue_07188178-bc87-4789-9610-561d14075f96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_a0d5422d-42f3-488f-94e9-87c5aced0e48" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_986aa422-5272-4136-8493-620132a66106" xlink:to="loc_us-gaap_CommonStockValue_a0d5422d-42f3-488f-94e9-87c5aced0e48" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_29e574ce-82b9-4277-b6e3-7110e3a5e255" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_986aa422-5272-4136-8493-620132a66106" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_29e574ce-82b9-4277-b6e3-7110e3a5e255" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_d01eb9cc-309d-4faa-87ec-14ccbf6b83a0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_986aa422-5272-4136-8493-620132a66106" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_d01eb9cc-309d-4faa-87ec-14ccbf6b83a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_995be316-1783-4eef-9465-e5e0bcb9ae06" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_986aa422-5272-4136-8493-620132a66106" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_995be316-1783-4eef-9465-e5e0bcb9ae06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_7ae867e3-8073-4b97-8236-9c9f30e37cc8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_9ca2acca-a6db-42f6-8341-220bb51e2584" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_7ae867e3-8073-4b97-8236-9c9f30e37cc8" xlink:to="loc_us-gaap_LiabilitiesCurrent_9ca2acca-a6db-42f6-8341-220bb51e2584" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_4013ab5f-be80-423c-acc8-39b0203ed0cd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_7ae867e3-8073-4b97-8236-9c9f30e37cc8" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_4013ab5f-be80-423c-acc8-39b0203ed0cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_LeaseLiabilitiesNoncurrent_a96b0424-dbd5-4f85-a615-5a8b7a7dc12d" xlink:href="trs-20250630.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_7ae867e3-8073-4b97-8236-9c9f30e37cc8" xlink:to="loc_trs_LeaseLiabilitiesNoncurrent_a96b0424-dbd5-4f85-a615-5a8b7a7dc12d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_d1ada4cf-5f01-4e0f-847b-550a08bb407a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_7ae867e3-8073-4b97-8236-9c9f30e37cc8" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_d1ada4cf-5f01-4e0f-847b-550a08bb407a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_ad1aa238-f12e-4c2a-b48a-fa74d43614e5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_7ae867e3-8073-4b97-8236-9c9f30e37cc8" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_ad1aa238-f12e-4c2a-b48a-fa74d43614e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_e6768933-a10e-4fc3-a461-6b85a78ab0ce" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_87829e2a-925a-439b-bafc-a2326d53fde9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_e6768933-a10e-4fc3-a461-6b85a78ab0ce" xlink:to="loc_us-gaap_StockholdersEquity_87829e2a-925a-439b-bafc-a2326d53fde9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_30316a71-7d0c-422a-bbdd-64993cc06715" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_e6768933-a10e-4fc3-a461-6b85a78ab0ce" xlink:to="loc_us-gaap_Liabilities_30316a71-7d0c-422a-bbdd-64993cc06715" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/ConsolidatedStatementofIncome" xlink:type="simple" xlink:href="trs-20250630.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_OperatingIncomeLoss_f0a3d369-3802-4188-a1fe-89e9b3d30fda" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_73fcfcb1-2d95-4a8c-b740-7e687dd60b34" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_f0a3d369-3802-4188-a1fe-89e9b3d30fda" xlink:to="loc_us-gaap_GrossProfit_73fcfcb1-2d95-4a8c-b740-7e687dd60b34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_7e67052d-436c-499d-a085-a698d3170fae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_f0a3d369-3802-4188-a1fe-89e9b3d30fda" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_7e67052d-436c-499d-a085-a698d3170fae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_d84f4582-37b1-4c43-8043-e02d5bd5ffe8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_f0a3d369-3802-4188-a1fe-89e9b3d30fda" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_d84f4582-37b1-4c43-8043-e02d5bd5ffe8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_a262b759-0184-443f-9237-6bf5268f39c5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_f0a3d369-3802-4188-a1fe-89e9b3d30fda" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_a262b759-0184-443f-9237-6bf5268f39c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_0b041b12-9811-4ec5-81f8-0f772e66aa7d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_cc103623-2573-4d20-97fc-5a5daf694df2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0b041b12-9811-4ec5-81f8-0f772e66aa7d" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_cc103623-2573-4d20-97fc-5a5daf694df2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_5f04a5c7-ddab-4148-af56-484ccf5d19c0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0b041b12-9811-4ec5-81f8-0f772e66aa7d" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_5f04a5c7-ddab-4148-af56-484ccf5d19c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_ded815d0-b679-484d-a3c1-34c4585368d8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_001550fb-621a-4b82-85fc-09b44939d985" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_ded815d0-b679-484d-a3c1-34c4585368d8" xlink:to="loc_us-gaap_Revenues_001550fb-621a-4b82-85fc-09b44939d985" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_12dd332e-ebce-4b9d-95bc-c4074ecf0cb3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_ded815d0-b679-484d-a3c1-34c4585368d8" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_12dd332e-ebce-4b9d-95bc-c4074ecf0cb3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_2bd192f4-6b26-44c5-acbf-25ece3a59410" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_6894933b-2170-43d0-8464-a9cc42308680" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_2bd192f4-6b26-44c5-acbf-25ece3a59410" xlink:to="loc_us-gaap_OperatingIncomeLoss_6894933b-2170-43d0-8464-a9cc42308680" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_f3bfeaa0-b3e0-4a03-ae07-558c917e4ede" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_2bd192f4-6b26-44c5-acbf-25ece3a59410" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_f3bfeaa0-b3e0-4a03-ae07-558c917e4ede" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_9bc26558-c86c-4ff9-8519-98fb8d9a5801" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_dfe57e5d-ac3d-453a-96b7-63adf2ae689a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_9bc26558-c86c-4ff9-8519-98fb8d9a5801" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_dfe57e5d-ac3d-453a-96b7-63adf2ae689a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_aefeb729-097c-4c2e-9854-1e9a0d8cbbbd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_9bc26558-c86c-4ff9-8519-98fb8d9a5801" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_aefeb729-097c-4c2e-9854-1e9a0d8cbbbd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax_8298c5db-35ab-4928-bf09-81997727b5b3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_9bc26558-c86c-4ff9-8519-98fb8d9a5801" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax_8298c5db-35ab-4928-bf09-81997727b5b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_539cbad0-ef13-4dd9-9876-d76badf69a4a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseNonoperating_d6d98479-8c9a-42c9-91a1-424cfcf5840d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseNonoperating"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_539cbad0-ef13-4dd9-9876-d76badf69a4a" xlink:to="loc_us-gaap_InterestExpenseNonoperating_d6d98479-8c9a-42c9-91a1-424cfcf5840d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_3fc3204b-30ed-4623-a5ed-864f6366209d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_539cbad0-ef13-4dd9-9876-d76badf69a4a" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_3fc3204b-30ed-4623-a5ed-864f6366209d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_088fdb55-4fd1-4dfa-83a2-05034203b2c5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_539cbad0-ef13-4dd9-9876-d76badf69a4a" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_088fdb55-4fd1-4dfa-83a2-05034203b2c5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/ConsolidatedStatementofComprehensiveIncome" xlink:type="simple" xlink:href="trs-20250630.xsd#ConsolidatedStatementofComprehensiveIncome"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/ConsolidatedStatementofComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_47aa8f8e-7f03-4a35-b267-cfe1d5f1372b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditNetOfTax_fcdbe5cb-0a58-4350-b48e-1d5f59854fe0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_47aa8f8e-7f03-4a35-b267-cfe1d5f1372b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditNetOfTax_fcdbe5cb-0a58-4350-b48e-1d5f59854fe0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_e9abdc9d-fa5c-4da4-9458-2bb7d888824a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_47aa8f8e-7f03-4a35-b267-cfe1d5f1372b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_e9abdc9d-fa5c-4da4-9458-2bb7d888824a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_OtherComprehensiveIncomeLossNetInvestmentDerivativesNetOfTax_df7460fd-55e8-4f0b-8194-a4df193010a2" xlink:href="trs-20250630.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_47aa8f8e-7f03-4a35-b267-cfe1d5f1372b" xlink:to="loc_trs_OtherComprehensiveIncomeLossNetInvestmentDerivativesNetOfTax_df7460fd-55e8-4f0b-8194-a4df193010a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_da8c2510-1cab-4518-8b48-07b90c4d075c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_d6cf1601-aa94-4f50-bd7b-292145c044df" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_da8c2510-1cab-4518-8b48-07b90c4d075c" xlink:to="loc_us-gaap_ProfitLoss_d6cf1601-aa94-4f50-bd7b-292145c044df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_fe1185de-297d-4889-aa02-41a92e60a7a3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_da8c2510-1cab-4518-8b48-07b90c4d075c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_fe1185de-297d-4889-aa02-41a92e60a7a3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/ConsolidatedStatementofCashFlowsStatement" xlink:type="simple" xlink:href="trs-20250630.xsd#ConsolidatedStatementofCashFlowsStatement"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/ConsolidatedStatementofCashFlowsStatement" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9a7404dc-9c9b-41f6-811c-2db90520dc9d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_1ebf8868-d019-4546-a327-d3f5de626ce5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_9a7404dc-9c9b-41f6-811c-2db90520dc9d" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_1ebf8868-d019-4546-a327-d3f5de626ce5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashProvidedByUsedInFinancingActivitiesDiscontinuedOperations_eb1f83f3-d505-4346-a5d8-29926cfa8df2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_9a7404dc-9c9b-41f6-811c-2db90520dc9d" xlink:to="loc_us-gaap_CashProvidedByUsedInFinancingActivitiesDiscontinuedOperations_eb1f83f3-d505-4346-a5d8-29926cfa8df2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_94b7004a-7869-4576-b5fe-83958378ace7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_cb340eb8-1dbd-429a-8d9d-8c89483eeba7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_94b7004a-7869-4576-b5fe-83958378ace7" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_cb340eb8-1dbd-429a-8d9d-8c89483eeba7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashProvidedByUsedInInvestingActivitiesDiscontinuedOperations_0b56d66f-af8f-4593-95db-e96dbfbecdee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_94b7004a-7869-4576-b5fe-83958378ace7" xlink:to="loc_us-gaap_CashProvidedByUsedInInvestingActivitiesDiscontinuedOperations_0b56d66f-af8f-4593-95db-e96dbfbecdee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_642dd22c-3f3f-4378-a483-babd741031c7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireProductiveAssets_a0adad7c-b234-49cc-8fb7-e526b4ec1baf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_642dd22c-3f3f-4378-a483-babd741031c7" xlink:to="loc_us-gaap_PaymentsToAcquireProductiveAssets_a0adad7c-b234-49cc-8fb7-e526b4ec1baf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_0f170462-71bc-4923-a8ed-b31de91bab84" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_642dd22c-3f3f-4378-a483-babd741031c7" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_0f170462-71bc-4923-a8ed-b31de91bab84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSalesOfBusinessAffiliateAndProductiveAssets_fb39fbae-b75f-4c43-a3e5-3aeaaa4fa310" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_642dd22c-3f3f-4378-a483-babd741031c7" xlink:to="loc_us-gaap_ProceedsFromSalesOfBusinessAffiliateAndProductiveAssets_fb39fbae-b75f-4c43-a3e5-3aeaaa4fa310" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromHedgeInvestingActivities_97f94fc4-13bd-41b8-be1b-f2af550ef05b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_642dd22c-3f3f-4378-a483-babd741031c7" xlink:to="loc_us-gaap_PaymentsForProceedsFromHedgeInvestingActivities_97f94fc4-13bd-41b8-be1b-f2af550ef05b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromDerivativeInstrumentInvestingActivities_b6d9d814-75a2-4e87-a402-c51bca899476" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_642dd22c-3f3f-4378-a483-babd741031c7" xlink:to="loc_us-gaap_PaymentsForProceedsFromDerivativeInstrumentInvestingActivities_b6d9d814-75a2-4e87-a402-c51bca899476" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_4ec3d3f1-4d0e-420e-8d79-8b248eff9511" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_ProfitLoss_4ec3d3f1-4d0e-420e-8d79-8b248eff9511" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_d75f3017-5095-47ad-b92e-4fc806b0b258" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_d75f3017-5095-47ad-b92e-4fc806b0b258" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_9e2ce8ee-2852-4aff-ac20-ea82f71c8476" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_Depreciation_9e2ce8ee-2852-4aff-ac20-ea82f71c8476" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_4d7885ab-6205-43a7-b173-6c47698c9b13" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_4d7885ab-6205-43a7-b173-6c47698c9b13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_42e97b9e-e25c-4ac7-8b5c-5cff13b9bee9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_42e97b9e-e25c-4ac7-8b5c-5cff13b9bee9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_36c39322-fd26-4e54-b7b8-2256411cb4e6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_36c39322-fd26-4e54-b7b8-2256411cb4e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_cbacd15f-799d-4c2f-9b53-1119479a7df1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_ShareBasedCompensation_cbacd15f-799d-4c2f-9b53-1119479a7df1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EnvironmentalExpenseAndLiabilities_a359318d-0384-4ad3-bcd2-200c543908b7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EnvironmentalExpenseAndLiabilities"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_EnvironmentalExpenseAndLiabilities_a359318d-0384-4ad3-bcd2-200c543908b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_22e835cb-1b6b-4ad9-b8bc-52e18969a423" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProvisionForDoubtfulAccounts"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_22e835cb-1b6b-4ad9-b8bc-52e18969a423" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_Increasedecreaseinasbestosliability_16e313b9-9328-43d2-bf93-25d3579959ca" xlink:href="trs-20250630.xsd#trs_Increasedecreaseinasbestosliability"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_trs_Increasedecreaseinasbestosliability_16e313b9-9328-43d2-bf93-25d3579959ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts_41abb041-b132-449f-a536-1670ec7b8ce6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts_41abb041-b132-449f-a536-1670ec7b8ce6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInReceivables_b02adbcf-03c4-490f-adda-581ed5f91eb2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInReceivables"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_IncreaseDecreaseInReceivables_b02adbcf-03c4-490f-adda-581ed5f91eb2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_e16d6e0a-1c51-417b-ada2-18be3ea9928a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_e16d6e0a-1c51-417b-ada2-18be3ea9928a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_9971b20c-b060-4f50-ae3f-d30c3e52b64c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_9971b20c-b060-4f50-ae3f-d30c3e52b64c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_a82c6847-365b-4fda-8c5d-00e1db49ed5c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_a82c6847-365b-4fda-8c5d-00e1db49ed5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_062131bd-2949-4a11-addd-a2a7b6f7832f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_062131bd-2949-4a11-addd-a2a7b6f7832f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations_2b201706-d05b-4627-84d3-89a477612208" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations_2b201706-d05b-4627-84d3-89a477612208" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_b3f7a7ca-0b3d-4c2f-8370-22108c35712c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment"/>
    <link:calculationArc order="18" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_da6eaa77-845c-457f-9ef6-a4add7d852b1" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_b3f7a7ca-0b3d-4c2f-8370-22108c35712c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_1ecaffa8-ea3d-4b83-bddb-273e96f1cbfe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarlyRepaymentOfSeniorDebt_2b1bc5f8-8b43-4c32-9db0-bddc5b760c91" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1ecaffa8-ea3d-4b83-bddb-273e96f1cbfe" xlink:to="loc_us-gaap_EarlyRepaymentOfSeniorDebt_2b1bc5f8-8b43-4c32-9db0-bddc5b760c91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_af472772-b1f9-49cb-97bd-d34c3528958d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1ecaffa8-ea3d-4b83-bddb-273e96f1cbfe" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_af472772-b1f9-49cb-97bd-d34c3528958d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_2a885a47-f645-4fb8-8bde-ce784d08a401" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1ecaffa8-ea3d-4b83-bddb-273e96f1cbfe" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_2a885a47-f645-4fb8-8bde-ce784d08a401" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_bf0c739b-6389-4d53-8b57-c59ba3941908" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1ecaffa8-ea3d-4b83-bddb-273e96f1cbfe" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_bf0c739b-6389-4d53-8b57-c59ba3941908" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtExtinguishmentCosts_44f36fd8-d757-408b-b5f2-92de6b0168ac" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1ecaffa8-ea3d-4b83-bddb-273e96f1cbfe" xlink:to="loc_us-gaap_PaymentsOfDebtExtinguishmentCosts_44f36fd8-d757-408b-b5f2-92de6b0168ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_d33342b1-1fc5-43a4-87a2-794d22baa1d7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1ecaffa8-ea3d-4b83-bddb-273e96f1cbfe" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_d33342b1-1fc5-43a4-87a2-794d22baa1d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_e934b234-eaaa-420a-b0f6-514ca15f459c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1ecaffa8-ea3d-4b83-bddb-273e96f1cbfe" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_e934b234-eaaa-420a-b0f6-514ca15f459c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_642fd8a0-2192-440b-8783-cc5f63ac1041" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1ecaffa8-ea3d-4b83-bddb-273e96f1cbfe" xlink:to="loc_us-gaap_PaymentsOfDividends_642fd8a0-2192-440b-8783-cc5f63ac1041" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_10ec4e6d-a501-474b-8a8e-74fe13dba677" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1ecaffa8-ea3d-4b83-bddb-273e96f1cbfe" xlink:to="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_10ec4e6d-a501-474b-8a8e-74fe13dba677" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_1b85d037-903f-45f4-8622-40cc60c4a7a3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_f4638ad1-5e2f-4356-840f-8d76d210d97c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1b85d037-903f-45f4-8622-40cc60c4a7a3" xlink:to="loc_us-gaap_ProfitLoss_f4638ad1-5e2f-4356-840f-8d76d210d97c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_ac177305-0edd-4ace-ac61-32181fd24eba" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1b85d037-903f-45f4-8622-40cc60c4a7a3" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_ac177305-0edd-4ace-ac61-32181fd24eba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_ef8291c1-6fdc-4b82-8afb-78946204f0d5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1b85d037-903f-45f4-8622-40cc60c4a7a3" xlink:to="loc_us-gaap_Depreciation_ef8291c1-6fdc-4b82-8afb-78946204f0d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_909255b1-3f12-43a9-a1b9-8f99f63913c4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1b85d037-903f-45f4-8622-40cc60c4a7a3" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_909255b1-3f12-43a9-a1b9-8f99f63913c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_c19ec180-2d8b-43c4-9adf-999913f1dead" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1b85d037-903f-45f4-8622-40cc60c4a7a3" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_c19ec180-2d8b-43c4-9adf-999913f1dead" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_bc564ec2-8535-4b50-9b9c-4021f5a56347" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1b85d037-903f-45f4-8622-40cc60c4a7a3" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_bc564ec2-8535-4b50-9b9c-4021f5a56347" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_0d11c092-82db-4cf3-bb59-8870370b227b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1b85d037-903f-45f4-8622-40cc60c4a7a3" xlink:to="loc_us-gaap_ShareBasedCompensation_0d11c092-82db-4cf3-bb59-8870370b227b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_Increasedecreaseinasbestosliability_0c9addda-fc9e-4fab-b4a3-240f3598ef54" xlink:href="trs-20250630.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_1b85d037-903f-45f4-8622-40cc60c4a7a3" xlink:to="loc_trs_Increasedecreaseinasbestosliability_0c9addda-fc9e-4fab-b4a3-240f3598ef54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts_67d60959-0089-4875-a47f-1040e7d70399" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1b85d037-903f-45f4-8622-40cc60c4a7a3" xlink:to="loc_us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts_67d60959-0089-4875-a47f-1040e7d70399" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInReceivables_4dd70fae-b5b4-423c-93da-feb075d287f2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1b85d037-903f-45f4-8622-40cc60c4a7a3" xlink:to="loc_us-gaap_IncreaseDecreaseInReceivables_4dd70fae-b5b4-423c-93da-feb075d287f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_ea9143bc-ebea-4332-9d05-6e0093173bce" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1b85d037-903f-45f4-8622-40cc60c4a7a3" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_ea9143bc-ebea-4332-9d05-6e0093173bce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_0b5ddeb4-bb75-439a-a198-2c08034e7233" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1b85d037-903f-45f4-8622-40cc60c4a7a3" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_0b5ddeb4-bb75-439a-a198-2c08034e7233" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_37e4446b-6c5b-4663-bb73-5c729d4a51e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1b85d037-903f-45f4-8622-40cc60c4a7a3" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_37e4446b-6c5b-4663-bb73-5c729d4a51e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_c82508d9-23b6-4a1c-8ca5-fbef430c174d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1b85d037-903f-45f4-8622-40cc60c4a7a3" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_c82508d9-23b6-4a1c-8ca5-fbef430c174d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_f099fb7e-fdd6-40db-af5c-61b1067bbd8b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6ed108ea-9fe9-4819-8306-b996908f2a2b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_f099fb7e-fdd6-40db-af5c-61b1067bbd8b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6ed108ea-9fe9-4819-8306-b996908f2a2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_6ee44856-df05-4fba-9b24-59eca379dc88" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_f099fb7e-fdd6-40db-af5c-61b1067bbd8b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_6ee44856-df05-4fba-9b24-59eca379dc88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_36762c66-c25b-4467-8149-c498246a22f0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_f099fb7e-fdd6-40db-af5c-61b1067bbd8b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_36762c66-c25b-4467-8149-c498246a22f0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/DiscontinuedOperationsResultsofDiscontinuedOperationsDetails" xlink:type="simple" xlink:href="trs-20250630.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_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_e57d7c14-c992-4a37-95a3-88e5a43b9fb3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_0af614a4-034c-4f7b-a72b-b0bd9f71f90a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_e57d7c14-c992-4a37-95a3-88e5a43b9fb3" xlink:to="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_0af614a4-034c-4f7b-a72b-b0bd9f71f90a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation_8eb41a39-fb80-4125-88a2-5a77cf7240a0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_e57d7c14-c992-4a37-95a3-88e5a43b9fb3" xlink:to="loc_us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation_8eb41a39-fb80-4125-88a2-5a77cf7240a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_daaef98c-cf3d-4c40-bac8-c1d447f6d99a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_a6bb3362-4c4d-4c61-9a24-eba8ec2d9d9f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_daaef98c-cf3d-4c40-bac8-c1d447f6d99a" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_a6bb3362-4c4d-4c61-9a24-eba8ec2d9d9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_DisposalGroupIncludingDiscontinuedOperationsSGA_412b559a-e229-4fc3-8f4c-f77e08ff985d" xlink:href="trs-20250630.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_daaef98c-cf3d-4c40-bac8-c1d447f6d99a" xlink:to="loc_trs_DisposalGroupIncludingDiscontinuedOperationsSGA_412b559a-e229-4fc3-8f4c-f77e08ff985d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_7ac30d5f-81b7-4c81-ae47-8ff5b11e5d42" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue_010b55f2-c043-43b5-9a7f-84601ed4eb13" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_7ac30d5f-81b7-4c81-ae47-8ff5b11e5d42" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue_010b55f2-c043-43b5-9a7f-84601ed4eb13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold_129bcfa2-b1dc-4e5d-a236-607ca71b747e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_7ac30d5f-81b7-4c81-ae47-8ff5b11e5d42" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold_129bcfa2-b1dc-4e5d-a236-607ca71b747e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/InventoriesDetails" xlink:type="simple" xlink:href="trs-20250630.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_14e7f363-ec52-4673-b877-d25624092b42" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_bf5e288e-6e8e-4562-8a7e-c2242c81ab76" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_14e7f363-ec52-4673-b877-d25624092b42" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_bf5e288e-6e8e-4562-8a7e-c2242c81ab76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_db32770c-a977-4a0d-b52c-ca1847e63b24" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_14e7f363-ec52-4673-b877-d25624092b42" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_db32770c-a977-4a0d-b52c-ca1847e63b24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsNetOfReserves_11f4271b-ec56-4fa2-8615-8a96672ade26" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_14e7f363-ec52-4673-b877-d25624092b42" xlink:to="loc_us-gaap_InventoryRawMaterialsNetOfReserves_11f4271b-ec56-4fa2-8615-8a96672ade26" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/PropertyandEquipmentNetPropertyandEquipmentTableDetails" xlink:type="simple" xlink:href="trs-20250630.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_a8c29eed-7087-4725-b58e-2b098607b8eb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_4ea454eb-a8a0-4979-ba00-47c2b1ea018a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a8c29eed-7087-4725-b58e-2b098607b8eb" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_4ea454eb-a8a0-4979-ba00-47c2b1ea018a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_cb37b89c-346b-417e-bc0e-02477f86607c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a8c29eed-7087-4725-b58e-2b098607b8eb" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_cb37b89c-346b-417e-bc0e-02477f86607c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/LeasesSupplementalBalanceSheetInformationRelatedtoLeasesDetails" xlink:type="simple" xlink:href="trs-20250630.xsd#LeasesSupplementalBalanceSheetInformationRelatedtoLeasesDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/LeasesSupplementalBalanceSheetInformationRelatedtoLeasesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_trs_LeaseRightOfUseAssets_1c70f6bd-0ebc-4b0e-b336-c33e0a5a5cc8" xlink:href="trs-20250630.xsd#trs_LeaseRightOfUseAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_0d3eeb4a-8914-45e8-b9eb-264a62b39fba" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1c70f6bd-0ebc-4b0e-b336-c33e0a5a5cc8" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_0d3eeb4a-8914-45e8-b9eb-264a62b39fba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAsset_fe069cea-efa7-40e2-aede-8f6b0f4f8282" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1c70f6bd-0ebc-4b0e-b336-c33e0a5a5cc8" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAsset_fe069cea-efa7-40e2-aede-8f6b0f4f8282" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_LeaseLiabilities_3101dc26-c218-4a0e-b3cf-854ca5540d69" xlink:href="trs-20250630.xsd#trs_LeaseLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_2b4f6708-45c8-40ea-b4fe-4d2027181efd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_3101dc26-c218-4a0e-b3cf-854ca5540d69" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_2b4f6708-45c8-40ea-b4fe-4d2027181efd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_4987e694-0785-4796-81a7-8d297508b087" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_3101dc26-c218-4a0e-b3cf-854ca5540d69" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_4987e694-0785-4796-81a7-8d297508b087" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_4edd13b1-c174-4ef5-841d-b2552b3c7dc4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_trs_LeaseLiabilities_3101dc26-c218-4a0e-b3cf-854ca5540d69" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_4edd13b1-c174-4ef5-841d-b2552b3c7dc4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_373c7eec-2fa4-4520-9d16-2cab5bed079c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_3101dc26-c218-4a0e-b3cf-854ca5540d69" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_373c7eec-2fa4-4520-9d16-2cab5bed079c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/LeasesMaturitiesofLeaseLiabilitiesDetails" xlink:type="simple" xlink:href="trs-20250630.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_FinanceLeaseLiabilityPaymentsDue_10cc0e7c-6720-4425-b9a1-1a3c18423212" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_b46d7d38-153a-455b-9f70-082d90a2b940" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_10cc0e7c-6720-4425-b9a1-1a3c18423212" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_b46d7d38-153a-455b-9f70-082d90a2b940" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_836258e1-0c44-4581-aee0-5af925e566d2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_10cc0e7c-6720-4425-b9a1-1a3c18423212" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_836258e1-0c44-4581-aee0-5af925e566d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_adc7dd80-3717-4212-8537-b568b4418896" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_10cc0e7c-6720-4425-b9a1-1a3c18423212" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_adc7dd80-3717-4212-8537-b568b4418896" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_f3d782b2-8083-4e7f-8eaa-e681595ba236" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_10cc0e7c-6720-4425-b9a1-1a3c18423212" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_f3d782b2-8083-4e7f-8eaa-e681595ba236" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_f7e7eba8-e42c-404c-a682-ef4495613c8a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_10cc0e7c-6720-4425-b9a1-1a3c18423212" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_f7e7eba8-e42c-404c-a682-ef4495613c8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_FinanceLeaseLiabilityToBePaidAfterYearFour_9d7fdbee-9702-4411-9e0f-f130a83194c2" xlink:href="trs-20250630.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_10cc0e7c-6720-4425-b9a1-1a3c18423212" xlink:to="loc_trs_FinanceLeaseLiabilityToBePaidAfterYearFour_9d7fdbee-9702-4411-9e0f-f130a83194c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_898fc327-3cca-4dcc-ad23-c1e8196589b8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_414c9e8a-09d6-403b-bbc3-e5211ef1abc9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_898fc327-3cca-4dcc-ad23-c1e8196589b8" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_414c9e8a-09d6-403b-bbc3-e5211ef1abc9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_8f05956b-c710-424b-872f-9ec2e5a829b2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_898fc327-3cca-4dcc-ad23-c1e8196589b8" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_8f05956b-c710-424b-872f-9ec2e5a829b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_e6528b86-5c65-47cf-97d6-fdb8ee9205cc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_898fc327-3cca-4dcc-ad23-c1e8196589b8" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_e6528b86-5c65-47cf-97d6-fdb8ee9205cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_839534b0-4aeb-42d1-86dd-59a0acae5909" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_898fc327-3cca-4dcc-ad23-c1e8196589b8" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_839534b0-4aeb-42d1-86dd-59a0acae5909" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_bf40c2e0-f2a9-47ec-8c86-92c2a774050b" xlink:href="trs-20250630.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_898fc327-3cca-4dcc-ad23-c1e8196589b8" xlink:to="loc_trs_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_bf40c2e0-f2a9-47ec-8c86-92c2a774050b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_b84e3e5a-de67-49a2-a1b7-79fa297e3af3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_898fc327-3cca-4dcc-ad23-c1e8196589b8" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_b84e3e5a-de67-49a2-a1b7-79fa297e3af3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/OtherLongtermLiabilitiesDetails" xlink:type="simple" xlink:href="trs-20250630.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_9941a54a-15da-4506-8dfa-4e207dd7389e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_Asbestosrelatedliabilitynoncurrent_a8f50096-08cb-4a1f-af31-d6bdc07021af" xlink:href="trs-20250630.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_9941a54a-15da-4506-8dfa-4e207dd7389e" xlink:to="loc_trs_Asbestosrelatedliabilitynoncurrent_a8f50096-08cb-4a1f-af31-d6bdc07021af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_Otherlongtermliabilitiesotherthanasbestosliability_bba83b53-8cd7-436b-8a10-5390cce5aab2" xlink:href="trs-20250630.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_9941a54a-15da-4506-8dfa-4e207dd7389e" xlink:to="loc_trs_Otherlongtermliabilitiesotherthanasbestosliability_bba83b53-8cd7-436b-8a10-5390cce5aab2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/DefinedBenefitPlansNetPeriodicPensionCostsDetails" xlink:type="simple" xlink:href="trs-20250630.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_592c25f2-4429-43e1-adeb-e1e4c15e4d7d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_367d3960-9436-4f4c-8c29-ceb753fc8b4e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_592c25f2-4429-43e1-adeb-e1e4c15e4d7d" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_367d3960-9436-4f4c-8c29-ceb753fc8b4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_d1dff58f-95eb-4b0c-88a2-76852e461675" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_592c25f2-4429-43e1-adeb-e1e4c15e4d7d" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_d1dff58f-95eb-4b0c-88a2-76852e461675" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_a080f5f7-6bb7-4bd0-b7b0-cd71c8216c43" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_592c25f2-4429-43e1-adeb-e1e4c15e4d7d" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_a080f5f7-6bb7-4bd0-b7b0-cd71c8216c43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_688de7cf-0270-4ad3-9547-cf934a0851d1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_592c25f2-4429-43e1-adeb-e1e4c15e4d7d" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_688de7cf-0270-4ad3-9547-cf934a0851d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_5b6de249-18bf-4058-84a7-514a8f52709f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_592c25f2-4429-43e1-adeb-e1e4c15e4d7d" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_5b6de249-18bf-4058-84a7-514a8f52709f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_06e4f9cc-a23f-4eda-9c16-6dffc0a0b260" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_592c25f2-4429-43e1-adeb-e1e4c15e4d7d" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_06e4f9cc-a23f-4eda-9c16-6dffc0a0b260" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/OtherComprehensiveIncomeLossDetails" xlink:type="simple" xlink:href="trs-20250630.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_93357553-cfcb-4961-bcb6-94ce3ec05827" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_fbf8ae4d-55fe-4f44-9d90-5678a38afd32" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_93357553-cfcb-4961-bcb6-94ce3ec05827" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_fbf8ae4d-55fe-4f44-9d90-5678a38afd32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_f99ad540-f27b-4bc6-94e5-d40e00f891e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_93357553-cfcb-4961-bcb6-94ce3ec05827" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_f99ad540-f27b-4bc6-94e5-d40e00f891e3" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
