XML 58 R44.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Summary of Significant Accounting Policies - Additional Information (Detail) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2021 USD ($) Customer Supplier Institution | Dec. 31, 2020 USD ($) Customer | Dec. 31, 2019 USD ($) Customer | Dec. 31, 2018 USD ($)
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Maximum term of original maturities to classify as cash equivalent | 3 months |  |  |
Number of financial institutions where deposits are maintained | Institution | 1 |  |  |
Valuation allowance | $ 0 | $ 0 |  |
Number of customers that accounted for 10% or more of net sales | Customer | 3 | 3 | 3 |
Number of customer accounted for 10% or more account receivable | Customer | 2 | 2 |  |
Number of largest raw material suppliers | Supplier | 4 |  |  |
Excess of the replacement cost of inventory over the LIFO value of inventory | $ (36,467) | $ (16,821) |  |
Annual impairment test of goodwill | 54,245 | 0 | $ 0 |
Valuation allowance | 2,232 | 2,775 |  |
Research and Development costs |  | 6,000 | 3,400 | $ 4,500
Prepaid expenses for production costs of advertising | 3,100 | 10 |  |
Branding Expenses | 30,700 | 31,700 | $ 35,700 |
Unpaid Liabilities relates to property plant and equipment | $ 2,600 | $ 12,900 |  |
Operating leases with an initial term | 12 months or less |  |  |
Fire At Virginia Facility [Member] | Insurance Settlement [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Gain loss on insurance settlement | $ 8,700 |  |  |
Commercial Portfolio Segment [Member] | Railing [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Annual impairment test of goodwill | 42,491 |  |  |
Commercial Portfolio Segment [Member] | Staging [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Annual impairment test of goodwill | $ 11,754 |  |  |
Maximum [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Operating Lease terms | 8 years |  |  |
Minimum [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Operating Lease terms | 1 year |  |  |
Residential Use [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Warranty period | 25 years |  |  |
Residential Use [Member] | Transcend Enhance Select And Universal Fascia Product [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Warranty period | 25 years |  |  |
Residential Use [Member] | Trex Signature Railing [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Warranty period | 25 years |  |  |
Commercial Use [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Warranty period | 10 years |  |  |
Commercial Use [Member] | Transcend Enhance Select And Universal Fascia Product [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Warranty period | 10 years |  |  |
Commercial Use [Member] | Trex Signature Railing [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Warranty period | 25 years |  |  |
Commercial Use [Member] | Maximum [Member] | Commercial Railing And Staging Systems [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Warranty period | 3 years |  |  |
Commercial Use [Member] | Minimum [Member] | Commercial Railing And Staging Systems [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Warranty period | 1 year |  |  |
Sales Revenue, Net [Member] | Customer Concentration Risk [Member] | Minimum [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Concentration risk as percentage of total | 10.00% | 10.00% | 10.00% |
Sales Revenue, Net [Member] | Customer Concentration Risk [Member] | Customer One [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Concentration risk as percentage of total | 61.00% | 56.00% | 57.00% |
Accounts Receivable [Member] | Customer Concentration Risk [Member] | Customer One [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Concentration risk as percentage of total | 29.00% | 27.00% |  |
Accounts Receivable [Member] | Customer Concentration Risk [Member] | Customer Two [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Concentration risk as percentage of total | 25.00% | 15.00% |  |
Raw Materials [Member] | Supplier Concentration Risk [Member] | Four Largest Suppliers [Member] |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |
Concentration risk as percentage of total | 26.00% | 28.00% | 27.00% |

X
- Definition Description of operating leases with initial term. + References No definition available. + Details
Name: | trex_DescriptionOfOperatingLeasesWithInitialTerm
Namespace Prefix: | trex_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Gain loss on insurance settlement. + References No definition available. + Details
Name: | trex_GainLossOnInsuranceSettlement
Namespace Prefix: | trex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Maximum term of original maturities to classify as cash equivalent. + References No definition available. + Details
Name: | trex_MaturityPeriodOfCashEquivalent
Namespace Prefix: | trex_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of customer accounted for ten percent or more account receivable. + References No definition available. + Details
Name: | trex_NumberOfCustomerAccountedForTenPercentOrMoreAccountReceivable
Namespace Prefix: | trex_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of customer accounted for ten percent or more sales of net sales. + References No definition available. + Details
Name: | trex_NumberOfCustomerAccountedForTenPercentOrMoreSalesOfNetSales
Namespace Prefix: | trex_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of financial institutions where Company deposits are maintained. + References No definition available. + Details
Name: | trex_NumberOfFinancialInstitutionWithDeposit
Namespace Prefix: | trex_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of largest raw material suppliers. + References No definition available. + Details
Name: | trex_NumberOfLargestRawMaterialSuppliers
Namespace Prefix: | trex_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Schedule of significant accounting policies. + References No definition available. + Details
Name: | trex_ScheduleOfSignificantAccountingPoliciesLineItems
Namespace Prefix: | trex_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Valuation allowance for credit losses and disputed amounts. + References No definition available. + Details
Name: | trex_ValuationAllowanceForCreditLossesAndDisputedAmounts
Namespace Prefix: | trex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The number of years the Company warrants that its products will be free from material defects in workmanship and materials. + References No definition available. + Details
Name: | trex_WarrantyPeriod
Namespace Prefix: | trex_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Carrying value as of the balance sheet date of liabilities incurred (and for which invoices have typically been received) and payable to vendors for goods and services received that are used in an entity's business. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03.15(a)) -URI http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03.15(5)) -URI http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878 + Details
Name: | us-gaap_AccountsPayableCurrentAndNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount charged to advertising expense for the period, which are expenses incurred with the objective of increasing revenue for a specified brand, product or product line. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 720 -SubTopic 35 -Section 50 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=6420018&loc=d3e36677-107848 + Details
Name: | us-gaap_AdvertisingExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition For an entity that discloses a concentration risk in relation to quantitative amount, which serves as the "benchmark" (or denominator) in the equation, this concept represents the concentration percentage derived from the division. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 42 -URI http://asc.fasb.org/extlink&oid=123359005&loc=d3e9054-108599 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 275 -SubTopic 10 -Section 50 -Paragraph 18 -URI http://asc.fasb.org/extlink&oid=99393423&loc=d3e6351-108592 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=123594938&loc=d3e13531-108611 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 21 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=123594938&loc=d3e13537-108611 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 275 -SubTopic 10 -Section 50 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=99393423&loc=d3e6404-108592 + Details
Name: | us-gaap_ConcentrationRiskPercentage1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319 + Details
Name: | us-gaap_DeferredTaxAssetsValuationAllowance
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of loss from the write-down of an asset representing the future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 50 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121556970&loc=d3e13854-109267 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=123570139&loc=d3e3602-108585 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=99380562&loc=d3e13777-109266 + Details
Name: | us-gaap_GoodwillImpairmentLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount by which inventory stated at last-in first-out (LIFO) is less than (in excess of) inventory stated at other inventory cost methods. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.6(c)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_InventoryLIFOReserve
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Term of lessor's operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 30 -Section 50 -Paragraph 3 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=124258985&loc=SL77919359-209981 + Details
Name: | us-gaap_LessorOperatingLeaseTermOfContract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of consideration paid in advance for advertising that provides economic benefits within a future period of one year or the normal operating cycle, if longer. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section 45 -Paragraph 1 -Subparagraph (g)(6) -URI http://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 340 -SubTopic 10 -Section 05 -Paragraph 5 -Subparagraph (f) -URI http://asc.fasb.org/extlink&oid=123349782&loc=d3e5879-108316 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 340 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6387103&loc=d3e6435-108320 + Details
Name: | us-gaap_PrepaidAdvertising
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The aggregate costs incurred (1) in a planned search or critical investigation aimed at discovery of new knowledge with the hope that such knowledge will be useful in developing a new product or service, a new process or technique, or in bringing about a significant improvement to an existing product or process; or (2) to translate research findings or other knowledge into a plan or design for a new product or process or for a significant improvement to an existing product or process whether intended for sale or the entity's use, during the reporting period charged to research and development projects, including the costs of developing computer software up to the point in time of achieving technological feasibility, and costs allocated in accounting for a business combination to in-process projects deemed to have no alternative future use. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 912 -SubTopic 730 -Section 25 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6472174&loc=d3e58812-109433 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 985 -SubTopic 20 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6501960&loc=d3e128462-111756 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 730 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6420194&loc=d3e21568-108373 + Details
Name: | us-gaap_ResearchAndDevelopmentExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_UnusualOrInfrequentItemAxis=trex_FireAtVirginiaFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_GainContingenciesByNatureAxis=us-gaap_InsuranceSettlementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancingReceivablePortfolioSegmentAxis=us-gaap_CommercialPortfolioSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ReportingUnitAxis=trex_RailingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ReportingUnitAxis=trex_StagingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_GuaranteeObligationsByNatureAxis=trex_ResidentialUseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ProductOrServiceAxis=trex_TranscendEnhanceSelectAndUniversalFasciaProductMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ProductOrServiceAxis=trex_TrextrimAndTrexRevealRailingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_GuaranteeObligationsByNatureAxis=trex_CommercialUseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ProductOrServiceAxis=trex_CommercialRailingAndStagingSystemsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByBenchmarkAxis=us-gaap_SalesRevenueNetMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByTypeAxis=us-gaap_CustomerConcentrationRiskMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=trex_CustomerOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByBenchmarkAxis=us-gaap_AccountsReceivableMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=trex_CustomerTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByBenchmarkAxis=trex_RawMaterialsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByTypeAxis=us-gaap_SupplierConcentrationRiskMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ShareBasedGoodsAndNonemployeeServicesTransactionBySupplierAxis=trex_FourLargestSuppliersMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |