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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2023 Workiva-->
<!--r:cb3bb958-7d32-4572-b7c2-c6bb3c42b6f7,g:8ae2f1c5-6b78-48ff-b127-af53f6e04391-->
<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-20230331.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_Assets_8185b333-5f8c-464c-96d7-8574fd12e154" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_131e1c48-c183-45d3-ab43-ed56bef38643" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8185b333-5f8c-464c-96d7-8574fd12e154" xlink:to="loc_us-gaap_AssetsCurrent_131e1c48-c183-45d3-ab43-ed56bef38643" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_6a09bf20-e738-46d8-baf5-ec1e6708bd21" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8185b333-5f8c-464c-96d7-8574fd12e154" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_6a09bf20-e738-46d8-baf5-ec1e6708bd21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_20ee5a5d-1dd2-445c-942a-9dc84b6733bc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8185b333-5f8c-464c-96d7-8574fd12e154" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_20ee5a5d-1dd2-445c-942a-9dc84b6733bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_551bcaff-f6f6-44e1-8b7c-f42c2c13b279" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8185b333-5f8c-464c-96d7-8574fd12e154" xlink:to="loc_us-gaap_Goodwill_551bcaff-f6f6-44e1-8b7c-f42c2c13b279" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_fbdf00ba-0b37-4c8b-839e-74cce3255e50" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8185b333-5f8c-464c-96d7-8574fd12e154" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_fbdf00ba-0b37-4c8b-839e-74cce3255e50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_7df73ca4-454f-48b3-b83f-f5c70ad4f407" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8185b333-5f8c-464c-96d7-8574fd12e154" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_7df73ca4-454f-48b3-b83f-f5c70ad4f407" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_92140fa3-6330-4a98-a340-936cac915f06" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8185b333-5f8c-464c-96d7-8574fd12e154" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_92140fa3-6330-4a98-a340-936cac915f06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_0fa7babe-eb70-46c6-8a63-6a547e8cd51f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_19699c05-d415-4aa7-9620-f6aa1c6fdf65" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_0fa7babe-eb70-46c6-8a63-6a547e8cd51f" xlink:to="loc_us-gaap_StockholdersEquity_19699c05-d415-4aa7-9620-f6aa1c6fdf65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_2a35451c-c1db-4cad-9399-da6a6e083006" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_0fa7babe-eb70-46c6-8a63-6a547e8cd51f" xlink:to="loc_us-gaap_Liabilities_2a35451c-c1db-4cad-9399-da6a6e083006" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_87eea65c-51e8-4c73-8cad-7b70cc4cdd29" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_fe13408e-4637-4e04-9479-bd3966116296" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_87eea65c-51e8-4c73-8cad-7b70cc4cdd29" xlink:to="loc_us-gaap_PreferredStockValue_fe13408e-4637-4e04-9479-bd3966116296" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_bee2c5a4-23f3-4732-976a-31d4763e1074" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_87eea65c-51e8-4c73-8cad-7b70cc4cdd29" xlink:to="loc_us-gaap_CommonStockValue_bee2c5a4-23f3-4732-976a-31d4763e1074" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_f6f9de1b-3c44-4513-b026-5cce5d0f7db7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_87eea65c-51e8-4c73-8cad-7b70cc4cdd29" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_f6f9de1b-3c44-4513-b026-5cce5d0f7db7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_e515bb6b-ccf5-4582-a3aa-39c34ec2a557" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_87eea65c-51e8-4c73-8cad-7b70cc4cdd29" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_e515bb6b-ccf5-4582-a3aa-39c34ec2a557" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_ea79680d-a076-44e2-9240-dd98120077c0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_87eea65c-51e8-4c73-8cad-7b70cc4cdd29" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_ea79680d-a076-44e2-9240-dd98120077c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_f60054a2-898c-4411-8ebc-78b88eed21a9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_2b7ad724-6d58-4605-af4e-dc862dc11885" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_f60054a2-898c-4411-8ebc-78b88eed21a9" xlink:to="loc_us-gaap_LiabilitiesCurrent_2b7ad724-6d58-4605-af4e-dc862dc11885" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_9b291d11-905d-4a61-a7bb-84906947b6b6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_f60054a2-898c-4411-8ebc-78b88eed21a9" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_9b291d11-905d-4a61-a7bb-84906947b6b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_LeaseLiabilitiesNoncurrent_1d7faba5-c2ca-4fa2-bbd5-60a362593e4f" xlink:href="trs-20230331.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_f60054a2-898c-4411-8ebc-78b88eed21a9" xlink:to="loc_trs_LeaseLiabilitiesNoncurrent_1d7faba5-c2ca-4fa2-bbd5-60a362593e4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_b96dbd4d-5bb8-43c1-8f5d-bce6471f6f02" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f60054a2-898c-4411-8ebc-78b88eed21a9" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_b96dbd4d-5bb8-43c1-8f5d-bce6471f6f02" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_dba3b205-6323-4daf-88dd-2a39706131b8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f60054a2-898c-4411-8ebc-78b88eed21a9" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_dba3b205-6323-4daf-88dd-2a39706131b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_9eea108b-658c-43ab-a693-9f99c4316f48" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_3382e3ba-2eaf-4688-ad24-af44a40945a5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_9eea108b-658c-43ab-a693-9f99c4316f48" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_3382e3ba-2eaf-4688-ad24-af44a40945a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_0b7eb1d0-0df1-4a4e-b05c-dcd28a092bdf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_9eea108b-658c-43ab-a693-9f99c4316f48" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_0b7eb1d0-0df1-4a4e-b05c-dcd28a092bdf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_b2888c71-7f9a-456e-b408-a07edcac62ee" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_9eea108b-658c-43ab-a693-9f99c4316f48" xlink:to="loc_us-gaap_InventoryNet_b2888c71-7f9a-456e-b408-a07edcac62ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_ee7e764e-be9a-4b5d-a074-f05a8ea72b46" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_9eea108b-658c-43ab-a693-9f99c4316f48" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_ee7e764e-be9a-4b5d-a074-f05a8ea72b46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_36afc586-ee2f-4feb-8937-88f2885c37f4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtCurrent_ad9123c1-17fc-47df-bdb4-a1895db3c595" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_36afc586-ee2f-4feb-8937-88f2885c37f4" xlink:to="loc_us-gaap_DebtCurrent_ad9123c1-17fc-47df-bdb4-a1895db3c595" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_19941e67-a1de-4874-a74f-20eb5f77e122" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_36afc586-ee2f-4feb-8937-88f2885c37f4" xlink:to="loc_us-gaap_AccountsPayableCurrent_19941e67-a1de-4874-a74f-20eb5f77e122" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_2865931d-9c49-4818-a419-d5f499092d75" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_36afc586-ee2f-4feb-8937-88f2885c37f4" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_2865931d-9c49-4818-a419-d5f499092d75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_LeaseLiabilitiesCurrentPortion_45f65675-6e8e-4488-b075-96403f82570e" xlink:href="trs-20230331.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_36afc586-ee2f-4feb-8937-88f2885c37f4" xlink:to="loc_trs_LeaseLiabilitiesCurrentPortion_45f65675-6e8e-4488-b075-96403f82570e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/ConsolidatedStatementofIncome" xlink:type="simple" xlink:href="trs-20230331.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_GrossProfit_04bb2e16-1d0a-48dd-9432-fb8026f3ee16" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_96673510-9b58-41c9-a2b3-7684d3d11630" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_04bb2e16-1d0a-48dd-9432-fb8026f3ee16" xlink:to="loc_us-gaap_Revenues_96673510-9b58-41c9-a2b3-7684d3d11630" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_a38b954c-8884-4015-b253-253704a39518" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_04bb2e16-1d0a-48dd-9432-fb8026f3ee16" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_a38b954c-8884-4015-b253-253704a39518" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_e99f2a7f-1f6d-4aaf-8f75-2e23030ed1cc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_3a726d4d-d650-490d-89cb-6f759bbce666" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_e99f2a7f-1f6d-4aaf-8f75-2e23030ed1cc" xlink:to="loc_us-gaap_InterestExpense_3a726d4d-d650-490d-89cb-6f759bbce666" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_af8e17d9-fcda-4bca-8526-5127fe3e1499" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_e99f2a7f-1f6d-4aaf-8f75-2e23030ed1cc" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_af8e17d9-fcda-4bca-8526-5127fe3e1499" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_85af0a5f-893a-4734-8c19-b8d2c2fd2827" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_e99f2a7f-1f6d-4aaf-8f75-2e23030ed1cc" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_85af0a5f-893a-4734-8c19-b8d2c2fd2827" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_d1a15d3a-3ea9-429f-adb4-096e261b8142" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_b4ad9268-6683-4256-aae1-8b055bb486e5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_d1a15d3a-3ea9-429f-adb4-096e261b8142" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_b4ad9268-6683-4256-aae1-8b055bb486e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_a209a741-5356-438d-bfaa-6ed06d6ab8b5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_d1a15d3a-3ea9-429f-adb4-096e261b8142" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_a209a741-5356-438d-bfaa-6ed06d6ab8b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_b0e64aeb-c4f1-4918-8ed3-7f7e1bedb8c8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_d26a0f59-80b5-4850-b293-d8d119cd1491" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_b0e64aeb-c4f1-4918-8ed3-7f7e1bedb8c8" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_d26a0f59-80b5-4850-b293-d8d119cd1491" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_a813aef7-a49a-4907-8dff-add42db02b4d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_b0e64aeb-c4f1-4918-8ed3-7f7e1bedb8c8" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_a813aef7-a49a-4907-8dff-add42db02b4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax_56db4638-6e5b-4722-a1b4-c03d87f1a838" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_b0e64aeb-c4f1-4918-8ed3-7f7e1bedb8c8" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax_56db4638-6e5b-4722-a1b4-c03d87f1a838" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_ed799694-d477-454a-8973-192667ce4742" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_65b983d2-2a59-492a-915f-0c795f1fcaff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GrossProfit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_ed799694-d477-454a-8973-192667ce4742" xlink:to="loc_us-gaap_GrossProfit_65b983d2-2a59-492a-915f-0c795f1fcaff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_5c1dd28a-44bc-48bd-952d-69dc2d2fbdde" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_ed799694-d477-454a-8973-192667ce4742" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_5c1dd28a-44bc-48bd-952d-69dc2d2fbdde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_bdcce858-e147-450c-8e32-06f7918a933d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ed799694-d477-454a-8973-192667ce4742" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_bdcce858-e147-450c-8e32-06f7918a933d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_169bdeb0-b050-4361-a8df-cdb06c8376e2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_ed799694-d477-454a-8973-192667ce4742" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_169bdeb0-b050-4361-a8df-cdb06c8376e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_cd31815a-6825-43b1-b38f-93cfeccc5e2a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_0445799e-d50c-4ffc-a6e4-2b14c9a383a2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_cd31815a-6825-43b1-b38f-93cfeccc5e2a" xlink:to="loc_us-gaap_OperatingIncomeLoss_0445799e-d50c-4ffc-a6e4-2b14c9a383a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_b3fb8fd8-a0f7-41b4-8c5e-d283986db7db" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_cd31815a-6825-43b1-b38f-93cfeccc5e2a" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_b3fb8fd8-a0f7-41b4-8c5e-d283986db7db" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/ConsolidatedStatementofComprehensiveIncome" xlink:type="simple" xlink:href="trs-20230331.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_6eae59d2-1033-488f-8f43-6ed5eb842b21" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditNetOfTax_4228ac04-880f-4fca-9cdd-f406e98c2fa1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_6eae59d2-1033-488f-8f43-6ed5eb842b21" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditNetOfTax_4228ac04-880f-4fca-9cdd-f406e98c2fa1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_b57c10a5-97d2-4afd-99e8-0b97f26df39d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_6eae59d2-1033-488f-8f43-6ed5eb842b21" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_b57c10a5-97d2-4afd-99e8-0b97f26df39d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_OtherComprehensiveIncomeLossNetInvestmentDerivativesNetOfTax_a605b2a4-707a-45e3-9d4a-b994124e3083" xlink:href="trs-20230331.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_6eae59d2-1033-488f-8f43-6ed5eb842b21" xlink:to="loc_trs_OtherComprehensiveIncomeLossNetInvestmentDerivativesNetOfTax_a605b2a4-707a-45e3-9d4a-b994124e3083" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_51875739-58ac-4643-8728-1b2660ee6cb1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_1d139b4d-fea6-4aed-a0f6-08b24b8dff64" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_51875739-58ac-4643-8728-1b2660ee6cb1" xlink:to="loc_us-gaap_ProfitLoss_1d139b4d-fea6-4aed-a0f6-08b24b8dff64" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_8e8e1db3-e1cf-4183-bd19-7650f20c3a34" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_51875739-58ac-4643-8728-1b2660ee6cb1" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_8e8e1db3-e1cf-4183-bd19-7650f20c3a34" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/ConsolidatedStatementofCashFlowsStatement" xlink:type="simple" xlink:href="trs-20230331.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_NetCashProvidedByUsedInOperatingActivities_b1212934-27fa-449e-904b-99424403fc92" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_6f8d4935-9db0-4c75-953c-6a388b403e42" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b1212934-27fa-449e-904b-99424403fc92" xlink:to="loc_us-gaap_ProfitLoss_6f8d4935-9db0-4c75-953c-6a388b403e42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_af5a2ba9-1ac5-4385-b57a-1ae5f7d6af09" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_b1212934-27fa-449e-904b-99424403fc92" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_af5a2ba9-1ac5-4385-b57a-1ae5f7d6af09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_8597ca61-600e-4206-aa04-aae0b83931f2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_b1212934-27fa-449e-904b-99424403fc92" xlink:to="loc_us-gaap_Depreciation_8597ca61-600e-4206-aa04-aae0b83931f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_5b689772-66d5-49d8-8d0b-a53386985ee3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_b1212934-27fa-449e-904b-99424403fc92" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_5b689772-66d5-49d8-8d0b-a53386985ee3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_eefb4a02-ec93-4fa9-bb73-cb195ed23c8c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_b1212934-27fa-449e-904b-99424403fc92" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_eefb4a02-ec93-4fa9-bb73-cb195ed23c8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_a3181a35-1767-468f-8118-885ad2b852b3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_b1212934-27fa-449e-904b-99424403fc92" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_a3181a35-1767-468f-8118-885ad2b852b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_b9452843-eff0-4a09-af23-41ad04920a57" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_b1212934-27fa-449e-904b-99424403fc92" xlink:to="loc_us-gaap_ShareBasedCompensation_b9452843-eff0-4a09-af23-41ad04920a57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_Increasedecreaseinasbestosliability_58bc14d4-208b-4b33-ab73-7ee32237f9f7" xlink:href="trs-20230331.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_NetCashProvidedByUsedInOperatingActivities_b1212934-27fa-449e-904b-99424403fc92" xlink:to="loc_trs_Increasedecreaseinasbestosliability_58bc14d4-208b-4b33-ab73-7ee32237f9f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts_78851278-66ac-4abf-b5d9-12ca20e6076b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b1212934-27fa-449e-904b-99424403fc92" xlink:to="loc_us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts_78851278-66ac-4abf-b5d9-12ca20e6076b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInReceivables_1f8112c3-4914-4f7f-be4d-e7a34ea8b9cd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_NetCashProvidedByUsedInOperatingActivities_b1212934-27fa-449e-904b-99424403fc92" xlink:to="loc_us-gaap_IncreaseDecreaseInReceivables_1f8112c3-4914-4f7f-be4d-e7a34ea8b9cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_9298d153-49e1-4d06-9b8b-5c402eaa2d22" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_NetCashProvidedByUsedInOperatingActivities_b1212934-27fa-449e-904b-99424403fc92" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_9298d153-49e1-4d06-9b8b-5c402eaa2d22" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_d119290d-2153-4d47-a9c2-b7f0d06c496e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_NetCashProvidedByUsedInOperatingActivities_b1212934-27fa-449e-904b-99424403fc92" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_d119290d-2153-4d47-a9c2-b7f0d06c496e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_1531f8b6-4efc-458f-a71d-1caaab138c05" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_NetCashProvidedByUsedInOperatingActivities_b1212934-27fa-449e-904b-99424403fc92" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_1531f8b6-4efc-458f-a71d-1caaab138c05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_3607ef0b-aa13-4398-b682-1b34ef5424af" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_NetCashProvidedByUsedInOperatingActivities_b1212934-27fa-449e-904b-99424403fc92" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_3607ef0b-aa13-4398-b682-1b34ef5424af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations_13ed6bf8-feed-4994-9914-b67117741c4d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b1212934-27fa-449e-904b-99424403fc92" xlink:to="loc_us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations_13ed6bf8-feed-4994-9914-b67117741c4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_f90e3f07-d05d-4487-bd3b-22987012745a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b1212934-27fa-449e-904b-99424403fc92" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_f90e3f07-d05d-4487-bd3b-22987012745a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4bc74dc6-a4d0-4160-adac-9f3863b55ba8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_15a893ec-27d4-4fd2-81b1-c5410f13015f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4bc74dc6-a4d0-4160-adac-9f3863b55ba8" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_15a893ec-27d4-4fd2-81b1-c5410f13015f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashProvidedByUsedInFinancingActivitiesDiscontinuedOperations_559cd835-4db5-4501-a6d5-cfb31bbce4f9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashProvidedByUsedInFinancingActivitiesDiscontinuedOperations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4bc74dc6-a4d0-4160-adac-9f3863b55ba8" xlink:to="loc_us-gaap_CashProvidedByUsedInFinancingActivitiesDiscontinuedOperations_559cd835-4db5-4501-a6d5-cfb31bbce4f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_d75ca5fd-8836-492b-ba3a-92ccd61ff57d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarlyRepaymentOfSeniorDebt_d7aa5e29-4664-4fb8-9818-320230aac111" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EarlyRepaymentOfSeniorDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_d75ca5fd-8836-492b-ba3a-92ccd61ff57d" xlink:to="loc_us-gaap_EarlyRepaymentOfSeniorDebt_d7aa5e29-4664-4fb8-9818-320230aac111" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_084c3552-6b68-48d7-bb66-c1d59a7b45bb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations_d75ca5fd-8836-492b-ba3a-92ccd61ff57d" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_084c3552-6b68-48d7-bb66-c1d59a7b45bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_16fe39a8-f5a7-42b3-8e86-91ae1aa279c2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_d75ca5fd-8836-492b-ba3a-92ccd61ff57d" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_16fe39a8-f5a7-42b3-8e86-91ae1aa279c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_f23691d8-d7dc-4e4e-8a0b-1fa8086f46e6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_d75ca5fd-8836-492b-ba3a-92ccd61ff57d" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_f23691d8-d7dc-4e4e-8a0b-1fa8086f46e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtExtinguishmentCosts_af8b2eac-f19c-4611-9a48-20c5d596a0dc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_d75ca5fd-8836-492b-ba3a-92ccd61ff57d" xlink:to="loc_us-gaap_PaymentsOfDebtExtinguishmentCosts_af8b2eac-f19c-4611-9a48-20c5d596a0dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_1bbffb92-d4de-48a6-bd23-2c60e2e3789d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_d75ca5fd-8836-492b-ba3a-92ccd61ff57d" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_1bbffb92-d4de-48a6-bd23-2c60e2e3789d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_b501633b-8fae-4a69-8d44-092a94781595" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_d75ca5fd-8836-492b-ba3a-92ccd61ff57d" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_b501633b-8fae-4a69-8d44-092a94781595" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_382d8ee5-8dae-4864-8dd0-139fef5e5106" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_d75ca5fd-8836-492b-ba3a-92ccd61ff57d" xlink:to="loc_us-gaap_PaymentsOfDividends_382d8ee5-8dae-4864-8dd0-139fef5e5106" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_9e2ee982-cf19-4a57-afb1-add7c2559c37" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_d75ca5fd-8836-492b-ba3a-92ccd61ff57d" xlink:to="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_9e2ee982-cf19-4a57-afb1-add7c2559c37" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_14afb5c3-c26e-418b-b354-1363ef191e7c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_ca628a36-a9e2-490a-92ba-17d116b58ffa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_14afb5c3-c26e-418b-b354-1363ef191e7c" xlink:to="loc_us-gaap_ProfitLoss_ca628a36-a9e2-490a-92ba-17d116b58ffa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_8ef3c34c-9f36-42c4-9668-2487aa33225c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_14afb5c3-c26e-418b-b354-1363ef191e7c" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_8ef3c34c-9f36-42c4-9668-2487aa33225c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_e103c922-a77b-4749-8bc9-257bc00f0d30" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_14afb5c3-c26e-418b-b354-1363ef191e7c" xlink:to="loc_us-gaap_Depreciation_e103c922-a77b-4749-8bc9-257bc00f0d30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_7e2ab96d-51b9-4d6d-bba9-ff9960dbd366" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_14afb5c3-c26e-418b-b354-1363ef191e7c" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_7e2ab96d-51b9-4d6d-bba9-ff9960dbd366" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_9c188438-65bf-45c1-8f9c-96e31f1b99f9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_14afb5c3-c26e-418b-b354-1363ef191e7c" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_9c188438-65bf-45c1-8f9c-96e31f1b99f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_3326f747-720f-4f2f-89ac-ec6f9de24ecf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_14afb5c3-c26e-418b-b354-1363ef191e7c" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_3326f747-720f-4f2f-89ac-ec6f9de24ecf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_b5b95042-1b79-4d70-bb32-56ba9527f4ac" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_14afb5c3-c26e-418b-b354-1363ef191e7c" xlink:to="loc_us-gaap_ShareBasedCompensation_b5b95042-1b79-4d70-bb32-56ba9527f4ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_Increasedecreaseinasbestosliability_c7662fb2-bf01-46e2-b20e-7a9826cf2910" xlink:href="trs-20230331.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_14afb5c3-c26e-418b-b354-1363ef191e7c" xlink:to="loc_trs_Increasedecreaseinasbestosliability_c7662fb2-bf01-46e2-b20e-7a9826cf2910" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts_ddd6ac40-0492-4caf-a043-1bac36229892" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_14afb5c3-c26e-418b-b354-1363ef191e7c" xlink:to="loc_us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts_ddd6ac40-0492-4caf-a043-1bac36229892" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInReceivables_02fe2852-b0d0-4794-93db-9f3d5042762b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_14afb5c3-c26e-418b-b354-1363ef191e7c" xlink:to="loc_us-gaap_IncreaseDecreaseInReceivables_02fe2852-b0d0-4794-93db-9f3d5042762b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_3322937d-e401-4f8b-acc2-f1b1cc108808" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_14afb5c3-c26e-418b-b354-1363ef191e7c" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_3322937d-e401-4f8b-acc2-f1b1cc108808" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_19ad9cfd-a75d-4679-9467-396d4097b751" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_14afb5c3-c26e-418b-b354-1363ef191e7c" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_19ad9cfd-a75d-4679-9467-396d4097b751" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_aa91c5c0-1871-44f7-8005-2a34dcc37d36" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_14afb5c3-c26e-418b-b354-1363ef191e7c" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_aa91c5c0-1871-44f7-8005-2a34dcc37d36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_32b0f3c1-19c9-490a-8be4-20edb43c2c7f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_14afb5c3-c26e-418b-b354-1363ef191e7c" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_32b0f3c1-19c9-490a-8be4-20edb43c2c7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_09fca838-063e-4d0c-ad86-7a384d45ee12" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4760564b-898f-43a4-bace-9eb8ce1af624" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_09fca838-063e-4d0c-ad86-7a384d45ee12" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4760564b-898f-43a4-bace-9eb8ce1af624" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_1729a6d9-3fa4-4815-9ca6-77281937f216" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_09fca838-063e-4d0c-ad86-7a384d45ee12" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_1729a6d9-3fa4-4815-9ca6-77281937f216" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5353d405-5cf0-477c-9fda-273fc4c2b4f7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_09fca838-063e-4d0c-ad86-7a384d45ee12" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5353d405-5cf0-477c-9fda-273fc4c2b4f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_ae49c711-a9e4-440d-94aa-f1fa148f29d9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireProductiveAssets_67cf9690-f96c-4b0c-a1c7-654bc5587a1b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireProductiveAssets"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_ae49c711-a9e4-440d-94aa-f1fa148f29d9" xlink:to="loc_us-gaap_PaymentsToAcquireProductiveAssets_67cf9690-f96c-4b0c-a1c7-654bc5587a1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_8fa97f7c-c3a0-4683-ae10-14d94190f4d5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_ae49c711-a9e4-440d-94aa-f1fa148f29d9" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_8fa97f7c-c3a0-4683-ae10-14d94190f4d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSalesOfBusinessAffiliateAndProductiveAssets_790018ff-ff2f-4831-afed-bcfb82f584ea" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSalesOfBusinessAffiliateAndProductiveAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_ae49c711-a9e4-440d-94aa-f1fa148f29d9" xlink:to="loc_us-gaap_ProceedsFromSalesOfBusinessAffiliateAndProductiveAssets_790018ff-ff2f-4831-afed-bcfb82f584ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromHedgeInvestingActivities_217ef691-3fe6-4b79-8a61-916e51c24a1e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromHedgeInvestingActivities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_ae49c711-a9e4-440d-94aa-f1fa148f29d9" xlink:to="loc_us-gaap_ProceedsFromHedgeInvestingActivities_217ef691-3fe6-4b79-8a61-916e51c24a1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_e1a558b3-55cf-4538-9ba3-21844597b55d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_4149f2c4-7f2e-4ec2-8ee1-9e739173dba4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_e1a558b3-55cf-4538-9ba3-21844597b55d" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_4149f2c4-7f2e-4ec2-8ee1-9e739173dba4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashProvidedByUsedInInvestingActivitiesDiscontinuedOperations_52c1e40c-b561-4664-86c7-ae6bf9d37f18" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashProvidedByUsedInInvestingActivitiesDiscontinuedOperations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_e1a558b3-55cf-4538-9ba3-21844597b55d" xlink:to="loc_us-gaap_CashProvidedByUsedInInvestingActivitiesDiscontinuedOperations_52c1e40c-b561-4664-86c7-ae6bf9d37f18" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/DiscontinuedOperationsResultsofDiscontinuedOperationsDetails" xlink:type="simple" xlink:href="trs-20230331.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_0bc6a43d-1e6a-482b-b21e-33820481822f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_838431be-4932-437c-b1c0-1bd287d77cb6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_0bc6a43d-1e6a-482b-b21e-33820481822f" xlink:to="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_838431be-4932-437c-b1c0-1bd287d77cb6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation_4436235b-ae28-4c60-a216-7adc91e7ffb5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_0bc6a43d-1e6a-482b-b21e-33820481822f" xlink:to="loc_us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation_4436235b-ae28-4c60-a216-7adc91e7ffb5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_c3ddf8c1-df6b-493f-b55a-6cf450a2f291" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_cbb88f89-14dd-4cd2-90a9-1e2f4bb23ee5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOperatingIncomeLoss_c3ddf8c1-df6b-493f-b55a-6cf450a2f291" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_cbb88f89-14dd-4cd2-90a9-1e2f4bb23ee5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_DisposalGroupIncludingDiscontinuedOperationsSGA_583f8439-3681-4620-85af-6e6d77993874" xlink:href="trs-20230331.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_c3ddf8c1-df6b-493f-b55a-6cf450a2f291" xlink:to="loc_trs_DisposalGroupIncludingDiscontinuedOperationsSGA_583f8439-3681-4620-85af-6e6d77993874" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_19dad6d7-842c-4599-aea2-2de444b2928f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue_9f2fe8a6-277c-450b-92d7-b1ad8e82cd77" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_19dad6d7-842c-4599-aea2-2de444b2928f" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue_9f2fe8a6-277c-450b-92d7-b1ad8e82cd77" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold_e46cc68d-4570-499a-be2f-51e206318ca1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_19dad6d7-842c-4599-aea2-2de444b2928f" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold_e46cc68d-4570-499a-be2f-51e206318ca1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/InventoriesDetails" xlink:type="simple" xlink:href="trs-20230331.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_e301371a-7fb3-4608-a8f3-e3f20130602d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_b5270166-83d2-404b-933b-94417883dc76" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryFinishedGoodsNetOfReserves"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_e301371a-7fb3-4608-a8f3-e3f20130602d" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_b5270166-83d2-404b-933b-94417883dc76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_dd86e164-beb0-44e6-b27d-956976c13cdd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryWorkInProcessNetOfReserves"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_e301371a-7fb3-4608-a8f3-e3f20130602d" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_dd86e164-beb0-44e6-b27d-956976c13cdd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsNetOfReserves_c3f2bc70-863a-4507-83cd-9884bd076d31" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryRawMaterialsNetOfReserves"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_e301371a-7fb3-4608-a8f3-e3f20130602d" xlink:to="loc_us-gaap_InventoryRawMaterialsNetOfReserves_c3f2bc70-863a-4507-83cd-9884bd076d31" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/PropertyandEquipmentNetPropertyandEquipmentTableDetails" xlink:type="simple" xlink:href="trs-20230331.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_b814c33a-0f41-4f39-b679-f734cc672ef4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_dc79de63-c08b-45a1-a6dd-4a22e8d9db31" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_b814c33a-0f41-4f39-b679-f734cc672ef4" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_dc79de63-c08b-45a1-a6dd-4a22e8d9db31" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_6edc4b1b-aa17-44cb-abc1-75bf024448b1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_b814c33a-0f41-4f39-b679-f734cc672ef4" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_6edc4b1b-aa17-44cb-abc1-75bf024448b1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/LeasesSupplementalBalanceSheetInformationRelatedtoLeasesDetails" xlink:type="simple" xlink:href="trs-20230331.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_9300a5da-2c87-4b13-82a0-ee8799bd4aa6" xlink:href="trs-20230331.xsd#trs_LeaseRightOfUseAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_4b1eb882-28c5-4b59-a576-832663857ec7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_9300a5da-2c87-4b13-82a0-ee8799bd4aa6" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_4b1eb882-28c5-4b59-a576-832663857ec7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAsset_8ed14c07-e855-4731-834c-453e9afb857f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_9300a5da-2c87-4b13-82a0-ee8799bd4aa6" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAsset_8ed14c07-e855-4731-834c-453e9afb857f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_LeaseLiabilities_398c25af-77e4-46db-91f2-9b9b3310397c" xlink:href="trs-20230331.xsd#trs_LeaseLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_887d515b-9556-4d02-b355-3b93c18f708b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_398c25af-77e4-46db-91f2-9b9b3310397c" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_887d515b-9556-4d02-b355-3b93c18f708b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_fb14e6c3-10f5-451c-ab3f-938a52d07477" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_398c25af-77e4-46db-91f2-9b9b3310397c" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_fb14e6c3-10f5-451c-ab3f-938a52d07477" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_07ce981b-c205-4db3-bc7c-00c94b91976f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_trs_LeaseLiabilities_398c25af-77e4-46db-91f2-9b9b3310397c" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_07ce981b-c205-4db3-bc7c-00c94b91976f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_0105dfcd-9b57-4ce2-9fc6-74d4fdcfe5d1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_398c25af-77e4-46db-91f2-9b9b3310397c" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_0105dfcd-9b57-4ce2-9fc6-74d4fdcfe5d1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/LeasesMaturitiesofLeaseLiabilitiesDetails" xlink:type="simple" xlink:href="trs-20230331.xsd#LeasesMaturitiesofLeaseLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/LeasesMaturitiesofLeaseLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_ba19a939-f334-4802-a539-317a2fbc88b7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_7b616e56-3b28-49ae-95cd-2da5e08a8cb4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_ba19a939-f334-4802-a539-317a2fbc88b7" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_7b616e56-3b28-49ae-95cd-2da5e08a8cb4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_49cac96e-f2ae-49d1-acb5-a45207459fe9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ba19a939-f334-4802-a539-317a2fbc88b7" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_49cac96e-f2ae-49d1-acb5-a45207459fe9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_eabe9ac5-6a36-4779-b096-354e14adb3d1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_ba19a939-f334-4802-a539-317a2fbc88b7" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_eabe9ac5-6a36-4779-b096-354e14adb3d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_fe07fcc4-6075-4271-ab69-a652eb6bdc4d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_ba19a939-f334-4802-a539-317a2fbc88b7" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_fe07fcc4-6075-4271-ab69-a652eb6bdc4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_7b7823b4-cc5c-48c3-8c36-7f599aca4725" xlink:href="trs-20230331.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_ba19a939-f334-4802-a539-317a2fbc88b7" xlink:to="loc_trs_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_7b7823b4-cc5c-48c3-8c36-7f599aca4725" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_9b1377b5-d399-4539-94e2-355410c72ad6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ba19a939-f334-4802-a539-317a2fbc88b7" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_9b1377b5-d399-4539-94e2-355410c72ad6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_e7f448a5-0f1b-4ccc-92eb-51a636b62475" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_506f4277-1548-48dd-83ae-ce6738eec542" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_e7f448a5-0f1b-4ccc-92eb-51a636b62475" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_506f4277-1548-48dd-83ae-ce6738eec542" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_0150f3af-6a69-47b1-a34e-1ef2b6766311" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_e7f448a5-0f1b-4ccc-92eb-51a636b62475" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_0150f3af-6a69-47b1-a34e-1ef2b6766311" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_9bba55d6-d502-46d1-87ad-4e0d11109939" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_e7f448a5-0f1b-4ccc-92eb-51a636b62475" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_9bba55d6-d502-46d1-87ad-4e0d11109939" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_3b35e272-c218-4c80-9f84-696db031221a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_e7f448a5-0f1b-4ccc-92eb-51a636b62475" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_3b35e272-c218-4c80-9f84-696db031221a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_c2f5d5d2-18a9-4713-88d9-aee098865a24" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_e7f448a5-0f1b-4ccc-92eb-51a636b62475" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_c2f5d5d2-18a9-4713-88d9-aee098865a24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_FinanceLeaseLiabilityToBePaidAfterYearFour_33c6804c-3aa0-4122-96cc-12c84312087d" xlink:href="trs-20230331.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_e7f448a5-0f1b-4ccc-92eb-51a636b62475" xlink:to="loc_trs_FinanceLeaseLiabilityToBePaidAfterYearFour_33c6804c-3aa0-4122-96cc-12c84312087d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/OtherLongtermLiabilitiesOtherLongtermLiabilitiesDetails" xlink:type="simple" xlink:href="trs-20230331.xsd#OtherLongtermLiabilitiesOtherLongtermLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/OtherLongtermLiabilitiesOtherLongtermLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_c52c3bde-4dea-413c-87e4-7f0f2fdba3e8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_Asbestosrelatedliabilitynoncurrent_a842eb4d-0885-4616-afe0-da5a005533ea" xlink:href="trs-20230331.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_c52c3bde-4dea-413c-87e4-7f0f2fdba3e8" xlink:to="loc_trs_Asbestosrelatedliabilitynoncurrent_a842eb4d-0885-4616-afe0-da5a005533ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trs_Otherlongtermliabilitiesotherthanasbestosliability_651030fc-e040-4738-bb5d-cf76c6cc7d25" xlink:href="trs-20230331.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_c52c3bde-4dea-413c-87e4-7f0f2fdba3e8" xlink:to="loc_trs_Otherlongtermliabilitiesotherthanasbestosliability_651030fc-e040-4738-bb5d-cf76c6cc7d25" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/DefinedBenefitPlansNetPeriodicPensionCostsDetails" xlink:type="simple" xlink:href="trs-20230331.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_b18ed264-9593-4f9b-8403-12e0641d2f71" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_b7b89c39-cbfc-4d95-9cbc-d43b5784bfbc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_b18ed264-9593-4f9b-8403-12e0641d2f71" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_b7b89c39-cbfc-4d95-9cbc-d43b5784bfbc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_d6e82e43-3174-42c3-81d2-9c60a697d68e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_b18ed264-9593-4f9b-8403-12e0641d2f71" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_d6e82e43-3174-42c3-81d2-9c60a697d68e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_409ee7a5-0e1c-4c0c-98bd-d55d07f9de14" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_b18ed264-9593-4f9b-8403-12e0641d2f71" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_409ee7a5-0e1c-4c0c-98bd-d55d07f9de14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_870deb88-afb5-48f4-bdd6-9b907f8b5ee6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_b18ed264-9593-4f9b-8403-12e0641d2f71" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_870deb88-afb5-48f4-bdd6-9b907f8b5ee6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_d268d0ca-b540-41f5-a54d-4dcf9d36e515" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_b18ed264-9593-4f9b-8403-12e0641d2f71" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_d268d0ca-b540-41f5-a54d-4dcf9d36e515" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_c3965660-0503-48e8-8463-a932b9245fcb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_b18ed264-9593-4f9b-8403-12e0641d2f71" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_c3965660-0503-48e8-8463-a932b9245fcb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trimascorp.com/role/OtherComprehensiveIncomeLossOtherComprehensiveIncomeLossDetails" xlink:type="simple" xlink:href="trs-20230331.xsd#OtherComprehensiveIncomeLossOtherComprehensiveIncomeLossDetails"/>
  <link:calculationLink xlink:role="http://www.trimascorp.com/role/OtherComprehensiveIncomeLossOtherComprehensiveIncomeLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_1c768126-9a82-4066-bf7b-b595efad00b7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_cc691e44-a50e-43e2-9d67-6b760f033619" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_1c768126-9a82-4066-bf7b-b595efad00b7" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_cc691e44-a50e-43e2-9d67-6b760f033619" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_96b29d3e-2e4a-468b-9e38-df6149ca3d65" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_1c768126-9a82-4066-bf7b-b595efad00b7" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_96b29d3e-2e4a-468b-9e38-df6149ca3d65" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
