| 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 (loss) per share of Class A common stock: 
  
      
       
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
        
       
           | 
           | 
        Years Ended December 31,  | 
           | 
        
       
           | 
           | 
        2023  | 
           | 
           | 
        2022  | 
           | 
           | 
        2021  | 
           | 
        
       
        Numerator:  | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
        
       
        Net income (loss)  | 
           | 
        $  | 
        (1,713  | 
        )  | 
           | 
        $  | 
        2,875  | 
           | 
           | 
        $  | 
        (51,440  | 
        )  | 
        
       
        Less: net (income) loss attributable to noncontrolling interests  | 
           | 
           | 
        (15,765  | 
        )  | 
           | 
           | 
        19,284  | 
           | 
           | 
           | 
        78,417  | 
           | 
        
       
        Less: dividends on preferred shares  | 
           | 
           | 
        (7,652  | 
        )  | 
           | 
           | 
        (13,000  | 
        )  | 
           | 
           | 
        (5,742  | 
        )  | 
        
       
        Less:  deemed contribution (dividend)  | 
           | 
           | 
        49,970  | 
           | 
           | 
           | 
        (31,185  | 
        )  | 
           | 
           | 
        (84,994  | 
        )  | 
        
       
        Add: deemed contribution from redemption of convertible preferred stock  | 
           | 
           | 
        12,679  | 
           | 
           | 
           | 
        -  | 
           | 
           | 
           | 
        -  | 
           | 
        
       
        Net income (loss) attributable to XPO Inc. - basic  | 
           | 
        $  | 
        37,519  | 
           | 
           | 
        $  | 
        (22,026  | 
        )  | 
           | 
        $  | 
        (63,759  | 
        )  | 
        
       
        Add: dividends on preferred shares  | 
           | 
           | 
        7,652  | 
           | 
           | 
           | 
        -  | 
           | 
           | 
           | 
        -  | 
           | 
        
       
        Less:  deemed (contribution) dividend  | 
           | 
           | 
        (49,970  | 
        )  | 
           | 
           | 
        -  | 
           | 
           | 
           | 
        -  | 
           | 
        
       
        Less: deemed contribution from redemption of convertible preferred stock  | 
           | 
           | 
        (12,679  | 
        )  | 
           | 
           | 
        -  | 
           | 
           | 
           | 
        -  | 
           | 
        
       
        Net income (loss) attributable to XPO Inc. - diluted  | 
           | 
        $  | 
        (17,478  | 
        )  | 
           | 
        $  | 
        (22,026  | 
        )  | 
           | 
        $  | 
        (63,759  | 
        )  | 
        
       
        Denominator:  | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
        
       
        Weighted average shares of Class A common stock outstanding - basic  | 
           | 
           | 
        31,742  | 
           | 
           | 
           | 
        25,295  | 
           | 
           | 
           | 
        22,403  | 
           | 
        
       
        Effect of dilutive securities:  | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
        
       
        Convertible preferred stock  | 
           | 
           | 
        7,963  | 
           | 
           | 
           | 
        -  | 
           | 
           | 
           | 
        -  | 
           | 
        
       
        Weighted average shares of Class A common stock outstanding - diluted  | 
           | 
           | 
        39,705  | 
           | 
           | 
           | 
        25,295  | 
           | 
           | 
           | 
        22,403  | 
           | 
        
       
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
        
       
        Net earnings (loss) per share attributable to Class A common stock - basic  | 
           | 
        $  | 
        1.18  | 
           | 
           | 
        $  | 
        (0.87  | 
        )  | 
           | 
        $  | 
        (2.85  | 
        )  | 
        
       
        Net earnings (loss) per share attributable to Class A common stock - diluted  | 
           | 
        $  | 
        (0.44  | 
        )  | 
           | 
        $  | 
        (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  | 
           | 
           | 
        1,477  | 
           | 
           | 
           | 
        2,102  | 
           | 
           | 
           | 
        1,123  | 
           | 
        
       
        Convertible preferred stock  | 
           | 
           | 
        -  | 
           | 
           | 
           | 
        13,889  | 
           | 
           | 
           | 
        13,889  | 
           | 
        
       
        Conversion of Class B common stock to Class A common stock  | 
           | 
           | 
        16,491  | 
           | 
           | 
           | 
        21,572  | 
           | 
           | 
           | 
        22,969  | 
           | 
        
       
        Treasury share options  | 
           | 
           | 
        75  | 
           | 
           | 
           | 
        75  | 
           | 
           | 
           | 
        -  | 
           | 
        
       
        Rumble contingent shares  | 
           | 
           | 
        2,024  | 
           | 
           | 
           | 
        2,024  | 
           | 
           | 
           | 
        2,024  | 
           | 
        
       
        Profits interests, time vesting  | 
           | 
           | 
        1  | 
           | 
           | 
           | 
        14  | 
           | 
           | 
           | 
        74  | 
           | 
        
       
        Profits interests, performance vesting  | 
           | 
           | 
        -  | 
           | 
           | 
           | 
        -  | 
           | 
           | 
           | 
        1,935  | 
           | 
        
       
 |