{"transactions":[{"id":1906744,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-05-03T16:44:51.000Z","date":"2023-05-02","kind":"tax_withholding","planned":false,"acquired":false,"shares":9861,"price":54.56,"value":538016.16,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"9861 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted stock units."}],"balance_after":106974,"source":{"system":"sec-edgar","filing":"0001127602-23-014192","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223014192/form4.xml","form_type":"4"}},{"id":1975614,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-03-03T17:07:09.000Z","date":"2023-03-01","kind":"other","acquired":false,"shares":1279,"price":50.4,"value":64461.6,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F3","text":"Represents the target number of performance-based restricted units which did not vest due to the performance condition not being satisfied."},{"field":"price","element":"transactionPricePerShare","label":"F4","text":"This amendment is filed to reflect that the share price on March 1, 2023 was $50.40. The original filing erroneously reflected a share price of $40.50."}],"balance_after":116835,"source":{"system":"sec-edgar","filing":"0001127602-23-008597","document":"form4a.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223008597/form4a.xml","form_type":"4/A","original_submission_date":"2023-03-03"}},{"id":1975613,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-03-03T17:07:09.000Z","date":"2023-03-01","kind":"tax_withholding","acquired":false,"shares":405,"price":50.4,"value":20412.0,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"405 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted stock units."},{"field":"price","element":"transactionPricePerShare","label":"F2","text":"This amendment is filed to reflect that the share price on March 1, 2023 was $50.40. The original filing erroneously reflected a share price of $40.50."}],"balance_after":118114,"source":{"system":"sec-edgar","filing":"0001127602-23-008597","document":"form4a.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223008597/form4a.xml","form_type":"4/A","original_submission_date":"2023-03-03"}},{"id":1975602,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-03-03T15:29:00.000Z","date":"2023-03-01","kind":"other","acquired":false,"shares":1279,"price":40.5,"value":51799.5,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F2","text":"Represents the target number of performance-based restricted units which did not vest due to the performance condition not being satisfied."}],"balance_after":116835,"source":{"system":"sec-edgar","filing":"0001127602-23-008551","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223008551/form4.xml","form_type":"4"}},{"id":1975601,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-03-03T15:29:00.000Z","date":"2023-03-01","kind":"tax_withholding","acquired":false,"shares":405,"price":40.5,"value":16402.5,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"405 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted stock units."}],"balance_after":118114,"source":{"system":"sec-edgar","filing":"0001127602-23-008551","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223008551/form4.xml","form_type":"4"}},{"id":2004549,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-02-21T15:39:54.000Z","date":"2023-02-19","kind":"tax_withholding","acquired":false,"shares":560,"price":53.79,"value":30122.4,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F2","text":"560 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted stock units."}],"balance_after":118519,"source":{"system":"sec-edgar","filing":"0001127602-23-006129","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223006129/form4.xml","form_type":"4"}},{"id":2004548,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-02-21T15:39:54.000Z","date":"2023-02-17","kind":"tax_withholding","acquired":false,"shares":285,"price":53.79,"value":15330.15,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"285 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted stock units."}],"balance_after":119079,"source":{"system":"sec-edgar","filing":"0001127602-23-006129","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223006129/form4.xml","form_type":"4"}},{"id":2011907,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Stock Appreciation Right","published_at":"2023-02-16T15:44:04.000Z","date":"2023-02-14","kind":"grant","acquired":true,"shares":3840,"price":56.8,"value":218112.0,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F5","text":"The stock appreciation right becomes exercisable in three equal installments occurring March 1,2024, March 1, 2025 and March 1, 2026."}],"balance_after":3840,"derivative":{"exercise_price":56.8,"exercise_date":"2024-03-01","expiration_date":"2033-02-14","underlying":"Common Stock","underlying_shares":3840},"source":{"system":"sec-edgar","filing":"0001127602-23-005460","document":"form4.xml","document_sequence":1,"table":"derivative","row_type":"transaction","position":5,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223005460/form4.xml","form_type":"4"}},{"id":2011906,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-02-16T15:44:04.000Z","date":"2023-02-14","kind":"tax_withholding","acquired":false,"shares":1960,"price":56.8,"value":111328.0,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F4","text":"1,960 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted stock units."}],"balance_after":119364,"source":{"system":"sec-edgar","filing":"0001127602-23-005460","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":4,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223005460/form4.xml","form_type":"4"}},{"id":2011905,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-02-16T15:44:04.000Z","date":"2023-02-14","kind":"grant","acquired":true,"shares":1673,"price":56.8,"value":95026.4,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F3","text":"Represents net share difference between target performance-based shares and actual vested shares, based upon actual performance for the Company."}],"balance_after":121324,"source":{"system":"sec-edgar","filing":"0001127602-23-005460","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":3,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223005460/form4.xml","form_type":"4"}},{"id":2011904,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-02-16T15:44:04.000Z","date":"2023-02-14","kind":"grant","acquired":true,"shares":6127,"price":56.8,"value":348013.6,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F2","text":"This restricted stock unit award is performance-based, and vests over a three-year period in three equal installments occurring March 1,2024, March 1, 2025 and March 1, 2026. The number of shares set forth above is the target number of shares. The number of shares that will actually vest each year will be based upon performance against certain financial goals for the Company, and will range from 0% to 200% of the target number of shares."}],"balance_after":119651,"source":{"system":"sec-edgar","filing":"0001127602-23-005460","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223005460/form4.xml","form_type":"4"}},{"id":2011903,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-02-16T15:44:04.000Z","date":"2023-02-14","kind":"grant","acquired":true,"shares":4289,"price":56.8,"value":243615.2,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"This restricted stock unit vests over a three-year period in three equal annual installments occurring March 1,2024, March 1, 2025 and March 1, 2026."}],"balance_after":113524,"source":{"system":"sec-edgar","filing":"0001127602-23-005460","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223005460/form4.xml","form_type":"4"}},{"id":2023347,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Stock Appreciation Right","published_at":"2023-02-10T18:27:34.000Z","date":"2023-02-08","kind":"exercise","acquired":false,"shares":2213,"price":0,"value":0.0,"ownership":{"direct":true},"balance_after":0,"derivative":{"exercise_price":5.49,"exercise_date":"2016-02-12","expiration_date":"2023-02-12","underlying":"Common Stock","underlying_shares":2213},"source":{"system":"sec-edgar","filing":"0001127602-23-004328","document":"form4.xml","document_sequence":1,"table":"derivative","row_type":"transaction","position":4,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223004328/form4.xml","form_type":"4"}},{"id":2023346,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-02-10T18:27:34.000Z","date":"2023-02-08","kind":"tax_withholding","acquired":false,"shares":899,"price":55.12,"value":49552.88,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"899 shares are being surrendered as allowed by the Company's 2005 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted shares."}],"balance_after":109235,"source":{"system":"sec-edgar","filing":"0001127602-23-004328","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":3,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223004328/form4.xml","form_type":"4"}},{"id":2023345,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-02-10T18:27:34.000Z","date":"2023-02-08","kind":"disposition_to_issuer","acquired":false,"shares":220,"price":55.12,"value":12126.4,"ownership":{"direct":true},"balance_after":110134,"source":{"system":"sec-edgar","filing":"0001127602-23-004328","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223004328/form4.xml","form_type":"4"}},{"id":2023344,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-02-10T18:27:34.000Z","date":"2023-02-08","kind":"exercise","acquired":true,"shares":2213,"price":5.49,"value":12149.37,"ownership":{"direct":true},"balance_after":110354,"source":{"system":"sec-edgar","filing":"0001127602-23-004328","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223004328/form4.xml","form_type":"4"}},{"id":2036928,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Stock Appreciation Right","published_at":"2023-02-02T19:54:39.000Z","date":"2023-01-31","kind":"exercise","acquired":false,"shares":2214,"price":0,"value":0.0,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"Stock Appreciation Rights (SARs) are being exercised in accordance with the 2005 Stock Incentive Plan."}],"balance_after":2213,"derivative":{"exercise_price":5.49,"exercise_date":"2016-02-12","expiration_date":"2023-02-12","underlying":"Common Stock","underlying_shares":2214},"source":{"system":"sec-edgar","filing":"0001127602-23-003065","document":"form4.xml","document_sequence":1,"table":"derivative","row_type":"transaction","position":4,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223003065/form4.xml","form_type":"4"}},{"id":2036927,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-02-02T19:54:39.000Z","date":"2023-01-31","kind":"tax_withholding","acquired":false,"shares":934,"price":52.72,"value":49240.48,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F2","text":"934 shares are being surrendered as allowed by the Company's 2005 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted shares."}],"balance_after":108141,"source":{"system":"sec-edgar","filing":"0001127602-23-003065","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":3,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223003065/form4.xml","form_type":"4"}},{"id":2036926,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-02-02T19:54:39.000Z","date":"2023-01-31","kind":"disposition_to_issuer","acquired":false,"shares":231,"price":52.72,"value":12178.32,"ownership":{"direct":true},"balance_after":109075,"source":{"system":"sec-edgar","filing":"0001127602-23-003065","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223003065/form4.xml","form_type":"4"}},{"id":2036925,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-02-02T19:54:39.000Z","date":"2023-01-31","kind":"exercise","acquired":true,"shares":2214,"price":5.49,"value":12154.86,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"Stock Appreciation Rights (SARs) are being exercised in accordance with the 2005 Stock Incentive Plan."}],"balance_after":109306,"source":{"system":"sec-edgar","filing":"0001127602-23-003065","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223003065/form4.xml","form_type":"4"}},{"id":2049968,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Stock Appreciation Right","published_at":"2023-01-20T16:38:08.000Z","date":"2023-01-18","kind":"exercise","acquired":false,"shares":2213,"price":0,"value":0.0,"ownership":{"direct":true},"balance_after":4427,"derivative":{"exercise_price":5.49,"exercise_date":"2016-02-12","expiration_date":"2023-02-12","underlying":"Common Stock","underlying_shares":2213},"source":{"system":"sec-edgar","filing":"0001127602-23-001887","document":"form4.xml","document_sequence":1,"table":"derivative","row_type":"transaction","position":4,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223001887/form4.xml","form_type":"4"}},{"id":2049967,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-01-20T16:38:08.000Z","date":"2023-01-18","kind":"tax_withholding","acquired":false,"shares":996,"price":50.72,"value":50517.12,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F2","text":"996 shares are being surrendered as allowed by the Company's 2005 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted shares."}],"balance_after":107092,"source":{"system":"sec-edgar","filing":"0001127602-23-001887","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":3,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223001887/form4.xml","form_type":"4"}},{"id":2049966,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-01-20T16:38:08.000Z","date":"2023-01-18","kind":"disposition_to_issuer","acquired":false,"shares":239,"price":50.72,"value":12122.08,"ownership":{"direct":true},"balance_after":108088,"source":{"system":"sec-edgar","filing":"0001127602-23-001887","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223001887/form4.xml","form_type":"4"}},{"id":2049965,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2023-01-20T16:38:08.000Z","date":"2023-01-18","kind":"exercise","acquired":true,"shares":2213,"price":5.49,"value":12149.37,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"Stock Appreciation Rights (SARs) are being exercised in accordance with the 2005 Stock Incentive Plan."}],"balance_after":108327,"source":{"system":"sec-edgar","filing":"0001127602-23-001887","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760223001887/form4.xml","form_type":"4"}},{"id":2372870,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Stock Appreciation Right","published_at":"2022-02-25T13:36:32.000Z","date":"2022-02-23","kind":"grant","acquired":true,"shares":2785,"price":82.01,"value":228397.85,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F3","text":"The stock appreciation right becomes exercisable in three equal installments occurring March 1,2023, March 1, 2024 and March 1, 2025."}],"balance_after":2785,"derivative":{"exercise_price":82.01,"exercise_date":"2023-03-01","expiration_date":"2032-02-23","underlying":"Common Stock","underlying_shares":2785},"source":{"system":"sec-edgar","filing":"0001127602-22-006735","document":"form4.xml","document_sequence":1,"table":"derivative","row_type":"transaction","position":5,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760222006735/form4.xml","form_type":"4"}},{"id":2372869,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2022-02-25T13:36:32.000Z","date":"2022-02-23","kind":"tax_withholding","acquired":false,"shares":3951,"price":82.01,"value":324021.51,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F5","text":"3,951 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted stock units."}],"balance_after":106114,"source":{"system":"sec-edgar","filing":"0001127602-22-006735","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":4,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760222006735/form4.xml","form_type":"4"}},{"id":2372868,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2022-02-25T13:36:32.000Z","date":"2022-02-23","kind":"grant","acquired":true,"shares":3845,"price":82.01,"value":315328.45,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F4","text":"Represents net share difference between target performance-based shares and actual vested shares, based upon actual performance for the Company."}],"balance_after":110065,"source":{"system":"sec-edgar","filing":"0001127602-22-006735","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":3,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760222006735/form4.xml","form_type":"4"}},{"id":2372867,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2022-02-25T13:36:32.000Z","date":"2022-02-23","kind":"grant","acquired":true,"shares":3837,"price":82.01,"value":314672.37,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F2","text":"This restricted stock unit award is performance-based, and vests over a three-year period in three equal installments occurring March 1,2023, March 1, 2024 and March 1, 2025.  The number of shares set forth above is the target number of shares.  The number of shares that will actually vest each year will be based upon performance against certain financial goals for the Company, and will range from 0% to 200% of the target number of shares."}],"balance_after":106220,"source":{"system":"sec-edgar","filing":"0001127602-22-006735","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760222006735/form4.xml","form_type":"4"}},{"id":2372866,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2022-02-25T13:36:32.000Z","date":"2022-02-23","kind":"grant","acquired":true,"shares":2686,"price":82.01,"value":220278.86,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"This restricted stock unit vests over a three-year period in three equal annual installments occurring March 1,2023, March 1, 2024 and March 1, 2025."}],"balance_after":102383,"source":{"system":"sec-edgar","filing":"0001127602-22-006735","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760222006735/form4.xml","form_type":"4"}},{"id":2382898,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2022-02-22T14:59:08.000Z","date":"2022-02-19","kind":"tax_withholding","acquired":false,"shares":560,"price":85.42,"value":47835.2,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F2","text":"560 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted shares."}],"balance_after":99697,"source":{"system":"sec-edgar","filing":"0001127602-22-005866","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760222005866/form4.xml","form_type":"4"}},{"id":2382897,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2022-02-22T14:59:08.000Z","date":"2022-02-17","kind":"tax_withholding","acquired":false,"shares":283,"price":89.17,"value":25235.11,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"283 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted shares."}],"balance_after":100257,"source":{"system":"sec-edgar","filing":"0001127602-22-005866","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760222005866/form4.xml","form_type":"4"}},{"id":2395106,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP, CLO & Secretary"}}],"security":"Common Stock","published_at":"2022-02-15T15:13:24.000Z","date":"2022-02-13","kind":"tax_withholding","acquired":false,"shares":765,"price":85.29,"value":65246.85,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"765 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted shares."}],"balance_after":100540,"source":{"system":"sec-edgar","filing":"0001127602-22-004945","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760222004945/form4.xml","form_type":"4"}},{"id":2515959,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Stock Appreciation Right","published_at":"2021-11-12T15:16:41.000Z","date":"2021-11-10","kind":"exercise","acquired":false,"shares":6640,"price":0,"value":0.0,"ownership":{"direct":true},"balance_after":0,"derivative":{"exercise_price":10.97,"exercise_date":"2016-02-12","expiration_date":"2023-02-12","underlying":"Common Stock","underlying_shares":6640},"source":{"system":"sec-edgar","filing":"0001127602-21-028897","document":"form4.xml","document_sequence":1,"table":"derivative","row_type":"transaction","position":6,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221028897/form4.xml","form_type":"4"}},{"id":2515958,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-11-12T15:16:41.000Z","date":"2021-11-11","kind":"sale","acquired":false,"shares":3488,"price":127.89,"value":446080.32,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F4","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on May 17, 2021."}],"balance_after":101305,"source":{"system":"sec-edgar","filing":"0001127602-21-028897","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":5,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221028897/form4.xml","form_type":"4"}},{"id":2515957,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-11-12T15:16:41.000Z","date":"2021-11-10","kind":"tax_withholding","acquired":false,"shares":2866,"price":127.26,"value":364727.16,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F3","text":"2,866 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted shares."}],"balance_after":104793,"source":{"system":"sec-edgar","filing":"0001127602-21-028897","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":4,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221028897/form4.xml","form_type":"4"}},{"id":2515956,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-11-12T15:16:41.000Z","date":"2021-11-10","kind":"disposition_to_issuer","acquired":false,"shares":286,"price":127.26,"value":36396.36,"ownership":{"direct":true},"balance_after":107659,"source":{"system":"sec-edgar","filing":"0001127602-21-028897","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":3,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221028897/form4.xml","form_type":"4"}},{"id":2515955,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-11-12T15:16:41.000Z","date":"2021-11-10","kind":"exercise","acquired":true,"shares":6640,"price":10.97,"value":72840.8,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F2","text":"Stock Appreciation Rights (SARs) are being exercised pursuant to a Rule 10b5-1 trading plan adopted by the reporting person on May 17, 2021."}],"balance_after":107945,"source":{"system":"sec-edgar","filing":"0001127602-21-028897","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221028897/form4.xml","form_type":"4"}},{"id":2515954,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-11-12T15:16:41.000Z","date":"2021-11-10","kind":"sale","acquired":false,"shares":2150,"price":131,"value":281650.0,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on May 17,2021."}],"balance_after":101305,"source":{"system":"sec-edgar","filing":"0001127602-21-028897","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221028897/form4.xml","form_type":"4"}},{"id":2715024,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Stock Appreciation Right","published_at":"2021-05-13T21:36:01.000Z","date":"2021-05-11","kind":"exercise","acquired":false,"shares":14000,"price":0,"value":0.0,"ownership":{"direct":true},"footnotes":[{"field":"balance_after","element":"sharesOwnedFollowingTransaction","label":"F4","text":"This Amendment is being filed to correct an error in this box."}],"balance_after":0,"derivative":{"exercise_price":5.485,"exercise_date":"2014-02-12","expiration_date":"2023-02-12","underlying":"Common Stock","underlying_shares":14000},"source":{"system":"sec-edgar","filing":"0001127602-21-016658","document":"form4a.xml","document_sequence":1,"table":"derivative","row_type":"transaction","position":5,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221016658/form4a.xml","form_type":"4/A","original_submission_date":"2021-05-12"}},{"id":2715023,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-05-13T21:36:01.000Z","date":"2021-05-12","kind":"sale","acquired":false,"shares":7288,"price":102.85,"value":749570.8,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F3","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on August 5, 2020."}],"balance_after":103455,"source":{"system":"sec-edgar","filing":"0001127602-21-016658","document":"form4a.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":4,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221016658/form4a.xml","form_type":"4/A","original_submission_date":"2021-05-12"}},{"id":2715022,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-05-13T21:36:01.000Z","date":"2021-05-11","kind":"tax_withholding","acquired":false,"shares":5988,"price":106.1,"value":635326.8,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F2","text":"5,988 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover the payment of taxes currently due on previously granted restricted shares."}],"balance_after":110743,"source":{"system":"sec-edgar","filing":"0001127602-21-016658","document":"form4a.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":3,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221016658/form4a.xml","form_type":"4/A","original_submission_date":"2021-05-12"}},{"id":2715021,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-05-13T21:36:01.000Z","date":"2021-05-11","kind":"disposition_to_issuer","acquired":false,"shares":724,"price":106.1,"value":76816.4,"ownership":{"direct":true},"balance_after":116731,"source":{"system":"sec-edgar","filing":"0001127602-21-016658","document":"form4a.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221016658/form4a.xml","form_type":"4/A","original_submission_date":"2021-05-12"}},{"id":2715020,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-05-13T21:36:01.000Z","date":"2021-05-11","kind":"exercise","acquired":true,"shares":14000,"price":5.485,"value":76790.0,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"Stock Appreciation Rights (SARs) are being exercised pursuant to a Rule 10b5-1 trading plan adopted by the reporting person on August 5, 2020."}],"balance_after":117455,"source":{"system":"sec-edgar","filing":"0001127602-21-016658","document":"form4a.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221016658/form4a.xml","form_type":"4/A","original_submission_date":"2021-05-12"}},{"id":2717032,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Stock Appreciation Right","published_at":"2021-05-12T17:47:00.000Z","date":"2021-05-11","kind":"exercise","acquired":false,"shares":14000,"price":0,"value":0.0,"ownership":{"direct":true},"balance_after":14000,"derivative":{"exercise_price":5.485,"exercise_date":"2014-02-12","expiration_date":"2023-02-12","underlying":"Common Stock","underlying_shares":14000},"source":{"system":"sec-edgar","filing":"0001127602-21-016357","document":"form4.xml","document_sequence":1,"table":"derivative","row_type":"transaction","position":5,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221016357/form4.xml","form_type":"4"}},{"id":2717031,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-05-12T17:47:00.000Z","date":"2021-05-12","kind":"sale","acquired":false,"shares":7288,"price":102.85,"value":749570.8,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F3","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on August 5, 2020."}],"balance_after":103455,"source":{"system":"sec-edgar","filing":"0001127602-21-016357","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":4,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221016357/form4.xml","form_type":"4"}},{"id":2717030,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-05-12T17:47:00.000Z","date":"2021-05-11","kind":"tax_withholding","acquired":false,"shares":5988,"price":106.1,"value":635326.8,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F2","text":"5,988 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover the payment of taxes currently due on previously granted restricted shares."}],"balance_after":110743,"source":{"system":"sec-edgar","filing":"0001127602-21-016357","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":3,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221016357/form4.xml","form_type":"4"}},{"id":2717029,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-05-12T17:47:00.000Z","date":"2021-05-11","kind":"disposition_to_issuer","acquired":false,"shares":724,"price":106.1,"value":76816.4,"ownership":{"direct":true},"balance_after":116731,"source":{"system":"sec-edgar","filing":"0001127602-21-016357","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221016357/form4.xml","form_type":"4"}},{"id":2717028,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-05-12T17:47:00.000Z","date":"2021-05-11","kind":"exercise","acquired":true,"shares":14000,"price":5.485,"value":76790.0,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"Stock Appreciation Rights (SARs) are being exercised pursuant to a Rule 10b5-1 trading plan adopted by the reporting person on August 5, 2020."}],"balance_after":117455,"source":{"system":"sec-edgar","filing":"0001127602-21-016357","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221016357/form4.xml","form_type":"4"}},{"id":2833460,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Stock Appreciation Right","published_at":"2021-02-25T20:22:22.000Z","date":"2021-02-23","kind":"exercise","acquired":false,"shares":14000,"price":0,"value":0.0,"ownership":{"direct":true},"balance_after":14000,"derivative":{"exercise_price":5.48,"exercise_date":"2014-02-12","expiration_date":"2023-02-12","underlying":"Common Stock","underlying_shares":14000},"source":{"system":"sec-edgar","filing":"0001127602-21-007872","document":"form4.xml","document_sequence":1,"table":"derivative","row_type":"transaction","position":5,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221007872/form4.xml","form_type":"4"}},{"id":2833459,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-02-25T20:22:22.000Z","date":"2021-02-24","kind":"sale","acquired":false,"shares":7223,"price":92.85,"value":670655.55,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F3","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on August 5, 2020."},{"field":"balance_after","element":"sharesOwnedFollowingTransaction","label":"F4","text":"The price reported in column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $92.53 to $93.02, inclusive."}],"balance_after":103455,"source":{"system":"sec-edgar","filing":"0001127602-21-007872","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":4,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221007872/form4.xml","form_type":"4"}},{"id":2833458,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-02-25T20:22:22.000Z","date":"2021-02-23","kind":"tax_withholding","acquired":false,"shares":5935,"price":91.16,"value":541034.6,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F2","text":"5,935 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted shares."}],"balance_after":110678,"source":{"system":"sec-edgar","filing":"0001127602-21-007872","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":3,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221007872/form4.xml","form_type":"4"}},{"id":2833457,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-02-25T20:22:22.000Z","date":"2021-02-23","kind":"disposition_to_issuer","acquired":false,"shares":842,"price":91.16,"value":76756.72,"ownership":{"direct":true},"balance_after":116613,"source":{"system":"sec-edgar","filing":"0001127602-21-007872","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221007872/form4.xml","form_type":"4"}},{"id":2833456,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-02-25T20:22:22.000Z","date":"2021-02-23","kind":"exercise","acquired":true,"shares":14000,"price":91.16,"value":1276240.0,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"Stock Appreciation Rights (SARs) are being exercised pursuant to a Rule 10b5-1 trading plan adopted by the reporting person on August 5, 2020."}],"balance_after":14000,"source":{"system":"sec-edgar","filing":"0001127602-21-007872","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221007872/form4.xml","form_type":"4"}},{"id":2840460,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-02-23T18:11:35.000Z","date":"2021-02-19","kind":"tax_withholding","acquired":false,"shares":560,"price":102.61,"value":57461.6,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"560 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted stock units."}],"balance_after":103455,"source":{"system":"sec-edgar","filing":"0001127602-21-007222","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221007222/form4.xml","form_type":"4"}},{"id":2846910,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Stock Appreciation Right","published_at":"2021-02-19T19:36:49.000Z","date":"2021-02-17","kind":"grant","acquired":true,"shares":1636,"price":104.56,"value":171060.16,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F3","text":"The stock appreciation right becomes exercisable in three equal installments beginning on the first anniversary of the grant date."}],"balance_after":1636,"derivative":{"exercise_price":104.56,"exercise_date":"2022-02-17","expiration_date":"2031-02-17","underlying":"Common Stock","underlying_shares":1636},"source":{"system":"sec-edgar","filing":"0001127602-21-006686","document":"form4.xml","document_sequence":1,"table":"derivative","row_type":"transaction","position":5,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221006686/form4.xml","form_type":"4"}},{"id":2846909,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-02-19T19:36:49.000Z","date":"2021-02-17","kind":"tax_withholding","acquired":false,"shares":3931,"price":104.56,"value":411025.36,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F5","text":"3,931 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted stock units."}],"balance_after":104015,"source":{"system":"sec-edgar","filing":"0001127602-21-006686","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":4,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221006686/form4.xml","form_type":"4"}},{"id":2846908,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-02-19T19:36:49.000Z","date":"2021-02-17","kind":"grant","acquired":true,"shares":1998,"price":104.56,"value":208910.88,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F4","text":"Represents net share difference between target performance-based shares and actual vested shares, based upon actual performance for the Company."}],"balance_after":107946,"source":{"system":"sec-edgar","filing":"0001127602-21-006686","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":3,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221006686/form4.xml","form_type":"4"}},{"id":2846907,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-02-19T19:36:49.000Z","date":"2021-02-17","kind":"grant","acquired":true,"shares":2704,"price":104.56,"value":282730.24,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F2","text":"This restricted stock unit award is performance-based, and vests over a three-year period in three equal installments beginning on the first anniversary of the grant date.  The number of shares set forth above is the target number of shares.  The number of shares that will actually vest each year will be based upon performance against certain financial goals for the Company, and will range from 0% to 200% of the target number of shares."}],"balance_after":105948,"source":{"system":"sec-edgar","filing":"0001127602-21-006686","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221006686/form4.xml","form_type":"4"}},{"id":2846906,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-02-19T19:36:49.000Z","date":"2021-02-17","kind":"grant","acquired":true,"shares":1893,"price":104.56,"value":197932.08,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"This restricted stock unit vests over a three-year period in three equal annual installments beginning on the first anniversary of the grant date."}],"balance_after":103244,"source":{"system":"sec-edgar","filing":"0001127602-21-006686","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221006686/form4.xml","form_type":"4"}},{"id":2860082,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-02-16T16:10:02.000Z","date":"2021-02-14","kind":"tax_withholding","acquired":false,"shares":854,"price":106.28,"value":90763.12,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F2","text":"854 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted stock units."}],"balance_after":101351,"source":{"system":"sec-edgar","filing":"0001127602-21-005659","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221005659/form4.xml","form_type":"4"}},{"id":2860081,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2021-02-16T16:10:02.000Z","date":"2021-02-13","kind":"tax_withholding","acquired":false,"shares":755,"price":106.28,"value":80241.4,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"755 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted shares."}],"balance_after":102205,"source":{"system":"sec-edgar","filing":"0001127602-21-005659","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760221005659/form4.xml","form_type":"4"}},{"id":2991403,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Stock Appreciation Right","published_at":"2020-11-05T21:03:04.000Z","date":"2020-11-03","kind":"exercise","acquired":false,"shares":14000,"price":0,"value":0.0,"ownership":{"direct":true},"balance_after":0,"derivative":{"exercise_price":5.485,"exercise_date":"2014-02-12","expiration_date":"2023-02-12","underlying":"Common Stock","underlying_shares":14000},"source":{"system":"sec-edgar","filing":"0001127602-20-028233","document":"form4.xml","document_sequence":1,"table":"derivative","row_type":"transaction","position":7,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220028233/form4.xml","form_type":"4"}},{"id":2991402,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-11-05T21:03:04.000Z","date":"2020-11-04","kind":"sale","acquired":false,"shares":100,"price":73.24,"value":7324.0,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F4","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on August 5, 2020."}],"balance_after":102960,"source":{"system":"sec-edgar","filing":"0001127602-20-028233","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":6,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220028233/form4.xml","form_type":"4"}},{"id":2991401,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-11-05T21:03:04.000Z","date":"2020-11-04","kind":"sale","acquired":false,"shares":4699,"price":72.34,"value":339925.66,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F4","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on August 5, 2020."},{"field":"balance_after","element":"sharesOwnedFollowingTransaction","label":"F6","text":"The price reported in Column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $81.6467 to $82.7625, inclusive."}],"balance_after":103060,"source":{"system":"sec-edgar","filing":"0001127602-20-028233","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":5,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220028233/form4.xml","form_type":"4"}},{"id":2991400,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-11-05T21:03:04.000Z","date":"2020-11-04","kind":"sale","acquired":false,"shares":2241,"price":71.73,"value":160746.93,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F4","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on August 5, 2020."},{"field":"balance_after","element":"sharesOwnedFollowingTransaction","label":"F5","text":"The price reported in Column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $81.6467 to $82.7625, inclusive."}],"balance_after":107759,"source":{"system":"sec-edgar","filing":"0001127602-20-028233","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":4,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220028233/form4.xml","form_type":"4"}},{"id":2991399,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-11-05T21:03:04.000Z","date":"2020-11-03","kind":"tax_withholding","acquired":false,"shares":5877,"price":70.9,"value":416679.3,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F3","text":"Shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted SARs."}],"balance_after":110000,"source":{"system":"sec-edgar","filing":"0001127602-20-028233","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":3,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220028233/form4.xml","form_type":"4"}},{"id":2991398,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-11-05T21:03:04.000Z","date":"2020-11-03","kind":"disposition_to_issuer","acquired":false,"shares":1083,"price":70.9,"value":76784.7,"ownership":{"direct":true},"balance_after":115877,"source":{"system":"sec-edgar","filing":"0001127602-20-028233","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220028233/form4.xml","form_type":"4"}},{"id":2991397,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-11-05T21:03:04.000Z","date":"2020-11-03","kind":"exercise","acquired":true,"shares":14000,"price":5.485,"value":76790.0,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"Stock Appreciation Rights (SARs) are being exercised pursuant to a Rule 10b5-1 trading plan adopted by the reporting person on August 5, 2020."},{"field":"balance_after","element":"sharesOwnedFollowingTransaction","label":"F2","text":"On September 14, 2020, the Company effectuated a two-for-one stock split to common shareholders of record on August 19,2020.  The amounts set forth in this Form 4 and all subsequent reports filed report the amounts adjusted to reflect the stock split."}],"balance_after":116960,"source":{"system":"sec-edgar","filing":"0001127602-20-028233","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220028233/form4.xml","form_type":"4"}},{"id":3066229,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-08-06T17:08:22.000Z","date":"2020-08-05","kind":"sale","acquired":false,"shares":3334,"price":137.3914,"value":458062.9276,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"The sales reported in the Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on July 31, 2019."},{"field":"price","element":"transactionPricePerShare","label":"F2","text":"The price reported in Column 4 is a weighted average price. These shares were sold in multiple transactions at prices ranging from $137.18 to $137.685, inclusive."}],"balance_after":51480,"source":{"system":"sec-edgar","filing":"0001127602-20-023036","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220023036/form4.xml","form_type":"4"}},{"id":3159945,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-05-06T19:33:16.000Z","date":"2020-05-06","kind":"sale","acquired":false,"shares":433,"price":109.43,"value":47383.19,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on July 31, 2019."}],"balance_after":54814,"source":{"system":"sec-edgar","filing":"0001127602-20-015609","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":4,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220015609/form4.xml","form_type":"4"}},{"id":3159944,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-05-06T19:33:16.000Z","date":"2020-05-06","kind":"sale","acquired":false,"shares":200,"price":108.615,"value":21723.0,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on July 31, 2019."},{"field":"price","element":"transactionPricePerShare","label":"F4","text":"The price reported in column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $108.37 to $108.86, inclusive."}],"balance_after":55247,"source":{"system":"sec-edgar","filing":"0001127602-20-015609","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":3,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220015609/form4.xml","form_type":"4"}},{"id":3159943,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-05-06T19:33:16.000Z","date":"2020-05-06","kind":"sale","acquired":false,"shares":1900,"price":107.9313,"value":205069.47,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on July 31, 2019."},{"field":"price","element":"transactionPricePerShare","label":"F3","text":"The sales reported in column 4 is a weighted average price.These shares were sold in multiple transactions at prices ranging from $107.31 to $108.245, inclusive."}],"balance_after":55447,"source":{"system":"sec-edgar","filing":"0001127602-20-015609","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220015609/form4.xml","form_type":"4"}},{"id":3159942,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-05-06T19:33:16.000Z","date":"2020-05-06","kind":"sale","acquired":false,"shares":800,"price":106.6338,"value":85307.04,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on July 31, 2019."},{"field":"price","element":"transactionPricePerShare","label":"F2","text":"The price reported in column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $106.295 to $107.135, inclusive."}],"balance_after":57347,"source":{"system":"sec-edgar","filing":"0001127602-20-015609","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220015609/form4.xml","form_type":"4"}},{"id":3244451,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-02-27T22:04:20.000Z","date":"2020-02-26","kind":"sale","acquired":false,"shares":433,"price":104.2731,"value":45150.2523,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on July 31, 2019."},{"field":"price","element":"transactionPricePerShare","label":"F6","text":"The price reported in column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $104.22 to $104.45, inclusive."}],"balance_after":58147,"source":{"system":"sec-edgar","filing":"0001127602-20-008170","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":5,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220008170/form4.xml","form_type":"4"}},{"id":3244450,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-02-27T22:04:20.000Z","date":"2020-02-26","kind":"sale","acquired":false,"shares":700,"price":102.86,"value":72002.0,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on July 31, 2019."},{"field":"price","element":"transactionPricePerShare","label":"F5","text":"The price reported in column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $102.31 to $103.275, inclusive."}],"balance_after":58580,"source":{"system":"sec-edgar","filing":"0001127602-20-008170","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":4,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220008170/form4.xml","form_type":"4"}},{"id":3244449,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-02-27T22:04:20.000Z","date":"2020-02-26","kind":"sale","acquired":false,"shares":500,"price":101.584,"value":50792.0,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on July 31, 2019."},{"field":"price","element":"transactionPricePerShare","label":"F4","text":"The price reported in column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $101.13 to $102.11, inclusive."}],"balance_after":59280,"source":{"system":"sec-edgar","filing":"0001127602-20-008170","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":3,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220008170/form4.xml","form_type":"4"}},{"id":3244448,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-02-27T22:04:20.000Z","date":"2020-02-26","kind":"sale","acquired":false,"shares":1300,"price":100.5188,"value":130674.44,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on July 31, 2019."},{"field":"price","element":"transactionPricePerShare","label":"F3","text":"The price reported in column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $100.04 to $100.97, inclusive."}],"balance_after":59780,"source":{"system":"sec-edgar","filing":"0001127602-20-008170","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220008170/form4.xml","form_type":"4"}},{"id":3244447,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-02-27T22:04:20.000Z","date":"2020-02-26","kind":"sale","acquired":false,"shares":400,"price":98.9205,"value":39568.2,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on July 31, 2019."},{"field":"price","element":"transactionPricePerShare","label":"F2","text":"The price reported in column 4 is a weighted average prices.  These shares were sold in multiple transactions at prices ranging from $98.75 to $99.39, inclusive."}],"balance_after":61080,"source":{"system":"sec-edgar","filing":"0001127602-20-008170","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220008170/form4.xml","form_type":"4"}},{"id":3253801,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Stock Appreciation Right","published_at":"2020-02-24T13:58:53.000Z","date":"2020-02-19","kind":"grant","acquired":true,"shares":2273,"price":101.66,"value":231073.18,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F5","text":"This stock appreciation right becomes exercisable in three equal installments beginning on the first anniversary of the grant date."}],"balance_after":2273,"derivative":{"exercise_price":101.66,"exercise_date":"2020-02-19","expiration_date":"2030-02-19","underlying":"Common Stock","underlying_shares":2273},"source":{"system":"sec-edgar","filing":"0001127602-20-007090","document":"form4.xml","document_sequence":1,"table":"derivative","row_type":"transaction","position":5,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220007090/form4.xml","form_type":"4"}},{"id":3253800,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-02-24T13:58:53.000Z","date":"2020-02-19","kind":"grant","acquired":true,"shares":2657,"price":101.66,"value":270110.62,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F4","text":"This restricted stock unit award is performance-based and vests over a three-year period in three equal installments beginning on the first anniversary of the grant date.  The number of shares set forth above is the target number of shares.  The number of shares that will actually vest each year will be based upon performance against certain financial goals for the Company, and will range from 0% to 200% of the target number of shares."}],"balance_after":61480,"source":{"system":"sec-edgar","filing":"0001127602-20-007090","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":4,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220007090/form4.xml","form_type":"4"}},{"id":3253799,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-02-24T13:58:53.000Z","date":"2020-02-19","kind":"grant","acquired":true,"shares":1860,"price":101.66,"value":189087.6,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F3","text":"This restricted stock unit vests over a three-year period in three equal annual installments beginning on the first anniversary of the grant date."}],"balance_after":58823,"source":{"system":"sec-edgar","filing":"0001127602-20-007090","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":3,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220007090/form4.xml","form_type":"4"}},{"id":3253798,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-02-24T13:58:53.000Z","date":"2020-02-19","kind":"tax_withholding","acquired":false,"shares":2993,"price":101.66,"value":304268.38,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F2","text":"2,993 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted stock units."}],"balance_after":56963,"source":{"system":"sec-edgar","filing":"0001127602-20-007090","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220007090/form4.xml","form_type":"4"}},{"id":3253797,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-02-24T13:58:53.000Z","date":"2020-02-19","kind":"grant","acquired":true,"shares":2057,"price":101.66,"value":209114.62,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"Represents net share difference between target performance-based shares and actual vested shares, based upon actual performance for the Company."}],"balance_after":59956,"source":{"system":"sec-edgar","filing":"0001127602-20-007090","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220007090/form4.xml","form_type":"4"}},{"id":3267477,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-02-18T20:29:45.000Z","date":"2020-02-15","kind":"tax_withholding","acquired":false,"shares":664,"price":101.88,"value":67648.32,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F3","text":"664 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted stock units."}],"balance_after":57899,"source":{"system":"sec-edgar","filing":"0001127602-20-005996","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":3,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220005996/form4.xml","form_type":"4"}},{"id":3267476,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-02-18T20:29:45.000Z","date":"2020-02-14","kind":"tax_withholding","acquired":false,"shares":423,"price":101.88,"value":43095.24,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F2","text":"423 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted stock units."}],"balance_after":58563,"source":{"system":"sec-edgar","filing":"0001127602-20-005996","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220005996/form4.xml","form_type":"4"}},{"id":3267475,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2020-02-18T20:29:45.000Z","date":"2020-02-13","kind":"tax_withholding","acquired":false,"shares":396,"price":101.39,"value":40150.44,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"396 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted stock units."}],"balance_after":58986,"source":{"system":"sec-edgar","filing":"0001127602-20-005996","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760220005996/form4.xml","form_type":"4"}},{"id":3452411,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2019-07-31T19:55:08.000Z","date":"2019-07-30","kind":"sale","acquired":false,"shares":4563,"price":82.0388,"value":374343.0444,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on August 1, 2018."},{"field":"price","element":"transactionPricePerShare","label":"F2","text":"The price reported in Column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $81.5923 to $82.7480, inclusive."}],"balance_after":59382,"source":{"system":"sec-edgar","filing":"0001127602-19-025492","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760219025492/form4.xml","form_type":"4"}},{"id":3542684,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2019-05-02T13:39:39.000Z","date":"2019-05-01","kind":"sale","acquired":false,"shares":4563,"price":68.6884,"value":313425.1692,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on August 1, 2018."},{"field":"price","element":"transactionPricePerShare","label":"F2","text":"The price reported in Column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $68.465 to $69.11, inclusive."}],"balance_after":63945,"source":{"system":"sec-edgar","filing":"0001127602-19-016838","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760219016838/form4.xml","form_type":"4"}},{"id":3614757,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Stock Appreciation Right","published_at":"2019-03-05T14:28:05.000Z","date":"2019-02-13","kind":"grant","acquired":true,"shares":2649,"price":77.7,"value":205827.3,"ownership":{"direct":true},"balance_after":2649,"derivative":{"exercise_price":77.7,"exercise_date":"2019-02-13","expiration_date":"2029-02-13","underlying":"Common Stock","underlying_shares":2649},"source":{"system":"sec-edgar","filing":"0001127602-19-009724","document":"form4a.xml","document_sequence":1,"table":"derivative","row_type":"transaction","position":6,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760219009724/form4a.xml","form_type":"4/A","original_submission_date":"2019-02-15"}},{"id":3614756,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2019-03-05T14:28:05.000Z","date":"2019-02-14","kind":"tax_withholding","acquired":false,"shares":427,"price":78.34,"value":33451.18,"ownership":{"direct":true},"balance_after":75320,"source":{"system":"sec-edgar","filing":"0001127602-19-009724","document":"form4a.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":5,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760219009724/form4a.xml","form_type":"4/A","original_submission_date":"2019-02-15"}},{"id":3614755,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2019-03-05T14:28:05.000Z","date":"2019-02-13","kind":"grant","acquired":true,"shares":3359,"price":77.7,"value":260994.3,"ownership":{"direct":true},"balance_after":75747,"source":{"system":"sec-edgar","filing":"0001127602-19-009724","document":"form4a.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":4,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760219009724/form4a.xml","form_type":"4/A","original_submission_date":"2019-02-15"}},{"id":3614754,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2019-03-05T14:28:05.000Z","date":"2019-02-13","kind":"grant","acquired":true,"shares":2351,"price":77.7,"value":182672.7,"ownership":{"direct":true},"balance_after":72388,"source":{"system":"sec-edgar","filing":"0001127602-19-009724","document":"form4a.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":3,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760219009724/form4a.xml","form_type":"4/A","original_submission_date":"2019-02-15"}},{"id":3614753,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2019-03-05T14:28:05.000Z","date":"2019-02-13","kind":"tax_withholding","acquired":false,"shares":6531,"price":77.7,"value":507458.7,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"The number of shares withheld for taxes was incorrectly reported on the previous Form 4."}],"balance_after":70037,"source":{"system":"sec-edgar","filing":"0001127602-19-009724","document":"form4a.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760219009724/form4a.xml","form_type":"4/A","original_submission_date":"2019-02-15"}},{"id":3614752,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2019-03-05T14:28:05.000Z","date":"2019-02-13","kind":"grant","acquired":true,"shares":6916,"price":77.7,"value":537373.2,"ownership":{"direct":true},"balance_after":76568,"source":{"system":"sec-edgar","filing":"0001127602-19-009724","document":"form4a.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760219009724/form4a.xml","form_type":"4/A","original_submission_date":"2019-02-15"}},{"id":3642724,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2019-02-21T17:30:26.000Z","date":"2019-02-19","kind":"sale","acquired":false,"shares":4306,"price":76.7419,"value":330450.6214,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"The sales reported in this Form 4 were effected pursuant to a Rule 10b5-1 sales plan adopted by the reporting person on August 1, 2018."},{"field":"price","element":"transactionPricePerShare","label":"F2","text":"The price reported in Column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $76.40 to $77.11, inclusive."}],"balance_after":68486,"source":{"system":"sec-edgar","filing":"0001127602-19-007411","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760219007411/form4.xml","form_type":"4"}},{"id":3650806,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2019-02-19T18:27:48.000Z","date":"2019-02-17","kind":"tax_withholding","acquired":false,"shares":1841,"price":76.76,"value":141315.16,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F2","text":"1,841 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover the payment of taxes currently due on previously granted restricted shares."}],"balance_after":72792,"source":{"system":"sec-edgar","filing":"0001127602-19-006648","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":2,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760219006648/form4.xml","form_type":"4"}},{"id":3650805,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2019-02-19T18:27:48.000Z","date":"2019-02-15","kind":"tax_withholding","acquired":false,"shares":665,"price":76.76,"value":51045.4,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F1","text":"665 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted shares."}],"balance_after":74633,"source":{"system":"sec-edgar","filing":"0001127602-19-006648","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":1,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760219006648/form4.xml","form_type":"4"}},{"id":3654311,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Stock Appreciation Right","published_at":"2019-02-15T20:51:12.000Z","date":"2019-02-13","kind":"grant","acquired":true,"shares":2649,"price":77.7,"value":205827.3,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F6","text":"This stock appreciation right becomes exercisable in three equal annual installments beginning on the first anniversary of the grant date."}],"balance_after":2649,"derivative":{"exercise_price":77.7,"exercise_date":"2019-02-13","expiration_date":"2029-02-13","underlying":"Common Stock","underlying_shares":2649},"source":{"system":"sec-edgar","filing":"0001127602-19-006263","document":"form4.xml","document_sequence":1,"table":"derivative","row_type":"transaction","position":6,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760219006263/form4.xml","form_type":"4"}},{"id":3654310,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2019-02-15T20:51:12.000Z","date":"2019-02-14","kind":"tax_withholding","acquired":false,"shares":427,"price":78.34,"value":33451.18,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F5","text":"427 shares are being surrendered as allowed by the Company's 2014 Stock Incentive Plan to cover payment of taxes currently due on previously granted restricted shares."}],"balance_after":75298,"source":{"system":"sec-edgar","filing":"0001127602-19-006263","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":5,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760219006263/form4.xml","form_type":"4"}},{"id":3654309,"issuer":{"id":3990,"kind":"organization","name":"TREX CO INC","symbol":"TREX"},"owners":[{"id":113942,"kind":"person","name":"Gupp William R.","position":1,"cik":"0001428106","reported_name":"Gupp William R.","relationship":{"officer":true,"officer_title":"Sr VP,Gen. Counsel & Secretary"}}],"security":"Common Stock","published_at":"2019-02-15T20:51:12.000Z","date":"2019-02-13","kind":"grant","acquired":true,"shares":3359,"price":77.7,"value":260994.3,"ownership":{"direct":true},"footnotes":[{"field":"kind","element":"transactionCoding","label":"F4","text":"This restricted stock unit award is performance-based, and vests over a three-year period in three equal installments beginning on the first anniversary of the grant date.  The number of shares set forth above is the target number of shares.  The number of shares that will actually vest each year will be based upon performance against certain financial goals for the Company, and will range from 0% to 200% of the target number of shares."}],"balance_after":75725,"source":{"system":"sec-edgar","filing":"0001127602-19-006263","document":"form4.xml","document_sequence":1,"table":"nonDerivative","row_type":"transaction","position":4,"url":"https://www.sec.gov/Archives/edgar/data/1069878/000112760219006263/form4.xml","form_type":"4"}}],"next_cursor":"2019-02-15T20:51:12.000000Z,3654309"}