XML 80 R58.htm IDEA: XBRL DOCUMENT
v2.4.1.9

Commitments and Contingencies - Additional Information (Detail) (USD $) | 3 Months Ended | 12 Months Ended
--- | --- | ---
Sep. 30, 2013 Letter | Dec. 31, 2014 | Dec. 31, 2013
Schedule Of Commitments And Contingencies [Line Items] |  |  |
Payments related to mold growth litigation |  | $ 1,800,000 us-gaap_LossContingencyAccrualCarryingValuePayments |
Maximum expected total payments under the settlement |  | 1,000,000 us-gaap_LossContingencyRangeOfPossibleLossMaximum |
Average period for PE material purchases under short-term supply contracts for which pricing is negotiated as needed |  | 2 years |
Charge recorded |  | 1,471,000 us-gaap_RestructuringCharges | 1,144,000 us-gaap_RestructuringCharges
Minimum payments remaining under the Company's lease relating to its reconsidered corporate relocation for 2015 |  | 6,753,000 us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent |
Minimum payments remaining under the Company's lease relating to its reconsidered corporate relocation for 2016 |  | 5,490,000 us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears |
Minimum payments remaining under the Company's lease relating to its reconsidered corporate relocation for 2017 |  | 5,370,000 us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears |
Minimum payments remaining under the Company's lease relating to its reconsidered corporate relocation for 2018 |  | 5,308,000 us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears |
Minimum payments remaining under the Company's lease relating to its reconsidered corporate relocation for 2019 |  | 4,467,000 us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears |
Letters sent to homeowners | 10,000 trex_NumberOfLettersSentToHomeowner |  |
Increase in warranty reserve | 20,000,000 us-gaap_StandardProductWarrantyAccrualPreexistingIncreaseDecrease |  |
Surface Flaking Warranty Reserve [Member] |  |  |
Schedule Of Commitments And Contingencies [Line Items] |  |  |
Increase in warranty reserve | 20,000,000 us-gaap_StandardProductWarrantyAccrualPreexistingIncreaseDecrease / us-gaap_ValuationAllowancesAndReservesTypeAxis = trex_SurfaceFlakingWarrantyReserveMember |  | 20,000,000 us-gaap_StandardProductWarrantyAccrualPreexistingIncreaseDecrease / us-gaap_ValuationAllowancesAndReservesTypeAxis = trex_SurfaceFlakingWarrantyReserveMember
Percentage change in warranty claims used as a threshold for disclosure |  | 10.00%trex_PercentageChangeInWarrantyClaimsUsedAsThresholdForDisclosure / us-gaap_ValuationAllowancesAndReservesTypeAxis = trex_SurfaceFlakingWarrantyReserveMember |
Change in warranty reserve for disclosure purposes only |  | 3,100,000 trex_ChangeInWarrantyReserveForDisclosurePurposesOnly / us-gaap_ValuationAllowancesAndReservesTypeAxis = trex_SurfaceFlakingWarrantyReserveMember |
Residential Use [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 |
Transcend, Enhance, Select and Universal Fascia Product [Member] | Residential Use [Member] |  |  |
Schedule Of Commitments And Contingencies [Line Items] |  |  |
Warranty period |  | 25 years |
Transcend, Enhance, Select and Universal Fascia Product [Member] | Commercial Use [Member] |  |  |
Schedule Of Commitments And Contingencies [Line Items] |  |  |
Warranty period |  | 10 years |
TrexTrim and Trex Reveal Railing [Member] | Residential Use [Member] |  |  |
Schedule Of Commitments And Contingencies [Line Items] |  |  |
Warranty period |  | 25 years |
TrexTrim and Trex Reveal Railing [Member] | Commercial Use [Member] |  |  |
Schedule Of Commitments And Contingencies [Line Items] |  |  |
Warranty period |  | 25 years |
Sublease [Member] |  |  |
Schedule Of Commitments And Contingencies [Line Items] |  |  |
Lease square feet |  | 24,732 us-gaap_AreaOfRealEstateProperty / us-gaap_RestructuringCostAndReserveAxis = trex_SubleaseMember |
Contract Termination [Member] |  |  |
Schedule Of Commitments And Contingencies [Line Items] |  |  |
Lease square feet |  | 55,047 us-gaap_AreaOfRealEstateProperty / us-gaap_RestructuringCostAndReserveAxis = us-gaap_ContractTerminationMember |
Charge recorded |  | 1,471,000 us-gaap_RestructuringCharges / us-gaap_RestructuringCostAndReserveAxis = us-gaap_ContractTerminationMember | 1,144,000 us-gaap_RestructuringCharges / us-gaap_RestructuringCostAndReserveAxis = us-gaap_ContractTerminationMember
Minimum payments remaining under the Company's lease relating to its reconsidered corporate relocation for 2015 |  | 1,900,000 us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent / us-gaap_RestructuringCostAndReserveAxis = us-gaap_ContractTerminationMember |
Minimum payments remaining under the Company's lease relating to its reconsidered corporate relocation for 2016 |  | 1,900,000 us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears / us-gaap_RestructuringCostAndReserveAxis = us-gaap_ContractTerminationMember |
Minimum payments remaining under the Company's lease relating to its reconsidered corporate relocation for 2017 |  | 2,000,000 us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears / us-gaap_RestructuringCostAndReserveAxis = us-gaap_ContractTerminationMember |
Minimum payments remaining under the Company's lease relating to its reconsidered corporate relocation for 2018 |  | 2,000,000 us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears / us-gaap_RestructuringCostAndReserveAxis = us-gaap_ContractTerminationMember |
Minimum payments remaining under the Company's lease relating to its reconsidered corporate relocation for 2019 |  | 1,000,000 us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears / us-gaap_RestructuringCostAndReserveAxis = us-gaap_ContractTerminationMember |
Minimum receipts remaining under the Company's existing subleases for 2015 |  | 700,000 us-gaap_OperatingLeasesFutureMinimumPaymentsReceivableCurrent / us-gaap_RestructuringCostAndReserveAxis = us-gaap_ContractTerminationMember |
Minimum receipts remaining under the Company's existing subleases for 2016 |  | 600,000 us-gaap_OperatingLeasesFutureMinimumPaymentsReceivableInTwoYears / us-gaap_RestructuringCostAndReserveAxis = us-gaap_ContractTerminationMember |
Minimum receipts remaining under the Company's existing subleases for 2017 |  | 600,000 us-gaap_OperatingLeasesFutureMinimumPaymentsReceivableInThreeYears / us-gaap_RestructuringCostAndReserveAxis = us-gaap_ContractTerminationMember |
Minimum receipts remaining under the Company's existing subleases for 2018 |  | 600,000 us-gaap_OperatingLeasesFutureMinimumPaymentsReceivableInFourYears / us-gaap_RestructuringCostAndReserveAxis = us-gaap_ContractTerminationMember |
Minimum receipts remaining under the Company's existing subleases for 2019 |  | 400,000 us-gaap_OperatingLeasesFutureMinimumPaymentsReceivableInFiveYears / us-gaap_RestructuringCostAndReserveAxis = us-gaap_ContractTerminationMember |
Raw Material Supply Contracts [Member] |  |  |
Schedule Of Commitments And Contingencies [Line Items] |  |  |
Purchase commitment |  | 23,600,000 us-gaap_PurchaseObligationDueInNextTwelveMonths / us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis = trex_RawMaterialSupplyContractsMember |
Purchase commitment, due in second year |  | 13,300,000 us-gaap_PurchaseObligationDueInSecondYear / us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis = trex_RawMaterialSupplyContractsMember |
Purchase commitment, due in third year |  | 5,700,000 us-gaap_PurchaseObligationDueInThirdYear / us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis = trex_RawMaterialSupplyContractsMember |
Purchase commitment, due in fourth year |  | 48,000 us-gaap_PurchaseObligationDueInFourthYear / us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis = trex_RawMaterialSupplyContractsMember |
Third Party Manufacturing Contracts [Member] |  |  |
Schedule Of Commitments And Contingencies [Line Items] |  |  |
Purchase commitment |  | $ 1,900,000 us-gaap_PurchaseObligationDueInNextTwelveMonths / us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis = trex_ThirdPartyManufacturingContractsMember |

X
- Definition Average period for PE material purchases under short term supply contracts for which pricing is negotiated as needed. + References No definition available. + Details
Name: | trex_AveragePeriodForPeMaterialPurchasesUnderShortTermSupplyContractsForWhichPricingIsNegotiatedAsNeeded
Namespace Prefix: | trex_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Estimated change in the warranty reserve resulting from a 10% change in the expected number of remaining claims to be settled with payment or the expected cost to settle claims for disclosure purposes only. + References No definition available. + Details
Name: | trex_ChangeInWarrantyReserveForDisclosurePurposesOnly
Namespace Prefix: | trex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Number of letters sent to homeowner. + References No definition available. + Details
Name: | trex_NumberOfLettersSentToHomeowner
Namespace Prefix: | trex_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage change in the expected number of remaining claims to be settled with payment or the expected cost to settle claims used as a threshold for disclosure. + References No definition available. + Details
Name: | trex_PercentageChangeInWarrantyClaimsUsedAsThresholdForDisclosure
Namespace Prefix: | trex_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | trex_ScheduleOfCommitmentsAndContingenciesLineItems
Namespace Prefix: | trex_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Warranty period. + References No definition available. + Details
Name: | trex_WarrantyPeriod
Namespace Prefix: | trex_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Area of a real estate property. + References No definition available. + Details
Name: | us-gaap_AreaOfRealEstateProperty
Namespace Prefix: | us-gaap_
Data Type: | num:areaItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of payments made reducing loss contingency liability. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 450 -SubTopic 20 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=25496072&loc=d3e14326-108349 + Details
Name: | us-gaap_LossContingencyAccrualCarryingValuePayments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The estimated maximum amount of possible loss from the contingency. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 450 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=25496072&loc=d3e14435-108349 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 450 -SubTopic 20 -Section 50 -Paragraph 9 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=25496072&loc=d3e14557-108349 + Details
Name: | us-gaap_LossContingencyRangeOfPossibleLossMaximum
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of required minimum rental payments for operating leases having an initial or remaining non-cancelable lease term in excess of one year due in the next fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6453985&loc=d3e41502-112717 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 10 -Section 55 -Paragraph 40 -Subparagraph (Note 3) -URI http://asc.fasb.org/extlink&oid=6584154&loc=d3e38371-112697 + Details
Name: | us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of required minimum rental payments for operating leases having an initial or remaining non-cancelable lease term in excess of one year due in the fifth fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6453985&loc=d3e41502-112717 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 10 -Section 55 -Paragraph 40 -Subparagraph (Note 3) -URI http://asc.fasb.org/extlink&oid=6584154&loc=d3e38371-112697 + Details
Name: | us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of required minimum rental payments for operating leases having an initial or remaining non-cancelable lease term in excess of one year due in the fourth fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6453985&loc=d3e41502-112717 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 10 -Section 55 -Paragraph 40 -Subparagraph (Note 3) -URI http://asc.fasb.org/extlink&oid=6584154&loc=d3e38371-112697 + Details
Name: | us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of required minimum rental payments for operating leases having an initial or remaining non-cancelable lease term in excess of one year due in the third fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6453985&loc=d3e41502-112717 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 10 -Section 55 -Paragraph 40 -Subparagraph (Note 3) -URI http://asc.fasb.org/extlink&oid=6584154&loc=d3e38371-112697 + Details
Name: | us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of required minimum rental payments for operating leases having an initial or remaining non-cancelable lease term in excess of one year due in the second fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6453985&loc=d3e41502-112717 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 10 -Section 55 -Paragraph 40 -Subparagraph (Note 3) -URI http://asc.fasb.org/extlink&oid=6584154&loc=d3e38371-112697 + Details
Name: | us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Future rental payments receivable within one year of the balance sheet date under an operating lease. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=6454179&loc=d3e41551-112718 + Details
Name: | us-gaap_OperatingLeasesFutureMinimumPaymentsReceivableCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Future rental payments receivable within the fifth year from the balance sheet date under an operating lease. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=6454179&loc=d3e41551-112718 + Details
Name: | us-gaap_OperatingLeasesFutureMinimumPaymentsReceivableInFiveYears
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Future rental payments receivable within the fourth year from the balance sheet date under an operating lease. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=6454179&loc=d3e41551-112718 + Details
Name: | us-gaap_OperatingLeasesFutureMinimumPaymentsReceivableInFourYears
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Future rental payments receivable within the third year from the balance sheet date under an operating lease. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=6454179&loc=d3e41551-112718 + Details
Name: | us-gaap_OperatingLeasesFutureMinimumPaymentsReceivableInThreeYears
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Future rental payments receivable within the second year from the balance sheet date under an operating lease. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=6454179&loc=d3e41551-112718 + Details
Name: | us-gaap_OperatingLeasesFutureMinimumPaymentsReceivableInTwoYears
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Minimum amount of purchase arrangement maturing in the fourth fiscal year following the latest fiscal year. Includes, but not limited to, recorded and unrecorded purchase obligations, long-term purchase commitments, and short-term purchase commitments. + References No definition available. + Details
Name: | us-gaap_PurchaseObligationDueInFourthYear
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Minimum amount of purchase arrangement maturing in the next fiscal year following the latest fiscal year. Includes, but not limited to, recorded and unrecorded purchase obligations, long-term purchase commitments, and short-term purchase commitments. + References No definition available. + Details
Name: | us-gaap_PurchaseObligationDueInNextTwelveMonths
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Minimum amount of purchase arrangement maturing in the second fiscal year following the latest fiscal year. Includes, but not limited to, recorded and unrecorded purchase obligations, long-term purchase commitments, and short-term purchase commitments. + References No definition available. + Details
Name: | us-gaap_PurchaseObligationDueInSecondYear
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Minimum amount of purchase arrangement maturing in the third fiscal year following the latest fiscal year. Includes, but not limited to, recorded and unrecorded purchase obligations, long-term purchase commitments, and short-term purchase commitments. + References No definition available. + Details
Name: | us-gaap_PurchaseObligationDueInThirdYear
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of expenses associated with exit or disposal activities pursuant to an authorized plan. Excludes expenses related to a discontinued operation or an asset retirement obligation. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=31042434&loc=d3e3602-108585 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 420 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 420 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SAB TOPIC 5.P.4(b)) -URI http://asc.fasb.org/extlink&oid=27011515&loc=d3e140904-122747 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 420 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB TOPIC 5.P.3) -URI http://asc.fasb.org/extlink&oid=27011515&loc=d3e140864-122747 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Staff Accounting Bulletin (SAB) -Number Topic 5 -Section P -Subsection 3, 4 + Details
Name: | us-gaap_RestructuringCharges
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Represents the aggregate Increase or Decrease in the liability during the reporting period for accruals related to preexisting standard product warranties (including adjustments related to changes in estimates). Does not include any Increase or Decrease in the liability for accruals related to extended product warranties. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 460 -SubTopic 10 -Section 50 -Paragraph 8 -Subparagraph ((c)(4)) -URI http://asc.fasb.org/extlink&oid=6398077&loc=d3e12565-110249 + Details
Name: | us-gaap_StandardProductWarrantyAccrualPreexistingIncreaseDecrease
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_GuaranteeObligationsByNatureAxis=trex_CommercialUseMember
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_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis=trex_RawMaterialSupplyContractsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis=trex_ThirdPartyManufacturingContractsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

X
- Details
Name: | us-gaap_RestructuringCostAndReserveAxis=trex_SubleaseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RestructuringCostAndReserveAxis=us-gaap_ContractTerminationMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ValuationAllowancesAndReservesTypeAxis=trex_SurfaceFlakingWarrantyReserveMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |