SEC Info  
    Home      Search      My Interests      Help      Sign In      Please Sign In

Trex Co. Inc. – ‘10-Q’ for 3/31/22 – ‘EX-101.PRE’

On:  Monday, 5/9/22, at 5:11pm ET   ·   For:  3/31/22   ·   Accession #:  1193125-22-145117   ·   File #:  1-14649

Previous ‘10-Q’:  ‘10-Q’ on 11/8/21 for 9/30/21   ·   Next:  ‘10-Q’ on 8/8/22 for 6/30/22   ·   Latest:  ‘10-Q’ on 5/9/24 for 3/31/24   ·   10 References:   

Find Words in Filings emoji
 
  in    Show  and   Hints

  As Of               Filer                 Filing    For·On·As Docs:Size             Issuer                      Filing Agent

 5/09/22  Trex Co. Inc.                     10-Q        3/31/22   75:4.4M                                   Donnelley … Solutions/FA

Quarterly Report   —   Form 10-Q

Filing Table of Contents

Document/Exhibit                   Description                      Pages   Size 

 1: 10-Q        Quarterly Report                                    HTML    543K 
 2: EX-3.2      Articles of Incorporation/Organization or Bylaws    HTML     21K 
 3: EX-31.1     Certification -- §302 - SOA'02                      HTML     25K 
 4: EX-31.2     Certification -- §302 - SOA'02                      HTML     25K 
 5: EX-32       Certification -- §906 - SOA'02                      HTML     22K 
11: R1          Cover Page                                          HTML     74K 
12: R2          Condensed Consolidated Statements of Comprehensive  HTML     89K 
                Income                                                           
13: R3          Condensed Consolidated Balance Sheets               HTML    119K 
14: R4          Condensed Consolidated Balance Sheets               HTML     41K 
                (Parenthetical)                                                  
15: R5          Condensed Consolidated Statements of Changes in     HTML     66K 
                Stockholders' Equity                                             
16: R6          Condensed Consolidated Statements of Cash Flows     HTML     98K 
17: R7          Business and Organization                           HTML     26K 
18: R8          Basis of Presentation                               HTML     26K 
19: R9          Recently Adopted Accounting Standards               HTML     35K 
20: R10         New Accounting Standards Not Yet Adopted            HTML     25K 
21: R11         Inventories                                         HTML     34K 
22: R12         Prepaid Expenses and Other Assets                   HTML     31K 
23: R13         Goodwill and Other Intangible Assets, Net           HTML     25K 
24: R14         Accrued Expenses and Other Liabilities              HTML     33K 
25: R15         Debt                                                HTML     30K 
26: R16         Leases                                              HTML     44K 
27: R17         Financial Instruments                               HTML     24K 
28: R18         Stockholders' Equity                                HTML     48K 
29: R19         Revenue From Contracts With Customers               HTML     50K 
30: R20         Stock-Based Compensation                            HTML     46K 
31: R21         Income Taxes                                        HTML     28K 
32: R22         Segment Information                                 HTML     69K 
33: R23         Seasonality                                         HTML     24K 
34: R24         Commitments and Contingencies                       HTML     50K 
35: R25         Summary of Significant Accounting Policies          HTML     24K 
                (Policies)                                                       
36: R26         Inventories (Tables)                                HTML     32K 
37: R27         Prepaid Expenses and Other Assets (Tables)          HTML     30K 
38: R28         Accrued Expenses and Other Liabilities (Tables)     HTML     33K 
39: R29         Leases (Tables)                                     HTML     44K 
40: R30         Stockholders' Equity (Tables)                       HTML     43K 
41: R31         Revenue From Contracts With Customers (Tables)      HTML     44K 
42: R32         Stock-Based Compensation (Tables)                   HTML     46K 
43: R33         Segment Information (Tables)                        HTML     64K 
44: R34         Commitments and Contingencies (Tables)              HTML     43K 
45: R35         Business and Organization - Additional Information  HTML     23K 
                (Detail)                                                         
46: R36         Inventories - Summary of Inventories (Detail)       HTML     31K 
47: R37         Inventories - Additional Information (Detail)       HTML     25K 
48: R38         Prepaid Expenses and Other Assets - Summary of      HTML     34K 
                Prepaid Expenses and Other Assets (Detail)                       
49: R39         Goodwill and Other Intangible Assets, Net -         HTML     37K 
                Additional Information (Detail)                                  
50: R40         Accrued Expenses and Other Liabilities - Summary    HTML     41K 
                of Accrued Expenses and Other Liabilities (Detail)               
51: R41         Debt - Additional Information (Detail)              HTML     40K 
52: R42         Leases - Additional Information (Detail)            HTML     32K 
53: R43         Leases - Supplemental Cash flow Information to      HTML     38K 
                operating leases (Details)                                       
54: R44         Leases - Maturities of Operating Lease Liabilities  HTML     41K 
                (Details)                                                        
55: R45         Stockholders' Equity - Additional Information       HTML     35K 
                (Detail)                                                         
56: R46         Stockholders' Equity - Computation of Basic and     HTML     61K 
                Diluted Earnings Per Share (Detail)                              
57: R47         Stockholders' Equity - Antidilutive Securities      HTML     28K 
                Excluded from Computation of Earnings Per Share                  
                (Detail)                                                         
58: R48         Revenue From Contracts With Customers - Additional  HTML     25K 
                Information (Detail)                                             
59: R49         Revenue From Contracts With Customers - Summary of  HTML     38K 
                Disaggregated Net Sales (Detail)                                 
60: R50         Stock-Based Compensation - Additional Information   HTML     34K 
                (Detail)                                                         
61: R51         Stock-Based Compensation - Summary of Stock-Based   HTML     31K 
                Compensation Grants (Detail)                                     
62: R52         Stock-Based Compensation - Summary of Stock-Based   HTML     26K 
                Compensation Grants (Parenthetical) (Detail)                     
63: R53         Stock-Based Compensation - Summary of Assumptions   HTML     35K 
                Used to Estimate Fair Value of Each SAR (Detail)                 
64: R54         Stock-Based Compensation - Summary of Stock-Based   HTML     33K 
                Compensation Expenses (Detail)                                   
65: R55         Income Taxes - Additional Information (Detail)      HTML     41K 
66: R56         Segment Information - Additional Information        HTML     23K 
                (Detail)                                                         
67: R57         Segment Information - Details of Segment            HTML     75K 
                Information (Detail)                                             
68: R58         Segment Information - Schedule of Reconciliation    HTML     58K 
                of Net Income to EBITDA (Detail)                                 
69: R59         Commitments and Contingencies - Additional          HTML     36K 
                Information (Detail)                                             
70: R60         Commitments and Contingencies - Summary of          HTML     36K 
                Reconciliation of Company's Residential Product                  
                Warranty Reserve (Detail)                                        
73: XML         IDEA XML File -- Filing Summary                      XML    132K 
71: XML         XBRL Instance -- d336988d10q_htm                     XML    879K 
72: EXCEL       IDEA Workbook of Financial Reports                  XLSX     70K 
 7: EX-101.CAL  XBRL Calculations -- trex-20220331_cal               XML    118K 
 8: EX-101.DEF  XBRL Definitions -- trex-20220331_def                XML    413K 
 9: EX-101.LAB  XBRL Labels -- trex-20220331_lab                     XML    813K 
10: EX-101.PRE  XBRL Presentations -- trex-20220331_pre              XML    642K 
 6: EX-101.SCH  XBRL Schema -- trex-20220331                         XSD    127K 
74: JSON        XBRL Instance as JSON Data -- MetaLinks              322±   440K 
75: ZIP         XBRL Zipped Folder -- 0001193125-22-145117-xbrl      Zip    126K 


‘EX-101.PRE’   —   XBRL Presentations — trex-20220331_pre


This Exhibit is an XBRL XML File.


                                                                                                                                                                                
<?xml version="1.0" encoding="windows-1252"?>
<!-- Generated by DFIN XBRL Instance Document - http://www.dfinsolutions.com/ - Version R3.0 - on 06-May-2022 [10:37:16] {AM} -->
<linkbase xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#CoverPage" roleURI="http://www.trex.com/role/CoverPage"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#CondensedConsolidatedStatementsOfComprehensiveIncome" roleURI="http://www.trex.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#CondensedConsolidatedBalanceSheets" roleURI="http://www.trex.com/role/CondensedConsolidatedBalanceSheets"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#CondensedConsolidatedBalanceSheetsParenthetical" roleURI="http://www.trex.com/role/CondensedConsolidatedBalanceSheetsParenthetical"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#CondensedConsolidatedStatementsOfChangesInStockholdersEquity" roleURI="http://www.trex.com/role/CondensedConsolidatedStatementsOfChangesInStockholdersEquity"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#CondensedConsolidatedStatementsOfCashFlows" roleURI="http://www.trex.com/role/CondensedConsolidatedStatementsOfCashFlows"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#BusinessAndOrganization" roleURI="http://www.trex.com/role/BusinessAndOrganization"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#BasisOfPresentation" roleURI="http://www.trex.com/role/BasisOfPresentation"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#RecentlyAdoptedAccountingStandards" roleURI="http://www.trex.com/role/RecentlyAdoptedAccountingStandards"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#NewAccountingStandardsNotYetAdopted" roleURI="http://www.trex.com/role/NewAccountingStandardsNotYetAdopted"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#Inventories" roleURI="http://www.trex.com/role/Inventories"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#PrepaidExpensesAndOtherAssets" roleURI="http://www.trex.com/role/PrepaidExpensesAndOtherAssets"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#GoodwillAndOtherIntangibleAssetsNet" roleURI="http://www.trex.com/role/GoodwillAndOtherIntangibleAssetsNet"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#AccruedExpensesAndOtherLiabilities" roleURI="http://www.trex.com/role/AccruedExpensesAndOtherLiabilities"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#Debt" roleURI="http://www.trex.com/role/Debt"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#Leases" roleURI="http://www.trex.com/role/Leases"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#FinancialInstruments" roleURI="http://www.trex.com/role/FinancialInstruments"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#StockholdersEquity" roleURI="http://www.trex.com/role/StockholdersEquity"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#RevenueFromContractsWithCustomers" roleURI="http://www.trex.com/role/RevenueFromContractsWithCustomers"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#StockBasedCompensation" roleURI="http://www.trex.com/role/StockBasedCompensation"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#IncomeTaxes" roleURI="http://www.trex.com/role/IncomeTaxes"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#SegmentInformation" roleURI="http://www.trex.com/role/SegmentInformation"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#Seasonality" roleURI="http://www.trex.com/role/Seasonality"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#CommitmentsAndContingencies" roleURI="http://www.trex.com/role/CommitmentsAndContingencies"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#SummaryOfSignificantAccountingPoliciesPolicies" roleURI="http://www.trex.com/role/SummaryOfSignificantAccountingPoliciesPolicies"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#InventoriesTables" roleURI="http://www.trex.com/role/InventoriesTables"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#PrepaidExpensesAndOtherAssetsTables" roleURI="http://www.trex.com/role/PrepaidExpensesAndOtherAssetsTables"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#AccruedExpensesAndOtherLiabilitiesTables" roleURI="http://www.trex.com/role/AccruedExpensesAndOtherLiabilitiesTables"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#LeasesTables" roleURI="http://www.trex.com/role/LeasesTables"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#StockholdersEquityTables" roleURI="http://www.trex.com/role/StockholdersEquityTables"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#RevenueFromContractsWithCustomersTables" roleURI="http://www.trex.com/role/RevenueFromContractsWithCustomersTables"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#StockBasedCompensationTables" roleURI="http://www.trex.com/role/StockBasedCompensationTables"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#SegmentInformationTables" roleURI="http://www.trex.com/role/SegmentInformationTables"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#CommitmentsAndContingenciesTables" roleURI="http://www.trex.com/role/CommitmentsAndContingenciesTables"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#BusinessAndOrganizationAdditionalInformationDetail" roleURI="http://www.trex.com/role/BusinessAndOrganizationAdditionalInformationDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#InventoriesSummaryOfInventoriesDetail" roleURI="http://www.trex.com/role/InventoriesSummaryOfInventoriesDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#InventoriesAdditionalInformationDetail" roleURI="http://www.trex.com/role/InventoriesAdditionalInformationDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#PrepaidExpensesAndOtherAssetsSummaryOfPrepaidExpensesAndOtherAssetsDetail" roleURI="http://www.trex.com/role/PrepaidExpensesAndOtherAssetsSummaryOfPrepaidExpensesAndOtherAssetsDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#GoodwillAndOtherIntangibleAssetsNetAdditionalInformationDetail" roleURI="http://www.trex.com/role/GoodwillAndOtherIntangibleAssetsNetAdditionalInformationDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#AccruedExpensesAndOtherLiabilitiesSummaryOfAccruedExpensesAndOtherLiabilitiesDetail" roleURI="http://www.trex.com/role/AccruedExpensesAndOtherLiabilitiesSummaryOfAccruedExpensesAndOtherLiabilitiesDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#DebtAdditionalInformationDetail" roleURI="http://www.trex.com/role/DebtAdditionalInformationDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#LeasesAdditionalInformationDetail" roleURI="http://www.trex.com/role/LeasesAdditionalInformationDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#LeasesSupplementalCashFlowInformationToOperatingLeasesDetails" roleURI="http://www.trex.com/role/LeasesSupplementalCashFlowInformationToOperatingLeasesDetails"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#LeasesMaturitiesOfOperatingLeaseLiabilitiesDetails" roleURI="http://www.trex.com/role/LeasesMaturitiesOfOperatingLeaseLiabilitiesDetails"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#StockholdersEquityAdditionalInformationDetail" roleURI="http://www.trex.com/role/StockholdersEquityAdditionalInformationDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#StockholdersEquityComputationOfBasicAndDilutedEarningsPerShareDetail" roleURI="http://www.trex.com/role/StockholdersEquityComputationOfBasicAndDilutedEarningsPerShareDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#StockholdersEquityAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetail" roleURI="http://www.trex.com/role/StockholdersEquityAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#RevenueFromContractsWithCustomersAdditionalInformationDetail" roleURI="http://www.trex.com/role/RevenueFromContractsWithCustomersAdditionalInformationDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#RevenueFromContractsWithCustomersSummaryOfDisaggregatedNetSalesDetail" roleURI="http://www.trex.com/role/RevenueFromContractsWithCustomersSummaryOfDisaggregatedNetSalesDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#StockBasedCompensationAdditionalInformationDetail" roleURI="http://www.trex.com/role/StockBasedCompensationAdditionalInformationDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#StockBasedCompensationSummaryOfStockBasedCompensationGrantsDetail" roleURI="http://www.trex.com/role/StockBasedCompensationSummaryOfStockBasedCompensationGrantsDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#StockBasedCompensationSummaryOfStockBasedCompensationGrantsParentheticalDetail" roleURI="http://www.trex.com/role/StockBasedCompensationSummaryOfStockBasedCompensationGrantsParentheticalDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#StockBasedCompensationSummaryOfAssumptionsUsedToEstimateFairValueOfEachSarDetail" roleURI="http://www.trex.com/role/StockBasedCompensationSummaryOfAssumptionsUsedToEstimateFairValueOfEachSarDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#StockBasedCompensationSummaryOfStockBasedCompensationExpensesDetail" roleURI="http://www.trex.com/role/StockBasedCompensationSummaryOfStockBasedCompensationExpensesDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#IncomeTaxesAdditionalInformationDetail" roleURI="http://www.trex.com/role/IncomeTaxesAdditionalInformationDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#SegmentInformationAdditionalInformationDetail" roleURI="http://www.trex.com/role/SegmentInformationAdditionalInformationDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#SegmentInformationDetailsOfSegmentInformationDetail" roleURI="http://www.trex.com/role/SegmentInformationDetailsOfSegmentInformationDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#SegmentInformationScheduleOfReconciliationOfNetIncomeToEbitdaDetail" roleURI="http://www.trex.com/role/SegmentInformationScheduleOfReconciliationOfNetIncomeToEbitdaDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#CommitmentsAndContingenciesAdditionalInformationDetail" roleURI="http://www.trex.com/role/CommitmentsAndContingenciesAdditionalInformationDetail"/>
<roleRef xlink:type="simple" xlink:href="trex-20220331.xsd#CommitmentsAndContingenciesSummaryOfReconciliationOfCompanysResidentialProductWarrantyReserveDetail" roleURI="http://www.trex.com/role/CommitmentsAndContingenciesSummaryOfReconciliationOfCompanysResidentialProductWarrantyReserveDetail"/>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/CoverPage">
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_CoverAbstract" xlink:label="loc_dei_CoverAbstract_187796"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_AmendmentFlag" xlink:label="loc_dei_AmendmentFlag_501004"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_AmendmentFlag_501004" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentFiscalYearFocus" xlink:label="loc_dei_DocumentFiscalYearFocus_501005"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_DocumentFiscalYearFocus_501005" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentType" xlink:label="loc_dei_DocumentType_488686"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_DocumentType_488686" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentFiscalPeriodFocus" xlink:label="loc_dei_DocumentFiscalPeriodFocus_501008"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_DocumentFiscalPeriodFocus_501008" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityCentralIndexKey" xlink:label="loc_dei_EntityCentralIndexKey_501007"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_EntityCentralIndexKey_501007" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_CurrentFiscalYearEndDate" xlink:label="loc_dei_CurrentFiscalYearEndDate_501006"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_CurrentFiscalYearEndDate_501006" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentTransitionReport" xlink:label="loc_dei_DocumentTransitionReport_488713"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_DocumentTransitionReport_488713" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityRegistrantName" xlink:label="loc_dei_EntityRegistrantName_488688"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_EntityRegistrantName_488688" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_488687"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_DocumentPeriodEndDate_488687" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityCurrentReportingStatus" xlink:label="loc_dei_EntityCurrentReportingStatus_488692"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_EntityCurrentReportingStatus_488692" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityInteractiveDataCurrent" xlink:label="loc_dei_EntityInteractiveDataCurrent_488710"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_EntityInteractiveDataCurrent_488710" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_TradingSymbol" xlink:label="loc_dei_TradingSymbol_488704"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_TradingSymbol_488704" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityShellCompany" xlink:label="loc_dei_EntityShellCompany_488693"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_EntityShellCompany_488693" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityFilerCategory" xlink:label="loc_dei_EntityFilerCategory_488694"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_EntityFilerCategory_488694" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntitySmallBusiness" xlink:label="loc_dei_EntitySmallBusiness_488695"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_EntitySmallBusiness_488695" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityEmergingGrowthCompany" xlink:label="loc_dei_EntityEmergingGrowthCompany_488696"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_EntityEmergingGrowthCompany_488696" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityCommonStockSharesOutstanding" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_488707"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_488707" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityFileNumber" xlink:label="loc_dei_EntityFileNumber_488689"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_EntityFileNumber_488689" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityIncorporationStateCountryCode" xlink:label="loc_dei_EntityIncorporationStateCountryCode_488690"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_EntityIncorporationStateCountryCode_488690" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityTaxIdentificationNumber" xlink:label="loc_dei_EntityTaxIdentificationNumber_488708"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_EntityTaxIdentificationNumber_488708" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityAddressAddressLine1" xlink:label="loc_dei_EntityAddressAddressLine1_488700"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_EntityAddressAddressLine1_488700" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityAddressCityOrTown" xlink:label="loc_dei_EntityAddressCityOrTown_1135460"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_EntityAddressCityOrTown_1135460" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityAddressPostalZipCode" xlink:label="loc_dei_EntityAddressPostalZipCode_488703"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_EntityAddressPostalZipCode_488703" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityAddressStateOrProvince" xlink:label="loc_dei_EntityAddressStateOrProvince_488701"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_EntityAddressStateOrProvince_488701" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_CityAreaCode" xlink:label="loc_dei_CityAreaCode_488697"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_CityAreaCode_488697" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_LocalPhoneNumber" xlink:label="loc_dei_LocalPhoneNumber_488698"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_LocalPhoneNumber_488698" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_Security12bTitle" xlink:label="loc_dei_Security12bTitle_488705"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_Security12bTitle_488705" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_SecurityExchangeName" xlink:label="loc_dei_SecurityExchangeName_488706"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_SecurityExchangeName_488706" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentQuarterlyReport" xlink:label="loc_dei_DocumentQuarterlyReport_899578"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_187796" xlink:to="loc_dei_DocumentQuarterlyReport_899578" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/label"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeStatementAbstract" xlink:label="loc_us-gaap_IncomeStatementAbstract_22"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_23"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeStatementAbstract_22" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_23" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_24"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeStatementAbstract_22" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_24" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaap_GrossProfit_25"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeStatementAbstract_22" xlink:to="loc_us-gaap_GrossProfit_25" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_26"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeStatementAbstract_22" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_26" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GainOnBusinessInterruptionInsuranceRecovery" xlink:label="loc_us-gaap_GainOnBusinessInterruptionInsuranceRecovery_1409239"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeStatementAbstract_22" xlink:to="loc_us-gaap_GainOnBusinessInterruptionInsuranceRecovery_1409239" use="optional" order="5" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_27"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeStatementAbstract_22" xlink:to="loc_us-gaap_OperatingIncomeLoss_27" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_28"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeStatementAbstract_22" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_28" use="optional" order="7" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_29"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeStatementAbstract_22" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_29" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_30"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeStatementAbstract_22" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_30" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_31"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeStatementAbstract_22" xlink:to="loc_us-gaap_NetIncomeLoss_31" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EarningsPerShareBasic" xlink:label="loc_us-gaap_EarningsPerShareBasic_32"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeStatementAbstract_22" xlink:to="loc_us-gaap_EarningsPerShareBasic_32" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_33"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeStatementAbstract_22" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_33" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EarningsPerShareDiluted" xlink:label="loc_us-gaap_EarningsPerShareDiluted_34"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeStatementAbstract_22" xlink:to="loc_us-gaap_EarningsPerShareDiluted_34" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_35"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeStatementAbstract_22" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_35" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_36"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeStatementAbstract_22" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_36" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/CondensedConsolidatedBalanceSheets">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementOfFinancialPositionAbstract" xlink:label="loc_us-gaap_StatementOfFinancialPositionAbstract_38"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_39"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_38" xlink:to="loc_us-gaap_AssetsAbstract_39" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsCurrentAbstract" xlink:label="loc_us-gaap_AssetsCurrentAbstract_40"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AssetsAbstract_39" xlink:to="loc_us-gaap_AssetsCurrentAbstract_40" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_48"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AssetsCurrentAbstract_40" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_48" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_49"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AssetsCurrentAbstract_40" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_49" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_50"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AssetsCurrentAbstract_40" xlink:to="loc_us-gaap_InventoryNet_50" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_51"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AssetsCurrentAbstract_40" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_51" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_52"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AssetsCurrentAbstract_40" xlink:to="loc_us-gaap_AssetsCurrent_52" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_44"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AssetsAbstract_39" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_44" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_377939"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AssetsAbstract_39" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_377939" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IntangibleAssetsNetIncludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetIncludingGoodwill_45"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AssetsAbstract_39" xlink:to="loc_us-gaap_IntangibleAssetsNetIncludingGoodwill_45" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_46"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AssetsAbstract_39" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_46" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_47"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AssetsAbstract_39" xlink:to="loc_us-gaap_Assets_47" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_41"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_38" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_41" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_42"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_41" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_42" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="loc_us-gaap_AccountsPayableCurrent_59"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_42" xlink:to="loc_us-gaap_AccountsPayableCurrent_59" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_AccruedLiabilitiesAndOtherLiabilitiesCurrentExcludingWarranty" xlink:label="loc_trex_AccruedLiabilitiesAndOtherLiabilitiesCurrentExcludingWarranty_60"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_42" xlink:to="loc_trex_AccruedLiabilitiesAndOtherLiabilitiesCurrentExcludingWarranty_60" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StandardProductWarrantyAccrualCurrent" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualCurrent_61"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_42" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualCurrent_61" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_62"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_42" xlink:to="loc_us-gaap_LiabilitiesCurrent_62" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_53"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_41" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_53" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_377941"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_41" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_377941" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StandardProductWarrantyAccrualNoncurrent" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_54"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_41" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualNoncurrent_54" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_55"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_41" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_55" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_56"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_41" xlink:to="loc_us-gaap_Liabilities_56" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_57"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_41" xlink:to="loc_us-gaap_CommitmentsAndContingencies_57" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquityAbstract" xlink:label="loc_us-gaap_StockholdersEquityAbstract_43"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_41" xlink:to="loc_us-gaap_StockholdersEquityAbstract_43" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaap_PreferredStockValue_63"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StockholdersEquityAbstract_43" xlink:to="loc_us-gaap_PreferredStockValue_63" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_64"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StockholdersEquityAbstract_43" xlink:to="loc_us-gaap_CommonStockValue_64" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/presentationGuidance"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdditionalPaidInCapitalCommonStock" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_65"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StockholdersEquityAbstract_43" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_65" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_66"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StockholdersEquityAbstract_43" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_66" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TreasuryStockValue" xlink:label="loc_us-gaap_TreasuryStockValue_67"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StockholdersEquityAbstract_43" xlink:to="loc_us-gaap_TreasuryStockValue_67" use="optional" order="30" preferredLabel="http://www.xbrl.org/2009/role/negatedTerseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_68"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StockholdersEquityAbstract_43" xlink:to="loc_us-gaap_StockholdersEquity_68" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_58"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_41" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_58" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/CondensedConsolidatedBalanceSheetsParenthetical">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementOfFinancialPositionAbstract" xlink:label="loc_us-gaap_StatementOfFinancialPositionAbstract_70"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PreferredStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_71"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_70" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_71" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PreferredStockSharesAuthorized" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_72"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_70" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_72" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PreferredStockSharesIssued" xlink:label="loc_us-gaap_PreferredStockSharesIssued_73"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_70" xlink:to="loc_us-gaap_PreferredStockSharesIssued_73" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PreferredStockSharesOutstanding" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_74"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_70" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_74" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_75"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_70" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_75" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_76"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_70" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_76" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_77"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_70" xlink:to="loc_us-gaap_CommonStockSharesIssued_77" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_78"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_70" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_78" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TreasuryStockShares" xlink:label="loc_us-gaap_TreasuryStockShares_79"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_70" xlink:to="loc_us-gaap_TreasuryStockShares_79" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/CondensedConsolidatedStatementsOfChangesInStockholdersEquity">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementOfStockholdersEquityAbstract" xlink:label="loc_us-gaap_StatementOfStockholdersEquityAbstract_81"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_85"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfStockholdersEquityAbstract_81" xlink:to="loc_us-gaap_StatementTable_85" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_83"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementTable_85" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_83" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_82"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_83" xlink:to="loc_us-gaap_EquityComponentDomain_82" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_86"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_EquityComponentDomain_82" xlink:to="loc_us-gaap_CommonStockMember_86" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_87"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_EquityComponentDomain_82" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_87" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_88"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_EquityComponentDomain_82" xlink:to="loc_us-gaap_RetainedEarningsMember_88" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_89"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_EquityComponentDomain_82" xlink:to="loc_us-gaap_TreasuryStockMember_89" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_84"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementTable_85" xlink:to="loc_us-gaap_StatementLineItems_84" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_90"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_84" xlink:to="loc_us-gaap_StockholdersEquity_90" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharesIssued" xlink:label="loc_us-gaap_SharesIssued_91"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_84" xlink:to="loc_us-gaap_SharesIssued_91" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_92"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_84" xlink:to="loc_us-gaap_NetIncomeLoss_92" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_93"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_84" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_93" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_94"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_84" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_94" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation" xlink:label="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_95"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_84" xlink:to="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_95" use="optional" order="14" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation" xlink:label="loc_us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation_96"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_84" xlink:to="loc_us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation_96" use="optional" order="15" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueShareBasedCompensationGross" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensationGross_97"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_84" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensationGross_97" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_98"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_84" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_98" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_99"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_84" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_99" use="optional" order="18" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_100"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_84" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_100" use="optional" order="19" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_101"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_84" xlink:to="loc_us-gaap_StockholdersEquity_101" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharesIssued" xlink:label="loc_us-gaap_SharesIssued_102"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_84" xlink:to="loc_us-gaap_SharesIssued_102" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/CondensedConsolidatedStatementsOfCashFlows">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementOfCashFlowsAbstract" xlink:label="loc_us-gaap_StatementOfCashFlowsAbstract_104"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_109"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfCashFlowsAbstract_104" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_109" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_132"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_109" xlink:to="loc_us-gaap_ProfitLoss_132" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:label="loc_us-gaap_AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_105"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_109" xlink:to="loc_us-gaap_AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_105" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_111"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_105" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_111" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_113"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_105" xlink:to="loc_us-gaap_ShareBasedCompensation_113" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_114"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_105" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_114" use="optional" order="6" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherNoncashIncomeExpense" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_115"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_105" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_115" use="optional" order="7" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOperatingAssetsAbstract" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingAssetsAbstract_106"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_109" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingAssetsAbstract_106" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_116"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingAssetsAbstract_106" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_116" use="optional" order="9" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInInventories" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_117"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingAssetsAbstract_106" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_117" use="optional" order="10" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_118"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingAssetsAbstract_106" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_118" use="optional" order="11" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_119"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingAssetsAbstract_106" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_119" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_120"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingAssetsAbstract_106" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_120" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_121"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingAssetsAbstract_106" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_121" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_133"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_109" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_133" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_108"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfCashFlowsAbstract_104" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_108" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_128"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_108" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_128" use="optional" order="17" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_129"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_108" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_129" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_131"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_108" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_131" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_107"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfCashFlowsAbstract_104" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_107" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromLinesOfCredit" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_123"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_107" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_123" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RepaymentsOfLinesOfCredit" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_124"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_107" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_124" use="optional" order="22" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_125"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_107" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_125" use="optional" order="23" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions_126"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_107" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions_126" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsOfFinancingCosts" xlink:label="loc_us-gaap_PaymentsOfFinancingCosts_122"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_107" xlink:to="loc_us-gaap_PaymentsOfFinancingCosts_122" use="optional" order="25" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_127"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_107" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_127" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_134"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfCashFlowsAbstract_104" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_134" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_135"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfCashFlowsAbstract_104" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_135" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_136"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfCashFlowsAbstract_104" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_136" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SupplementalCashFlowInformationAbstract" xlink:label="loc_us-gaap_SupplementalCashFlowInformationAbstract_110"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementOfCashFlowsAbstract_104" xlink:to="loc_us-gaap_SupplementalCashFlowInformationAbstract_110" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestPaidNet" xlink:label="loc_us-gaap_InterestPaidNet_137"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_110" xlink:to="loc_us-gaap_InterestPaidNet_137" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxesPaidNet" xlink:label="loc_us-gaap_IncomeTaxesPaidNet_138"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_110" xlink:to="loc_us-gaap_IncomeTaxesPaidNet_138" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/BusinessAndOrganization">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract" xlink:label="loc_us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract_749"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NatureOfOperations" xlink:label="loc_us-gaap_NatureOfOperations_750"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract_749" xlink:to="loc_us-gaap_NatureOfOperations_750" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/BasisOfPresentation">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract" xlink:label="loc_us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract_377978"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock" xlink:label="loc_us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock_377979"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract_377978" xlink:to="loc_us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock_377979" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/RecentlyAdoptedAccountingStandards">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountingChangesAndErrorCorrectionsAbstract" xlink:label="loc_us-gaap_AccountingChangesAndErrorCorrectionsAbstract_377994"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock" xlink:label="loc_us-gaap_NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock_377997"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AccountingChangesAndErrorCorrectionsAbstract_377994" xlink:to="loc_us-gaap_NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock_377997" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/NewAccountingStandardsNotYetAdopted">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountingChangesAndErrorCorrectionsAbstract" xlink:label="loc_us-gaap_AccountingChangesAndErrorCorrectionsAbstract_378056"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_NewAccountingStandardsNotYetAdoptedTextBlock" xlink:label="loc_trex_NewAccountingStandardsNotYetAdoptedTextBlock_1137647"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AccountingChangesAndErrorCorrectionsAbstract_378056" xlink:to="loc_trex_NewAccountingStandardsNotYetAdoptedTextBlock_1137647" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/Inventories">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryDisclosureAbstract" xlink:label="loc_us-gaap_InventoryDisclosureAbstract_784"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryDisclosureTextBlock" xlink:label="loc_us-gaap_InventoryDisclosureTextBlock_785"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_InventoryDisclosureAbstract_784" xlink:to="loc_us-gaap_InventoryDisclosureTextBlock_785" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/PrepaidExpensesAndOtherAssets">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TextBlockAbstract" xlink:label="loc_us-gaap_TextBlockAbstract_790"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_PrepaidAndOtherCurrentAssetsDisclosureTextBlock" xlink:label="loc_trex_PrepaidAndOtherCurrentAssetsDisclosureTextBlock_791"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_TextBlockAbstract_790" xlink:to="loc_trex_PrepaidAndOtherCurrentAssetsDisclosureTextBlock_791" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/GoodwillAndOtherIntangibleAssetsNet">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GoodwillAndIntangibleAssetsDisclosureAbstract" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetsDisclosureAbstract_796"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GoodwillAndIntangibleAssetsDisclosureTextBlock" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetsDisclosureTextBlock_797"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_GoodwillAndIntangibleAssetsDisclosureAbstract_796" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetsDisclosureTextBlock_797" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/AccruedExpensesAndOtherLiabilities">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PayablesAndAccrualsAbstract" xlink:label="loc_us-gaap_PayablesAndAccrualsAbstract_808"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsPayableAccruedLiabilitiesAndOtherLiabilitiesDisclosureCurrentTextBlock" xlink:label="loc_us-gaap_AccountsPayableAccruedLiabilitiesAndOtherLiabilitiesDisclosureCurrentTextBlock_809"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PayablesAndAccrualsAbstract_808" xlink:to="loc_us-gaap_AccountsPayableAccruedLiabilitiesAndOtherLiabilitiesDisclosureCurrentTextBlock_809" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/Debt">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtDisclosureAbstract" xlink:label="loc_us-gaap_DebtDisclosureAbstract_814"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtDisclosureTextBlock" xlink:label="loc_us-gaap_DebtDisclosureTextBlock_815"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_DebtDisclosureAbstract_814" xlink:to="loc_us-gaap_DebtDisclosureTextBlock_815" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/Leases">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LeasesAbstract" xlink:label="loc_us-gaap_LeasesAbstract_848"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeasesTextBlock" xlink:label="loc_us-gaap_LesseeOperatingLeasesTextBlock_849"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LeasesAbstract_848" xlink:to="loc_us-gaap_LesseeOperatingLeasesTextBlock_849" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/FinancialInstruments">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentsAllOtherInvestmentsAbstract" xlink:label="loc_us-gaap_InvestmentsAllOtherInvestmentsAbstract_817"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentsDisclosureTextBlock" xlink:label="loc_us-gaap_FinancialInstrumentsDisclosureTextBlock_818"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_InvestmentsAllOtherInvestmentsAbstract_817" xlink:to="loc_us-gaap_FinancialInstrumentsDisclosureTextBlock_818" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/StockholdersEquity">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityAbstract" xlink:label="loc_us-gaap_EquityAbstract_820"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquityNoteDisclosureTextBlock" xlink:label="loc_us-gaap_StockholdersEquityNoteDisclosureTextBlock_821"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_EquityAbstract_820" xlink:to="loc_us-gaap_StockholdersEquityNoteDisclosureTextBlock_821" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/RevenueFromContractsWithCustomers">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueFromContractWithCustomerAbstract" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerAbstract_827"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueFromContractWithCustomerTextBlock" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerTextBlock_828"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_RevenueFromContractWithCustomerAbstract_827" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerTextBlock_828" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/StockBasedCompensation">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract" xlink:label="loc_us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract_833"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock" xlink:label="loc_us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock_834"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract_833" xlink:to="loc_us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock_834" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/IncomeTaxes">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxDisclosureAbstract" xlink:label="loc_us-gaap_IncomeTaxDisclosureAbstract_857"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxDisclosureTextBlock" xlink:label="loc_us-gaap_IncomeTaxDisclosureTextBlock_858"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeTaxDisclosureAbstract_857" xlink:to="loc_us-gaap_IncomeTaxDisclosureTextBlock_858" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/SegmentInformation">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentReportingAbstract" xlink:label="loc_us-gaap_SegmentReportingAbstract_865"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentReportingDisclosureTextBlock" xlink:label="loc_us-gaap_SegmentReportingDisclosureTextBlock_866"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingAbstract_865" xlink:to="loc_us-gaap_SegmentReportingDisclosureTextBlock_866" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/Seasonality">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TextBlockAbstract" xlink:label="loc_us-gaap_TextBlockAbstract_872"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_SeasonalityDisclosureTextBlock" xlink:label="loc_trex_SeasonalityDisclosureTextBlock_873"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_TextBlockAbstract_872" xlink:to="loc_trex_SeasonalityDisclosureTextBlock_873" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/CommitmentsAndContingencies">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommitmentsAndContingenciesDisclosureAbstract" xlink:label="loc_us-gaap_CommitmentsAndContingenciesDisclosureAbstract_875"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommitmentsAndContingenciesDisclosureTextBlock" xlink:label="loc_us-gaap_CommitmentsAndContingenciesDisclosureTextBlock_876"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_CommitmentsAndContingenciesDisclosureAbstract_875" xlink:to="loc_us-gaap_CommitmentsAndContingenciesDisclosureTextBlock_876" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/SummaryOfSignificantAccountingPoliciesPolicies">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountingPoliciesAbstract" xlink:label="loc_us-gaap_AccountingPoliciesAbstract_755"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationOptionAndIncentivePlansPolicy" xlink:label="loc_us-gaap_ShareBasedCompensationOptionAndIncentivePlansPolicy_767"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AccountingPoliciesAbstract_755" xlink:to="loc_us-gaap_ShareBasedCompensationOptionAndIncentivePlansPolicy_767" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/InventoriesTables">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryDisclosureAbstract" xlink:label="loc_us-gaap_InventoryDisclosureAbstract_787"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfInventoryCurrentTableTextBlock" xlink:label="loc_us-gaap_ScheduleOfInventoryCurrentTableTextBlock_788"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_InventoryDisclosureAbstract_787" xlink:to="loc_us-gaap_ScheduleOfInventoryCurrentTableTextBlock_788" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/PrepaidExpensesAndOtherAssetsTables">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TextBlockAbstract" xlink:label="loc_us-gaap_TextBlockAbstract_793"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_PrepaidExpenseAndOtherAssetsCurrentTableTextBlock" xlink:label="loc_trex_PrepaidExpenseAndOtherAssetsCurrentTableTextBlock_794"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_TextBlockAbstract_793" xlink:to="loc_trex_PrepaidExpenseAndOtherAssetsCurrentTableTextBlock_794" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/AccruedExpensesAndOtherLiabilitiesTables">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PayablesAndAccrualsAbstract" xlink:label="loc_us-gaap_PayablesAndAccrualsAbstract_811"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_ScheduleOfAccruedLiabilitiesAndOtherCurrentLiabilitiesTableTextBlock" xlink:label="loc_trex_ScheduleOfAccruedLiabilitiesAndOtherCurrentLiabilitiesTableTextBlock_812"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PayablesAndAccrualsAbstract_811" xlink:to="loc_trex_ScheduleOfAccruedLiabilitiesAndOtherCurrentLiabilitiesTableTextBlock_812" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/LeasesTables">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LeasesAbstract" xlink:label="loc_us-gaap_LeasesAbstract_851"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_SupplementalFinancialInformationOfOperatingLeasesTableTextBlock" xlink:label="loc_trex_SupplementalFinancialInformationOfOperatingLeasesTableTextBlock_378357"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LeasesAbstract_851" xlink:to="loc_trex_SupplementalFinancialInformationOfOperatingLeasesTableTextBlock_378357" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock_378428"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LeasesAbstract_851" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock_378428" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/StockholdersEquityTables">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityAbstract" xlink:label="loc_us-gaap_EquityAbstract_823"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock" xlink:label="loc_us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock_824"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_EquityAbstract_823" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock_824" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock_825"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_EquityAbstract_823" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock_825" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/RevenueFromContractsWithCustomersTables">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueFromContractWithCustomerAbstract" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerAbstract_830"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DisaggregationOfRevenueTableTextBlock" xlink:label="loc_us-gaap_DisaggregationOfRevenueTableTextBlock_831"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_RevenueFromContractWithCustomerAbstract_830" xlink:to="loc_us-gaap_DisaggregationOfRevenueTableTextBlock_831" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/StockBasedCompensationTables">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract" xlink:label="loc_us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract_836"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_840"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract_836" xlink:to="loc_us-gaap_StatementTable_840" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_837"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementTable_840" xlink:to="loc_us-gaap_AwardTypeAxis_837" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_838"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AwardTypeAxis_837" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_838" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_839"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementTable_840" xlink:to="loc_us-gaap_StatementLineItems_839" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValueTableTextBlock" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValueTableTextBlock_378535"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_839" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValueTableTextBlock_378535" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock" xlink:label="loc_us-gaap_ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock_845"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_839" xlink:to="loc_us-gaap_ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock_845" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfCompensationCostForShareBasedPaymentArrangementsAllocationOfShareBasedCompensationCostsByPlanTableTextBlock" xlink:label="loc_us-gaap_ScheduleOfCompensationCostForShareBasedPaymentArrangementsAllocationOfShareBasedCompensationCostsByPlanTableTextBlock_843"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_839" xlink:to="loc_us-gaap_ScheduleOfCompensationCostForShareBasedPaymentArrangementsAllocationOfShareBasedCompensationCostsByPlanTableTextBlock_843" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/SegmentInformationTables">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentReportingAbstract" xlink:label="loc_us-gaap_SegmentReportingAbstract_868"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock_869"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingAbstract_868" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock_869" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_ScheduleOfReconciliationOfNetIncomeToEBITDATableTextBlock" xlink:label="loc_trex_ScheduleOfReconciliationOfNetIncomeToEBITDATableTextBlock_870"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingAbstract_868" xlink:to="loc_trex_ScheduleOfReconciliationOfNetIncomeToEBITDATableTextBlock_870" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/CommitmentsAndContingenciesTables">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommitmentsAndContingenciesDisclosureAbstract" xlink:label="loc_us-gaap_CommitmentsAndContingenciesDisclosureAbstract_878"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfProductWarrantyLiabilityTableTextBlock" xlink:label="loc_us-gaap_ScheduleOfProductWarrantyLiabilityTableTextBlock_879"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_CommitmentsAndContingenciesDisclosureAbstract_878" xlink:to="loc_us-gaap_ScheduleOfProductWarrantyLiabilityTableTextBlock_879" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/BusinessAndOrganizationAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountingPoliciesAbstract" xlink:label="loc_us-gaap_AccountingPoliciesAbstract_140"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NumberOfReportableSegments" xlink:label="loc_us-gaap_NumberOfReportableSegments_141"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AccountingPoliciesAbstract_140" xlink:to="loc_us-gaap_NumberOfReportableSegments_141" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/InventoriesSummaryOfInventoriesDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryDisclosureAbstract" xlink:label="loc_us-gaap_InventoryDisclosureAbstract_256"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryFinishedGoods" xlink:label="loc_us-gaap_InventoryFinishedGoods_257"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_InventoryDisclosureAbstract_256" xlink:to="loc_us-gaap_InventoryFinishedGoods_257" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryRawMaterials" xlink:label="loc_us-gaap_InventoryRawMaterials_258"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_InventoryDisclosureAbstract_256" xlink:to="loc_us-gaap_InventoryRawMaterials_258" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryGross" xlink:label="loc_us-gaap_InventoryGross_259"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_InventoryDisclosureAbstract_256" xlink:to="loc_us-gaap_InventoryGross_259" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryLIFOReserve" xlink:label="loc_us-gaap_InventoryLIFOReserve_260"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_InventoryDisclosureAbstract_256" xlink:to="loc_us-gaap_InventoryLIFOReserve_260" use="optional" order="4" preferredLabel="http://www.xbrl.org/2009/role/negatedTerseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LIFOInventoryAmount" xlink:label="loc_us-gaap_LIFOInventoryAmount_261"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_InventoryDisclosureAbstract_256" xlink:to="loc_us-gaap_LIFOInventoryAmount_261" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/InventoriesAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryDisclosureAbstract" xlink:label="loc_us-gaap_InventoryDisclosureAbstract_263"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectOfLIFOInventoryLiquidationOnIncome" xlink:label="loc_us-gaap_EffectOfLIFOInventoryLiquidationOnIncome_264"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_InventoryDisclosureAbstract_263" xlink:to="loc_us-gaap_EffectOfLIFOInventoryLiquidationOnIncome_264" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FIFOInventoryAmount" xlink:label="loc_us-gaap_FIFOInventoryAmount_265"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_InventoryDisclosureAbstract_263" xlink:to="loc_us-gaap_FIFOInventoryAmount_265" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/PrepaidExpensesAndOtherAssetsSummaryOfPrepaidExpensesAndOtherAssetsDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsAbstract" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsAbstract_267"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PrepaidExpenseCurrent" xlink:label="loc_us-gaap_PrepaidExpenseCurrent_269"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PrepaidExpenseAndOtherAssetsAbstract_267" xlink:to="loc_us-gaap_PrepaidExpenseCurrent_269" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ContractWithCustomerAssetNetCurrent" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetCurrent_268"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PrepaidExpenseAndOtherAssetsAbstract_267" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetCurrent_268" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxesReceivable" xlink:label="loc_us-gaap_IncomeTaxesReceivable_271"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PrepaidExpenseAndOtherAssetsAbstract_267" xlink:to="loc_us-gaap_IncomeTaxesReceivable_271" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAssetsCurrent" xlink:label="loc_us-gaap_OtherAssetsCurrent_272"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PrepaidExpenseAndOtherAssetsAbstract_267" xlink:to="loc_us-gaap_OtherAssetsCurrent_272" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_273"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PrepaidExpenseAndOtherAssetsAbstract_267" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_273" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/GoodwillAndOtherIntangibleAssetsNetAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GoodwillAndIntangibleAssetsDisclosureAbstract" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetsDisclosureAbstract_275"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_283"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_GoodwillAndIntangibleAssetsDisclosureAbstract_275" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_283" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_281"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_283" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_281" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_282"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_281" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_282" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_278"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_283" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_278" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_279"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_278" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_279" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InternetDomainNamesMember" xlink:label="loc_us-gaap_InternetDomainNamesMember_286"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_279" xlink:to="loc_us-gaap_InternetDomainNamesMember_286" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_276"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_283" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_276" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_277"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_276" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_277" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_285"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_277" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_285" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_280"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_283" xlink:to="loc_us-gaap_GoodwillLineItems_280" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_287"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_GoodwillLineItems_280" xlink:to="loc_us-gaap_Goodwill_287" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_288"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_GoodwillLineItems_280" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_288" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_290"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_GoodwillLineItems_280" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_290" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_561618"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_GoodwillLineItems_280" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_561618" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_561623"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_GoodwillLineItems_280" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_561623" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/AccruedExpensesAndOtherLiabilitiesSummaryOfAccruedExpensesAndOtherLiabilitiesDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PayablesAndAccrualsAbstract" xlink:label="loc_us-gaap_PayablesAndAccrualsAbstract_333"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedIncomeTaxesCurrent" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_899645"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PayablesAndAccrualsAbstract_333" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_899645" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedMarketingCostsCurrent" xlink:label="loc_us-gaap_AccruedMarketingCostsCurrent_334"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PayablesAndAccrualsAbstract_333" xlink:to="loc_us-gaap_AccruedMarketingCostsCurrent_334" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_335"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PayablesAndAccrualsAbstract_333" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_335" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_378333"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PayablesAndAccrualsAbstract_333" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_378333" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList_1411489"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PayablesAndAccrualsAbstract_333" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList_1411489" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_AccruedManufacturingExpensesCurrent" xlink:label="loc_trex_AccruedManufacturingExpensesCurrent_336"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PayablesAndAccrualsAbstract_333" xlink:to="loc_trex_AccruedManufacturingExpensesCurrent_336" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_BillingsInExcessOfRevenuesCurrent" xlink:label="loc_trex_BillingsInExcessOfRevenuesCurrent_339"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PayablesAndAccrualsAbstract_333" xlink:to="loc_trex_BillingsInExcessOfRevenuesCurrent_339" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_340"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PayablesAndAccrualsAbstract_333" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_340" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_AccruedLiabilitiesAndOtherLiabilitiesCurrentExcludingWarranty" xlink:label="loc_trex_AccruedLiabilitiesAndOtherLiabilitiesCurrentExcludingWarranty_341"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PayablesAndAccrualsAbstract_333" xlink:to="loc_trex_AccruedLiabilitiesAndOtherLiabilitiesCurrentExcludingWarranty_341" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/DebtAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtDisclosureAbstract" xlink:label="loc_us-gaap_DebtDisclosureAbstract_343"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_349"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_DebtDisclosureAbstract_343" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_349" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_344"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_349" xlink:to="loc_us-gaap_CreditFacilityAxis_344" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_345"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_CreditFacilityAxis_344" xlink:to="loc_us-gaap_CreditFacilityDomain_345" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_RevolverLoansPortionEffectiveOneJanuaryThroughThirtyJuneMember" xlink:label="loc_trex_RevolverLoansPortionEffectiveOneJanuaryThroughThirtyJuneMember_354"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_CreditFacilityDomain_345" xlink:to="loc_trex_RevolverLoansPortionEffectiveOneJanuaryThroughThirtyJuneMember_354" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_RevolverLoansPortionEffectiveOneJulyThroughThirtyFirstDecemberMember" xlink:label="loc_trex_RevolverLoansPortionEffectiveOneJulyThroughThirtyFirstDecemberMember_355"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_CreditFacilityDomain_345" xlink:to="loc_trex_RevolverLoansPortionEffectiveOneJulyThroughThirtyFirstDecemberMember_355" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_356"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_CreditFacilityDomain_345" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_356" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_346"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_349" xlink:to="loc_us-gaap_DebtInstrumentAxis_346" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_347"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_DebtInstrumentAxis_346" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_347" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_FourthamendedandrestatedcreditagreementMember" xlink:label="loc_trex_FourthamendedandrestatedcreditagreementMember_561678"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_347" xlink:to="loc_trex_FourthamendedandrestatedcreditagreementMember_561678" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_352"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_349" xlink:to="loc_us-gaap_VariableRateAxis_352" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_353"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_VariableRateAxis_352" xlink:to="loc_us-gaap_VariableRateDomain_353" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LineOfCreditFacilityAxis" xlink:label="loc_us-gaap_LineOfCreditFacilityAxis_802771"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_349" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_802771" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_802772"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_802771" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_802772" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_348"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_349" xlink:to="loc_us-gaap_LineOfCreditFacilityLineItems_348" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LinesOfCreditCurrent" xlink:label="loc_us-gaap_LinesOfCreditCurrent_378350"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_348" xlink:to="loc_us-gaap_LinesOfCreditCurrent_378350" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_362"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_348" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_362" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_363"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_348" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_363" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LineOfCreditFacilityExpirationDate1" xlink:label="loc_us-gaap_LineOfCreditFacilityExpirationDate1_364"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_348" xlink:to="loc_us-gaap_LineOfCreditFacilityExpirationDate1_364" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_LineOfCreditFacilityAdditionalBorrowingCapacity" xlink:label="loc_trex_LineOfCreditFacilityAdditionalBorrowingCapacity_802770"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_348" xlink:to="loc_trex_LineOfCreditFacilityAdditionalBorrowingCapacity_802770" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/LeasesAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LeasesAbstract" xlink:label="loc_us-gaap_LeasesAbstract_562"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_378480"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LeasesAbstract_562" xlink:to="loc_us-gaap_StatementTable_378480" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_378484"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementTable_378480" xlink:to="loc_srt_RangeAxis_378484" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_378485"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_RangeAxis_378484" xlink:to="loc_srt_RangeMember_378485" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_378487"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_RangeMember_378485" xlink:to="loc_srt_MinimumMember_378487" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_378486"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_RangeMember_378485" xlink:to="loc_srt_MaximumMember_378486" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_378481"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementTable_378480" xlink:to="loc_us-gaap_StatementClassOfStockAxis_378481" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_378482"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementClassOfStockAxis_378481" xlink:to="loc_us-gaap_ClassOfStockDomain_378482" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_378483"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementTable_378480" xlink:to="loc_us-gaap_StatementLineItems_378483" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent" xlink:label="loc_us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent_378455"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_378483" xlink:to="loc_us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent_378455" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseCost" xlink:label="loc_us-gaap_OperatingLeaseCost_378456"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_378483" xlink:to="loc_us-gaap_OperatingLeaseCost_378456" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LessorOperatingLeaseTermOfContract" xlink:label="loc_us-gaap_LessorOperatingLeaseTermOfContract_378457"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_378483" xlink:to="loc_us-gaap_LessorOperatingLeaseTermOfContract_378457" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1" xlink:label="loc_us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1_378611"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_378483" xlink:to="loc_us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1_378611" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/LeasesSupplementalCashFlowInformationToOperatingLeasesDetails">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LeasesAbstract" xlink:label="loc_us-gaap_LeasesAbstract_378378"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_378380"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LeasesAbstract_378378" xlink:to="loc_us-gaap_StatementTable_378380" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_563044"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementTable_378380" xlink:to="loc_us-gaap_StatementClassOfStockAxis_563044" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_563045"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementClassOfStockAxis_563044" xlink:to="loc_us-gaap_ClassOfStockDomain_563045" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_378383"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementTable_378380" xlink:to="loc_us-gaap_StatementLineItems_378383" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashFlowOperatingActivitiesLesseeAbstract" xlink:label="loc_us-gaap_CashFlowOperatingActivitiesLesseeAbstract_378384"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_378383" xlink:to="loc_us-gaap_CashFlowOperatingActivitiesLesseeAbstract_378384" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeasePayments" xlink:label="loc_us-gaap_OperatingLeasePayments_378411"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_CashFlowOperatingActivitiesLesseeAbstract_378384" xlink:to="loc_us-gaap_OperatingLeasePayments_378411" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability" xlink:label="loc_us-gaap_RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability_378414"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_CashFlowOperatingActivitiesLesseeAbstract_378384" xlink:to="loc_us-gaap_RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability_378414" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_SupplementalBalanceSheetInformationAbstract" xlink:label="loc_trex_SupplementalBalanceSheetInformationAbstract_378420"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_378383" xlink:to="loc_trex_SupplementalBalanceSheetInformationAbstract_378420" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_378416"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_SupplementalBalanceSheetInformationAbstract_378420" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_378416" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsAndLiabilitiesLesseeAbstract" xlink:label="loc_us-gaap_AssetsAndLiabilitiesLesseeAbstract_378406"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_378383" xlink:to="loc_us-gaap_AssetsAndLiabilitiesLesseeAbstract_378406" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_LesseeOperatingLeasesAccruedExpensesAndOtherCurrentLiabilities" xlink:label="loc_trex_LesseeOperatingLeasesAccruedExpensesAndOtherCurrentLiabilities_378422"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AssetsAndLiabilitiesLesseeAbstract_378406" xlink:to="loc_trex_LesseeOperatingLeasesAccruedExpensesAndOtherCurrentLiabilities_378422" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_378423"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AssetsAndLiabilitiesLesseeAbstract_378406" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_378423" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiability" xlink:label="loc_us-gaap_OperatingLeaseLiability_378424"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_378383" xlink:to="loc_us-gaap_OperatingLeaseLiability_378424" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/LeasesMaturitiesOfOperatingLeaseLiabilitiesDetails">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LeasesAbstract" xlink:label="loc_us-gaap_LeasesAbstract_378433"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_378436"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LeasesAbstract_378433" xlink:to="loc_us-gaap_StatementTable_378436" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_378439"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementTable_378436" xlink:to="loc_us-gaap_StatementLineItems_378439" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract" xlink:label="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_378441"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_378439" xlink:to="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_378441" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_900106"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_378441" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_900106" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_378442"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_378441" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_378442" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_378443"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_378441" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_378443" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_378444"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_378441" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_378444" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_378446"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_378441" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_378446" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_378448"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_378441" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_378448" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_378449"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_378441" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_378449" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/totalLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_406020"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_378441" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_406020" use="optional" order="11" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiability" xlink:label="loc_us-gaap_OperatingLeaseLiability_378451"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_378441" xlink:to="loc_us-gaap_OperatingLeaseLiability_378451" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/StockholdersEquityAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityAbstract" xlink:label="loc_us-gaap_EquityAbstract_374"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfTreasuryStockTable" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_375"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_EquityAbstract_374" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_375" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_377"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_375" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_377" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_378"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_377" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_378" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_StockRepurchaseProgramMember" xlink:label="loc_trex_StockRepurchaseProgramMember_389"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_378" xlink:to="loc_trex_StockRepurchaseProgramMember_389" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_900129"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_375" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_900129" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_900130"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_900129" xlink:to="loc_us-gaap_EquityComponentDomain_900130" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_1409338"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_375" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_1409338" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_1409339"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_1409338" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_1409339" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_1409340"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_1409339" xlink:to="loc_us-gaap_SubsequentEventMember_1409340" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityClassOfTreasuryStockLineItems" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_376"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_375" xlink:to="loc_us-gaap_EquityClassOfTreasuryStockLineItems_376" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_380"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_376" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_380" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased" xlink:label="loc_us-gaap_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased_383"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_376" xlink:to="loc_us-gaap_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased_383" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_384"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_376" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_384" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_1409337"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_376" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_1409337" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/StockholdersEquityComputationOfBasicAndDilutedEarningsPerShareDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquityNoteAbstract" xlink:label="loc_us-gaap_StockholdersEquityNoteAbstract_391"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_ComponentsOfBasicAndDilutedEarningPerShareTable" xlink:label="loc_trex_ComponentsOfBasicAndDilutedEarningPerShareTable_394"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StockholdersEquityNoteAbstract_391" xlink:to="loc_trex_ComponentsOfBasicAndDilutedEarningPerShareTable_394" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_392"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ComponentsOfBasicAndDilutedEarningPerShareTable_394" xlink:to="loc_us-gaap_AwardTypeAxis_392" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_396"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AwardTypeAxis_392" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_396" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_StockAppreciationRightsMember" xlink:label="loc_trex_StockAppreciationRightsMember_402"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_396" xlink:to="loc_trex_StockAppreciationRightsMember_402" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_403"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_396" xlink:to="loc_us-gaap_RestrictedStockMember_403" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_ComponentsOfBasicAndDilutedEarningPerShareLineItems" xlink:label="loc_trex_ComponentsOfBasicAndDilutedEarningPerShareLineItems_393"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ComponentsOfBasicAndDilutedEarningPerShareTable_394" xlink:to="loc_trex_ComponentsOfBasicAndDilutedEarningPerShareLineItems_393" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLossAbstract" xlink:label="loc_us-gaap_NetIncomeLossAbstract_395"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ComponentsOfBasicAndDilutedEarningPerShareLineItems_393" xlink:to="loc_us-gaap_NetIncomeLossAbstract_395" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_401"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_NetIncomeLossAbstract_395" xlink:to="loc_us-gaap_NetIncomeLoss_401" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract_398"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ComponentsOfBasicAndDilutedEarningPerShareLineItems_393" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract_398" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_406"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract_398" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_406" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustmentAbstract" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustmentAbstract_397"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ComponentsOfBasicAndDilutedEarningPerShareLineItems_393" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustmentAbstract_397" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_404"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustmentAbstract_397" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_404" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_405"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustmentAbstract_397" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_405" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EarningsPerShareBasic" xlink:label="loc_us-gaap_EarningsPerShareBasic_399"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ComponentsOfBasicAndDilutedEarningPerShareLineItems_393" xlink:to="loc_us-gaap_EarningsPerShareBasic_399" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EarningsPerShareDiluted" xlink:label="loc_us-gaap_EarningsPerShareDiluted_400"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ComponentsOfBasicAndDilutedEarningPerShareLineItems_393" xlink:to="loc_us-gaap_EarningsPerShareDiluted_400" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/StockholdersEquityAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityAbstract" xlink:label="loc_us-gaap_EquityAbstract_408"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_412"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_EquityAbstract_408" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_412" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_409"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_412" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_409" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_411"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_409" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_411" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_560984"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_411" xlink:to="loc_us-gaap_RestrictedStockMember_560984" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockAppreciationRightsSARSMember" xlink:label="loc_us-gaap_StockAppreciationRightsSARSMember_415"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_411" xlink:to="loc_us-gaap_StockAppreciationRightsSARSMember_415" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_410"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_412" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_410" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_413"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_410" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_413" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/RevenueFromContractsWithCustomersAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueFromContractWithCustomerAbstract" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerAbstract_417"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligation" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_418"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_RevenueFromContractWithCustomerAbstract_417" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_418" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionExplanation" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionExplanation_419"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_RevenueFromContractWithCustomerAbstract_417" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionExplanation_419" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/RevenueFromContractsWithCustomersSummaryOfDisaggregatedNetSalesDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DisaggregationOfRevenueAbstract" xlink:label="loc_us-gaap_DisaggregationOfRevenueAbstract_421"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DisaggregationOfRevenueTable" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_423"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_DisaggregationOfRevenueAbstract_421" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_423" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_424"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_423" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_424" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_425"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_424" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_425" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_429"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_425" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_429" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_430"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_425" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_430" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TimingOfTransferOfGoodOrServiceAxis" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_426"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_423" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_426" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_427"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_426" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_427" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransferredAtPointInTimeMember" xlink:label="loc_us-gaap_TransferredAtPointInTimeMember_431"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_427" xlink:to="loc_us-gaap_TransferredAtPointInTimeMember_431" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransferredOverTimeMember" xlink:label="loc_us-gaap_TransferredOverTimeMember_432"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_427" xlink:to="loc_us-gaap_TransferredOverTimeMember_432" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_422"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_423" xlink:to="loc_us-gaap_DisaggregationOfRevenueLineItems_422" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_428"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_422" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_428" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/StockBasedCompensationAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract" xlink:label="loc_us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract_434"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_440"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract_434" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_440" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_561151"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_440" xlink:to="loc_srt_RangeAxis_561151" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_561152"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_RangeAxis_561151" xlink:to="loc_srt_RangeMember_561152" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_435"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_440" xlink:to="loc_us-gaap_AwardTypeAxis_435" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_442"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AwardTypeAxis_435" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_442" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockAppreciationRightsSARSMember" xlink:label="loc_us-gaap_StockAppreciationRightsSARSMember_463"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_442" xlink:to="loc_us-gaap_StockAppreciationRightsSARSMember_463" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_VestingAxis" xlink:label="loc_us-gaap_VestingAxis_443"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_440" xlink:to="loc_us-gaap_VestingAxis_443" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaap_VestingDomain_444"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_VestingAxis_443" xlink:to="loc_us-gaap_VestingDomain_444" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PlanNameAxis" xlink:label="loc_us-gaap_PlanNameAxis_436"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_440" xlink:to="loc_us-gaap_PlanNameAxis_436" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_437"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PlanNameAxis_436" xlink:to="loc_us-gaap_PlanNameDomain_437" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_TwoThousandFourteenStockIncentivePlanMember" xlink:label="loc_trex_TwoThousandFourteenStockIncentivePlanMember_445"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_PlanNameDomain_437" xlink:to="loc_trex_TwoThousandFourteenStockIncentivePlanMember_445" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_441"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_440" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_441" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_448"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_441" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_448" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_450"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_441" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_450" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsMethodUsed" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsMethodUsed_456"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_441" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsMethodUsed_456" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_378587"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_441" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_378587" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/StockBasedCompensationSummaryOfStockBasedCompensationGrantsDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract" xlink:label="loc_us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract_378550"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_378552"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract_378550" xlink:to="loc_us-gaap_StatementTable_378552" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_378563"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementTable_378552" xlink:to="loc_us-gaap_AwardTypeAxis_378563" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_378564"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AwardTypeAxis_378563" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_378564" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_TimeBasedRestrictedStockUnitsMember" xlink:label="loc_trex_TimeBasedRestrictedStockUnitsMember_378565"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_378564" xlink:to="loc_trex_TimeBasedRestrictedStockUnitsMember_378565" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_PerformanceBasedRestrictedStockUnitsMember" xlink:label="loc_trex_PerformanceBasedRestrictedStockUnitsMember_378566"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_378564" xlink:to="loc_trex_PerformanceBasedRestrictedStockUnitsMember_378566" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockAppreciationRightsSARSMember" xlink:label="loc_us-gaap_StockAppreciationRightsSARSMember_378567"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_378564" xlink:to="loc_us-gaap_StockAppreciationRightsSARSMember_378567" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_378553"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementTable_378552" xlink:to="loc_us-gaap_StatementClassOfStockAxis_378553" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_378554"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementClassOfStockAxis_378553" xlink:to="loc_us-gaap_ClassOfStockDomain_378554" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_378555"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementTable_378552" xlink:to="loc_us-gaap_StatementLineItems_378555" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_378557"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_378555" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_378557" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionsEquityInstrumentsGrantedWeightedAverageGrantPrice" xlink:label="loc_trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionsEquityInstrumentsGrantedWeightedAverageGrantPrice_378561"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_378555" xlink:to="loc_trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionsEquityInstrumentsGrantedWeightedAverageGrantPrice_378561" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/StockBasedCompensationSummaryOfStockBasedCompensationGrantsParentheticalDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract" xlink:label="loc_us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract_378570"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_378572"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract_378570" xlink:to="loc_us-gaap_StatementTable_378572" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_378579"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementTable_378572" xlink:to="loc_us-gaap_AwardTypeAxis_378579" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_378581"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AwardTypeAxis_378579" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_378581" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_PerformanceBasedRestrictedStockTargetMember" xlink:label="loc_trex_PerformanceBasedRestrictedStockTargetMember_378584"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_378581" xlink:to="loc_trex_PerformanceBasedRestrictedStockTargetMember_378584" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_PerformanceBasedRestrictedStockAdjustmentMember" xlink:label="loc_trex_PerformanceBasedRestrictedStockAdjustmentMember_378583"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_378581" xlink:to="loc_trex_PerformanceBasedRestrictedStockAdjustmentMember_378583" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_378573"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementTable_378572" xlink:to="loc_us-gaap_StatementClassOfStockAxis_378573" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_378574"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementClassOfStockAxis_378573" xlink:to="loc_us-gaap_ClassOfStockDomain_378574" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_378575"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementTable_378572" xlink:to="loc_us-gaap_StatementLineItems_378575" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_378576"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_StatementLineItems_378575" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_378576" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/StockBasedCompensationSummaryOfAssumptionsUsedToEstimateFairValueOfEachSarDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract" xlink:label="loc_us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract_515"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyTable" xlink:label="loc_trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyTable_518"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract_515" xlink:to="loc_trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyTable_518" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_516"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyTable_518" xlink:to="loc_us-gaap_AwardTypeAxis_516" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_519"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AwardTypeAxis_516" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_519" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockAppreciationRightsSARSMember" xlink:label="loc_us-gaap_StockAppreciationRightsSARSMember_524"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_519" xlink:to="loc_us-gaap_StockAppreciationRightsSARSMember_524" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyLineItems" xlink:label="loc_trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyLineItems_517"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyTable_518" xlink:to="loc_trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyLineItems_517" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_378585"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyLineItems_517" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_378585" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_520"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyLineItems_517" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_520" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_521"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyLineItems_517" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_521" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_522"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyLineItems_517" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_522" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_523"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyLineItems_517" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_523" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/StockBasedCompensationSummaryOfStockBasedCompensationExpensesDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract" xlink:label="loc_us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract_470"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_472"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract_470" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_472" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_471"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_472" xlink:to="loc_us-gaap_AwardTypeAxis_471" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_474"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AwardTypeAxis_471" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_474" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockAppreciationRightsSARSMember" xlink:label="loc_us-gaap_StockAppreciationRightsSARSMember_478"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_474" xlink:to="loc_us-gaap_StockAppreciationRightsSARSMember_478" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_TimeBasedRestrictedStockandRestrictedstockUnitsMember" xlink:label="loc_trex_TimeBasedRestrictedStockandRestrictedstockUnitsMember_580537"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_474" xlink:to="loc_trex_TimeBasedRestrictedStockandRestrictedstockUnitsMember_580537" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_PerformanceBasedRestrictedStockAndrestrictedStockunitsMember" xlink:label="loc_trex_PerformanceBasedRestrictedStockAndrestrictedStockunitsMember_580538"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_474" xlink:to="loc_trex_PerformanceBasedRestrictedStockAndrestrictedStockunitsMember_580538" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_EmployeeStockPurchasePlanMember" xlink:label="loc_trex_EmployeeStockPurchasePlanMember_479"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_474" xlink:to="loc_trex_EmployeeStockPurchasePlanMember_479" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_473"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_472" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_473" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_475"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_473" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_475" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/IncomeTaxesAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxDisclosureAbstract" xlink:label="loc_us-gaap_IncomeTaxDisclosureAbstract_619"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxContingencyTable" xlink:label="loc_us-gaap_IncomeTaxContingencyTable_622"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeTaxDisclosureAbstract_619" xlink:to="loc_us-gaap_IncomeTaxContingencyTable_622" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_620"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeTaxContingencyTable_622" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_620" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_623"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_620" xlink:to="loc_us-gaap_TypeOfAdoptionMember_623" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TaxPeriodAxis" xlink:label="loc_us-gaap_TaxPeriodAxis_378593"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeTaxContingencyTable_622" xlink:to="loc_us-gaap_TaxPeriodAxis_378593" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:label="loc_us-gaap_TaxPeriodDomain_378594"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_TaxPeriodAxis_378593" xlink:to="loc_us-gaap_TaxPeriodDomain_378594" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EarliestTaxYearMember" xlink:label="loc_us-gaap_EarliestTaxYearMember_378595"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_TaxPeriodDomain_378594" xlink:to="loc_us-gaap_EarliestTaxYearMember_378595" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LatestTaxYearMember" xlink:label="loc_us-gaap_LatestTaxYearMember_378596"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_TaxPeriodDomain_378594" xlink:to="loc_us-gaap_LatestTaxYearMember_378596" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxAuthorityNameAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameAxis_378597"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeTaxContingencyTable_622" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameAxis_378597" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_378598"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_378597" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_378598" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InternalRevenueServiceIRSMember" xlink:label="loc_us-gaap_InternalRevenueServiceIRSMember_378600"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_378598" xlink:to="loc_us-gaap_InternalRevenueServiceIRSMember_378600" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxContingencyLineItems" xlink:label="loc_us-gaap_IncomeTaxContingencyLineItems_621"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeTaxContingencyTable_622" xlink:to="loc_us-gaap_IncomeTaxContingencyLineItems_621" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_626"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_621" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_626" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_627"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_621" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_627" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OpenTaxYear" xlink:label="loc_us-gaap_OpenTaxYear_630"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_621" xlink:to="loc_us-gaap_OpenTaxYear_630" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_378586"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_621" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_378586" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdjustmentToAdditionalPaidInCapitalIncomeTaxEffectFromShareBasedCompensationNet" xlink:label="loc_us-gaap_AdjustmentToAdditionalPaidInCapitalIncomeTaxEffectFromShareBasedCompensationNet_378591"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_621" xlink:to="loc_us-gaap_AdjustmentToAdditionalPaidInCapitalIncomeTaxEffectFromShareBasedCompensationNet_378591" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_1411863"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_621" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_1411863" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/SegmentInformationAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentReportingAbstract" xlink:label="loc_us-gaap_SegmentReportingAbstract_633"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_636"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingAbstract_633" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_636" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_634"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_636" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_634" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_635"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_634" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_635" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_637"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_636" xlink:to="loc_us-gaap_SegmentReportingInformationLineItems_637" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NumberOfReportableSegments" xlink:label="loc_us-gaap_NumberOfReportableSegments_640"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_637" xlink:to="loc_us-gaap_NumberOfReportableSegments_640" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/SegmentInformationDetailsOfSegmentInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentReportingAbstract" xlink:label="loc_us-gaap_SegmentReportingAbstract_644"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_649"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingAbstract_644" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_649" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_645"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_649" xlink:to="loc_srt_ConsolidationItemsAxis_645" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_646"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_ConsolidationItemsAxis_645" xlink:to="loc_srt_ConsolidationItemsDomain_646" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_651"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_ConsolidationItemsDomain_646" xlink:to="loc_us-gaap_OperatingSegmentsMember_651" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_647"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_649" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_647" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_648"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_647" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_648" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_652"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_648" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_652" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_653"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_648" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_653" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_650"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_649" xlink:to="loc_us-gaap_SegmentReportingInformationLineItems_650" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_654"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_650" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_654" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_655"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_650" xlink:to="loc_us-gaap_NetIncomeLoss_655" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_EBITDA" xlink:label="loc_trex_EBITDA_656"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_650" xlink:to="loc_trex_EBITDA_656" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_657"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_650" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_657" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_658"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_650" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_658" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_CapitalExpenditure" xlink:label="loc_trex_CapitalExpenditure_659"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_650" xlink:to="loc_trex_CapitalExpenditure_659" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_660"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_650" xlink:to="loc_us-gaap_Assets_660" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/SegmentInformationScheduleOfReconciliationOfNetIncomeToEbitdaDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentReportingAbstract" xlink:label="loc_us-gaap_SegmentReportingAbstract_662"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_667"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingAbstract_662" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_667" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_663"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_667" xlink:to="loc_srt_ConsolidationItemsAxis_663" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_664"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_ConsolidationItemsAxis_663" xlink:to="loc_srt_ConsolidationItemsDomain_664" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_669"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_ConsolidationItemsDomain_664" xlink:to="loc_us-gaap_OperatingSegmentsMember_669" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_665"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_667" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_665" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_666"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_665" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_666" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_670"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_666" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_670" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_671"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_666" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_671" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_668"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_667" xlink:to="loc_us-gaap_SegmentReportingInformationLineItems_668" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_672"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_668" xlink:to="loc_us-gaap_NetIncomeLoss_672" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_673"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_668" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_673" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_674"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_668" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_674" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_675"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_668" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_675" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_EBITDA" xlink:label="loc_trex_EBITDA_676"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_668" xlink:to="loc_trex_EBITDA_676" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/CommitmentsAndContingenciesAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommitmentsAndContingenciesDisclosureAbstract" xlink:label="loc_us-gaap_CommitmentsAndContingenciesDisclosureAbstract_678"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_ScheduleOfCommitmentsAndContingenciesTable" xlink:label="loc_trex_ScheduleOfCommitmentsAndContingenciesTable_688"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_CommitmentsAndContingenciesDisclosureAbstract_678" xlink:to="loc_trex_ScheduleOfCommitmentsAndContingenciesTable_688" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_681"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ScheduleOfCommitmentsAndContingenciesTable_688" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_681" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_682"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_681" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_682" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_561113"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ScheduleOfCommitmentsAndContingenciesTable_688" xlink:to="loc_srt_ProductOrServiceAxis_561113" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_561114"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_ProductOrServiceAxis_561113" xlink:to="loc_srt_ProductsAndServicesDomain_561114" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_CommercialRailingAndStagingSystemsMember" xlink:label="loc_trex_CommercialRailingAndStagingSystemsMember_561184"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_ProductsAndServicesDomain_561114" xlink:to="loc_trex_CommercialRailingAndStagingSystemsMember_561184" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GuaranteeObligationsByNatureAxis" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_679"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ScheduleOfCommitmentsAndContingenciesTable_688" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_679" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_680"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_679" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_680" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_CommercialUseMember" xlink:label="loc_trex_CommercialUseMember_692"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_680" xlink:to="loc_trex_CommercialUseMember_692" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ValuationAllowancesAndReservesTypeAxis" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_690"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ScheduleOfCommitmentsAndContingenciesTable_688" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_690" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_689"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_690" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_689" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_SurfaceFlakingWarrantyReserveMember" xlink:label="loc_trex_SurfaceFlakingWarrantyReserveMember_706"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_689" xlink:to="loc_trex_SurfaceFlakingWarrantyReserveMember_706" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_685"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ScheduleOfCommitmentsAndContingenciesTable_688" xlink:to="loc_srt_RangeAxis_685" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_686"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_RangeAxis_685" xlink:to="loc_srt_RangeMember_686" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_697"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_RangeMember_686" xlink:to="loc_srt_MinimumMember_697" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_698"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_RangeMember_686" xlink:to="loc_srt_MaximumMember_698" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ContingentConsiderationByTypeAxis" xlink:label="loc_us-gaap_ContingentConsiderationByTypeAxis_803848"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ScheduleOfCommitmentsAndContingenciesTable_688" xlink:to="loc_us-gaap_ContingentConsiderationByTypeAxis_803848" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ContingentConsiderationTypeDomain" xlink:label="loc_us-gaap_ContingentConsiderationTypeDomain_803849"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ContingentConsiderationByTypeAxis_803848" xlink:to="loc_us-gaap_ContingentConsiderationTypeDomain_803849" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_UnusualOrInfrequentItemAxis" xlink:label="loc_us-gaap_UnusualOrInfrequentItemAxis_899734"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ScheduleOfCommitmentsAndContingenciesTable_688" xlink:to="loc_us-gaap_UnusualOrInfrequentItemAxis_899734" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_UnusualOrInfrequentItemDomain" xlink:label="loc_us-gaap_UnusualOrInfrequentItemDomain_899735"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_UnusualOrInfrequentItemAxis_899734" xlink:to="loc_us-gaap_UnusualOrInfrequentItemDomain_899735" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GainContingenciesByNatureAxis" xlink:label="loc_us-gaap_GainContingenciesByNatureAxis_1135585"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ScheduleOfCommitmentsAndContingenciesTable_688" xlink:to="loc_us-gaap_GainContingenciesByNatureAxis_1135585" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GainContingencyNatureDomain" xlink:label="loc_us-gaap_GainContingencyNatureDomain_1135586"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_GainContingenciesByNatureAxis_1135585" xlink:to="loc_us-gaap_GainContingencyNatureDomain_1135586" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/label"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_ScheduleOfCommitmentsAndContingenciesLineItems" xlink:label="loc_trex_ScheduleOfCommitmentsAndContingenciesLineItems_687"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ScheduleOfCommitmentsAndContingenciesTable_688" xlink:to="loc_trex_ScheduleOfCommitmentsAndContingenciesLineItems_687" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_WarrantyPeriod" xlink:label="loc_trex_WarrantyPeriod_703"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ScheduleOfCommitmentsAndContingenciesLineItems_687" xlink:to="loc_trex_WarrantyPeriod_703" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_PercentSensitivityChangeInExpectedSurfaceFlakingClaims" xlink:label="loc_trex_PercentSensitivityChangeInExpectedSurfaceFlakingClaims_704"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ScheduleOfCommitmentsAndContingenciesLineItems_687" xlink:to="loc_trex_PercentSensitivityChangeInExpectedSurfaceFlakingClaims_704" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_SensitivityChangeInSurfaceFlakingWarrantyReserve" xlink:label="loc_trex_SensitivityChangeInSurfaceFlakingWarrantyReserve_705"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_trex_ScheduleOfCommitmentsAndContingenciesLineItems_687" xlink:to="loc_trex_SensitivityChangeInSurfaceFlakingWarrantyReserve_705" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
</presentationLink>
<presentationLink xlink:type="extended" xlink:role="http://www.trex.com/role/CommitmentsAndContingenciesSummaryOfReconciliationOfCompanysResidentialProductWarrantyReserveDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommitmentsAndContingenciesDisclosureAbstract" xlink:label="loc_us-gaap_CommitmentsAndContingenciesDisclosureAbstract_708"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProductWarrantyLiabilityTable" xlink:label="loc_us-gaap_ProductWarrantyLiabilityTable_712"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_CommitmentsAndContingenciesDisclosureAbstract_708" xlink:to="loc_us-gaap_ProductWarrantyLiabilityTable_712" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ContingentConsiderationByTypeAxis" xlink:label="loc_us-gaap_ContingentConsiderationByTypeAxis_709"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ProductWarrantyLiabilityTable_712" xlink:to="loc_us-gaap_ContingentConsiderationByTypeAxis_709" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ContingentConsiderationTypeDomain" xlink:label="loc_us-gaap_ContingentConsiderationTypeDomain_710"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ContingentConsiderationByTypeAxis_709" xlink:to="loc_us-gaap_ContingentConsiderationTypeDomain_710" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_SurfaceFlakingMember" xlink:label="loc_trex_SurfaceFlakingMember_715"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ContingentConsiderationTypeDomain_710" xlink:to="loc_trex_SurfaceFlakingMember_715" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_OtherResidentialMember" xlink:label="loc_trex_OtherResidentialMember_716"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ContingentConsiderationTypeDomain_710" xlink:to="loc_trex_OtherResidentialMember_716" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ValuationAllowancesAndReservesTypeAxis" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_714"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ProductWarrantyLiabilityTable_712" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_714" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_713"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_714" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_713" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="trex-20220331.xsd#trex_SurfaceFlakingWarrantyReserveMember" xlink:label="loc_trex_SurfaceFlakingWarrantyReserveMember_721"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_713" xlink:to="loc_trex_SurfaceFlakingWarrantyReserveMember_721" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProductWarrantyLiabilityLineItems" xlink:label="loc_us-gaap_ProductWarrantyLiabilityLineItems_711"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ProductWarrantyLiabilityTable_712" xlink:to="loc_us-gaap_ProductWarrantyLiabilityLineItems_711" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StandardProductWarrantyAccrual" xlink:label="loc_us-gaap_StandardProductWarrantyAccrual_717"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ProductWarrantyLiabilityLineItems_711" xlink:to="loc_us-gaap_StandardProductWarrantyAccrual_717" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StandardProductWarrantyAccrualPreexistingIncreaseDecrease" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualPreexistingIncreaseDecrease_718"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ProductWarrantyLiabilityLineItems_711" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualPreexistingIncreaseDecrease_718" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StandardProductWarrantyAccrualPayments" xlink:label="loc_us-gaap_StandardProductWarrantyAccrualPayments_719"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ProductWarrantyLiabilityLineItems_711" xlink:to="loc_us-gaap_StandardProductWarrantyAccrualPayments_719" use="optional" order="12" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StandardProductWarrantyAccrual" xlink:label="loc_us-gaap_StandardProductWarrantyAccrual_720"/>
<presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_us-gaap_ProductWarrantyLiabilityLineItems_711" xlink:to="loc_us-gaap_StandardProductWarrantyAccrual_720" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel"/>
</presentationLink>
</linkbase>


8 Subsequent Filings that Reference this Filing

  As Of               Filer                 Filing    For·On·As Docs:Size             Issuer                      Filing Agent

 5/09/24  Trex Co. Inc.                     10-Q        3/31/24   66:3.9M                                   Donnelley … Solutions/FA
 2/26/24  Trex Co. Inc.                     10-K       12/31/23   95:8.6M                                   Donnelley … Solutions/FA
10/30/23  Trex Co. Inc.                     10-Q        9/30/23   71:5.3M                                   Donnelley … Solutions/FA
 7/31/23  Trex Co. Inc.                     10-Q        6/30/23   78:5.8M                                   Donnelley … Solutions/FA
 5/08/23  Trex Co. Inc.                     10-Q        3/31/23   71:4.6M                                   Donnelley … Solutions/FA
 2/27/23  Trex Co. Inc.                     10-K       12/31/22   91:8.9M                                   Donnelley … Solutions/FA
10/31/22  Trex Co. Inc.                     10-Q        9/30/22   73:5.5M                                   Donnelley … Solutions/FA
 8/08/22  Trex Co. Inc.                     10-Q        6/30/22   73:5.2M                                   Donnelley … Solutions/FA


2 Previous Filings that this Filing References

  As Of               Filer                 Filing    For·On·As Docs:Size             Issuer                      Filing Agent

 8/02/21  Trex Co. Inc.                     10-Q        6/30/21   75:5.2M                                   Donnelley … Solutions/FA
 5/01/19  Trex Co. Inc.                     8-K:5,9     5/01/19    3:108K                                   Donnelley … Solutions/FA
Top
Filing Submission 0001193125-22-145117   –   Alternative Formats (Word / Rich Text, HTML, Plain Text, et al.)

Copyright © 2024 Fran Finnegan & Company LLC – All Rights Reserved.
AboutPrivacyRedactionsHelp — Wed., May 15, 12:14:55.1pm ET