v3.26.3
Commitments and Contingencies - Summary of Reconciliation of Company's Residential Product Warranty Reserve (Detail) - Product Warranty [Member] - Trex Product Warranty Reserve [Member] - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2026
Sep. 30, 2025
Product Warranty Liability [Line Items]    
Beginning balance $ 29,740 $ 22,835
Provisions and changes in estimates 8,380 8,660
Settlements made during the period (6,133) (5,808)
Ending balance $ 31,987 $ 25,687