XML 20 R1.htm IDEA: XBRL DOCUMENT v3.26.1
Cover - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2025
Mar. 24, 2026
Jun. 30, 2025
Document Information [Line Items]      
Document Type 10-K    
Document Annual Report true    
Document Period End Date Dec. 31, 2025    
Current Fiscal Year End Date --12-31    
Document Transition Report false    
Entity File Number 001-42838    
Registrant Name Legence Corp.    
Entity Incorporation, State or Country Code DE    
Entity Tax Identification Number 33-2905250    
Entity Address, Address Line One 1601 Las Plumas Avenue    
Entity Address, City or Town San Jose    
Entity Address, State or Province CA    
Entity Address, Postal Zip Code 95133    
City Area Code 833    
Local Phone Number 534-3623    
Title of 12(b) Security Class A common stock, par value $0.01 per share    
Trading Symbol LGN    
Security Exchange Name NASDAQ    
Entity Well-known Seasoned Issuer No    
Entity Voluntary Filers No    
Entity Current Reporting Status Yes    
Entity Interactive Data Current Yes    
Entity Filer Category Non-accelerated Filer    
Entity Small Business false    
Entity Emerging Growth Company false    
ICFR Auditor Attestation Flag false    
Document Financial Statement Error Correction false    
Entity Shell Company false    
Entity Public Float     $ 0.0
Entity Central Index Key 0002052568    
Amendment Flag false    
Document Fiscal Period Focus FY    
Document Fiscal Year Focus 2025    
Common Class A      
Document Information [Line Items]      
Entity Common Stock, Shares Outstanding   67,338,099  
Common Class B      
Document Information [Line Items]      
Entity Common Stock, Shares Outstanding   40,699,833