<SEC-DOCUMENT>0001127602-17-017840.txt : 20170512
<SEC-HEADER>0001127602-17-017840.hdr.sgml : 20170512
<ACCEPTANCE-DATETIME>20170512091013
ACCESSION NUMBER:		0001127602-17-017840
CONFORMED SUBMISSION TYPE:	4
PUBLIC DOCUMENT COUNT:		1
CONFORMED PERIOD OF REPORT:	20170510
FILED AS OF DATE:		20170512
DATE AS OF CHANGE:		20170512

ISSUER:		

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

	BUSINESS ADDRESS:	
		STREET 1:		160 EXETER DRIVE
		CITY:			WINCHESTER
		STATE:			VA
		ZIP:			22603-8605
		BUSINESS PHONE:		5405426300

	MAIL ADDRESS:	
		STREET 1:		160 EXETER DRIVE
		CITY:			WINCHESTER
		STATE:			VA
		ZIP:			22603-8605

REPORTING-OWNER:	

	OWNER DATA:	
		COMPANY CONFORMED NAME:			Gupp William R.
		CENTRAL INDEX KEY:			0001428106

	FILING VALUES:
		FORM TYPE:		4
		SEC ACT:		1934 Act
		SEC FILE NUMBER:	001-14649
		FILM NUMBER:		17836581

	MAIL ADDRESS:	
		STREET 1:		C/O TREX COMPANY
		STREET 2:		160 EXETER DRIVE
		CITY:			WINCHESTER
		STATE:			VA
		ZIP:			22603
</SEC-HEADER>
<DOCUMENT>
<TYPE>4
<SEQUENCE>1
<FILENAME>form4.xml
<DESCRIPTION>PRIMARY DOCUMENT
<TEXT>
<XML>
<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0306</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2017-05-10</periodOfReport>

    <issuer>
        <issuerCik>0001069878</issuerCik>
        <issuerName>TREX CO INC</issuerName>
        <issuerTradingSymbol>TREX</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001428106</rptOwnerCik>
            <rptOwnerName>Gupp William R.</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O TREX COMPANY, INC.</rptOwnerStreet1>
            <rptOwnerStreet2>160 EXETER DRIVE</rptOwnerStreet2>
            <rptOwnerCity>WINCHESTER</rptOwnerCity>
            <rptOwnerState>VA</rptOwnerState>
            <rptOwnerZipCode>22603-8605</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isOfficer>1</isOfficer>
            <officerTitle>Sr VP,Gen. Counsel &amp; Secretary</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2017-05-10</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F1"/>
            </transactionCoding>
            <transactionTimeliness></transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>3500</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>64.7843</value>
                    <footnoteId id="F2"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>41811</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 trading plan adopted by the reporting person on August 17, 2016.</footnote>
        <footnote id="F2">The price reported in Column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $64.48 to $65.69, inclusive.  The reporting person undertakes to provide Trex Company Inc., any security holder of Trex Company, Inc. , or the staff of the Securities and Exchange Commission, upon request, full information regarding the number of shares sold at each separate price within the ranges set forth in Footnote (2) to this Form 4.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ William R. Gupp</signatureName>
        <signatureDate>2017-05-12</signatureDate>
    </ownerSignature>
</ownershipDocument>
</XML>
</TEXT>
</DOCUMENT>
</SEC-DOCUMENT>
