| | | | | | | | | | | | | | | | | | | | | |
<?xml version="1.0" encoding="windows-1252"?> |
<xbrl xmlns="http://www.xbrl.org/2003/instance" xmlns:dei="http://xbrl.sec.gov/dei/2019-01-31" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| <link:schemaRef xlink:href="trex-20210222.xsd" xlink:type="simple"/> |
| <context id="duration_2021-02-22_to_2021-02-22"> |
| | <entity> |
| | | <identifier scheme="http://www.sec.gov/CIK"> 0001069878 </identifier> |
| | | </entity> |
| | <period> |
| | | <startDate> 2021-02-22 </startDate> |
| | | <endDate> 2021-02-22 </endDate> |
| | | </period> |
| | </context> |
| <dei:EntityRegistrantName contextRef="duration_2021-02-22_to_2021-02-22" id="Hidden_dei_EntityRegistrantName"> TREX CO INC </dei:EntityRegistrantName> |
| <dei:AmendmentFlag contextRef="duration_2021-02-22_to_2021-02-22"> true </dei:AmendmentFlag> |
| <dei:EntityCentralIndexKey contextRef="duration_2021-02-22_to_2021-02-22" id="Hidden_dei_EntityCentralIndexKey"> 0001069878 </dei:EntityCentralIndexKey> |
| <dei:DocumentType contextRef="duration_2021-02-22_to_2021-02-22"> 8-K/A </dei:DocumentType> |
| <dei:DocumentPeriodEndDate contextRef="duration_2021-02-22_to_2021-02-22"> 2021-02-22 </dei:DocumentPeriodEndDate> |
| <dei:EntityIncorporationStateCountryCode contextRef="duration_2021-02-22_to_2021-02-22"> DE </dei:EntityIncorporationStateCountryCode> |
| <dei:EntityFileNumber contextRef="duration_2021-02-22_to_2021-02-22"> 001-14649 </dei:EntityFileNumber> |
| <dei:EntityTaxIdentificationNumber contextRef="duration_2021-02-22_to_2021-02-22"> 54-1910453 </dei:EntityTaxIdentificationNumber> |
| <dei:EntityAddressAddressLine1 contextRef="duration_2021-02-22_to_2021-02-22"> 160 Exeter Drive </dei:EntityAddressAddressLine1> |
| <dei:EntityAddressCityOrTown contextRef="duration_2021-02-22_to_2021-02-22"> Winchester </dei:EntityAddressCityOrTown> |
| <dei:EntityAddressStateOrProvince contextRef="duration_2021-02-22_to_2021-02-22"> VA </dei:EntityAddressStateOrProvince> |
| <dei:EntityAddressPostalZipCode contextRef="duration_2021-02-22_to_2021-02-22"> 22603-8605 </dei:EntityAddressPostalZipCode> |
| <dei:CityAreaCode contextRef="duration_2021-02-22_to_2021-02-22"> (540) </dei:CityAreaCode> |
| <dei:LocalPhoneNumber contextRef="duration_2021-02-22_to_2021-02-22"> 542-6300 </dei:LocalPhoneNumber> |
| <dei:WrittenCommunications contextRef="duration_2021-02-22_to_2021-02-22"> false </dei:WrittenCommunications> |
| <dei:SolicitingMaterial contextRef="duration_2021-02-22_to_2021-02-22"> false </dei:SolicitingMaterial> |
| <dei:PreCommencementTenderOffer contextRef="duration_2021-02-22_to_2021-02-22"> false </dei:PreCommencementTenderOffer> |
| <dei:PreCommencementIssuerTenderOffer contextRef="duration_2021-02-22_to_2021-02-22"> false </dei:PreCommencementIssuerTenderOffer> |
| <dei:Security12bTitle contextRef="duration_2021-02-22_to_2021-02-22"> Common stock </dei:Security12bTitle> |
| <dei:TradingSymbol contextRef="duration_2021-02-22_to_2021-02-22"> TREX </dei:TradingSymbol> |
| <dei:SecurityExchangeName contextRef="duration_2021-02-22_to_2021-02-22"> NYSE </dei:SecurityExchangeName> |
| <dei:EntityEmergingGrowthCompany contextRef="duration_2021-02-22_to_2021-02-22"> false </dei:EntityEmergingGrowthCompany> |
| <dei:AmendmentDescription contextRef="duration_2021-02-22_to_2021-02-22"> On February 22, 2021, Trex Company, Inc. (Company) furnished a Current Report on Form 8-K (Original Form 8-K) with the U.S. Securities and Exchange Commission to report that on February 22, 2021, the Company issued a press release announcing financial results for the year ended December 31, 2020. In addition to issuing a press release, the Company held a conference call on the same day to discuss financial and operating results. This Amendment No. 1 to the Original Form 8-K is furnished to include a transcript of such conference call. </dei:AmendmentDescription> |
| </xbrl> |