XML 35 R43.htm IDEA: XBRL DOCUMENT v2.4.1.9
Stockholders' Equity - Additional Information (Detail) (USD $)
0 Months Ended 12 Months Ended 3 Months Ended 2 Months Ended
May 07, 2014
Dec. 31, 2014
Dec. 31, 2013
Feb. 10, 2014
Jun. 30, 2014
Dec. 31, 2014
Apr. 30, 2014
Feb. 28, 2014
Oct. 24, 2013
Feb. 19, 2014
Oct. 23, 2014
Equity, Class of Treasury Stock [Line Items]                      
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.01us-gaap_CommonStockParOrStatedValuePerShare $ 0.01us-gaap_CommonStockParOrStatedValuePerShare $ 0.01us-gaap_CommonStockParOrStatedValuePerShare     0.01us-gaap_CommonStockParOrStatedValuePerShare   $ 0.01us-gaap_CommonStockParOrStatedValuePerShare      
Stock split conversion ratio 2us-gaap_StockholdersEquityNoteStockSplitConversionRatio1                    
Number of authorized shares of common stock   80,000,000us-gaap_CommonStockSharesAuthorized 80,000,000us-gaap_CommonStockSharesAuthorized     80,000,000us-gaap_CommonStockSharesAuthorized 80,000,000us-gaap_CommonStockSharesAuthorized        
Value of shares repurchased by the Company   $ 50,000,000us-gaap_TreasuryStockValueAcquiredCostMethod $ 25,000,000us-gaap_TreasuryStockValueAcquiredCostMethod                
October 2013 Stock Repurchase Program [Member]                      
Equity, Class of Treasury Stock [Line Items]                      
Common stock repurchase program, authorized amount                 30,000,000us-gaap_StockRepurchaseProgramAuthorizedAmount1
/ us-gaap_ShareRepurchaseProgramAxis
= trex_OctoberTwoThousandThirteenStockRepurchaseProgramMember
   
Number of shares repurchased by the Company       0us-gaap_TreasuryStockSharesAcquired
/ us-gaap_ShareRepurchaseProgramAxis
= trex_OctoberTwoThousandThirteenStockRepurchaseProgramMember
             
Common stock repurchase program, expiration date   Feb. 10, 2014                  
February 2014 Stock Repurchase Program [Member]                      
Equity, Class of Treasury Stock [Line Items]                      
Common stock repurchase program, authorized amount                   50,000,000us-gaap_StockRepurchaseProgramAuthorizedAmount1
/ us-gaap_ShareRepurchaseProgramAxis
= trex_FebruaryTwoThousandFourteenStockRepurchaseProgramMember
 
Number of shares repurchased by the Company         1,657,919us-gaap_TreasuryStockSharesAcquired
/ us-gaap_ShareRepurchaseProgramAxis
= trex_FebruaryTwoThousandFourteenStockRepurchaseProgramMember
           
Value of shares repurchased by the Company         $ 50,000,000us-gaap_TreasuryStockValueAcquiredCostMethod
/ us-gaap_ShareRepurchaseProgramAxis
= trex_FebruaryTwoThousandFourteenStockRepurchaseProgramMember
           
Shares repurchased by the Company, Average price per share         $ 30.16us-gaap_TreasuryStockAcquiredAverageCostPerShare
/ us-gaap_ShareRepurchaseProgramAxis
= trex_FebruaryTwoThousandFourteenStockRepurchaseProgramMember
           
October 2014 Stock Repurchase Program [Member]                      
Equity, Class of Treasury Stock [Line Items]                      
Number of shares repurchased by the Company           0us-gaap_TreasuryStockSharesAcquired
/ us-gaap_ShareRepurchaseProgramAxis
= trex_OctoberTwoThousandFourteenStockRepurchaseProgramMember
         
Common stock repurchase program, authorized shares                     2,000,000us-gaap_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased
/ us-gaap_ShareRepurchaseProgramAxis
= trex_OctoberTwoThousandFourteenStockRepurchaseProgramMember
Scenario, Previously Reported [Member]                      
Equity, Class of Treasury Stock [Line Items]                      
Number of authorized shares of common stock             40,000,000us-gaap_CommonStockSharesAuthorized
/ us-gaap_StatementScenarioAxis
= us-gaap_ScenarioPreviouslyReportedMember