<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>160</ContextCount>
  <ElementCount>193</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>61</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>13</UnitCount>
  <MyReports>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>9952151 - Statement - Condensed Consolidated Statements of Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/CondensedConsolidatedStatementsofIncome</Role>
      <ShortName>Condensed Consolidated Statements of Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952152 - Statement - Condensed Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/CondensedConsolidatedStatementsofComprehensiveIncome</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952153 - Statement - Condensed Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/CondensedConsolidatedBalanceSheets</Role>
      <ShortName>Condensed Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952154 - Statement - Condensed Consolidated Statements of Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/CondensedConsolidatedStatementsofShareholdersEquity</Role>
      <ShortName>Condensed Consolidated Statements of Shareholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952155 - Statement - Condensed Consolidated Statements of Shareholders' Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/CondensedConsolidatedStatementsofShareholdersEquityParenthetical</Role>
      <ShortName>Condensed Consolidated Statements of Shareholders' Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952156 - Statement - Condensed Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/CondensedConsolidatedStatementsofCashFlows</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952157 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/SummaryofSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952158 - Disclosure - Net Income Per Common Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/NetIncomePerCommonShare</Role>
      <ShortName>Net Income Per Common Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952159 - Disclosure - Short-term Borrowings and Long-term Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebt</Role>
      <ShortName>Short-term Borrowings and Long-term Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952160 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/Contingencies</Role>
      <ShortName>Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - Segments and Disaggregated Revenue</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/SegmentsandDisaggregatedRevenue</Role>
      <ShortName>Segments and Disaggregated Revenue</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.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>14</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9955511 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/SummaryofSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.walmart.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>15</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - Net Income Per Common Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/NetIncomePerCommonShareTables</Role>
      <ShortName>Net Income Per Common Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.walmart.com/role/NetIncomePerCommonShare</ParentRole>
      <Position>16</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - Short-term Borrowings and Long-term Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebtTables</Role>
      <ShortName>Short-term Borrowings and Long-term Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebt</ParentRole>
      <Position>17</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.walmart.com/role/FairValueMeasurements</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - Segments and Disaggregated Revenue (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/SegmentsandDisaggregatedRevenueTables</Role>
      <ShortName>Segments and Disaggregated Revenue (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.walmart.com/role/SegmentsandDisaggregatedRevenue</ParentRole>
      <Position>19</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - Summary of Significant Accounting Policies (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/SummaryofSignificantAccountingPoliciesNarrativeDetails</Role>
      <ShortName>Summary of Significant Accounting Policies (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.walmart.com/role/SummaryofSignificantAccountingPoliciesPolicies</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - Net Income Per Common Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/NetIncomePerCommonShareDetails</Role>
      <ShortName>Net Income Per Common Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.walmart.com/role/NetIncomePerCommonShareTables</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - Short-term Borrowings and Long-term Debt (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebtNarrativeDetails</Role>
      <ShortName>Short-term Borrowings and Long-term Debt (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebtTables</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - Short-term Borrowings and Long-term Debt (Schedule of Long-term Debt Instruments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebtScheduleofLongtermDebtInstrumentsDetails</Role>
      <ShortName>Short-term Borrowings and Long-term Debt (Schedule of Long-term Debt Instruments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebtTables</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - Short-term Borrowings and Long-term Debt (Significant Long-term Debt Issued) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebtSignificantLongtermDebtIssuedDetails</Role>
      <ShortName>Short-term Borrowings and Long-term Debt (Significant Long-term Debt Issued) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebtTables</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - Short-term Borrowings and Long-term Debt (Significant Debt Repayments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebtSignificantDebtRepaymentsDetails</Role>
      <ShortName>Short-term Borrowings and Long-term Debt (Significant Debt Repayments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebtTables</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - Fair Value Measurements - (Recurring and Nonrecurring) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/FairValueMeasurementsRecurringandNonrecurringDetails</Role>
      <ShortName>Fair Value Measurements - (Recurring and Nonrecurring) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.walmart.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - Fair Value Measurements (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/FairValueMeasurementsNarrativeDetails</Role>
      <ShortName>Fair Value Measurements (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.walmart.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - Fair Value Measurements (Notional Amounts and Fair Values of Derivatives) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/FairValueMeasurementsNotionalAmountsandFairValuesofDerivativesDetails</Role>
      <ShortName>Fair Value Measurements (Notional Amounts and Fair Values of Derivatives) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.walmart.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - Fair Value Measurements (Carrying Value and Fair Value of Long-Term Debt, Including Current Portion) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/FairValueMeasurementsCarryingValueandFairValueofLongTermDebtIncludingCurrentPortionDetails</Role>
      <ShortName>Fair Value Measurements (Carrying Value and Fair Value of Long-Term Debt, Including Current Portion) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.walmart.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/ContingenciesDetails</Role>
      <ShortName>Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.walmart.com/role/Contingencies</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Segments and Disaggregated Revenue - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/SegmentsandDisaggregatedRevenueNarrativeDetails</Role>
      <ShortName>Segments and Disaggregated Revenue - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - Segments and Disaggregated Revenue - Schedule of Segment Reporting Information by Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/SegmentsandDisaggregatedRevenueScheduleofSegmentReportingInformationbySegmentDetails</Role>
      <ShortName>Segments and Disaggregated Revenue - Schedule of Segment Reporting Information by Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Segments and Disaggregated Revenue - Revenue from Contract with Customer Excluding Assessed Tax Walmart U.S (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/SegmentsandDisaggregatedRevenueRevenuefromContractwithCustomerExcludingAssessedTaxWalmartUSDetails</Role>
      <ShortName>Segments and Disaggregated Revenue - Revenue from Contract with Customer Excluding Assessed Tax Walmart U.S (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Segments and Disaggregated Revenue - Revenue from Contract with Customer Excluding Assessed Tax, International (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/SegmentsandDisaggregatedRevenueRevenuefromContractwithCustomerExcludingAssessedTaxInternationalDetails</Role>
      <ShortName>Segments and Disaggregated Revenue - Revenue from Contract with Customer Excluding Assessed Tax, International (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="wmt-20260430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - Segments and Disaggregated Revenue - Revenue from Contract with Customer Excluding Assessed Tax, Sam's Club (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.walmart.com/role/SegmentsandDisaggregatedRevenueRevenuefromContractwithCustomerExcludingAssessedTaxSamsClubDetails</Role>
      <ShortName>Segments and Disaggregated Revenue - Revenue from Contract with Customer Excluding Assessed Tax, Sam's Club (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</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="wmt-20260430.htm">wmt-20260430.htm</File>
    <File>wmt-20260430.xsd</File>
    <File>wmt-20260430_cal.xml</File>
    <File>wmt-20260430_def.xml</File>
    <File>wmt-20260430_lab.xml</File>
    <File>wmt-20260430_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>wmt-20260430_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="524">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="53">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="32">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
