<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2020-01-31"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="trn-20210729.xsd" xlink:type="simple"/>
    <context id="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000099780</identifier>
        </entity>
        <period>
            <startDate>2021-07-29</startDate>
            <endDate>2021-07-29</endDate>
        </period>
    </context>
    <dei:DocumentPeriodEndDate
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl80L2ZyYWc6MTE3MTA0ZTY5MTc0NDI0M2FmMDc2MDhlODczNjYzNDQvdGFibGU6NDFlOGMwNWE4NTlhNDg0OGEyYTYyYmQ3ODhmMzcxMzQvdGFibGVyYW5nZTo0MWU4YzA1YTg1OWE0ODQ4YTJhNjJiZDc4OGYzNzEzNF8xLTEtMS0xLTA_27e9d94a-5c72-40f0-b7a3-a46ba81e2898">2021-07-29</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl80L2ZyYWc6MTE3MTA0ZTY5MTc0NDI0M2FmMDc2MDhlODczNjYzNDQvdGFibGU6NDFlOGMwNWE4NTlhNDg0OGEyYTYyYmQ3ODhmMzcxMzQvdGFibGVyYW5nZTo0MWU4YzA1YTg1OWE0ODQ4YTJhNjJiZDc4OGYzNzEzNF8yLTEtMS0xLTA_845658f3-ea37-4150-adc0-e5d2fd83d710">TRINITY INDUSTRIES INC</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl80L2ZyYWc6MTE3MTA0ZTY5MTc0NDI0M2FmMDc2MDhlODczNjYzNDQvdGFibGU6NDFlOGMwNWE4NTlhNDg0OGEyYTYyYmQ3ODhmMzcxMzQvdGFibGVyYW5nZTo0MWU4YzA1YTg1OWE0ODQ4YTJhNjJiZDc4OGYzNzEzNF8zLTEtMS0xLTA_5967c8bb-104e-4a81-994c-dcf6b7c0bfff">0000099780</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl80L2ZyYWc6MTE3MTA0ZTY5MTc0NDI0M2FmMDc2MDhlODczNjYzNDQvdGFibGU6NDFlOGMwNWE4NTlhNDg0OGEyYTYyYmQ3ODhmMzcxMzQvdGFibGVyYW5nZTo0MWU4YzA1YTg1OWE0ODQ4YTJhNjJiZDc4OGYzNzEzNF80LTEtMS0xLTA_fcbeea34-32da-45a0-a32c-833d3108d682">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGV4dHJlZ2lvbjo4MWM3MTJmMTJlNTY0NTlkOTg3NTJmYThlMzE1OTIyMF8xNzMy_22f22c63-cc4e-4fd7-8107-8701cde98e86">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGFibGU6N2Q0NTUxNmI0Zjk2NDU1ZmIwMGQ5ZjM1MTU5YzA0YTUvdGFibGVyYW5nZTo3ZDQ1NTE2YjRmOTY0NTVmYjAwZDlmMzUxNTljMDRhNV8wLTItMS0xLTA_27e9d94a-5c72-40f0-b7a3-a46ba81e2898">2021-07-29</dei:DocumentPeriodEndDate>
    <dei:EntityIncorporationStateCountryCode
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGFibGU6NDM2MjFhODY5YjQ2NDkzMDg2NTMyOTI1ZTZjOWM2ZDQvdGFibGVyYW5nZTo0MzYyMWE4NjliNDY0OTMwODY1MzI5MjVlNmM5YzZkNF8xLTAtMS0xLTA_516116b0-3f20-4e69-90ab-4a3593ddcd8e">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGFibGU6NDM2MjFhODY5YjQ2NDkzMDg2NTMyOTI1ZTZjOWM2ZDQvdGFibGVyYW5nZTo0MzYyMWE4NjliNDY0OTMwODY1MzI5MjVlNmM5YzZkNF8xLTItMS0xLTA_b6e5e36e-3192-438e-a498-bb4799e1731e">1-6903</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGFibGU6NDM2MjFhODY5YjQ2NDkzMDg2NTMyOTI1ZTZjOWM2ZDQvdGFibGVyYW5nZTo0MzYyMWE4NjliNDY0OTMwODY1MzI5MjVlNmM5YzZkNF8xLTQtMS0xLTA_a83bef1f-d8e3-4f06-ab73-9b99423af201">75-0225040</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGV4dHJlZ2lvbjo4MWM3MTJmMTJlNTY0NTlkOTg3NTJmYThlMzE1OTIyMF8xNzI4_d2764a41-a20d-4d8c-b558-78391268e9e0">14221 N. Dallas Parkway, Suite 1100,</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGV4dHJlZ2lvbjo4MWM3MTJmMTJlNTY0NTlkOTg3NTJmYThlMzE1OTIyMF8xNzMz_265e8164-ff9a-4503-a0a5-98b949a2e09c">Dallas</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGV4dHJlZ2lvbjo4MWM3MTJmMTJlNTY0NTlkOTg3NTJmYThlMzE1OTIyMF8xNzI5_a0c0f01c-0a9b-4118-979d-887b13e43e7e">TX</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGV4dHJlZ2lvbjo4MWM3MTJmMTJlNTY0NTlkOTg3NTJmYThlMzE1OTIyMF8xNzMw_924137e4-f909-4555-a207-7b0afa3243e9">75254-2957</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGV4dHJlZ2lvbjo4MWM3MTJmMTJlNTY0NTlkOTg3NTJmYThlMzE1OTIyMF8xNzM0_2a113a28-533c-4ce7-9cbc-ebeeee66a4dd">214</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGV4dHJlZ2lvbjo4MWM3MTJmMTJlNTY0NTlkOTg3NTJmYThlMzE1OTIyMF8xNzIz_fd4dc339-1730-439d-832e-fff50da695c3">631-4420</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGV4dHJlZ2lvbjo4MWM3MTJmMTJlNTY0NTlkOTg3NTJmYThlMzE1OTIyMF8xNzI0_109500b6-7872-43e9-bf38-326aade5c6b5">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGV4dHJlZ2lvbjo4MWM3MTJmMTJlNTY0NTlkOTg3NTJmYThlMzE1OTIyMF8xNzI1_9f94d8f6-96d0-4118-bba4-7fac2cfb96bf">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGV4dHJlZ2lvbjo4MWM3MTJmMTJlNTY0NTlkOTg3NTJmYThlMzE1OTIyMF8xNzMx_c14e3d20-4f8c-468b-adb4-33050f95ec49">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGV4dHJlZ2lvbjo4MWM3MTJmMTJlNTY0NTlkOTg3NTJmYThlMzE1OTIyMF8xNzI2_a51a231f-ed81-4eaf-bfff-d2c3a0d9b32a">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGFibGU6Zjc4OTgyNDRlYjY4NDc3NmIzOWE1NDZiODRmOTkzYWUvdGFibGVyYW5nZTpmNzg5ODI0NGViNjg0Nzc2YjM5YTU0NmI4NGY5OTNhZV8xLTAtMS0xLTA_301c8010-8af0-4a6c-a402-99bf614cbffe">Common Stock</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGFibGU6Zjc4OTgyNDRlYjY4NDc3NmIzOWE1NDZiODRmOTkzYWUvdGFibGVyYW5nZTpmNzg5ODI0NGViNjg0Nzc2YjM5YTU0NmI4NGY5OTNhZV8xLTEtMS0xLTA_b77ef069-2480-4504-9c45-4fd622f470fc">TRN</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGFibGU6Zjc4OTgyNDRlYjY4NDc3NmIzOWE1NDZiODRmOTkzYWUvdGFibGVyYW5nZTpmNzg5ODI0NGViNjg0Nzc2YjM5YTU0NmI4NGY5OTNhZV8xLTItMS0xLTA_9cf50889-1081-41c1-bcf5-95a6e4b799c9">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="i308acb708a0042f7bbe32b8f31e1c6dd_D20210729-20210729"
      id="id3VybDovL2RvY3MudjEvZG9jOjEzODNjNWYyNzk2NzQ3YTI4YjU4NGZmMzc3NjdkODJmL3NlYzoxMzgzYzVmMjc5Njc0N2EyOGI1ODRmZjM3NzY3ZDgyZl8xL2ZyYWc6ODFjNzEyZjEyZTU2NDU5ZDk4NzUyZmE4ZTMxNTkyMjAvdGV4dHJlZ2lvbjo4MWM3MTJmMTJlNTY0NTlkOTg3NTJmYThlMzE1OTIyMF8xNzI3_d9897150-2b65-4ea8-82ad-875984af086b">false</dei:EntityEmergingGrowthCompany>
</xbrl>
