v3.25.2
Cover Page - shares
6 Months Ended
Jun. 30, 2025
Jul. 25, 2025
Cover [Abstract]    
Document Type 10-Q  
Document Quarterly Report true  
Document Period End Date Jun. 30, 2025  
Document Transition Report false  
Entity File Number 1-35229  
Entity Registrant Name Xylem Inc.  
Entity Incorporation, State or Country Code IN  
Entity Tax Identification Number 45-2080495  
Entity Address, Address Line One 301 Water Street SE  
Entity Address, City or Town Washington  
Entity Address, State or Province DC  
Entity Address, Postal Zip Code 20003  
City Area Code (202)  
Local Phone Number 869-9150  
Title of 12(b) Security Common Stock, par value $0.01 per share  
Trading Symbol XYL  
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 Common Stock, Shares Outstanding   243,409,688
Entity Shell Company false  
Entity Central Index Key 0001524472  
Amendment Flag false  
Document Fiscal Year Focus 2025  
Document Fiscal Period Focus Q2  
Current Fiscal Year End Date --12-31