XML 63 R55.htm IDEA: XBRL DOCUMENT
v3.25.3

Commitments and Contingencies - Additional Information (Detail) $ in Millions | 9 Months Ended
--- | ---
Sep. 30, 2025 USD ($)
Industrial Revenue Bonds [Member] |
Schedule Of Commitments And Contingencies [Line Items] |
Bonds issue | $ 450
Gross asset and liability | $ 450
Residential Use [Member] | Products Sold Prior to January One, Two Thousand and Twenty Three [Member] |
Schedule Of Commitments And Contingencies [Line Items] |
Warranty period | 25 years
Commercial Use [Member] |
Schedule Of Commitments And Contingencies [Line Items] |
Warranty period | 10 years
Commercial Use [Member] | Products Sold Prior to January One, Two Thousand and Twenty Three [Member] |
Schedule Of Commitments And Contingencies [Line Items] |
Warranty period | 10 years
Signature Railing And Transcend Cladding [Member] | Commercial Use [Member] |
Schedule Of Commitments And Contingencies [Line Items] |
Warranty period | 25 years
Transcend Decking [Member] | Residential Use [Member] | Products Sold on or After January One, Two Thousand and Twenty Three [Member] |
Schedule Of Commitments And Contingencies [Line Items] |
Warranty period | 50 years
Select Decking And Universal Fascia [Member] | Residential Use [Member] | Products Sold on or After January One, Two Thousand and Twenty Three [Member] |
Schedule Of Commitments And Contingencies [Line Items] |
Warranty period | 35 years
Enhance Decking And Transcend, Select, Enhance And Signature Railing [Member] | Residential Use [Member] | Products Sold on or After January One, Two Thousand and Twenty Three [Member] |
Schedule Of Commitments And Contingencies [Line Items] |
Warranty period | 25 years
Signature Railing [Member] | Residential and Commercial Use [Member] | Products Sold Prior to January One, Two Thousand and Twenty Three [Member] |
Schedule Of Commitments And Contingencies [Line Items] |
Warranty period | 25 years

X
- Definition Gross asset and liability + References No definition available. + Details
Name: | trex_GrossAssetAndLiability
Namespace Prefix: | trex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Schedule of commitments and contingencies. + References No definition available. + Details
Name: | trex_ScheduleOfCommitmentsAndContingenciesLineItems
Namespace Prefix: | trex_
Data Type: | xbrli:stringItemType
Balance Type: | na
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 Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -SubTopic 10 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478546/942-210-S99-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481139/470-20-50-4 + Details
Name: | us-gaap_DebtInstrumentCarryingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_ContingentConsiderationByTypeAxis=trex_IndustrialRevenueBondsMember
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: | us-gaap_SupplyCommitmentAxis=trex_ProductsSoldPriorToJanuaryOneTwoThousandAndTwentyThreeMember
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_SignatureRailingAndTranscendCladdingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_SupplyCommitmentAxis=trex_ProductsSoldOnOrAfterJanuaryOneTwoThousandAndTwentyThreeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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

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