XML 42 R28.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Summary of Significant Accounting Policies (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2021
Accounting Policies [Abstract] |
Estimated Useful Lives of Property Plant and Equipment | Property, plant and equipment are stated at historical cost. The costs of additions and improvements are capitalized, while maintenance and repairs are expensed as incurred. Unpaid liabilities related to property, plant and equipment are included in accounts payable and were $2.6 million and $12.9 million at December 31, 2021 and December 31, 2020, respectively. Cash flows for capital expenditures as reported in cash flows from investing activities in the Consolidated Statements of Cash Flows are adjusted to exclude unpaid amounts accrued at period end. Depreciation is provided using the straight-line method generally over the following estimated useful lives:
Buildings |  | 40 years
Machinery and equipment |  | 3-11 years
Furniture and equipment |  | 10 years
Forklifts and tractors |  | 5 years
Computer equipment and software |  | 5 years

X
- Definition Tabular disclosure of the estimated useful life of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale. + References No definition available. + Details
Name: | trex_PropertyPlantAndEquipmentEstimatedUsefulLifeTableTextBlock
Namespace Prefix: | trex_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_AccountingPoliciesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration