| Schedule of Calculation of Basic and Diluted Earnings (Loss) Per Share | 
 The following table presents the calculation of basic earnings (loss) per share and diluted earnings per share of Class A common stock: 
  
      
       
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
        
       
           | 
           | 
        Year Ended December 31, 2022  | 
           | 
           | 
        Year Ended December 31, 2021  | 
           | 
        
       
        Numerator:  | 
           | 
           | 
           | 
           | 
           | 
           | 
        
       
        Net income (loss)  | 
           | 
        $  | 
        2,875  | 
           | 
           | 
        $  | 
        (51,440  | 
        )  | 
        
       
        Less: net loss attributable to noncontrolling interests  | 
           | 
           | 
        19,284  | 
           | 
           | 
           | 
        78,417  | 
           | 
        
       
        Less: dividends on preferred shares  | 
           | 
           | 
        (13,000  | 
        )  | 
           | 
           | 
        (5,742  | 
        )  | 
        
       
        Less: deemed dividend  | 
           | 
           | 
        (31,185  | 
        )  | 
           | 
           | 
        (84,994  | 
        )  | 
        
       
        Net loss attributable to XPO Inc. - basic and diluted  | 
           | 
        $  | 
        (22,026  | 
        )  | 
           | 
        $  | 
        (63,759  | 
        )  | 
        
       
        Denominator:  | 
           | 
           | 
           | 
           | 
           | 
           | 
        
       
        Weighted average shares of Class A common stock outstanding - basic and diluted  | 
           | 
           | 
        25,295  | 
           | 
           | 
           | 
        22,403  | 
           | 
        
       
            | 
           | 
           | 
           | 
           | 
           | 
           | 
        
       
        Net loss per share attributable to Class A common stock - basic  | 
           | 
        $  | 
        (0.87  | 
        )  | 
           | 
        $  | 
        (2.85  | 
        )  | 
        
       
        Net loss per share attributable to Class A common stock - diluted  | 
           | 
        $  | 
        (0.87  | 
        )  | 
           | 
        $  | 
        (2.85  | 
        )  | 
        
       
        Anti-dilutive shares excluded from diluted loss per share of Class A common stock:  | 
           | 
           | 
           | 
           | 
           | 
           | 
        
       
        Rumble Class A common stock  | 
           | 
           | 
        -  | 
           | 
           | 
           | 
        1,300  | 
           | 
        
       
        Restricted stock units  | 
           | 
           | 
        2,102  | 
           | 
           | 
           | 
        1,123  | 
           | 
        
       
        Convertible preferred stock  | 
           | 
           | 
        13,889  | 
           | 
           | 
           | 
        13,889  | 
           | 
        
       
        Conversion of Class B common stock to Class A common stock  | 
           | 
           | 
        21,572  | 
           | 
           | 
           | 
        22,969  | 
           | 
        
       
        Treasury share options  | 
           | 
           | 
        75  | 
           | 
           | 
           | 
        -  | 
           | 
        
       
        Rumble contingent shares  | 
           | 
           | 
        2,024  | 
           | 
           | 
           | 
        2,024  | 
           | 
        
       
        Profits interests, time vesting  | 
           | 
           | 
        14  | 
           | 
           | 
           | 
        74  | 
           | 
        
       
        Profit interest units, performance vesting  | 
           | 
           | 
        -  | 
           | 
           | 
           | 
        1,935  | 
           | 
        
       
 |