Member's/Stockholder's Equity (Deficit) - Summary of Ownership of XPO LLC (Details)  | 
12 Months Ended | 
|---|---|
| 
 Dec. 31, 2022  
shares 
 | |
| Subsidiary of Limited Liability Company or Limited Partnership [Line Items] | |
| Units Owned | 49,218,000 | 
| XPO Inc. | |
| Subsidiary of Limited Liability Company or Limited Partnership [Line Items] | |
| Units Owned | 27,571,000 | 
| Noncontrolling interests | |
| Subsidiary of Limited Liability Company or Limited Partnership [Line Items] | |
| Units Owned | 21,647,000 | 
| XPO LLC | |
| Subsidiary of Limited Liability Company or Limited Partnership [Line Items] | |
| Ownership percentage | 100.00% | 
| XPO LLC | XPO Inc. | |
| Subsidiary of Limited Liability Company or Limited Partnership [Line Items] | |
| Ownership percentage | 56.00% | 
| XPO LLC | Noncontrolling interests | |
| Subsidiary of Limited Liability Company or Limited Partnership [Line Items] | |
| Ownership percentage | 44.00% | 
| X | ||||||||||
- Definition Percentage investment held by the managing member or general partner of the limited liability company (LLC) or limited partnership (LP). Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- Definition Number of stock or units eligible for distribution to members or limited partners of the limited liability company (LLC) or limited partnership (LP). No definition available. 
  | 
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available. 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  |