<SEC-DOCUMENT>0000814133-25-000043.txt : 20250512
<SEC-HEADER>0000814133-25-000043.hdr.sgml : 20250512
<ACCEPTANCE-DATETIME>20250512171410
ACCESSION NUMBER:		0000814133-25-000043
CONFORMED SUBMISSION TYPE:	SCHEDULE 13G
PUBLIC DOCUMENT COUNT:		1
FILED AS OF DATE:		20250512
DATE AS OF CHANGE:		20250512

SUBJECT COMPANY:	

	COMPANY DATA:	
		COMPANY CONFORMED NAME:			TREX CO INC
		CENTRAL INDEX KEY:			0001069878
		STANDARD INDUSTRIAL CLASSIFICATION:	LUMBER & WOOD PRODUCTS (NO FURNITURE) [2400]
		ORGANIZATION NAME:           	04 Manufacturing
		EIN:				541910453
		STATE OF INCORPORATION:			DE
		FISCAL YEAR END:			1231

	FILING VALUES:
		FORM TYPE:		SCHEDULE 13G
		SEC ACT:		1934 Act
		SEC FILE NUMBER:	005-56187
		FILM NUMBER:		25935997

	BUSINESS ADDRESS:	
		STREET 1:		2500 TREX WAY
		CITY:			WINCHESTER
		STATE:			VA
		ZIP:			22601
		BUSINESS PHONE:		5405426300

	MAIL ADDRESS:	
		STREET 1:		2500 TREX WAY
		CITY:			WINCHESTER
		STATE:			VA
		ZIP:			22601

FILED BY:		

	COMPANY DATA:	
		COMPANY CONFORMED NAME:			WASATCH ADVISORS LP
		CENTRAL INDEX KEY:			0000814133
		ORGANIZATION NAME:           	
		EIN:				870319391
		STATE OF INCORPORATION:			DE
		FISCAL YEAR END:			1231

	FILING VALUES:
		FORM TYPE:		SCHEDULE 13G

	BUSINESS ADDRESS:	
		STREET 1:		505 WAKARA WAY
		STREET 2:		3RD FLOOR
		CITY:			SALT LAKE CITY
		STATE:			UT
		ZIP:			84108
		BUSINESS PHONE:		8015330777

	MAIL ADDRESS:	
		STREET 1:		505 WAKARA WAY
		STREET 2:		3RD FLOOR
		CITY:			SALT LAKE CITY
		STATE:			UT
		ZIP:			84108

	FORMER COMPANY:	
		FORMER CONFORMED NAME:	WASATCH ADVISORS INC
		DATE OF NAME CHANGE:	19990611
</SEC-HEADER>
<DOCUMENT>
<TYPE>SCHEDULE 13G
<SEQUENCE>1
<FILENAME>primary_doc.xml
<TEXT>
<XML>
<?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/schedule13g" xmlns:com="http://www.sec.gov/edgar/common">
  <headerData>
    <submissionType>SCHEDULE 13G</submissionType>
    <filerInfo>
      <filer>
        <filerCredentials>
          <cik>0000814133</cik>
          <ccc>XXXXXXXX</ccc>
        </filerCredentials>
      </filer>
      <liveTestFlag>LIVE</liveTestFlag>


    </filerInfo>
  </headerData>
  <formData>
    <coverPageHeader>
      <securitiesClassTitle>Common Stock</securitiesClassTitle>
      <eventDateRequiresFilingThisStatement>03/31/2025</eventDateRequiresFilingThisStatement>
      <issuerInfo>
        <issuerCik>0001069878</issuerCik>
        <issuerName>TREX CO INC</issuerName>
        <issuerCusip>89531P105</issuerCusip>
        <issuerPrincipalExecutiveOfficeAddress>
          <com:street1>2500 TREX WAY</com:street1>
          <com:city>WINCHESTER</com:city>
          <com:stateOrCountry>VA</com:stateOrCountry>
          <com:zipCode>22601</com:zipCode>
        </issuerPrincipalExecutiveOfficeAddress>
      </issuerInfo>
      <designateRulesPursuantThisScheduleFiled>
        <designateRulePursuantThisScheduleFiled>Rule 13d-1(b)</designateRulePursuantThisScheduleFiled>
      </designateRulesPursuantThisScheduleFiled>
    </coverPageHeader>
    <coverPageHeaderReportingPersonDetails>

      <reportingPersonName>WASATCH ADVISORS LP</reportingPersonName>
      <memberGroup>a</memberGroup>
      <citizenshipOrOrganization>DE</citizenshipOrOrganization>
      <reportingPersonBeneficiallyOwnedNumberOfShares>
        <soleVotingPower>3907628.00</soleVotingPower>
        <sharedVotingPower>0.00</sharedVotingPower>
        <soleDispositivePower>5589376.00</soleDispositivePower>
        <sharedDispositivePower>0.00</sharedDispositivePower>
      </reportingPersonBeneficiallyOwnedNumberOfShares>
      <reportingPersonBeneficiallyOwnedAggregateNumberOfShares>5589376.00</reportingPersonBeneficiallyOwnedAggregateNumberOfShares>
      <classPercent>5.2</classPercent>
      <typeOfReportingPerson>IA</typeOfReportingPerson>
    </coverPageHeaderReportingPersonDetails>
    <items>
      <item1>
        <issuerName>TREX CO INC</issuerName>
        <issuerPrincipalExecutiveOfficeAddress>2500 TREX WAY, WINCHESTER, VIRGINIA, 22601</issuerPrincipalExecutiveOfficeAddress>
      </item1>
      <item2>
        <filingPersonName>Wasatch Advisors LP</filingPersonName>
        <principalBusinessOfficeOrResidenceAddress>505 Wakara Way, 3rd Floor, Salt Lake City, 84108, United States</principalBusinessOfficeOrResidenceAddress>
        <citizenship>DELAWARE</citizenship>
      </item2>
      <item3>
        <notApplicableFlag>N</notApplicableFlag>
        <typeOfPersonFiling>IA</typeOfPersonFiling>
      </item3>
      <item4>
        <amountBeneficiallyOwned>5,589,376</amountBeneficiallyOwned>
        <classPercent>5.2</classPercent>
        <numberOfSharesPersonHas>
          <solePowerOrDirectToVote>3,907,628</solePowerOrDirectToVote>
          <sharedPowerOrDirectToVote>0</sharedPowerOrDirectToVote>
          <solePowerOrDirectToDispose>5,589,376</solePowerOrDirectToDispose>
          <sharedPowerOrDirectToDispose>0</sharedPowerOrDirectToDispose>
        </numberOfSharesPersonHas>
      </item4>
      <item5>
        <notApplicableFlag>Y</notApplicableFlag>
        <classOwnership5PercentOrLess>N</classOwnership5PercentOrLess>
      </item5>
      <item6>
        <notApplicableFlag>Y</notApplicableFlag>
      </item6>
      <item7>
        <notApplicableFlag>Y</notApplicableFlag>
      </item7>
      <item8>
        <notApplicableFlag>Y</notApplicableFlag>
      </item8>
      <item9>
        <notApplicableFlag>Y</notApplicableFlag>
      </item9>
      <item10>
        <notApplicableFlag>N</notApplicableFlag>
        <certifications>By signing below I certify that, to the best of my knowledge and belief, the securities referred to above were acquired and are held in the ordinary course of business and were not acquired and are not held for the purpose of or with the effect of changing or influencing the control of the issuer of the securities and were not acquired and are not held in connection with or as a participant in any transaction having that purpose or effect, other than activities solely in connection with a nomination under &amp;#167; 240.14a-11.

</certifications>
      </item10>
    </items>
    <signatureInformation>
      <reportingPersonName>WASATCH ADVISORS LP</reportingPersonName>
      <signatureDetails>
        <signature>Mikes Yeates</signature>
        <title>CEO</title>
        <date>05/12/2025</date>
      </signatureDetails>
    </signatureInformation>
  </formData>
</edgarSubmission>
</XML>
</TEXT>
</DOCUMENT>
</SEC-DOCUMENT>
