XML 12 R1.htm IDEA: XBRL DOCUMENT v3.25.2
Document and Entity Information - shares
6 Months Ended
Jun. 30, 2025
Jul. 18, 2025
Cover [Abstract]    
Document Type 10-Q  
Document Quarterly Report true  
Document Period End Date Jun. 30, 2025  
Document Transition Report false  
Securities Act File Number 1-13011  
Entity Registrant Name COMFORT SYSTEMS USA, INC.  
Entity Incorporation, State or Country Code DE  
Entity Tax Identification Number 76-0526487  
Entity Address, Address Line One 675 Bering Drive  
Entity Address, Address Line Two Suite 400  
Entity Address, City or Town Houston  
Entity Address, State or Province TX  
Entity Address, Postal Zip Code 77057  
City Area Code 713  
Local Phone Number 830-9600  
Title of 12(b) Security Common Stock, $0.01 par value  
Trading Symbol FIX  
Security Exchange Name NYSE  
Entity Current Reporting Status Yes  
Entity Interactive Data Current Yes  
Entity Filer Category Large Accelerated Filer  
Entity Small Business false  
Entity Emerging Growth Company false  
Entity Shell Company false  
Entity Common Stock, Shares Outstanding   35,281,452
Entity Central Index Key 0001035983  
Document Fiscal Year Focus 2025  
Document Fiscal Period Focus Q2  
Current Fiscal Year End Date --12-31  
Amendment Flag false