| Stockholder's Equity (Deficit) - Summary of Ownership of XPO LLC (Details) | 3 Months Ended | 
|---|---|
| Mar. 31, 2023  shares | |
| Subsidiary of Limited Liability Company or Limited Partnership [Line Items] | |
| Units Owned | 49,630 | 
| XPO Inc. | |
| Subsidiary of Limited Liability Company or Limited Partnership [Line Items] | |
| Units Owned | 32,899 | 
| Noncontrolling Interests | |
| Subsidiary of Limited Liability Company or Limited Partnership [Line Items] | |
| Units Owned | 16,731 | 
| 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 | 66.00% | 
| XPO LLC | Noncontrolling Interests | |
| Subsidiary of Limited Liability Company or Limited Partnership [Line Items] | |
| Ownership percentage | 34.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 
 |