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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:d9ccd2ca-1288-45d2-b4e1-e254cde389bd,g:1f16a7d5-1e7a-4e3f-abfc-6cb7a87c37e9-->
<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.trin.net/role/ConsolidatedStatementsofOperationsunaudited" xlink:type="simple" xlink:href="trn-20240331.xsd#ConsolidatedStatementsofOperationsunaudited"/>
  <link:calculationLink xlink:role="http://www.trin.net/role/ConsolidatedStatementsofOperationsunaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_3f156bb4-4c23-432f-a756-14355a3754fd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_ad41362f-1015-4dfc-8f10-552d87c1fb28" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_3f156bb4-4c23-432f-a756-14355a3754fd" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_ad41362f-1015-4dfc-8f10-552d87c1fb28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingIncomeExpenseNet_942cb82b-9195-40f2-ab4f-5e974c9bd8b9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherOperatingIncomeExpenseNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_3f156bb4-4c23-432f-a756-14355a3754fd" xlink:to="loc_us-gaap_OtherOperatingIncomeExpenseNet_942cb82b-9195-40f2-ab4f-5e974c9bd8b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_3d1c23b6-ba7c-40b3-b92c-e1df241f7720" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfOtherAssets_f448d61e-13e7-4811-ad8c-aa2bd683a8b2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnSaleOfOtherAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_3d1c23b6-ba7c-40b3-b92c-e1df241f7720" xlink:to="loc_us-gaap_GainLossOnSaleOfOtherAssets_f448d61e-13e7-4811-ad8c-aa2bd683a8b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trn_GainLossonSaleofPropertyPlantandEquipmentRailroadTransportationEquipment_64b188c9-af9e-4cc0-9a36-82630b9c530f" xlink:href="trn-20240331.xsd#trn_GainLossonSaleofPropertyPlantandEquipmentRailroadTransportationEquipment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_3d1c23b6-ba7c-40b3-b92c-e1df241f7720" xlink:to="loc_trn_GainLossonSaleofPropertyPlantandEquipmentRailroadTransportationEquipment_64b188c9-af9e-4cc0-9a36-82630b9c530f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c6798065-3112-45fd-abe1-624705252b62" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_56f7fafe-8e7b-4df0-a1c1-62467fbb47e5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c6798065-3112-45fd-abe1-624705252b62" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_56f7fafe-8e7b-4df0-a1c1-62467fbb47e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_0faa4894-424b-4791-ad75-8a27d8e33452" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c6798065-3112-45fd-abe1-624705252b62" xlink:to="loc_us-gaap_OperatingIncomeLoss_0faa4894-424b-4791-ad75-8a27d8e33452" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_bf8b2a8b-8ee1-4de9-b300-bac59f404c38" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerBasicShare_5fa8bac2-3b31-409a-b622-b9286e2085d7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerBasicShare"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareBasic_bf8b2a8b-8ee1-4de9-b300-bac59f404c38" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerBasicShare_5fa8bac2-3b31-409a-b622-b9286e2085d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsPerBasicShare_e933a5d1-b780-4244-9659-9a91a5ddda33" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsPerBasicShare"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareBasic_bf8b2a8b-8ee1-4de9-b300-bac59f404c38" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsPerBasicShare_e933a5d1-b780-4244-9659-9a91a5ddda33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_f73e2f9c-6701-4ef4-a2a4-18b0a0e4f3e6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_13bcf2ae-396d-45bf-b585-c169c1c32018" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_NetIncomeLoss_f73e2f9c-6701-4ef4-a2a4-18b0a0e4f3e6" xlink:to="loc_us-gaap_ProfitLoss_13bcf2ae-396d-45bf-b585-c169c1c32018" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_8e5aa8e2-6b39-4631-86f2-8362e85532e1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_f73e2f9c-6701-4ef4-a2a4-18b0a0e4f3e6" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_8e5aa8e2-6b39-4631-86f2-8362e85532e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_84b6c34f-0d9b-4974-b1b2-4adc901f7dec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_4c56ae71-1738-4c39-8dbf-41b58661178d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_ProfitLoss_84b6c34f-0d9b-4974-b1b2-4adc901f7dec" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_4c56ae71-1738-4c39-8dbf-41b58661178d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationDuringPhaseOutPeriodNetOfTax_19165497-13f9-4b72-b45c-58e8bb4f1b72" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationDuringPhaseOutPeriodNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_84b6c34f-0d9b-4974-b1b2-4adc901f7dec" xlink:to="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationDuringPhaseOutPeriodNetOfTax_19165497-13f9-4b72-b45c-58e8bb4f1b72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_8e18f30a-6b8d-4819-a377-61c10b1c5947" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerDilutedShare_b71c8b59-d120-4ee2-a320-495beb43d3be" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerDilutedShare"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareDiluted_8e18f30a-6b8d-4819-a377-61c10b1c5947" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerDilutedShare_b71c8b59-d120-4ee2-a320-495beb43d3be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare_22beac0d-f124-4165-a111-5d72585e2629" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareDiluted_8e18f30a-6b8d-4819-a377-61c10b1c5947" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare_22beac0d-f124-4165-a111-5d72585e2629" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_bb07bd1a-1072-438a-b6ea-0ddb5bcb90d9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_38c75633-069b-43a2-b211-f978192fb1d7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_bb07bd1a-1072-438a-b6ea-0ddb5bcb90d9" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_38c75633-069b-43a2-b211-f978192fb1d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_1175bf6b-2506-49a1-9be3-d7801992be65" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_bb07bd1a-1072-438a-b6ea-0ddb5bcb90d9" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_1175bf6b-2506-49a1-9be3-d7801992be65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_edf2d47f-bfc1-40d9-9d09-f39573233245" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_a9f97a21-a767-4ece-8fb3-72342d1856bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_edf2d47f-bfc1-40d9-9d09-f39573233245" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_a9f97a21-a767-4ece-8fb3-72342d1856bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_c706b017-d56e-4480-860e-0a71cd96d1a9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_edf2d47f-bfc1-40d9-9d09-f39573233245" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_c706b017-d56e-4480-860e-0a71cd96d1a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_95351e34-b4a4-453f-9fc3-ce32393a3a8f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_edf2d47f-bfc1-40d9-9d09-f39573233245" xlink:to="loc_us-gaap_Revenues_95351e34-b4a4-453f-9fc3-ce32393a3a8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_abb69c86-bd5c-4d9a-a815-8a856d56d11e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringCharges"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_edf2d47f-bfc1-40d9-9d09-f39573233245" xlink:to="loc_us-gaap_RestructuringCharges_abb69c86-bd5c-4d9a-a815-8a856d56d11e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_76b69552-faf3-4c3b-85fb-fad267e3f1dd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_edf2d47f-bfc1-40d9-9d09-f39573233245" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_76b69552-faf3-4c3b-85fb-fad267e3f1dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_813fb1b5-9f46-4860-a522-9cea9e8f1bb9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_54587bf5-8670-4616-8056-286cfaff493b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_813fb1b5-9f46-4860-a522-9cea9e8f1bb9" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_54587bf5-8670-4616-8056-286cfaff493b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_738315e4-0b25-41eb-8ff1-55869e890cfc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_813fb1b5-9f46-4860-a522-9cea9e8f1bb9" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_738315e4-0b25-41eb-8ff1-55869e890cfc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trin.net/role/ConsolidatedStatementsofComprehensiveIncomeunaudited" xlink:type="simple" xlink:href="trn-20240331.xsd#ConsolidatedStatementsofComprehensiveIncomeunaudited"/>
  <link:calculationLink xlink:role="http://www.trin.net/role/ConsolidatedStatementsofComprehensiveIncomeunaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_66dcd6cb-f614-437c-9787-1346656bb800" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_5be045b0-0f05-4e5a-a3b4-e95465508cac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_66dcd6cb-f614-437c-9787-1346656bb800" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_5be045b0-0f05-4e5a-a3b4-e95465508cac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_079bcc18-5bde-4de5-9214-1e7ea5ad9afb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_66dcd6cb-f614-437c-9787-1346656bb800" xlink:to="loc_us-gaap_ProfitLoss_079bcc18-5bde-4de5-9214-1e7ea5ad9afb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_e79c7b60-49d7-4e6b-a333-495458e3b3b9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_53b59da6-7d93-46bb-8f2d-a2e8d0e32de9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_e79c7b60-49d7-4e6b-a333-495458e3b3b9" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_53b59da6-7d93-46bb-8f2d-a2e8d0e32de9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_7898ee5a-a13d-44e8-8411-ae407d01945f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_e79c7b60-49d7-4e6b-a333-495458e3b3b9" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_7898ee5a-a13d-44e8-8411-ae407d01945f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_a7c161f6-724c-4120-bb08-c5115cb4a227" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_72c04f65-38fc-4837-ba13-8af44be175af" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_a7c161f6-724c-4120-bb08-c5115cb4a227" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_72c04f65-38fc-4837-ba13-8af44be175af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_e2984f2f-7f47-493a-a53f-0c18069a39ef" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_a7c161f6-724c-4120-bb08-c5115cb4a227" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_e2984f2f-7f47-493a-a53f-0c18069a39ef" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trin.net/role/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="trn-20240331.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.trin.net/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_c2033b27-4c1b-49d7-ad8a-8d1f44e8dddc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterest_a1841980-b6c2-4ba4-a448-a36c5f0cf2ba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MinorityInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_c2033b27-4c1b-49d7-ad8a-8d1f44e8dddc" xlink:to="loc_us-gaap_MinorityInterest_a1841980-b6c2-4ba4-a448-a36c5f0cf2ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_669df751-2ee9-409e-9027-32a3dc7d5201" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_c2033b27-4c1b-49d7-ad8a-8d1f44e8dddc" xlink:to="loc_us-gaap_StockholdersEquity_669df751-2ee9-409e-9027-32a3dc7d5201" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_013fca80-f99d-4165-b69b-04950ac14213" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_c0afd3c0-ed83-41c5-b938-ffc41c324ad0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedLiabilitiesCurrentAndNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_013fca80-f99d-4165-b69b-04950ac14213" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_c0afd3c0-ed83-41c5-b938-ffc41c324ad0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_0c453d60-dbbd-457f-8c8c-82225e420534" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_013fca80-f99d-4165-b69b-04950ac14213" xlink:to="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_0c453d60-dbbd-457f-8c8c-82225e420534" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_c4446fb6-cb41-4177-bc31-e6ea85c55036" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_013fca80-f99d-4165-b69b-04950ac14213" xlink:to="loc_us-gaap_OtherLiabilities_c4446fb6-cb41-4177-bc31-e6ea85c55036" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndOtherTaxLiabilitiesNoncurrent_fb395e30-bf90-484a-9bc1-5e2fa4349785" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxesAndOtherTaxLiabilitiesNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_013fca80-f99d-4165-b69b-04950ac14213" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndOtherTaxLiabilitiesNoncurrent_fb395e30-bf90-484a-9bc1-5e2fa4349785" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_ebb297bb-d8bb-463c-9edd-dc3d48f3916d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtLongtermAndShorttermCombinedAmount"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_013fca80-f99d-4165-b69b-04950ac14213" xlink:to="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_ebb297bb-d8bb-463c-9edd-dc3d48f3916d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_c00a797c-6ff8-4bf4-802d-19d0cdf1cf38" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_c760250b-dcab-4ec6-b0d9-9cd07f1316aa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_c00a797c-6ff8-4bf4-802d-19d0cdf1cf38" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_c760250b-dcab-4ec6-b0d9-9cd07f1316aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_0ed7c3bf-d588-40fc-bea5-be523e5d7597" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_c00a797c-6ff8-4bf4-802d-19d0cdf1cf38" xlink:to="loc_us-gaap_Liabilities_0ed7c3bf-d588-40fc-bea5-be523e5d7597" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_ff7a74b9-7702-442b-8802-1561421634f3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_a9ac931c-2287-43cf-92fe-ca3f05d9fd4f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_Assets_ff7a74b9-7702-442b-8802-1561421634f3" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_a9ac931c-2287-43cf-92fe-ca3f05d9fd4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_15f271ab-8c21-4608-9ca5-9c87d930c6fb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff7a74b9-7702-442b-8802-1561421634f3" xlink:to="loc_us-gaap_Goodwill_15f271ab-8c21-4608-9ca5-9c87d930c6fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNet_291f3d5d-c8e6-4a67-9a9f-0496a11e4e27" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsReceivableNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff7a74b9-7702-442b-8802-1561421634f3" xlink:to="loc_us-gaap_AccountsReceivableNet_291f3d5d-c8e6-4a67-9a9f-0496a11e4e27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReceivable_7de3e8e5-475c-453e-a073-4635a29fb513" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxReceivable"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff7a74b9-7702-442b-8802-1561421634f3" xlink:to="loc_us-gaap_IncomeTaxReceivable_7de3e8e5-475c-453e-a073-4635a29fb513" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_5314e870-2cb0-4b09-a07b-3e0450aac253" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff7a74b9-7702-442b-8802-1561421634f3" xlink:to="loc_us-gaap_OtherAssets_5314e870-2cb0-4b09-a07b-3e0450aac253" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_62646ebe-510f-4fe9-b4e3-fd10472ebce9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff7a74b9-7702-442b-8802-1561421634f3" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_62646ebe-510f-4fe9-b4e3-fd10472ebce9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_03247e5d-8440-4d6a-8cf5-6fcb1efce004" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashAndCashEquivalents"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff7a74b9-7702-442b-8802-1561421634f3" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_03247e5d-8440-4d6a-8cf5-6fcb1efce004" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_c730f07a-168b-419f-b105-864114323f67" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff7a74b9-7702-442b-8802-1561421634f3" xlink:to="loc_us-gaap_InventoryNet_c730f07a-168b-419f-b105-864114323f67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_e69514c7-8b46-4959-8214-949b763a57fc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_e2efbd78-3d33-459d-9024-57aec85950da" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_e69514c7-8b46-4959-8214-949b763a57fc" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_e2efbd78-3d33-459d-9024-57aec85950da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trn_NegativeAccumulatedDepreciationPPEDeferredProfit_1eaa7a58-5cc5-4ea3-a69e-3a31530cdf55" xlink:href="trn-20240331.xsd#trn_NegativeAccumulatedDepreciationPPEDeferredProfit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_e69514c7-8b46-4959-8214-949b763a57fc" xlink:to="loc_trn_NegativeAccumulatedDepreciationPPEDeferredProfit_1eaa7a58-5cc5-4ea3-a69e-3a31530cdf55" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_d4d352a5-181d-4687-adb1-8aa9dc8ad150" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_e69514c7-8b46-4959-8214-949b763a57fc" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_d4d352a5-181d-4687-adb1-8aa9dc8ad150" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_450b60ea-0cf7-44bf-925b-712b2e45d9a4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_ba2a8f2d-110c-44cb-bdeb-1bc4058d9e53" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_450b60ea-0cf7-44bf-925b-712b2e45d9a4" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_ba2a8f2d-110c-44cb-bdeb-1bc4058d9e53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_cba0184a-2d0e-46af-9403-331fb2bba986" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_450b60ea-0cf7-44bf-925b-712b2e45d9a4" xlink:to="loc_us-gaap_CommonStockValue_cba0184a-2d0e-46af-9403-331fb2bba986" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_22c77a99-80ff-40b1-8780-dea19cfd1e84" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_450b60ea-0cf7-44bf-925b-712b2e45d9a4" xlink:to="loc_us-gaap_AdditionalPaidInCapital_22c77a99-80ff-40b1-8780-dea19cfd1e84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_14c3870e-30b2-408a-bc8e-1c4c70c806ec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_450b60ea-0cf7-44bf-925b-712b2e45d9a4" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_14c3870e-30b2-408a-bc8e-1c4c70c806ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_15d1fcfe-8a4b-4db1-8e94-710337b84967" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_450b60ea-0cf7-44bf-925b-712b2e45d9a4" xlink:to="loc_us-gaap_PreferredStockValue_15d1fcfe-8a4b-4db1-8e94-710337b84967" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_616cfe27-6791-4ef0-b09f-42a9a03aaba3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockValue"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_450b60ea-0cf7-44bf-925b-712b2e45d9a4" xlink:to="loc_us-gaap_TreasuryStockValue_616cfe27-6791-4ef0-b09f-42a9a03aaba3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_8d2065a7-5d84-4553-8ef4-0bd95f47d365" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_9d6b06a9-42c5-459b-a2a7-b19bd74c3097" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8d2065a7-5d84-4553-8ef4-0bd95f47d365" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_9d6b06a9-42c5-459b-a2a7-b19bd74c3097" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_d8f1ed8a-0ec6-4cc3-a98d-bcb5b7d99738" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_8d2065a7-5d84-4553-8ef4-0bd95f47d365" xlink:to="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_d8f1ed8a-0ec6-4cc3-a98d-bcb5b7d99738" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_3763715c-2262-4175-86e1-920a032437ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryWorkInProcessNetOfReserves"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_8d2065a7-5d84-4553-8ef4-0bd95f47d365" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_3763715c-2262-4175-86e1-920a032437ca" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trin.net/role/ConsolidatedStatementsofCashFlowsunaudited" xlink:type="simple" xlink:href="trn-20240331.xsd#ConsolidatedStatementsofCashFlowsunaudited"/>
  <link:calculationLink xlink:role="http://www.trin.net/role/ConsolidatedStatementsofCashFlowsunaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_373136bf-8aab-43db-a5de-74263cfde3ed" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7cbce1f4-c4d3-441b-810f-6356dadcacc3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_373136bf-8aab-43db-a5de-74263cfde3ed" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7cbce1f4-c4d3-441b-810f-6356dadcacc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_77e4c3d6-2d95-46e6-aa66-1d7f6dde47f8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_373136bf-8aab-43db-a5de-74263cfde3ed" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_77e4c3d6-2d95-46e6-aa66-1d7f6dde47f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3680f3bb-0a26-4099-ac8a-ee1e40c7903a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_373136bf-8aab-43db-a5de-74263cfde3ed" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3680f3bb-0a26-4099-ac8a-ee1e40c7903a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a8f8d867-ec72-407e-b7ee-2701550fb75a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities_a07252cc-65b4-4715-b1d8-0ba64b1f9791" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a8f8d867-ec72-407e-b7ee-2701550fb75a" xlink:to="loc_us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities_a07252cc-65b4-4715-b1d8-0ba64b1f9791" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDebtNetOfIssuanceCosts_acd06a2a-3d40-42e0-ac16-816b4bb616d9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromDebtNetOfIssuanceCosts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a8f8d867-ec72-407e-b7ee-2701550fb75a" xlink:to="loc_us-gaap_ProceedsFromDebtNetOfIssuanceCosts_acd06a2a-3d40-42e0-ac16-816b4bb616d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsToMinorityShareholders_414b1c52-7528-45cf-92ca-22ec4f0bd442" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromPaymentsToMinorityShareholders"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a8f8d867-ec72-407e-b7ee-2701550fb75a" xlink:to="loc_us-gaap_ProceedsFromPaymentsToMinorityShareholders_414b1c52-7528-45cf-92ca-22ec4f0bd442" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_88481a4a-8826-4df7-bde5-02fee9ca31b4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a8f8d867-ec72-407e-b7ee-2701550fb75a" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_88481a4a-8826-4df7-bde5-02fee9ca31b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_514333ff-cbce-455b-afc0-807371e822f4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a8f8d867-ec72-407e-b7ee-2701550fb75a" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_514333ff-cbce-455b-afc0-807371e822f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_33f10c91-21d9-43ad-9fca-cb23c8502bae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a8f8d867-ec72-407e-b7ee-2701550fb75a" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_33f10c91-21d9-43ad-9fca-cb23c8502bae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_8f5f034a-1677-47e5-a9ee-3572494f6d39" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:to="loc_us-gaap_ProfitLoss_8f5f034a-1677-47e5-a9ee-3572494f6d39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_839a9e47-8c0e-4652-bb42-f7655d71534c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_839a9e47-8c0e-4652-bb42-f7655d71534c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trn_NetGainsOnLeasePortfolioSalesExcludingSalesTypeLeases_6c5ee842-2fa3-4cbb-b124-97191622a78a" xlink:href="trn-20240331.xsd#trn_NetGainsOnLeasePortfolioSalesExcludingSalesTypeLeases"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:to="loc_trn_NetGainsOnLeasePortfolioSalesExcludingSalesTypeLeases_6c5ee842-2fa3-4cbb-b124-97191622a78a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_7966432a-4aca-4208-9629-992b9b1c726a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_7966432a-4aca-4208-9629-992b9b1c726a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_85417064-cac4-4f26-8c87-b009e0be98d3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_85417064-cac4-4f26-8c87-b009e0be98d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_38c7d13e-67e8-4483-b8c0-9d26f349af33" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_38c7d13e-67e8-4483-b8c0-9d26f349af33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationDuringPhaseOutPeriodNetOfTax_066714aa-e806-4872-810f-2037f2f862ce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationDuringPhaseOutPeriodNetOfTax"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:to="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationDuringPhaseOutPeriodNetOfTax_066714aa-e806-4872-810f-2037f2f862ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_a1b89a78-ba39-4fbe-b181-a5ad2ec951f9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_a1b89a78-ba39-4fbe-b181-a5ad2ec951f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_b3631f8f-08db-4b0f-92ce-a5145fe194af" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_b3631f8f-08db-4b0f-92ce-a5145fe194af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trn_GainLossonDispositionofPropertyPlantandEquipmentOther_4e863e07-f2d3-43ba-9206-eb147f28b204" xlink:href="trn-20240331.xsd#trn_GainLossonDispositionofPropertyPlantandEquipmentOther"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:to="loc_trn_GainLossonDispositionofPropertyPlantandEquipmentOther_4e863e07-f2d3-43ba-9206-eb147f28b204" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_c9a3322d-435e-4ff4-9170-8813695f21e9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_c9a3322d-435e-4ff4-9170-8813695f21e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_0d6ce2ab-b6c4-4d9d-9483-c89e2c67e663" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_0d6ce2ab-b6c4-4d9d-9483-c89e2c67e663" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_cd5ac956-970e-4932-b77b-f6f85db88a5c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_cd5ac956-970e-4932-b77b-f6f85db88a5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_d12eb361-cfa0-42b5-912c-ac531d4742d1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_d12eb361-cfa0-42b5-912c-ac531d4742d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_ff9eab6f-6b23-4a5a-a2af-ba2977744159" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:to="loc_us-gaap_ShareBasedCompensation_ff9eab6f-6b23-4a5a-a2af-ba2977744159" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trn_GainsOnInsuranceRecoveriesFromPropertyDamage_b08da2a1-2219-4adf-a198-25fcc11d362d" xlink:href="trn-20240331.xsd#trn_GainsOnInsuranceRecoveriesFromPropertyDamage"/>
    <link:calculationArc order="16" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_2f4295b5-725d-4892-93f1-3dfe4a9c3c4d" xlink:to="loc_trn_GainsOnInsuranceRecoveriesFromPropertyDamage_b08da2a1-2219-4adf-a198-25fcc11d362d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_fad97710-ce55-47bc-aabd-253a9875ac72" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_trn_ProceedsFromSaleOfPropertySubjectToOrAvailableForOperatingLease_46a9d9fc-798e-453c-8175-e0a6873d2079" xlink:href="trn-20240331.xsd#trn_ProceedsFromSaleOfPropertySubjectToOrAvailableForOperatingLease"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_fad97710-ce55-47bc-aabd-253a9875ac72" xlink:to="loc_trn_ProceedsFromSaleOfPropertySubjectToOrAvailableForOperatingLease_46a9d9fc-798e-453c-8175-e0a6873d2079" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromInsuranceSettlementInvestingActivities_2463af4e-8f6d-4cab-899f-5d7b56943123" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromInsuranceSettlementInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_fad97710-ce55-47bc-aabd-253a9875ac72" xlink:to="loc_us-gaap_ProceedsFromInsuranceSettlementInvestingActivities_2463af4e-8f6d-4cab-899f-5d7b56943123" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_260c91e5-01e3-4685-b067-fd7130614297" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_fad97710-ce55-47bc-aabd-253a9875ac72" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_260c91e5-01e3-4685-b067-fd7130614297" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfOtherProductiveAssets_75ae8faf-e447-4e6b-97e4-37a21b9167a7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleOfOtherProductiveAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_fad97710-ce55-47bc-aabd-253a9875ac72" xlink:to="loc_us-gaap_ProceedsFromSaleOfOtherProductiveAssets_75ae8faf-e447-4e6b-97e4-37a21b9167a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireEquipmentOnLease_4f96cd26-cbfb-4bca-9d09-c51f3d7e672b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireEquipmentOnLease"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_fad97710-ce55-47bc-aabd-253a9875ac72" xlink:to="loc_us-gaap_PaymentsToAcquireEquipmentOnLease_4f96cd26-cbfb-4bca-9d09-c51f3d7e672b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_d14a150f-f783-4de8-ba1e-c299f05055c0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_fad97710-ce55-47bc-aabd-253a9875ac72" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_d14a150f-f783-4de8-ba1e-c299f05055c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_fc513441-ce7f-4251-81b3-c00191417368" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_fad97710-ce55-47bc-aabd-253a9875ac72" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_fc513441-ce7f-4251-81b3-c00191417368" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7676c1e4-8edb-47f7-bd25-2b635e49dcfe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_8727b56c-16f0-4116-990b-2f657b12e427" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7676c1e4-8edb-47f7-bd25-2b635e49dcfe" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_8727b56c-16f0-4116-990b-2f657b12e427" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations_2fb7f510-2a76-435d-bb16-2f518378577b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7676c1e4-8edb-47f7-bd25-2b635e49dcfe" xlink:to="loc_us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations_2fb7f510-2a76-435d-bb16-2f518378577b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trin.net/role/SegmentInformationFinancialinformationforsegmentsDetails" xlink:type="simple" xlink:href="trn-20240331.xsd#SegmentInformationFinancialinformationforsegmentsDetails"/>
  <link:calculationLink xlink:role="http://www.trin.net/role/SegmentInformationFinancialinformationforsegmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_cb33cd98-4872-4370-8e86-e8bfe920bb1d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Revenues"/>
    <link:loc xlink:type="locator" xlink:label="loc_trn_ExternalRevenue_39709e00-3e28-4d35-9eb8-6139dd03f6a9" xlink:href="trn-20240331.xsd#trn_ExternalRevenue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_cb33cd98-4872-4370-8e86-e8bfe920bb1d" xlink:to="loc_trn_ExternalRevenue_39709e00-3e28-4d35-9eb8-6139dd03f6a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_trn_IntersegmentRevenues_21cd2320-5e84-492b-b8b7-c6d4eb8250d2" xlink:href="trn-20240331.xsd#trn_IntersegmentRevenues"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_cb33cd98-4872-4370-8e86-e8bfe920bb1d" xlink:to="loc_trn_IntersegmentRevenues_21cd2320-5e84-492b-b8b7-c6d4eb8250d2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trin.net/role/RailcarLeasingandServicesGroupOtherOperatingLeaseObligationsFutureRevenuesDetails" xlink:type="simple" xlink:href="trn-20240331.xsd#RailcarLeasingandServicesGroupOtherOperatingLeaseObligationsFutureRevenuesDetails"/>
  <link:calculationLink xlink:role="http://www.trin.net/role/RailcarLeasingandServicesGroupOtherOperatingLeaseObligationsFutureRevenuesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_cf2ca94d-a6db-4e15-8782-fb170572e92c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_a851483e-5855-48b4-836c-33f7bb71d8dd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_cf2ca94d-a6db-4e15-8782-fb170572e92c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_a851483e-5855-48b4-836c-33f7bb71d8dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_52b98cc9-d078-41c9-8626-2b49e22454cd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_cf2ca94d-a6db-4e15-8782-fb170572e92c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_52b98cc9-d078-41c9-8626-2b49e22454cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_35c57392-beb4-41c6-ba68-e49409d7b0a9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_cf2ca94d-a6db-4e15-8782-fb170572e92c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_35c57392-beb4-41c6-ba68-e49409d7b0a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_6b22bbff-b59c-4392-80fd-624ef7fbee66" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_cf2ca94d-a6db-4e15-8782-fb170572e92c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_6b22bbff-b59c-4392-80fd-624ef7fbee66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_af25a50a-a528-4383-9958-efab925caeea" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_cf2ca94d-a6db-4e15-8782-fb170572e92c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_af25a50a-a528-4383-9958-efab925caeea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_0b10019e-1bb1-4d99-af7b-ec90a5ce5861" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_cf2ca94d-a6db-4e15-8782-fb170572e92c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_0b10019e-1bb1-4d99-af7b-ec90a5ce5861" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceived_9af6b199-b2e9-4370-807a-312e5c8c9f5e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LessorOperatingLeasePaymentsToBeReceived"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceivedNextTwelveMonths_f1306fab-74bd-4762-ae73-bd2b5eecc6b2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LessorOperatingLeasePaymentsToBeReceivedNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceived_9af6b199-b2e9-4370-807a-312e5c8c9f5e" xlink:to="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceivedNextTwelveMonths_f1306fab-74bd-4762-ae73-bd2b5eecc6b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceivedTwoYears_a397aa04-bb75-4bc2-bf11-21a92c48fa9c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LessorOperatingLeasePaymentsToBeReceivedTwoYears"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceived_9af6b199-b2e9-4370-807a-312e5c8c9f5e" xlink:to="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceivedTwoYears_a397aa04-bb75-4bc2-bf11-21a92c48fa9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceivedThreeYears_c4a508a5-848f-42f0-9677-cae7583c2a93" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LessorOperatingLeasePaymentsToBeReceivedThreeYears"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceived_9af6b199-b2e9-4370-807a-312e5c8c9f5e" xlink:to="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceivedThreeYears_c4a508a5-848f-42f0-9677-cae7583c2a93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceivedFourYears_bdb00d50-445a-4e2a-ac49-d27a68338305" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LessorOperatingLeasePaymentsToBeReceivedFourYears"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceived_9af6b199-b2e9-4370-807a-312e5c8c9f5e" xlink:to="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceivedFourYears_bdb00d50-445a-4e2a-ac49-d27a68338305" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceivedFiveYears_8f88ebe6-86d4-4007-bdc3-a64d3c10b65f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LessorOperatingLeasePaymentsToBeReceivedFiveYears"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceived_9af6b199-b2e9-4370-807a-312e5c8c9f5e" xlink:to="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceivedFiveYears_8f88ebe6-86d4-4007-bdc3-a64d3c10b65f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceivedThereafter_5432edcd-ee02-4ca2-b336-8ce228976b2e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LessorOperatingLeasePaymentsToBeReceivedThereafter"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceived_9af6b199-b2e9-4370-807a-312e5c8c9f5e" xlink:to="loc_us-gaap_LessorOperatingLeasePaymentsToBeReceivedThereafter_5432edcd-ee02-4ca2-b336-8ce228976b2e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.trin.net/role/EarningsPerCommonShareEPScalculationDetails" xlink:type="simple" xlink:href="trn-20240331.xsd#EarningsPerCommonShareEPScalculationDetails"/>
  <link:calculationLink xlink:role="http://www.trin.net/role/EarningsPerCommonShareEPScalculationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_b0f9e3ed-17f0-43fd-87bf-b5ff96d25d65" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_01a661c6-c428-47a8-ac8c-6710d682efdd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_b0f9e3ed-17f0-43fd-87bf-b5ff96d25d65" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_01a661c6-c428-47a8-ac8c-6710d682efdd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_9a92ea48-404e-4ff1-9a71-834b1f59297e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_b0f9e3ed-17f0-43fd-87bf-b5ff96d25d65" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_9a92ea48-404e-4ff1-9a71-834b1f59297e" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
