<SEC-DOCUMENT>0000080255-25-000350.txt : 20250514
<SEC-HEADER>0000080255-25-000350.hdr.sgml : 20250514
<ACCEPTANCE-DATETIME>20250514104526
ACCESSION NUMBER:		0000080255-25-000350
CONFORMED SUBMISSION TYPE:	SCHEDULE 13G
PUBLIC DOCUMENT COUNT:		1
FILED AS OF DATE:		20250514
DATE AS OF CHANGE:		20250514

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:		25943435

	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:			PRICE T ROWE ASSOCIATES INC /MD/
		CENTRAL INDEX KEY:			0000080255
		STANDARD INDUSTRIAL CLASSIFICATION:	SECURITY & COMMODITY BROKERS, DEALERS, EXCHANGES & SERVICES [6200]
		ORGANIZATION NAME:           	09 Crypto Assets
		EIN:				520556948
		STATE OF INCORPORATION:			MD
		FISCAL YEAR END:			1231

	FILING VALUES:
		FORM TYPE:		SCHEDULE 13G

	BUSINESS ADDRESS:	
		STREET 1:		100 EAST PRATT ST
		CITY:			BALTIMORE
		STATE:			MD
		ZIP:			21202
		BUSINESS PHONE:		(410)345-2000

	MAIL ADDRESS:	
		STREET 1:		P.O. BOX 89000
		CITY:			BALTIMORE
		STATE:			MD
		ZIP:			21289
</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:ns2="http://www.sec.gov/edgar/common">
    <headerData>
        <submissionType>SCHEDULE 13G</submissionType>
        <filerInfo>
            <filer>
                <filerCredentials>
                    <cik>0000080255</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 COMPANY INC</issuerName>
                <issuerCusip>89531P105</issuerCusip>
                <issuerPrincipalExecutiveOfficeAddress>
                    <ns2:street1>2500 TREX WAY</ns2:street1>
                    <ns2:city>WINCHESTER</ns2:city>
                    <ns2:stateOrCountry>VA</ns2:stateOrCountry>
                    <ns2:zipCode>22601</ns2:zipCode>
                </issuerPrincipalExecutiveOfficeAddress>
            </issuerInfo>
            <designateRulesPursuantThisScheduleFiled>
                <designateRulePursuantThisScheduleFiled>Rule 13d-1(b)</designateRulePursuantThisScheduleFiled>
            </designateRulesPursuantThisScheduleFiled>
        </coverPageHeader>
        <coverPageHeaderReportingPersonDetails>

            <reportingPersonName>T. Rowe Price Associates, Inc.</reportingPersonName>
            <citizenshipOrOrganization>MD</citizenshipOrOrganization>
            <reportingPersonBeneficiallyOwnedNumberOfShares>
                <soleVotingPower>6973033</soleVotingPower>
                <sharedVotingPower>0</sharedVotingPower>
                <soleDispositivePower>7297863</soleDispositivePower>
                <sharedDispositivePower>0</sharedDispositivePower>
            </reportingPersonBeneficiallyOwnedNumberOfShares>
            <reportingPersonBeneficiallyOwnedAggregateNumberOfShares>7301254</reportingPersonBeneficiallyOwnedAggregateNumberOfShares>
            <aggregateAmountExcludesCertainSharesFlag>N</aggregateAmountExcludesCertainSharesFlag>
            <classPercent>6.8</classPercent>
            <typeOfReportingPerson>IA</typeOfReportingPerson>
        </coverPageHeaderReportingPersonDetails>
        <items>
            <item1>
                <issuerName>TREX COMPANY INC</issuerName>
                <issuerPrincipalExecutiveOfficeAddress>2500 TREX WAY, WINCHESTER, VA, 22601</issuerPrincipalExecutiveOfficeAddress>
            </item1>
            <item2>
                <filingPersonName>T. Rowe Price Associates, Inc.</filingPersonName>
                <principalBusinessOfficeOrResidenceAddress>1307 Point Street, Baltimore, MD 21231</principalBusinessOfficeOrResidenceAddress>
                <citizenship>Maryland</citizenship>
            </item2>
            <item3>
                <notApplicableFlag>N</notApplicableFlag>
                <typeOfPersonFiling>IA</typeOfPersonFiling>
            </item3>
            <item4>
                <amountBeneficiallyOwned>7301254</amountBeneficiallyOwned>
                <classPercent>6.8</classPercent>
                <numberOfSharesPersonHas>
                    <solePowerOrDirectToVote>6973033</solePowerOrDirectToVote>
                    <sharedPowerOrDirectToVote>0</sharedPowerOrDirectToVote>
                    <solePowerOrDirectToDispose>7297863</solePowerOrDirectToDispose>
                    <sharedPowerOrDirectToDispose>0</sharedPowerOrDirectToDispose>
                </numberOfSharesPersonHas>
            </item4>
            <item5>
                <notApplicableFlag>Y</notApplicableFlag>
            </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 ?? 240.14a-11. T. Rowe Price Associates, Inc. hereby declares and affirms that the filing of Schedule 13G shall not be construed as an admission that Price Associates is the beneficial owner of the securities referred to, which beneficial ownership is expressly denied.</certifications>
            </item10>
        </items>
        <signatureInformation>
            <reportingPersonName>T. Rowe Price Associates, Inc.</reportingPersonName>
            <signatureDetails>
                <signature>Ellen York</signature>
                <title>Vice President</title>
                <date>05/14/2025</date>
            </signatureDetails>
        </signatureInformation>
    </formData>
</edgarSubmission>
</XML>
</TEXT>
</DOCUMENT>
</SEC-DOCUMENT>
