XML 22 R33.htm IDEA: XBRL DOCUMENT
v2.4.1.9

Summary of Significant Accounting Policies - Additional Information (Detail) (USD $) | 0 Months Ended | 12 Months Ended |  |  |
--- | --- | --- | --- | --- | ---
May 07, 2014 | Dec. 31, 2014 Supplier Institution Customer | Dec. 31, 2013 Customer | Dec. 31, 2012 Customer | Dec. 31, 2010 | May 07, 2014 | Apr. 30, 2014 | Feb. 28, 2014
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |
Holding company's interest in Denplax |  | 35.00%us-gaap_EquityMethodInvestmentOwnershipPercentage |  |  |  |  |  |
Charge to earning to fully reserve the equity investment and note |  |  |  |  | $ 2,400,000 trex_ChargeToEarningsToFullyReserveEquityInvestmentAndNote |  |  |
Stock split description |  | Each stockholder to receive one additional share of common stock, par value $0.01, for each share they held as of the record date. All common stock share and per share data for all periods presented in the accompanying consolidated financial statements and related notes are presented on a post-split basis. |  |  |  |  |  |
Common stock, par value | $ 0.01 us-gaap_CommonStockParOrStatedValuePerShare | $ 0.01 us-gaap_CommonStockParOrStatedValuePerShare | $ 0.01 us-gaap_CommonStockParOrStatedValuePerShare |  |  | $ 0.01 us-gaap_CommonStockParOrStatedValuePerShare |  | $ 0.01 us-gaap_CommonStockParOrStatedValuePerShare
Stock split conversion ratio | 2 us-gaap_StockholdersEquityNoteStockSplitConversionRatio1 |  |  |  |  |  |  |
Number of authorized shares of common stock |  | 80,000,000 us-gaap_CommonStockSharesAuthorized | 80,000,000 us-gaap_CommonStockSharesAuthorized |  |  |  | 80,000,000 us-gaap_CommonStockSharesAuthorized |
Maximum term of original maturities to classify as cash equivalent |  | 3 months |  |  |  |  |  |
Number of financial institutions where deposits are maintained |  | 1 trex_NumberOfFinancialInstitutionWithDeposit |  |  |  |  |  |
Number of customers that accounted for 10% or more of net sales |  | 1 trex_NumberOfCustomerAccountedForTenPercentOrMoreSalesOfNetSales | 1 trex_NumberOfCustomerAccountedForTenPercentOrMoreSalesOfNetSales | 2 trex_NumberOfCustomerAccountedForTenPercentOrMoreSalesOfNetSales |  |  |  |
Number of customer accounted for 10% or more account receivable |  | 3 trex_NumberOfCustomerAccountedForTenPercentOrMoreAccountReceivable |  |  |  |  |  |
Number of largest raw material suppliers |  | 4 trex_NumberOfLargestRawMaterialSuppliers |  |  |  |  |  |
Excess of the replacement cost of inventory over the LIFO value of inventory |  | 25,299,000 us-gaap_InventoryLIFOReserve | 24,497,000 us-gaap_InventoryLIFOReserve |  |  |  |  |
Charge recorded |  | 1,471,000 us-gaap_RestructuringCharges | 1,144,000 us-gaap_RestructuringCharges |  |  |  |  |
Annual impairment test of goodwill |  | 0 us-gaap_GoodwillImpairmentLoss | 0 us-gaap_GoodwillImpairmentLoss | 0 us-gaap_GoodwillImpairmentLoss |  |  |  |
Goodwill |  | 10,500,000 us-gaap_Goodwill |  |  |  |  |  |
Valuation allowance |  | 4,465,000 us-gaap_DeferredTaxAssetsValuationAllowance | 4,201,000 us-gaap_DeferredTaxAssetsValuationAllowance |  |  |  |  |
Research and Development costs |  | 2,300,000 us-gaap_ResearchAndDevelopmentExpense | 2,900,000 us-gaap_ResearchAndDevelopmentExpense | 2,900,000 us-gaap_ResearchAndDevelopmentExpense |  |  |  |
Prepaid expenses for production costs of advertising |  | 500,000 us-gaap_PrepaidAdvertising | 500,000 us-gaap_PrepaidAdvertising |  |  |  |  |
Branding Expenses |  | 20,800,000 us-gaap_AdvertisingExpense | 20,900,000 us-gaap_AdvertisingExpense | 20,500,000 us-gaap_AdvertisingExpense |  |  |  |
Scenario, Previously Reported [Member] |  |  |  |  |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |
Number of authorized shares of common stock |  |  |  |  |  |  | 40,000,000 us-gaap_CommonStockSharesAuthorized / us-gaap_StatementScenarioAxis = us-gaap_ScenarioPreviouslyReportedMember |
Contract Termination [Member] |  |  |  |  |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |
Expiration date of reconsidered corporate headquarters lease |  | Jun. 30, 2019 |  |  |  |  |  |
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 |  |  |  |  |
Sublease [Member] |  |  |  |  |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |
Lease square feet |  | 24,732 us-gaap_AreaOfRealEstateProperty / us-gaap_RestructuringCostAndReserveAxis = trex_SubleaseMember |  |  |  |  |  |
Residential Use [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 |  |  |  |  |  |
TrexTrim and Trex Reveal Railing [Member] | Residential Use [Member] |  |  |  |  |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |
Warranty period |  | 25 years |  |  |  |  |  |
TrexTrim and Trex Reveal Railing [Member] | Commercial Use [Member] |  |  |  |  |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |
Warranty period |  | 25 years |  |  |  |  |  |
Transcend, Enhance, Select and Universal Fascia Product [Member] | Residential Use [Member] |  |  |  |  |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |
Warranty period |  | 25 years |  |  |  |  |  |
Transcend, Enhance, Select and Universal Fascia Product [Member] | Commercial Use [Member] |  |  |  |  |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |
Warranty period |  | 10 years |  |  |  |  |  |
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%us-gaap_ConcentrationRiskPercentage1 / us-gaap_ConcentrationRiskByBenchmarkAxis = us-gaap_SalesRevenueNetMember / us-gaap_ConcentrationRiskByTypeAxis = us-gaap_CustomerConcentrationRiskMember / us-gaap_RangeAxis = us-gaap_MinimumMember | 10.00%us-gaap_ConcentrationRiskPercentage1 / us-gaap_ConcentrationRiskByBenchmarkAxis = us-gaap_SalesRevenueNetMember / us-gaap_ConcentrationRiskByTypeAxis = us-gaap_CustomerConcentrationRiskMember / us-gaap_RangeAxis = us-gaap_MinimumMember | 10.00%us-gaap_ConcentrationRiskPercentage1 / us-gaap_ConcentrationRiskByBenchmarkAxis = us-gaap_SalesRevenueNetMember / us-gaap_ConcentrationRiskByTypeAxis = us-gaap_CustomerConcentrationRiskMember / us-gaap_RangeAxis = us-gaap_MinimumMember |  |  |  |
Sales Revenue, Net [Member] | Customer Concentration Risk [Member] | Customer One [Member] |  |  |  |  |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |
Concentration risk as percentage of total |  | 24.00%us-gaap_ConcentrationRiskPercentage1 / us-gaap_ConcentrationRiskByBenchmarkAxis = us-gaap_SalesRevenueNetMember / us-gaap_ConcentrationRiskByTypeAxis = us-gaap_CustomerConcentrationRiskMember / us-gaap_MajorCustomersAxis = trex_CustomerOneMember | 28.00%us-gaap_ConcentrationRiskPercentage1 / us-gaap_ConcentrationRiskByBenchmarkAxis = us-gaap_SalesRevenueNetMember / us-gaap_ConcentrationRiskByTypeAxis = us-gaap_CustomerConcentrationRiskMember / us-gaap_MajorCustomersAxis = trex_CustomerOneMember | 26.00%us-gaap_ConcentrationRiskPercentage1 / us-gaap_ConcentrationRiskByBenchmarkAxis = us-gaap_SalesRevenueNetMember / us-gaap_ConcentrationRiskByTypeAxis = us-gaap_CustomerConcentrationRiskMember / us-gaap_MajorCustomersAxis = trex_CustomerOneMember |  |  |  |
Sales Revenue, Net [Member] | Customer Concentration Risk [Member] | Customer Two [Member] |  |  |  |  |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |
Concentration risk as percentage of total |  |  |  | 10.00%us-gaap_ConcentrationRiskPercentage1 / us-gaap_ConcentrationRiskByBenchmarkAxis = us-gaap_SalesRevenueNetMember / us-gaap_ConcentrationRiskByTypeAxis = us-gaap_CustomerConcentrationRiskMember / us-gaap_MajorCustomersAxis = trex_CustomerTwoMember |  |  |  |
Accounts Receivable [Member] | Customer Concentration Risk [Member] | Customer One [Member] |  |  |  |  |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |
Concentration risk as percentage of total |  | 28.00%us-gaap_ConcentrationRiskPercentage1 / us-gaap_ConcentrationRiskByBenchmarkAxis = us-gaap_AccountsReceivableMember / us-gaap_ConcentrationRiskByTypeAxis = us-gaap_CustomerConcentrationRiskMember / us-gaap_MajorCustomersAxis = trex_CustomerOneMember |  |  |  |  |  |
Accounts Receivable [Member] | Customer Concentration Risk [Member] | Customer Two [Member] |  |  |  |  |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |
Concentration risk as percentage of total |  | 13.00%us-gaap_ConcentrationRiskPercentage1 / us-gaap_ConcentrationRiskByBenchmarkAxis = us-gaap_AccountsReceivableMember / us-gaap_ConcentrationRiskByTypeAxis = us-gaap_CustomerConcentrationRiskMember / us-gaap_MajorCustomersAxis = trex_CustomerTwoMember |  |  |  |  |  |
Accounts Receivable [Member] | Customer Concentration Risk [Member] | Customer Three [Member] |  |  |  |  |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |
Concentration risk as percentage of total |  | 11.00%us-gaap_ConcentrationRiskPercentage1 / us-gaap_ConcentrationRiskByBenchmarkAxis = us-gaap_AccountsReceivableMember / us-gaap_ConcentrationRiskByTypeAxis = us-gaap_CustomerConcentrationRiskMember / us-gaap_MajorCustomersAxis = trex_CustomerThreeMember |  |  |  |  |  |
Raw Materials [Member] | Supplier Concentration Risk [Member] |  |  |  |  |  |  |  |
Schedule Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |
Concentration risk as percentage of total |  | 38.00%us-gaap_ConcentrationRiskPercentage1 / us-gaap_ConcentrationRiskByBenchmarkAxis = trex_RawMaterialsMember / us-gaap_ConcentrationRiskByTypeAxis = us-gaap_SupplierConcentrationRiskMember | 44.00%us-gaap_ConcentrationRiskPercentage1 / us-gaap_ConcentrationRiskByBenchmarkAxis = trex_RawMaterialsMember / us-gaap_ConcentrationRiskByTypeAxis = us-gaap_SupplierConcentrationRiskMember | 40.00%us-gaap_ConcentrationRiskPercentage1 / us-gaap_ConcentrationRiskByBenchmarkAxis = trex_RawMaterialsMember / us-gaap_ConcentrationRiskByTypeAxis = us-gaap_SupplierConcentrationRiskMember |  |  |  |

X
- Definition Charge to earnings to fully reserve equity investment and note. + References No definition available. + Details
Name: | trex_ChargeToEarningsToFullyReserveEquityInvestmentAndNote
Namespace Prefix: | trex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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
- Details
Name: | trex_ScheduleOfSignificantAccountingPoliciesLineItems
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 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/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 720 -SubTopic 35 -Section 50 -Paragraph 1 -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 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 Face amount or stated value per share of common stock. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.29) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 30 -Article 5 + Details
Name: | us-gaap_CommonStockParOrStatedValuePerShare
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of common shares permitted to be issued by an entity's charter and bylaws. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.29) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 30 -Article 5 + Details
Name: | us-gaap_CommonStockSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

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/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 21 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=35750535&loc=d3e13537-108611 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 275 -SubTopic 10 -Section 50 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=6927468&loc=d3e6404-108592 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=35750535&loc=d3e13531-108611 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 275 -SubTopic 10 -Section 50 -Paragraph 18 -URI http://asc.fasb.org/extlink&oid=6927468&loc=d3e6351-108592 + Details
Name: | us-gaap_ConcentrationRiskPercentage1
Namespace Prefix: | us-gaap_
Data Type: | num: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/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32537-109319 + Details
Name: | us-gaap_DeferredTaxAssetsValuationAllowance
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The percentage of ownership of common stock or equity participation in the investee accounted for under the equity method of accounting. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=6382943&loc=d3e33918-111571 + Details
Name: | us-gaap_EquityMethodInvestmentOwnershipPercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount after accumulated impairment loss of an asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=35741047&loc=d3e13816-109267 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6388280&loc=d3e13770-109266 + Details
Name: | us-gaap_Goodwill
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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://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 350 -SubTopic 20 -Section 50 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=35741047&loc=d3e13854-109267 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6388280&loc=d3e13777-109266 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=35741047&loc=d3e13816-109267 + Details
Name: | us-gaap_GoodwillImpairmentLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of difference between inventory at lower of LIFO cost or market and inventory at lower of other inventory accounting method cost or market, for example, but not limited to, FIFO or average cost. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -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=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 6 -Subparagraph c -Article 5 + Details
Name: | us-gaap_InventoryLIFOReserve
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Date which lease or group of leases is set to expire, in CCYY-MM-DD format. + References No definition available. + Details
Name: | us-gaap_LeaseExpirationDate1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

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/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 340 -SubTopic 20 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=32704220&loc=d3e8275-108329 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 720 -SubTopic 35 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6420018&loc=d3e36677-107848 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Current Assets -URI http://asc.fasb.org/extlink&oid=6509628 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=28358313&loc=d3e6787-107765 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 340 -SubTopic 10 -Section 05 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=47804770&loc=d3e5865-108316 Reference 6: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 340 -SubTopic 10 -Section 05 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=47804770&loc=d3e5879-108316 Reference 7: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section 45 -Paragraph 1 -Subparagraph (g)(6) -URI http://asc.fasb.org/extlink&oid=28358313&loc=d3e6676-107765 + 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/2003/role/presentationRef -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 2: http://www.xbrl.org/2003/role/presentationRef -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
- 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 Description of the stock split arrangement. Also provide the retroactive effect given by a stock split that occurs after the balance date but before the release of financial statements. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Stock Split -URI http://asc.fasb.org/extlink&oid=6525746 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 4 -Subparagraph (SAB TOPIC 4.C) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187143-122770 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Staff Accounting Bulletin (SAB) -Number Topic 4 -Section C + Details
Name: | us-gaap_StockholdersEquityNoteStockSplit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Ratio applied to the conversion of stock split, for example but not limited to, one share converted to two or two shares converted to one. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Stock Split -URI http://asc.fasb.org/extlink&oid=6525746 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 4 -Subparagraph (SAB TOPIC 4.C) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187143-122770 + Details
Name: | us-gaap_StockholdersEquityNoteStockSplitConversionRatio1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_ConcentrationRiskByBenchmarkAxis=trex_RawMaterialsMember
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: | us-gaap_ConcentrationRiskByBenchmarkAxis=us-gaap_SalesRevenueNetMember
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: | us-gaap_GuaranteeObligationsByNatureAxis=trex_ResidentialUseMember
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_StatementScenarioAxis=us-gaap_ScenarioPreviouslyReportedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |