<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>269</ContextCount>
  <ElementCount>344</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>74</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>10</UnitCount>
  <MyReports>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>75000 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>75010 - Statement - Condensed Consolidated Balance Sheets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/StatementCondensedConsolidatedBalanceSheetsUnaudited</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>75020 - Statement - Condensed Consolidated Balance Sheets (Parenthetical) (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/StatementCondensedConsolidatedBalanceSheetsParentheticalUnaudited</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Parenthetical) (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>75030 - Statement - Condensed Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/CondensedConsolidatedStatementsofOperations</Role>
      <ShortName>Condensed Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>75040 - Statement - Condensed Consolidated Statements of Stockholders’ Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/CondensedConsolidatedStatementsofStockholdersEquity</Role>
      <ShortName>Condensed Consolidated Statements of Stockholders’ Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>75050 - Statement - Condensed Consolidated Statements of Cash Flows Unaudited</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows Unaudited</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>995455 - Disclosure - Description of Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/DescriptionofBusiness</Role>
      <ShortName>Description of Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>995465 - Disclosure - Basis of Presentation, Summary of Significant Accounting Policies and Recent Accounting Pronouncements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/BasisofPresentationSummaryofSignificantAccountingPoliciesandRecentAccountingPronouncements</Role>
      <ShortName>Basis of Presentation, Summary of Significant Accounting Policies and Recent Accounting Pronouncements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>995475 - Disclosure - Revenue Recognition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/RevenueRecognition</Role>
      <ShortName>Revenue Recognition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995485 - Disclosure - Lease Receivable</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/LeaseReceivable</Role>
      <ShortName>Lease Receivable</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>995495 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/Inventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>995505 - Disclosure - Selected Balance Sheet Data</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/SelectedBalanceSheetData</Role>
      <ShortName>Selected Balance Sheet Data</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995515 - Disclosure - Earn-out Shares Liability</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/EarnoutSharesLiability</Role>
      <ShortName>Earn-out Shares Liability</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995525 - Disclosure - Convertible Notes</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/ConvertibleNotes</Role>
      <ShortName>Convertible Notes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995535 - Disclosure - Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/Equity</Role>
      <ShortName>Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995545 - Disclosure - Derivative Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/DerivativeInstruments</Role>
      <ShortName>Derivative Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995555 - Disclosure - Share-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/ShareBasedCompensation</Role>
      <ShortName>Share-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995565 - Disclosure - Property and Equipment, net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/PropertyandEquipmentnet</Role>
      <ShortName>Property and Equipment, net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995575 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995585 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/RelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>995595 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>995605 - Disclosure - Net Loss per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/NetLossperShare</Role>
      <ShortName>Net Loss per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995615 - Disclosure - Segment Reporting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/SegmentReporting</Role>
      <ShortName>Segment Reporting</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995625 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>995635 - Disclosure - Revision of Previously Reported Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/DisclosureRevisionOfPreviouslyReportedInformation</Role>
      <ShortName>Revision of Previously Reported Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>995655 - Disclosure - Basis of Presentation, Summary of Significant Accounting Policies and Recent Accounting Pronouncements (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/BasisofPresentationSummaryofSignificantAccountingPoliciesandRecentAccountingPronouncementsPolicies</Role>
      <ShortName>Basis of Presentation, Summary of Significant Accounting Policies and Recent Accounting Pronouncements (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/BasisofPresentationSummaryofSignificantAccountingPoliciesandRecentAccountingPronouncements</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>995665 - Disclosure - Basis of Presentation, Summary of Significant Accounting Policies and Recent Accounting Pronouncements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/BasisofPresentationSummaryofSignificantAccountingPoliciesandRecentAccountingPronouncementsTables</Role>
      <ShortName>Basis of Presentation, Summary of Significant Accounting Policies and Recent Accounting Pronouncements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/BasisofPresentationSummaryofSignificantAccountingPoliciesandRecentAccountingPronouncements</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>995675 - Disclosure - Revenue Recognition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/RevenueRecognitionTables</Role>
      <ShortName>Revenue Recognition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/RevenueRecognition</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>995685 - Disclosure - Lease Receivable (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/LeaseReceivableTables</Role>
      <ShortName>Lease Receivable (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/LeaseReceivable</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>995695 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/InventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/Inventories</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>995705 - Disclosure - Selected Balance Sheet Data (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/SelectedBalanceSheetDataTables</Role>
      <ShortName>Selected Balance Sheet Data (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/SelectedBalanceSheetData</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>995715 - Disclosure - Convertible Notes (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/ConvertibleNotesTables</Role>
      <ShortName>Convertible Notes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/ConvertibleNotes</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>995725 - Disclosure - Share-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/ShareBasedCompensationTables</Role>
      <ShortName>Share-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/ShareBasedCompensation</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>995735 - Disclosure - Property and Equipment, net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/PropertyandEquipmentnetTables</Role>
      <ShortName>Property and Equipment, net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/PropertyandEquipmentnet</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>995745 - Disclosure - Net Loss per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/NetLossperShareTables</Role>
      <ShortName>Net Loss per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/NetLossperShare</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>995755 - Disclosure - Segment Reporting (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/SegmentReportingTables</Role>
      <ShortName>Segment Reporting (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/SegmentReporting</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>995765 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/FairValueMeasurements</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>995775 - Disclosure - Revision of Previously Reported Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/DisclosureRevisionOfPreviouslyReportedInformationTables</Role>
      <ShortName>Revision of Previously Reported Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/DisclosureRevisionOfPreviouslyReportedInformation</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>995785 - Disclosure - Description of Business (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/DescriptionofBusinessDetails</Role>
      <ShortName>Description of Business (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/DescriptionofBusiness</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>995795 - Disclosure - Basis of Presentation, Summary of Significant Accounting Policies and Recent Accounting Pronouncements - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/BasisofPresentationSummaryofSignificantAccountingPoliciesandRecentAccountingPronouncementsNarrativeDetails</Role>
      <ShortName>Basis of Presentation, Summary of Significant Accounting Policies and Recent Accounting Pronouncements - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/BasisofPresentationSummaryofSignificantAccountingPoliciesandRecentAccountingPronouncementsTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>995805 - Disclosure - Basis of Presentation, Summary of Significant Accounting Policies and Recent Accounting Pronouncements - Schedule of Warrant Liability (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/BasisofPresentationSummaryofSignificantAccountingPoliciesandRecentAccountingPronouncementsScheduleofWarrantLiabilityDetails</Role>
      <ShortName>Basis of Presentation, Summary of Significant Accounting Policies and Recent Accounting Pronouncements - Schedule of Warrant Liability (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>995815 - Disclosure - Revenue Recognition - Schedule of Disaggregation of Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/RevenueRecognitionScheduleofDisaggregationofRevenueDetails</Role>
      <ShortName>Revenue Recognition - Schedule of Disaggregation of Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>995825 - Disclosure - Revenue Recognition - Schedule of Disaggregation of Revenue (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/DisclosureRevenueRecognitionScheduleOfDisaggregationOfRevenueParentheticalDetails</Role>
      <ShortName>Revenue Recognition - Schedule of Disaggregation of Revenue (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>995835 - Disclosure - Revenue Recognition - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/RevenueRecognitionNarrativeDetails</Role>
      <ShortName>Revenue Recognition - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>995845 - Disclosure - Lease Receivable - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/LeaseReceivableNarrativeDetails</Role>
      <ShortName>Lease Receivable - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>995855 - Disclosure - Lease Receivable - Schedule of Lease Receivable (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/LeaseReceivableScheduleofLeaseReceivableDetails</Role>
      <ShortName>Lease Receivable - Schedule of Lease Receivable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>995865 - Disclosure - Lease Receivable - Schedule of Sales-type Lease, Lease Receivable, Maturity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/LeaseReceivableScheduleofSalestypeLeaseLeaseReceivableMaturityDetails</Role>
      <ShortName>Lease Receivable - Schedule of Sales-type Lease, Lease Receivable, Maturity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>995875 - Disclosure - Inventories - Schedule of Inventory (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/InventoriesScheduleofInventoryDetails</Role>
      <ShortName>Inventories - Schedule of Inventory (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>995885 - Disclosure - Inventories - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/InventoriesNarrativeDetails</Role>
      <ShortName>Inventories - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>995895 - Disclosure - Selected Balance Sheet Data - Schedule of Prepaid Expenses and Other Current Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/SelectedBalanceSheetDataScheduleofPrepaidExpensesandOtherCurrentAssetsDetails</Role>
      <ShortName>Selected Balance Sheet Data - Schedule of Prepaid Expenses and Other Current Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>995905 - Disclosure - Selected Balance Sheet Data - Schedule of Prepaid Expenses and Other Current Assets (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/DisclosureSelectedBalanceSheetDataScheduleOfPrepaidExpensesAndOtherCurrentAssetsParentheticalDetails</Role>
      <ShortName>Selected Balance Sheet Data - Schedule of Prepaid Expenses and Other Current Assets (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>995915 - Disclosure - Selected Balance Sheet Data - Schedule of Other Non-Current Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/SelectedBalanceSheetDataScheduleofOtherNonCurrentAssetsDetails</Role>
      <ShortName>Selected Balance Sheet Data - Schedule of Other Non-Current Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>995925 - Disclosure - Selected Balance Sheet Data - Schedule of Other Current Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/SelectedBalanceSheetDataScheduleofOtherCurrentLiabilitiesDetails</Role>
      <ShortName>Selected Balance Sheet Data - Schedule of Other Current Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>995935 - Disclosure - Selected Balance Sheet Data - Schedule of Other Current Liabilities (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/DisclosureSelectedBalanceSheetDataScheduleOfOtherCurrentLiabilitiesParentheticalDetails</Role>
      <ShortName>Selected Balance Sheet Data - Schedule of Other Current Liabilities (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>995945 - Disclosure - Selected Balance Sheet Data - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/SelectedBalanceSheetDataNarrativeDetails</Role>
      <ShortName>Selected Balance Sheet Data - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>995955 - Disclosure - Selected Balance Sheet Data - Schedule of Other Non-Current Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/SelectedBalanceSheetDataScheduleofOtherNonCurrentLiabilitiesDetails</Role>
      <ShortName>Selected Balance Sheet Data - Schedule of Other Non-Current Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>995965 - Disclosure - Selected Balance Sheet Data - Schedule of Other Non-Current Liabilities (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/DisclosureSelectedBalanceSheetDataScheduleOfOtherNoncurrentLiabilitiesParentheticalDetails</Role>
      <ShortName>Selected Balance Sheet Data - Schedule of Other Non-Current Liabilities (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>995975 - Disclosure - Earn-out Shares Liability (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/EarnoutSharesLiabilityDetails</Role>
      <ShortName>Earn-out Shares Liability (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/EarnoutSharesLiability</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>995985 - Disclosure - Convertible Notes - Narrative (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/ConvertibleNotesNarrativeDetails</Role>
      <ShortName>Convertible Notes - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>995995 - Disclosure - Convertible Notes - Schedule of Debt Instruments Subject to Mandatory Prepayments (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/ConvertibleNotesScheduleofDebtInstrumentsSubjecttoMandatoryPrepaymentsDetails</Role>
      <ShortName>Convertible Notes - Schedule of Debt Instruments Subject to Mandatory Prepayments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>996005 - Disclosure - Equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/EquityDetails</Role>
      <ShortName>Equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/Equity</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>996015 - Disclosure - Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/DerivativeInstrumentsDetails</Role>
      <ShortName>Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/DerivativeInstruments</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>996025 - Disclosure - Share-Based Compensation - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/ShareBasedCompensationNarrativeDetails</Role>
      <ShortName>Share-Based Compensation - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>996035 - Disclosure - Share-Based Compensation - Schedule of Stock Options Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/ShareBasedCompensationScheduleofStockOptionsActivityDetails</Role>
      <ShortName>Share-Based Compensation - Schedule of Stock Options Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>996045 - Disclosure - Share-Based Compensation - Schedule of RSU activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/ShareBasedCompensationScheduleofRSUactivityDetails</Role>
      <ShortName>Share-Based Compensation - Schedule of RSU activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>996055 - Disclosure - Share-Based Compensation - Schedule of Recognized Stock-based Compensation Expense Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/ShareBasedCompensationScheduleofRecognizedStockbasedCompensationExpenseActivityDetails</Role>
      <ShortName>Share-Based Compensation - Schedule of Recognized Stock-based Compensation Expense Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>996065 - Disclosure - Property and Equipment, net - Schedule of Property, Plant and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/PropertyandEquipmentnetScheduleofPropertyPlantandEquipmentDetails</Role>
      <ShortName>Property and Equipment, net - Schedule of Property, Plant and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>996075 - Disclosure - Property and Equipment, net - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/PropertyandEquipmentnetNarrativeDetails</Role>
      <ShortName>Property and Equipment, net - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>996085 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/CommitmentsandContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/CommitmentsandContingencies</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>996095 - Disclosure - Related Party Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/RelatedPartyTransactionsDetails</Role>
      <ShortName>Related Party Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/RelatedPartyTransactions</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>996105 - Disclosure - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/IncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/IncomeTaxes</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>996115 - Disclosure - Net Loss per Share - Schedule of Computation of Basic and Diluted Net Income (Loss) Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/NetLossperShareScheduleofComputationofBasicandDilutedNetIncomeLossPerShareDetails</Role>
      <ShortName>Net Loss per Share - Schedule of Computation of Basic and Diluted Net Income (Loss) Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>996125 - Disclosure - Net Loss per Share - Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/NetLossperShareScheduleofAntidilutiveSecuritiesExcludedfromComputationofEarningsPerShareDetails</Role>
      <ShortName>Net Loss per Share - Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>996135 - Disclosure - Segment Reporting (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/SegmentReportingDetails</Role>
      <ShortName>Segment Reporting (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/SegmentReportingTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>996145 - Disclosure - Segment Reporting - Segment Reporting (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/DisclosureSegmentReportingSegmentReportingParentheticalDetails</Role>
      <ShortName>Segment Reporting - Segment Reporting (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>996155 - Disclosure - Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/FairValueMeasurementsDetails</Role>
      <ShortName>Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xostrucks.com/20260630/taxonomy/role/FairValueMeasurementsTables</ParentRole>
      <Position>78</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>996165 - Disclosure - Revision of Previously Reported Information - Schedule of Previously Issued Financial Statements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/DisclosureRevisionOfPreviouslyReportedInformationScheduleOfPreviouslyIssuedFinancialStatementsDetails</Role>
      <ShortName>Revision of Previously Reported Information - Schedule of Previously Issued Financial Statements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="xos-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>996175 - Disclosure - Subsequent Events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xostrucks.com/20260630/taxonomy/role/SubsequentEventsDetails</Role>
      <ShortName>Subsequent Events (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="xos-20260630.htm">xos-20260630.htm</File>
    <File>xos-20260630.xsd</File>
  </InputFiles>
  <SupplementalFiles>
    <File>img185799721_0.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="882">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="32">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="21">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>false</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
