<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019ce87a-5e72-7ec1-9ee0-76f985f3114c,g:cdde8d73-82ee-4a07-af99-1fe46d7dd6a6-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.walmart.com/role/CoverPage" xlink:type="simple" xlink:href="wmt-20260430.xsd#CoverPage"/>
  <link:definitionLink xlink:role="http://www.walmart.com/role/CoverPage" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentInformationTable_019ce87a-5fc9-74d2-95e5-414dd405bbf6" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentInformationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_DocumentInformationTable_019ce87a-5fc9-74d2-95e5-414dd405bbf6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_019ce87a-5fc9-7d05-bd5b-5b2bd56d173f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_019ce87a-5fc9-74d2-95e5-414dd405bbf6" xlink:to="loc_us-gaap_StatementClassOfStockAxis_019ce87a-5fc9-7d05-bd5b-5b2bd56d173f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019ce87a-5fc9-7d05-bd5b-5b2bd56d173f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019ce87a-5fc9-7d05-bd5b-5b2bd56d173f" xlink:to="loc_us-gaap_ClassOfStockDomain_019ce87a-5fc9-7d05-bd5b-5b2bd56d173f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019ce87a-5fc9-79f0-99c4-f6ff4db95686" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019ce87a-5fc9-7d05-bd5b-5b2bd56d173f" xlink:to="loc_us-gaap_ClassOfStockDomain_019ce87a-5fc9-79f0-99c4-f6ff4db95686" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_CommonStockparvalue0.10pershareMember_019ce87a-5fc9-7e78-95ab-be3302b84bcb" xlink:href="wmt-20260430.xsd#wmt_CommonStockparvalue0.10pershareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019ce87a-5fc9-79f0-99c4-f6ff4db95686" xlink:to="loc_wmt_CommonStockparvalue0.10pershareMember_019ce87a-5fc9-7e78-95ab-be3302b84bcb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_A1050NotesDue2026Member_019ce87a-5fc9-7ee8-b8ac-706e65a7daf6" xlink:href="wmt-20260430.xsd#wmt_A1050NotesDue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019ce87a-5fc9-79f0-99c4-f6ff4db95686" xlink:to="loc_wmt_A1050NotesDue2026Member_019ce87a-5fc9-7ee8-b8ac-706e65a7daf6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_A1500NotesDue2028Member_019ce87a-5fc9-711d-8270-04b56dce4d25" xlink:href="wmt-20260430.xsd#wmt_A1500NotesDue2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019ce87a-5fc9-79f0-99c4-f6ff4db95686" xlink:to="loc_wmt_A1500NotesDue2028Member_019ce87a-5fc9-711d-8270-04b56dce4d25" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_A4875NotesDue2029Member_019ce87a-5fc9-70e3-8294-5aa9f24dc025" xlink:href="wmt-20260430.xsd#wmt_A4875NotesDue2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019ce87a-5fc9-79f0-99c4-f6ff4db95686" xlink:to="loc_wmt_A4875NotesDue2029Member_019ce87a-5fc9-70e3-8294-5aa9f24dc025" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_A5750NotesDue2030Member_019ce87a-5fc9-7c58-9ffb-9d363ca738d6" xlink:href="wmt-20260430.xsd#wmt_A5750NotesDue2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019ce87a-5fc9-79f0-99c4-f6ff4db95686" xlink:to="loc_wmt_A5750NotesDue2030Member_019ce87a-5fc9-7c58-9ffb-9d363ca738d6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_A1800NotesDue2031Member_019ce87a-5fc9-7603-8dff-7ece72bab44e" xlink:href="wmt-20260430.xsd#wmt_A1800NotesDue2031Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019ce87a-5fc9-79f0-99c4-f6ff4db95686" xlink:to="loc_wmt_A1800NotesDue2031Member_019ce87a-5fc9-7603-8dff-7ece72bab44e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_A5625NotesDue2034Member_019ce87a-5fc9-76a2-9a31-f3367ed97359" xlink:href="wmt-20260430.xsd#wmt_A5625NotesDue2034Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019ce87a-5fc9-79f0-99c4-f6ff4db95686" xlink:to="loc_wmt_A5625NotesDue2034Member_019ce87a-5fc9-76a2-9a31-f3367ed97359" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_A5250NotesDue2035Member_019ce87a-5fc9-72fb-ab4f-6c35b4aef561" xlink:href="wmt-20260430.xsd#wmt_A5250NotesDue2035Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019ce87a-5fc9-79f0-99c4-f6ff4db95686" xlink:to="loc_wmt_A5250NotesDue2035Member_019ce87a-5fc9-72fb-ab4f-6c35b4aef561" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_A4875NotesDue2039Member_019ce87a-5fc9-703f-96e0-88951713eb86" xlink:href="wmt-20260430.xsd#wmt_A4875NotesDue2039Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019ce87a-5fc9-79f0-99c4-f6ff4db95686" xlink:to="loc_wmt_A4875NotesDue2039Member_019ce87a-5fc9-703f-96e0-88951713eb86" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentType_019ce87a-5fc9-79da-8f35-e7468bff8fa2" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentType"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_DocumentType_019ce87a-5fc9-79da-8f35-e7468bff8fa2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentQuarterlyReport_019ce87a-5fc9-7358-b0b6-ac30be82cc76" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentQuarterlyReport"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_DocumentQuarterlyReport_019ce87a-5fc9-7358-b0b6-ac30be82cc76" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentPeriodEndDate_019ce87a-5fc9-79ea-9dc7-76b51a0ec2ab" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentPeriodEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_DocumentPeriodEndDate_019ce87a-5fc9-79ea-9dc7-76b51a0ec2ab" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentTransitionReport_019ce87a-5fc9-7802-af28-3629b1284802" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentTransitionReport"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_DocumentTransitionReport_019ce87a-5fc9-7802-af28-3629b1284802" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFileNumber_019ce87a-5fc9-7342-baef-1ea100d2b2e8" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityFileNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_EntityFileNumber_019ce87a-5fc9-7342-baef-1ea100d2b2e8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityRegistrantName_019ce87a-5fc9-717e-bfc0-3f3d74cdaa2f" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityRegistrantName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_EntityRegistrantName_019ce87a-5fc9-717e-bfc0-3f3d74cdaa2f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityIncorporationStateCountryCode_019ce87a-5fc9-7fa8-81cc-3cb80b1f7928" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityIncorporationStateCountryCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_EntityIncorporationStateCountryCode_019ce87a-5fc9-7fa8-81cc-3cb80b1f7928" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityTaxIdentificationNumber_019ce87a-5fc9-7056-aea4-c079bffeb5b4" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityTaxIdentificationNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_EntityTaxIdentificationNumber_019ce87a-5fc9-7056-aea4-c079bffeb5b4" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressAddressLine1_019ce87a-5fc9-761b-94ac-301dc0c0e761" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressAddressLine1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_EntityAddressAddressLine1_019ce87a-5fc9-761b-94ac-301dc0c0e761" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressCityOrTown_019ce87a-5fc9-7fce-b9cf-19235bd48d5e" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressCityOrTown"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_EntityAddressCityOrTown_019ce87a-5fc9-7fce-b9cf-19235bd48d5e" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressStateOrProvince_019ce87a-5fc9-7045-a860-b7aeb758fe0e" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressStateOrProvince"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_EntityAddressStateOrProvince_019ce87a-5fc9-7045-a860-b7aeb758fe0e" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressPostalZipCode_019ce87a-5fc9-7b4c-8df5-95cb8961e94a" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressPostalZipCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_EntityAddressPostalZipCode_019ce87a-5fc9-7b4c-8df5-95cb8961e94a" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CityAreaCode_019ce87a-5fc9-79a3-8dc2-288aaacc58bd" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_CityAreaCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_CityAreaCode_019ce87a-5fc9-79a3-8dc2-288aaacc58bd" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LocalPhoneNumber_019ce87a-5fc9-70b6-8adf-32a457e65f8b" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_LocalPhoneNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_LocalPhoneNumber_019ce87a-5fc9-70b6-8adf-32a457e65f8b" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_Security12bTitle_019ce87a-5fc9-73e3-a4ab-f5ced3c3be01" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_Security12bTitle"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_Security12bTitle_019ce87a-5fc9-73e3-a4ab-f5ced3c3be01" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_TradingSymbol_019ce87a-5fc9-78f1-87dc-081368514422" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_TradingSymbol"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_TradingSymbol_019ce87a-5fc9-78f1-87dc-081368514422" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_SecurityExchangeName_019ce87a-5fc9-749b-9648-3fe7188b046e" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_SecurityExchangeName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_SecurityExchangeName_019ce87a-5fc9-749b-9648-3fe7188b046e" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCurrentReportingStatus_019ce87a-5fc9-7d4c-a81d-33be9f3a0761" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityCurrentReportingStatus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_EntityCurrentReportingStatus_019ce87a-5fc9-7d4c-a81d-33be9f3a0761" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityInteractiveDataCurrent_019ce87a-5fc9-7882-931a-55b9c827a0ff" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityInteractiveDataCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_EntityInteractiveDataCurrent_019ce87a-5fc9-7882-931a-55b9c827a0ff" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFilerCategory_019ce87a-5fc9-7962-9493-d119ef8f8d60" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityFilerCategory"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_EntityFilerCategory_019ce87a-5fc9-7962-9493-d119ef8f8d60" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntitySmallBusiness_019ce87a-5fc9-7678-ae56-c9407bad7217" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntitySmallBusiness"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_EntitySmallBusiness_019ce87a-5fc9-7678-ae56-c9407bad7217" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityEmergingGrowthCompany_019ce87a-5fc9-713f-8783-e5e8aad0231c" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityEmergingGrowthCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_EntityEmergingGrowthCompany_019ce87a-5fc9-713f-8783-e5e8aad0231c" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityShellCompany_019ce87a-5fc9-7e0b-be7e-833c7b434a26" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityShellCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_EntityShellCompany_019ce87a-5fc9-7e0b-be7e-833c7b434a26" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_019ce87a-5fc9-76df-a119-2abc8ea6de9e" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityCommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_019ce87a-5fc9-76df-a119-2abc8ea6de9e" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCentralIndexKey_019ce87a-5fc9-7572-8f95-716f0b6e7feb" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityCentralIndexKey"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_EntityCentralIndexKey_019ce87a-5fc9-7572-8f95-716f0b6e7feb" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CurrentFiscalYearEndDate_019ce87a-5fc9-7961-9b9b-812fdfb062db" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_CurrentFiscalYearEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_CurrentFiscalYearEndDate_019ce87a-5fc9-7961-9b9b-812fdfb062db" xlink:type="arc" order="25"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalYearFocus_019ce87a-5fc9-7015-bf75-82519d4dc7d8" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentFiscalYearFocus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_DocumentFiscalYearFocus_019ce87a-5fc9-7015-bf75-82519d4dc7d8" xlink:type="arc" order="26"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalPeriodFocus_019ce87a-5fc9-7c7b-a78b-c9e5f5b99bec" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentFiscalPeriodFocus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_DocumentFiscalPeriodFocus_019ce87a-5fc9-7c7b-a78b-c9e5f5b99bec" xlink:type="arc" order="27"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_AmendmentFlag_019ce87a-5fc9-7931-b98d-41a6915c39e9" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AmendmentFlag"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019ce87a-5fc9-7dca-b57a-8cc2319a815a" xlink:to="loc_dei_AmendmentFlag_019ce87a-5fc9-7931-b98d-41a6915c39e9" xlink:type="arc" order="28"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.walmart.com/role/CondensedConsolidatedStatementsofShareholdersEquity" xlink:type="simple" xlink:href="wmt-20260430.xsd#CondensedConsolidatedStatementsofShareholdersEquity"/>
  <link:definitionLink xlink:role="http://www.walmart.com/role/CondensedConsolidatedStatementsofShareholdersEquity" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_019ce87a-5fc9-7e6a-b974-4732bac57b51" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_019ce87a-5fc9-7aab-9ef3-68ca1b730fd0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_019ce87a-5fc9-7e6a-b974-4732bac57b51" xlink:to="loc_us-gaap_StatementTable_019ce87a-5fc9-7aab-9ef3-68ca1b730fd0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_019ce87a-5fc9-7fe8-aec9-9dedd958d59f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019ce87a-5fc9-7aab-9ef3-68ca1b730fd0" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_019ce87a-5fc9-7fe8-aec9-9dedd958d59f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019ce87a-5fc9-7fe8-aec9-9dedd958d59f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019ce87a-5fc9-7fe8-aec9-9dedd958d59f" xlink:to="loc_us-gaap_EquityComponentDomain_019ce87a-5fc9-7fe8-aec9-9dedd958d59f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019ce87a-5fc9-7aa1-8844-ca819258684b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019ce87a-5fc9-7fe8-aec9-9dedd958d59f" xlink:to="loc_us-gaap_EquityComponentDomain_019ce87a-5fc9-7aa1-8844-ca819258684b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_019ce87a-5fc9-7029-afa6-d68a5292caa2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019ce87a-5fc9-7aa1-8844-ca819258684b" xlink:to="loc_us-gaap_CommonStockMember_019ce87a-5fc9-7029-afa6-d68a5292caa2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_019ce87a-5fc9-7174-a374-9d263f583c4d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019ce87a-5fc9-7aa1-8844-ca819258684b" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_019ce87a-5fc9-7174-a374-9d263f583c4d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_019ce87a-5fc9-7d37-86ac-8f235c790891" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019ce87a-5fc9-7aa1-8844-ca819258684b" xlink:to="loc_us-gaap_RetainedEarningsMember_019ce87a-5fc9-7d37-86ac-8f235c790891" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019ce87a-5fc9-75ef-808c-7ab7a163ba8f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019ce87a-5fc9-7aa1-8844-ca819258684b" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019ce87a-5fc9-75ef-808c-7ab7a163ba8f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParentMember_019ce87a-5fc9-7b6b-b964-a2524bd146d0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019ce87a-5fc9-7aa1-8844-ca819258684b" xlink:to="loc_us-gaap_ParentMember_019ce87a-5fc9-7b6b-b964-a2524bd146d0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestMember_019ce87a-5fc9-7888-9ce8-942ed7114957" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019ce87a-5fc9-7aa1-8844-ca819258684b" xlink:to="loc_us-gaap_NoncontrollingInterestMember_019ce87a-5fc9-7888-9ce8-942ed7114957" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019ce87a-5fc9-7999-b92d-c9d0b4355c86" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019ce87a-5fc9-7e6a-b974-4732bac57b51" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019ce87a-5fc9-7999-b92d-c9d0b4355c86" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019ce87a-5fc9-768b-b829-d83f4ca3ce61" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019ce87a-5fc9-7999-b92d-c9d0b4355c86" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_019ce87a-5fc9-768b-b829-d83f4ca3ce61" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_019ce87a-5fc9-79da-9e08-32a405311cca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019ce87a-5fc9-7999-b92d-c9d0b4355c86" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_019ce87a-5fc9-79da-9e08-32a405311cca" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossIncludingPortionAttributableToNonredeemableNoncontrollingInterest_019ce87a-5fc9-7ddc-b463-17ee95068d85" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossIncludingPortionAttributableToNonredeemableNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019ce87a-5fc9-7999-b92d-c9d0b4355c86" xlink:to="loc_us-gaap_NetIncomeLossIncludingPortionAttributableToNonredeemableNoncontrollingInterest_019ce87a-5fc9-7ddc-b463-17ee95068d85" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_019e65fb-f7cf-74d5-9faf-5525e310ac76" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019ce87a-5fc9-7999-b92d-c9d0b4355c86" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_019e65fb-f7cf-74d5-9faf-5525e310ac76" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCash_019ce87a-5fc9-7762-a623-9b8b7877cf23" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DividendsCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019ce87a-5fc9-7999-b92d-c9d0b4355c86" xlink:to="loc_us-gaap_DividendsCash_019ce87a-5fc9-7762-a623-9b8b7877cf23" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_019ce87a-5fc9-7025-8e09-5096df3e6540" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019ce87a-5fc9-7999-b92d-c9d0b4355c86" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_019ce87a-5fc9-7025-8e09-5096df3e6540" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_019ce87a-5fc9-7632-beb6-e93eb29a0140" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019ce87a-5fc9-7999-b92d-c9d0b4355c86" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_019ce87a-5fc9-7632-beb6-e93eb29a0140" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityOtherShares_019ce87a-5fc9-705b-8930-83826f048064" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquityOtherShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019ce87a-5fc9-7999-b92d-c9d0b4355c86" xlink:to="loc_us-gaap_StockholdersEquityOtherShares_019ce87a-5fc9-705b-8930-83826f048064" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityOther_019ce87a-5fc9-7990-bf5c-71d3bebc850b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquityOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019ce87a-5fc9-7999-b92d-c9d0b4355c86" xlink:to="loc_us-gaap_StockholdersEquityOther_019ce87a-5fc9-7990-bf5c-71d3bebc850b" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019ce87a-5fc9-7f09-9b11-429ad21f0893" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_019ce87a-5fc9-71c4-9efe-ba788de7373f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.walmart.com/role/SegmentsandDisaggregatedRevenueTables" xlink:type="simple" xlink:href="wmt-20260430.xsd#SegmentsandDisaggregatedRevenueTables"/>
  <link:definitionLink xlink:role="http://www.walmart.com/role/SegmentsandDisaggregatedRevenueTables" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_019ce87a-5fc9-7942-9bbb-5d6111f24fe1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_019ce87a-5fc9-77f2-99d9-2337f9f3553c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019ce87a-5fc9-7942-9bbb-5d6111f24fe1" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_019ce87a-5fc9-77f2-99d9-2337f9f3553c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-7093-86d4-a3de565f4274" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019ce87a-5fc9-77f2-99d9-2337f9f3553c" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-7093-86d4-a3de565f4274" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7093-86d4-a3de565f4274_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-7093-86d4-a3de565f4274" xlink:to="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7093-86d4-a3de565f4274_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019ce87a-5fc9-773b-9602-3dabad21cef7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-7093-86d4-a3de565f4274" xlink:to="loc_us-gaap_SegmentDomain_019ce87a-5fc9-773b-9602-3dabad21cef7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_WalmartUSMember_019ce87a-5fc9-7c93-8de0-319ef7ccc76b" xlink:href="wmt-20260430.xsd#wmt_WalmartUSMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019ce87a-5fc9-773b-9602-3dabad21cef7" xlink:to="loc_wmt_WalmartUSMember_019ce87a-5fc9-7c93-8de0-319ef7ccc76b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_WalmartInternationalMember_019ce87a-5fc9-73e0-afbe-53093a9dd00f" xlink:href="wmt-20260430.xsd#wmt_WalmartInternationalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019ce87a-5fc9-773b-9602-3dabad21cef7" xlink:to="loc_wmt_WalmartInternationalMember_019ce87a-5fc9-73e0-afbe-53093a9dd00f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_SamsClubUSMember_019ce87a-5fc9-72e5-a927-fdb362b90e05" xlink:href="wmt-20260430.xsd#wmt_SamsClubUSMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019ce87a-5fc9-773b-9602-3dabad21cef7" xlink:to="loc_wmt_SamsClubUSMember_019ce87a-5fc9-72e5-a927-fdb362b90e05" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock_019ce87a-5fc9-7827-a27a-0ab70c8c3afa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019ce87a-5fc9-7942-9bbb-5d6111f24fe1" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock_019ce87a-5fc9-7827-a27a-0ab70c8c3afa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTableTextBlock_019ce87a-5fc9-7ace-a6fc-5195ca7ad273" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueTableTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019ce87a-5fc9-7942-9bbb-5d6111f24fe1" xlink:to="loc_us-gaap_DisaggregationOfRevenueTableTextBlock_019ce87a-5fc9-7ace-a6fc-5195ca7ad273" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebtNarrativeDetails" xlink:type="simple" xlink:href="wmt-20260430.xsd#ShorttermBorrowingsandLongtermDebtNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebtNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019ce87a-5fc9-76c4-ab8d-716f69eea6f6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019ce87a-5fc9-7d88-85ac-b568046a4051" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019ce87a-5fc9-76c4-ab8d-716f69eea6f6" xlink:to="loc_us-gaap_DebtInstrumentTable_019ce87a-5fc9-7d88-85ac-b568046a4051" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019ce87a-5fc9-75ec-be32-2e323fefc476" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019ce87a-5fc9-7d88-85ac-b568046a4051" xlink:to="loc_us-gaap_DebtInstrumentAxis_019ce87a-5fc9-75ec-be32-2e323fefc476" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-75ec-be32-2e323fefc476_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019ce87a-5fc9-75ec-be32-2e323fefc476" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-75ec-be32-2e323fefc476_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-71ce-8c58-ed0c93a3748c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019ce87a-5fc9-75ec-be32-2e323fefc476" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-71ce-8c58-ed0c93a3748c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_019ce87a-5fc9-73a0-8f75-075905a47724" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-71ce-8c58-ed0c93a3748c" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_019ce87a-5fc9-73a0-8f75-075905a47724" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_FiveYearCreditFacilityMember_019ce87a-5fc9-744d-a1c7-5b9fede66142" xlink:href="wmt-20260430.xsd#wmt_FiveYearCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-71ce-8c58-ed0c93a3748c" xlink:to="loc_wmt_FiveYearCreditFacilityMember_019ce87a-5fc9-744d-a1c7-5b9fede66142" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_019ce87a-5fc9-7390-96dd-2a7cc3b970e8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019ce87a-5fc9-7d88-85ac-b568046a4051" xlink:to="loc_us-gaap_CreditFacilityAxis_019ce87a-5fc9-7390-96dd-2a7cc3b970e8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_019ce87a-5fc9-7390-96dd-2a7cc3b970e8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_019ce87a-5fc9-7390-96dd-2a7cc3b970e8" xlink:to="loc_us-gaap_CreditFacilityDomain_019ce87a-5fc9-7390-96dd-2a7cc3b970e8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_019ce87a-5fc9-7237-be23-f01e4afb2805" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_019ce87a-5fc9-7390-96dd-2a7cc3b970e8" xlink:to="loc_us-gaap_CreditFacilityDomain_019ce87a-5fc9-7237-be23-f01e4afb2805" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticLineOfCreditMember_019ce87a-5fc9-77b9-9bc6-c811ac4ac599" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DomesticLineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_019ce87a-5fc9-7237-be23-f01e4afb2805" xlink:to="loc_us-gaap_DomesticLineOfCreditMember_019ce87a-5fc9-77b9-9bc6-c811ac4ac599" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTerm_019ce87a-5fc9-72a6-bd65-f832cc9b0e94" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019ce87a-5fc9-76c4-ab8d-716f69eea6f6" xlink:to="loc_us-gaap_DebtInstrumentTerm_019ce87a-5fc9-72a6-bd65-f832cc9b0e94" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019ce87a-5fc9-7bc5-b610-5b03a3fe6978" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019ce87a-5fc9-76c4-ab8d-716f69eea6f6" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019ce87a-5fc9-7bc5-b610-5b03a3fe6978" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebtSignificantLongtermDebtIssuedDetails" xlink:type="simple" xlink:href="wmt-20260430.xsd#ShorttermBorrowingsandLongtermDebtSignificantLongtermDebtIssuedDetails"/>
  <link:definitionLink xlink:role="http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebtSignificantLongtermDebtIssuedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019ce87a-5fc9-7ae8-8b26-0556e030a55a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019ce87a-5fc9-74eb-a536-d0e49684135a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019ce87a-5fc9-7ae8-8b26-0556e030a55a" xlink:to="loc_us-gaap_DebtInstrumentTable_019ce87a-5fc9-74eb-a536-d0e49684135a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019ce87a-5fc9-7d43-b8b4-0df50378ca0e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019ce87a-5fc9-74eb-a536-d0e49684135a" xlink:to="loc_us-gaap_DebtInstrumentAxis_019ce87a-5fc9-7d43-b8b4-0df50378ca0e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-7d43-b8b4-0df50378ca0e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019ce87a-5fc9-7d43-b8b4-0df50378ca0e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-7d43-b8b4-0df50378ca0e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-77c9-a492-9f16224528f9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019ce87a-5fc9-7d43-b8b4-0df50378ca0e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-77c9-a492-9f16224528f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_FloatingDebtDue2029Member_019ce87a-5fc9-7e7e-b76a-ad07160c39c5" xlink:href="wmt-20260430.xsd#wmt_FloatingDebtDue2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-77c9-a492-9f16224528f9" xlink:to="loc_wmt_FloatingDebtDue2029Member_019ce87a-5fc9-7e7e-b76a-ad07160c39c5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_A4.000DebtDue2029Member_019ddec8-7602-74b9-8a33-7dc38d598fb1" xlink:href="wmt-20260430.xsd#wmt_A4.000DebtDue2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-77c9-a492-9f16224528f9" xlink:to="loc_wmt_A4.000DebtDue2029Member_019ddec8-7602-74b9-8a33-7dc38d598fb1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_A4.150DebtDue2031Member_019ddec8-2f98-7108-802f-870dfd8ab0b5" xlink:href="wmt-20260430.xsd#wmt_A4.150DebtDue2031Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-77c9-a492-9f16224528f9" xlink:to="loc_wmt_A4.150DebtDue2031Member_019ddec8-2f98-7108-802f-870dfd8ab0b5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_A4.450DebtDue2033Member_019ddec7-ee5d-74b9-bc90-bf16597ae954" xlink:href="wmt-20260430.xsd#wmt_A4.450DebtDue2033Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-77c9-a492-9f16224528f9" xlink:to="loc_wmt_A4.450DebtDue2033Member_019ddec7-ee5d-74b9-bc90-bf16597ae954" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_A4.750DebtDue2036Member_019ddec7-aa69-7432-8b4b-1f70a52d65e9" xlink:href="wmt-20260430.xsd#wmt_A4.750DebtDue2036Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-77c9-a492-9f16224528f9" xlink:to="loc_wmt_A4.750DebtDue2036Member_019ddec7-aa69-7432-8b4b-1f70a52d65e9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019ce87a-5fc9-7e2d-84a9-63426b70a7db" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019ce87a-5fc9-74eb-a536-d0e49684135a" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019ce87a-5fc9-7e2d-84a9-63426b70a7db" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019ce87a-5fc9-7e2d-84a9-63426b70a7db_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019ce87a-5fc9-7e2d-84a9-63426b70a7db" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019ce87a-5fc9-7e2d-84a9-63426b70a7db_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019ce87a-5fc9-7dfa-8112-6d9d7fc585db" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019ce87a-5fc9-7e2d-84a9-63426b70a7db" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019ce87a-5fc9-7dfa-8112-6d9d7fc585db" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_SeniorUnsecuredNotesMember_019ce87a-5fc9-7209-b959-68ee72eb2124" xlink:href="wmt-20260430.xsd#wmt_SeniorUnsecuredNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019ce87a-5fc9-7dfa-8112-6d9d7fc585db" xlink:to="loc_wmt_SeniorUnsecuredNotesMember_019ce87a-5fc9-7209-b959-68ee72eb2124" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_019ce87a-5fc9-70d9-a5bb-3c25f087af14" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019ce87a-5fc9-7ae8-8b26-0556e030a55a" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_019ce87a-5fc9-70d9-a5bb-3c25f087af14" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019ce87a-5fc9-7d8e-9b80-5fb0e461f64c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019ce87a-5fc9-7ae8-8b26-0556e030a55a" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019ce87a-5fc9-7d8e-9b80-5fb0e461f64c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_019ce87a-5fc9-7232-889c-0665bd68e023" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019ce87a-5fc9-7ae8-8b26-0556e030a55a" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_019ce87a-5fc9-7232-889c-0665bd68e023" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebtSignificantDebtRepaymentsDetails" xlink:type="simple" xlink:href="wmt-20260430.xsd#ShorttermBorrowingsandLongtermDebtSignificantDebtRepaymentsDetails"/>
  <link:definitionLink xlink:role="http://www.walmart.com/role/ShorttermBorrowingsandLongtermDebtSignificantDebtRepaymentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019ce87a-5fc9-73b2-808d-19c18d00b912" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019ce87a-5fc9-7ac4-9f56-90ce4ff638fc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019ce87a-5fc9-73b2-808d-19c18d00b912" xlink:to="loc_us-gaap_DebtInstrumentTable_019ce87a-5fc9-7ac4-9f56-90ce4ff638fc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019ce87a-5fc9-7e9b-a044-ebb1ff947e1e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019ce87a-5fc9-7ac4-9f56-90ce4ff638fc" xlink:to="loc_us-gaap_DebtInstrumentAxis_019ce87a-5fc9-7e9b-a044-ebb1ff947e1e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-7e9b-a044-ebb1ff947e1e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019ce87a-5fc9-7e9b-a044-ebb1ff947e1e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-7e9b-a044-ebb1ff947e1e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-7506-b2a0-fe3beb8487e4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019ce87a-5fc9-7e9b-a044-ebb1ff947e1e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-7506-b2a0-fe3beb8487e4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_A2.550DebtDueApril2026Member_019ddec9-f30f-7f09-978b-af85668a853b" xlink:href="wmt-20260430.xsd#wmt_A2.550DebtDueApril2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-7506-b2a0-fe3beb8487e4" xlink:to="loc_wmt_A2.550DebtDueApril2026Member_019ddec9-f30f-7f09-978b-af85668a853b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_A4.000DebtDueApril2026Member_019ddec9-931f-7474-991e-be5241c8b315" xlink:href="wmt-20260430.xsd#wmt_A4.000DebtDueApril2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019ce87a-5fc9-7506-b2a0-fe3beb8487e4" xlink:to="loc_wmt_A4.000DebtDueApril2026Member_019ddec9-931f-7474-991e-be5241c8b315" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019ce87a-5fc9-7c5d-b32f-d11afe4c8ce1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019ce87a-5fc9-7ac4-9f56-90ce4ff638fc" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019ce87a-5fc9-7c5d-b32f-d11afe4c8ce1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019ce87a-5fc9-7c5d-b32f-d11afe4c8ce1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019ce87a-5fc9-7c5d-b32f-d11afe4c8ce1" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019ce87a-5fc9-7c5d-b32f-d11afe4c8ce1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019ce87a-5fc9-7b96-84df-dcdb89f68c90" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019ce87a-5fc9-7c5d-b32f-d11afe4c8ce1" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019ce87a-5fc9-7b96-84df-dcdb89f68c90" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebtMember_019ce87a-5fc9-7b9f-801a-2884966cdba0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UnsecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019ce87a-5fc9-7b96-84df-dcdb89f68c90" xlink:to="loc_us-gaap_UnsecuredDebtMember_019ce87a-5fc9-7b9f-801a-2884966cdba0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_019ce87a-5fc9-7214-9733-2ea990c418c5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019ce87a-5fc9-73b2-808d-19c18d00b912" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_019ce87a-5fc9-7214-9733-2ea990c418c5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019ce87a-5fc9-707f-8644-714a613f9800" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019ce87a-5fc9-73b2-808d-19c18d00b912" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019ce87a-5fc9-707f-8644-714a613f9800" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_RepaymentsOfSignificantLongTermDebt_019ce87a-5fc9-727b-bd6e-792fb694f10e" xlink:href="wmt-20260430.xsd#wmt_RepaymentsOfSignificantLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019ce87a-5fc9-73b2-808d-19c18d00b912" xlink:to="loc_wmt_RepaymentsOfSignificantLongTermDebt_019ce87a-5fc9-727b-bd6e-792fb694f10e" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.walmart.com/role/FairValueMeasurementsRecurringandNonrecurringDetails" xlink:type="simple" xlink:href="wmt-20260430.xsd#FairValueMeasurementsRecurringandNonrecurringDetails"/>
  <link:definitionLink xlink:role="http://www.walmart.com/role/FairValueMeasurementsRecurringandNonrecurringDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsLineItems_019ddecc-ef9a-7417-88cf-e452b60f032e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable_019ddecc-ef9a-7412-9ed3-284caae0fd45" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsLineItems_019ddecc-ef9a-7417-88cf-e452b60f032e" xlink:to="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable_019ddecc-ef9a-7412-9ed3-284caae0fd45" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019ddecc-ef9a-76e8-a4bf-f7a1824dede6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable_019ddecc-ef9a-7412-9ed3-284caae0fd45" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019ddecc-ef9a-76e8-a4bf-f7a1824dede6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ddecc-ef9a-76e8-a4bf-f7a1824dede6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019ddecc-ef9a-76e8-a4bf-f7a1824dede6" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ddecc-ef9a-76e8-a4bf-f7a1824dede6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ddecc-ef9a-74fd-95b9-6266409b29d1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019ddecc-ef9a-76e8-a4bf-f7a1824dede6" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ddecc-ef9a-74fd-95b9-6266409b29d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_019ddecc-ef9a-7aaa-9c96-4c9ad96d2613" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ddecc-ef9a-74fd-95b9-6266409b29d1" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_019ddecc-ef9a-7aaa-9c96-4c9ad96d2613" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_019ddecc-ef9a-7cbb-8207-a108ca5f8af4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ddecc-ef9a-74fd-95b9-6266409b29d1" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_019ddecc-ef9a-7cbb-8207-a108ca5f8af4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_019ddecc-ef9a-7e7e-975b-d5dcd235d29a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ddecc-ef9a-74fd-95b9-6266409b29d1" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_019ddecc-ef9a-7e7e-975b-d5dcd235d29a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019ddecc-ef9a-7a73-9e83-a97d2ee6b522" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable_019ddecc-ef9a-7412-9ed3-284caae0fd45" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019ddecc-ef9a-7a73-9e83-a97d2ee6b522" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_019ddecc-ef9a-7a73-9e83-a97d2ee6b522_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019ddecc-ef9a-7a73-9e83-a97d2ee6b522" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_019ddecc-ef9a-7a73-9e83-a97d2ee6b522_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_019ddecc-ef9a-7b7b-9476-1ff1980948b8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019ddecc-ef9a-7a73-9e83-a97d2ee6b522" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_019ddecc-ef9a-7b7b-9476-1ff1980948b8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_019ddecc-ef9a-75ba-ab64-78cdea209bab" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_019ddecc-ef9a-7b7b-9476-1ff1980948b8" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_019ddecc-ef9a-75ba-ab64-78cdea209bab" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_019ddecc-ef9a-72cb-983b-956d3c6aa04c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsLineItems_019ddecc-ef9a-7417-88cf-e452b60f032e" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_019ddecc-ef9a-72cb-983b-956d3c6aa04c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradingSecuritiesDebt_019ddecc-ef9a-7053-8b0a-88c092d8bd4d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TradingSecuritiesDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsLineItems_019ddecc-ef9a-7417-88cf-e452b60f032e" xlink:to="loc_us-gaap_TradingSecuritiesDebt_019ddecc-ef9a-7053-8b0a-88c092d8bd4d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_019ddecc-ef9a-7163-ab22-63362c708019" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsLineItems_019ddecc-ef9a-7417-88cf-e452b60f032e" xlink:to="loc_us-gaap_InvestmentsFairValueDisclosure_019ddecc-ef9a-7163-ab22-63362c708019" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.walmart.com/role/FairValueMeasurementsNotionalAmountsandFairValuesofDerivativesDetails" xlink:type="simple" xlink:href="wmt-20260430.xsd#FairValueMeasurementsNotionalAmountsandFairValuesofDerivativesDetails"/>
  <link:definitionLink xlink:role="http://www.walmart.com/role/FairValueMeasurementsNotionalAmountsandFairValuesofDerivativesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019ce87a-5fc9-7fe2-af53-e90dbcd05caa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019ce87a-5fc9-79f7-9406-c8b86417675b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019ce87a-5fc9-7fe2-af53-e90dbcd05caa" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019ce87a-5fc9-79f7-9406-c8b86417675b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019ce87a-5fc9-7a4f-a818-9a7094d2751f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019ce87a-5fc9-79f7-9406-c8b86417675b" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019ce87a-5fc9-7a4f-a818-9a7094d2751f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_019ce87a-5fc9-7a4f-a818-9a7094d2751f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019ce87a-5fc9-7a4f-a818-9a7094d2751f" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_019ce87a-5fc9-7a4f-a818-9a7094d2751f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_019ce87a-5fc9-7ae0-a8a7-0216b9cc7ab7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019ce87a-5fc9-7a4f-a818-9a7094d2751f" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_019ce87a-5fc9-7ae0-a8a7-0216b9cc7ab7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_019ce87a-5fc9-749b-9c9c-e43bed7b57a7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_019ce87a-5fc9-7ae0-a8a7-0216b9cc7ab7" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_019ce87a-5fc9-749b-9c9c-e43bed7b57a7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019ce87a-5fc9-7df7-b837-af8984bffec8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019ce87a-5fc9-79f7-9406-c8b86417675b" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019ce87a-5fc9-7df7-b837-af8984bffec8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_019ce87a-5fc9-7df7-b837-af8984bffec8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019ce87a-5fc9-7df7-b837-af8984bffec8" xlink:to="loc_us-gaap_HedgingRelationshipDomain_019ce87a-5fc9-7df7-b837-af8984bffec8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_019ce87a-5fc9-74f0-a84a-300e4d397cdc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_019ce87a-5fc9-7df7-b837-af8984bffec8" xlink:to="loc_us-gaap_HedgingRelationshipDomain_019ce87a-5fc9-74f0-a84a-300e4d397cdc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueHedgingMember_019ce87a-5fc9-7a4e-9a0b-b52a6f519a5b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_019ce87a-5fc9-74f0-a84a-300e4d397cdc" xlink:to="loc_us-gaap_FairValueHedgingMember_019ce87a-5fc9-7a4e-9a0b-b52a6f519a5b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_019ce87a-5fc9-7410-8d15-34068648265b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_019ce87a-5fc9-74f0-a84a-300e4d397cdc" xlink:to="loc_us-gaap_CashFlowHedgingMember_019ce87a-5fc9-7410-8d15-34068648265b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_019ce87a-5fc9-75dc-8905-2b34acad0373" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019ce87a-5fc9-79f7-9406-c8b86417675b" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_019ce87a-5fc9-75dc-8905-2b34acad0373" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019ce87a-5fc9-75dc-8905-2b34acad0373_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019ce87a-5fc9-75dc-8905-2b34acad0373" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019ce87a-5fc9-75dc-8905-2b34acad0373_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019ce87a-5fc9-7bd8-81a6-ba02f5f62caa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019ce87a-5fc9-75dc-8905-2b34acad0373" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019ce87a-5fc9-7bd8-81a6-ba02f5f62caa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateSwapMember_019ce87a-5fc9-7111-84d7-98c137ea175e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestRateSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019ce87a-5fc9-7bd8-81a6-ba02f5f62caa" xlink:to="loc_us-gaap_InterestRateSwapMember_019ce87a-5fc9-7111-84d7-98c137ea175e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CrossCurrencyInterestRateContractMember_019ce87a-5fc9-72ec-8d91-9509d8ee74f0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CrossCurrencyInterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019ce87a-5fc9-7bd8-81a6-ba02f5f62caa" xlink:to="loc_us-gaap_CrossCurrencyInterestRateContractMember_019ce87a-5fc9-72ec-8d91-9509d8ee74f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019ce87a-5fc9-78ef-a94d-729e07e79166" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_019ce87a-5fc9-79f7-9406-c8b86417675b" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019ce87a-5fc9-78ef-a94d-729e07e79166" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ce87a-5fc9-78ef-a94d-729e07e79166_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019ce87a-5fc9-78ef-a94d-729e07e79166" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ce87a-5fc9-78ef-a94d-729e07e79166_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ce87a-5fc9-7aaa-9d99-b8bd62199d6e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019ce87a-5fc9-78ef-a94d-729e07e79166" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ce87a-5fc9-7aaa-9d99-b8bd62199d6e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_019ce87a-5fc9-7eba-85c9-527110796df0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ce87a-5fc9-7aaa-9d99-b8bd62199d6e" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_019ce87a-5fc9-7eba-85c9-527110796df0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_019ce87a-5fc9-73dd-9048-8ef4be3a78db" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019ce87a-5fc9-7fe2-af53-e90dbcd05caa" xlink:to="loc_us-gaap_DerivativeNotionalAmount_019ce87a-5fc9-73dd-9048-8ef4be3a78db" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeNet_019ce87a-5fc9-7beb-b0bd-56c143d60da1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeFairValueOfDerivativeNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019ce87a-5fc9-7fe2-af53-e90dbcd05caa" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeNet_019ce87a-5fc9-7beb-b0bd-56c143d60da1" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.walmart.com/role/FairValueMeasurementsCarryingValueandFairValueofLongTermDebtIncludingCurrentPortionDetails" xlink:type="simple" xlink:href="wmt-20260430.xsd#FairValueMeasurementsCarryingValueandFairValueofLongTermDebtIncludingCurrentPortionDetails"/>
  <link:definitionLink xlink:role="http://www.walmart.com/role/FairValueMeasurementsCarryingValueandFairValueofLongTermDebtIncludingCurrentPortionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_019ce87a-5fc9-74e7-be24-53700bbe0d07" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_019ce87a-5fc9-7463-b675-e928e9d8c6e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_019ce87a-5fc9-74e7-be24-53700bbe0d07" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_019ce87a-5fc9-7463-b675-e928e9d8c6e3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019ce87a-5fc9-7976-aa1f-e332accfcd0b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_019ce87a-5fc9-7463-b675-e928e9d8c6e3" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019ce87a-5fc9-7976-aa1f-e332accfcd0b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ce87a-5fc9-7976-aa1f-e332accfcd0b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019ce87a-5fc9-7976-aa1f-e332accfcd0b" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ce87a-5fc9-7976-aa1f-e332accfcd0b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ce87a-5fc9-7df3-a254-72098c16a584" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019ce87a-5fc9-7976-aa1f-e332accfcd0b" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ce87a-5fc9-7df3-a254-72098c16a584" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_019ce87a-5fc9-7283-83e9-46cf72fabc9f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019ce87a-5fc9-7df3-a254-72098c16a584" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_019ce87a-5fc9-7283-83e9-46cf72fabc9f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_019ce87a-5fc9-7d0e-9870-74b6ddbe128c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByMeasurementBasisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_019ce87a-5fc9-7463-b675-e928e9d8c6e3" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_019ce87a-5fc9-7d0e-9870-74b6ddbe128c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_019ce87a-5fc9-7d0e-9870-74b6ddbe128c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_019ce87a-5fc9-7d0e-9870-74b6ddbe128c" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_019ce87a-5fc9-7d0e-9870-74b6ddbe128c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_019ce87a-5fc9-7790-959a-40d1737335f4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_019ce87a-5fc9-7d0e-9870-74b6ddbe128c" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_019ce87a-5fc9-7790-959a-40d1737335f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_019ce87a-5fc9-72c5-a1aa-70e6fed5dd12" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_019ce87a-5fc9-7790-959a-40d1737335f4" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_019ce87a-5fc9-72c5-a1aa-70e6fed5dd12" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_019ce87a-5fc9-77c2-aedd-eb0e490f1027" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_019ce87a-5fc9-72c5-a1aa-70e6fed5dd12" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_019ce87a-5fc9-77c2-aedd-eb0e490f1027" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_019ce87a-5fc9-7e49-a057-f8bfee4a7c16" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_019ce87a-5fc9-72c5-a1aa-70e6fed5dd12" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_019ce87a-5fc9-7e49-a057-f8bfee4a7c16" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_019ce87a-5fc9-7322-86ab-7a6241af0d63" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_019ce87a-5fc9-74e7-be24-53700bbe0d07" xlink:to="loc_us-gaap_LongTermDebtFairValue_019ce87a-5fc9-7322-86ab-7a6241af0d63" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.walmart.com/role/ContingenciesDetails" xlink:type="simple" xlink:href="wmt-20260430.xsd#ContingenciesDetails"/>
  <link:definitionLink xlink:role="http://www.walmart.com/role/ContingenciesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_019ce87a-5fc9-7271-a288-cfe8402ff011" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_019ce87a-5fc9-77af-b51e-3454052224b6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_019ce87a-5fc9-7271-a288-cfe8402ff011" xlink:to="loc_us-gaap_LossContingenciesTable_019ce87a-5fc9-77af-b51e-3454052224b6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseAxis_019ce87a-5fc9-7440-be3f-85cba3456ad3" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_LitigationCaseAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_019ce87a-5fc9-77af-b51e-3454052224b6" xlink:to="loc_srt_LitigationCaseAxis_019ce87a-5fc9-7440-be3f-85cba3456ad3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseTypeDomain_019ce87a-5fc9-7440-be3f-85cba3456ad3_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_LitigationCaseTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_LitigationCaseAxis_019ce87a-5fc9-7440-be3f-85cba3456ad3" xlink:to="loc_srt_LitigationCaseTypeDomain_019ce87a-5fc9-7440-be3f-85cba3456ad3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseTypeDomain_019ce87a-5fc9-70ba-ae3a-66f02183b6d8" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_LitigationCaseTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_LitigationCaseAxis_019ce87a-5fc9-7440-be3f-85cba3456ad3" xlink:to="loc_srt_LitigationCaseTypeDomain_019ce87a-5fc9-70ba-ae3a-66f02183b6d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_CanadaOpioidsClassActionComplaintsMember_019ce87a-5fc9-748a-806c-bc29ec0bf7f6" xlink:href="wmt-20260430.xsd#wmt_CanadaOpioidsClassActionComplaintsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_019ce87a-5fc9-70ba-ae3a-66f02183b6d8" xlink:to="loc_wmt_CanadaOpioidsClassActionComplaintsMember_019ce87a-5fc9-748a-806c-bc29ec0bf7f6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_AsdaEqualValueClaimsMember_019ce87a-5fc9-77ad-a25c-c8cea27bd14d" xlink:href="wmt-20260430.xsd#wmt_AsdaEqualValueClaimsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_019ce87a-5fc9-70ba-ae3a-66f02183b6d8" xlink:to="loc_wmt_AsdaEqualValueClaimsMember_019ce87a-5fc9-77ad-a25c-c8cea27bd14d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_MexicoAntitrustMatterMember_019ce87a-5fc9-7372-99e9-db84376e78fd" xlink:href="wmt-20260430.xsd#wmt_MexicoAntitrustMatterMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_019ce87a-5fc9-70ba-ae3a-66f02183b6d8" xlink:to="loc_wmt_MexicoAntitrustMatterMember_019ce87a-5fc9-7372-99e9-db84376e78fd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_DriverPlatformMattersMember_019d4ee1-2aaf-7354-8d39-fe733d7c4879" xlink:href="wmt-20260430.xsd#wmt_DriverPlatformMattersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_019ce87a-5fc9-70ba-ae3a-66f02183b6d8" xlink:to="loc_wmt_DriverPlatformMattersMember_019d4ee1-2aaf-7354-8d39-fe733d7c4879" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LitigationStatusAxis_019ce87a-5fc9-7f7c-b81c-5676acddaceb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LitigationStatusAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_019ce87a-5fc9-77af-b51e-3454052224b6" xlink:to="loc_us-gaap_LitigationStatusAxis_019ce87a-5fc9-7f7c-b81c-5676acddaceb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LitigationStatusDomain_019ce87a-5fc9-7f7c-b81c-5676acddaceb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LitigationStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LitigationStatusAxis_019ce87a-5fc9-7f7c-b81c-5676acddaceb" xlink:to="loc_us-gaap_LitigationStatusDomain_019ce87a-5fc9-7f7c-b81c-5676acddaceb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LitigationStatusDomain_019ce87a-5fc9-740f-b2cc-41b08ca115da" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LitigationStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LitigationStatusAxis_019ce87a-5fc9-7f7c-b81c-5676acddaceb" xlink:to="loc_us-gaap_LitigationStatusDomain_019ce87a-5fc9-740f-b2cc-41b08ca115da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PendingLitigationMember_019ce87a-5fc9-7167-a2f1-d0e8c030752b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PendingLitigationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LitigationStatusDomain_019ce87a-5fc9-740f-b2cc-41b08ca115da" xlink:to="loc_us-gaap_PendingLitigationMember_019ce87a-5fc9-7167-a2f1-d0e8c030752b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_NumberOfCasesBroughtByThirdPartyPayers_019e6b2c-ea7d-71a7-9078-2043be2b1345" xlink:href="wmt-20260430.xsd#wmt_NumberOfCasesBroughtByThirdPartyPayers"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019ce87a-5fc9-7271-a288-cfe8402ff011" xlink:to="loc_wmt_NumberOfCasesBroughtByThirdPartyPayers_019e6b2c-ea7d-71a7-9078-2043be2b1345" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_NumberOfCasesBroughtByHospitals_019ce87a-5fc9-734b-98d5-4149694b8e5e" xlink:href="wmt-20260430.xsd#wmt_NumberOfCasesBroughtByHospitals"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019ce87a-5fc9-7271-a288-cfe8402ff011" xlink:to="loc_wmt_NumberOfCasesBroughtByHospitals_019ce87a-5fc9-734b-98d5-4149694b8e5e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_NumberOfPutativeClassActions_019ce87a-5fc9-7fa5-b611-01faae1ae0a4" xlink:href="wmt-20260430.xsd#wmt_NumberOfPutativeClassActions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019ce87a-5fc9-7271-a288-cfe8402ff011" xlink:to="loc_wmt_NumberOfPutativeClassActions_019ce87a-5fc9-7fa5-b611-01faae1ae0a4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_LossContingencyNumberOfFormerEmployeesWhoBroughtComplaints_019ce87a-5fc9-7d51-8371-cbdc36562c79" xlink:href="wmt-20260430.xsd#wmt_LossContingencyNumberOfFormerEmployeesWhoBroughtComplaints"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019ce87a-5fc9-7271-a288-cfe8402ff011" xlink:to="loc_wmt_LossContingencyNumberOfFormerEmployeesWhoBroughtComplaints_019ce87a-5fc9-7d51-8371-cbdc36562c79" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_LossContingencyNumberOfCurrentAndFormerEmployeesWhoBroughtClaims_019ce87a-5fc9-7f5f-b420-cb7d8dbe5341" xlink:href="wmt-20260430.xsd#wmt_LossContingencyNumberOfCurrentAndFormerEmployeesWhoBroughtClaims"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019ce87a-5fc9-7271-a288-cfe8402ff011" xlink:to="loc_wmt_LossContingencyNumberOfCurrentAndFormerEmployeesWhoBroughtClaims_019ce87a-5fc9-7f5f-b420-cb7d8dbe5341" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_LossContingencyNumberOfPhases_019ce87a-5fc9-7b92-8102-a0d953d328b3" xlink:href="wmt-20260430.xsd#wmt_LossContingencyNumberOfPhases"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019ce87a-5fc9-7271-a288-cfe8402ff011" xlink:to="loc_wmt_LossContingencyNumberOfPhases_019ce87a-5fc9-7b92-8102-a0d953d328b3" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_LossContingencyNumberOfPhasesComplete_019d4ee0-30b6-7131-95c4-47cfa5f33cf7" xlink:href="wmt-20260430.xsd#wmt_LossContingencyNumberOfPhasesComplete"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019ce87a-5fc9-7271-a288-cfe8402ff011" xlink:to="loc_wmt_LossContingencyNumberOfPhasesComplete_019d4ee0-30b6-7131-95c4-47cfa5f33cf7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyDamagesAwardedValue_019ce87a-5fc9-739d-a9ba-1d7488b8520a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingencyDamagesAwardedValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019ce87a-5fc9-7271-a288-cfe8402ff011" xlink:to="loc_us-gaap_LossContingencyDamagesAwardedValue_019ce87a-5fc9-739d-a9ba-1d7488b8520a" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_LossContingencyPeriodToMaintainCertainPracticesAndObligations_019d4ee1-2aaf-79bc-ad08-a934adc769d7" xlink:href="wmt-20260430.xsd#wmt_LossContingencyPeriodToMaintainCertainPracticesAndObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019ce87a-5fc9-7271-a288-cfe8402ff011" xlink:to="loc_wmt_LossContingencyPeriodToMaintainCertainPracticesAndObligations_019d4ee1-2aaf-79bc-ad08-a934adc769d7" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_LossContingencyDamagesSuspendedValue_019d4ee1-2aaf-7631-bebe-d20ad8200bb5" xlink:href="wmt-20260430.xsd#wmt_LossContingencyDamagesSuspendedValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019ce87a-5fc9-7271-a288-cfe8402ff011" xlink:to="loc_wmt_LossContingencyDamagesSuspendedValue_019d4ee1-2aaf-7631-bebe-d20ad8200bb5" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyAccrualAtCarryingValue_019ce87a-5fc9-7714-a0e9-2f24ed3df78d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingencyAccrualAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019ce87a-5fc9-7271-a288-cfe8402ff011" xlink:to="loc_us-gaap_LossContingencyAccrualAtCarryingValue_019ce87a-5fc9-7714-a0e9-2f24ed3df78d" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_LossContingencyTypesOfSupplierContributions_019d4ef7-09d4-78fc-8603-f1f06027d3bd" xlink:href="wmt-20260430.xsd#wmt_LossContingencyTypesOfSupplierContributions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019ce87a-5fc9-7271-a288-cfe8402ff011" xlink:to="loc_wmt_LossContingencyTypesOfSupplierContributions_019d4ef7-09d4-78fc-8603-f1f06027d3bd" xlink:type="arc" order="11"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.walmart.com/role/SegmentsandDisaggregatedRevenueScheduleofSegmentReportingInformationbySegmentDetails" xlink:type="simple" xlink:href="wmt-20260430.xsd#SegmentsandDisaggregatedRevenueScheduleofSegmentReportingInformationbySegmentDetails"/>
  <link:definitionLink xlink:role="http://www.walmart.com/role/SegmentsandDisaggregatedRevenueScheduleofSegmentReportingInformationbySegmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_019ce87a-5fc9-736e-ba67-3b49ac42ca78" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019ce87a-5fc9-77e7-8c32-98c4691781dd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019ce87a-5fc9-736e-ba67-3b49ac42ca78" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019ce87a-5fc9-77e7-8c32-98c4691781dd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-7d14-9161-496f48f50c78" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019ce87a-5fc9-77e7-8c32-98c4691781dd" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-7d14-9161-496f48f50c78" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7d14-9161-496f48f50c78_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-7d14-9161-496f48f50c78" xlink:to="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7d14-9161-496f48f50c78_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7cbc-b3dc-7e7a72da13c8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-7d14-9161-496f48f50c78" xlink:to="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7cbc-b3dc-7e7a72da13c8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_WalmartUSMember_019ce87a-5fc9-735e-82cc-42f2451ee208" xlink:href="wmt-20260430.xsd#wmt_WalmartUSMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7cbc-b3dc-7e7a72da13c8" xlink:to="loc_wmt_WalmartUSMember_019ce87a-5fc9-735e-82cc-42f2451ee208" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_WalmartInternationalMember_019ce87a-5fc9-772f-8917-1b3f65ead95a" xlink:href="wmt-20260430.xsd#wmt_WalmartInternationalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7cbc-b3dc-7e7a72da13c8" xlink:to="loc_wmt_WalmartInternationalMember_019ce87a-5fc9-772f-8917-1b3f65ead95a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_SamsClubUSMember_019ce87a-5fc9-77c2-92b1-d7e47ae19352" xlink:href="wmt-20260430.xsd#wmt_SamsClubUSMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7cbc-b3dc-7e7a72da13c8" xlink:to="loc_wmt_SamsClubUSMember_019ce87a-5fc9-77c2-92b1-d7e47ae19352" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_019ce87a-5fc9-72c6-adc3-657e1aa652e5" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019ce87a-5fc9-77e7-8c32-98c4691781dd" xlink:to="loc_srt_ConsolidationItemsAxis_019ce87a-5fc9-72c6-adc3-657e1aa652e5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_019ce87a-5fc9-72c6-adc3-657e1aa652e5_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_019ce87a-5fc9-72c6-adc3-657e1aa652e5" xlink:to="loc_srt_ConsolidationItemsDomain_019ce87a-5fc9-72c6-adc3-657e1aa652e5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_019ce87a-5fc9-78e8-8a8e-b516b3b304fe" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_019ce87a-5fc9-72c6-adc3-657e1aa652e5" xlink:to="loc_srt_ConsolidationItemsDomain_019ce87a-5fc9-78e8-8a8e-b516b3b304fe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_019ce87a-5fc9-7a36-a7a5-84e01c05c3e1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_019ce87a-5fc9-78e8-8a8e-b516b3b304fe" xlink:to="loc_us-gaap_OperatingSegmentsMember_019ce87a-5fc9-7a36-a7a5-84e01c05c3e1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_CorporateAndReconcilingItemsMember_019ce87a-5fc9-7c0d-a9b4-b4955851c8e1" xlink:href="wmt-20260430.xsd#wmt_CorporateAndReconcilingItemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_019ce87a-5fc9-78e8-8a8e-b516b3b304fe" xlink:to="loc_wmt_CorporateAndReconcilingItemsMember_019ce87a-5fc9-7c0d-a9b4-b4955851c8e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019ce87a-5fc9-77f3-88b0-a58f4ddf99a4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019ce87a-5fc9-736e-ba67-3b49ac42ca78" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019ce87a-5fc9-77f3-88b0-a58f4ddf99a4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIncome_019ce87a-5fc9-7a9a-a9f6-2db83a557256" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019ce87a-5fc9-736e-ba67-3b49ac42ca78" xlink:to="loc_us-gaap_OtherIncome_019ce87a-5fc9-7a9a-a9f6-2db83a557256" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_019ce87a-5fc9-73c0-9d6c-0dda7947ff31" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019ce87a-5fc9-736e-ba67-3b49ac42ca78" xlink:to="loc_us-gaap_Revenues_019ce87a-5fc9-73c0-9d6c-0dda7947ff31" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_019ce87a-5fc9-7769-8d31-0ba3f073f2cc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostOfRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019ce87a-5fc9-736e-ba67-3b49ac42ca78" xlink:to="loc_us-gaap_CostOfRevenue_019ce87a-5fc9-7769-8d31-0ba3f073f2cc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_019ce87a-5fc9-76d9-85f3-9c11654f5758" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019ce87a-5fc9-736e-ba67-3b49ac42ca78" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_019ce87a-5fc9-76d9-85f3-9c11654f5758" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019ce87a-5fc9-7c4f-9b58-0085a9fbdd65" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019ce87a-5fc9-736e-ba67-3b49ac42ca78" xlink:to="loc_us-gaap_OperatingIncomeLoss_019ce87a-5fc9-7c4f-9b58-0085a9fbdd65" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_019ce87a-5fc9-7c66-8a60-848aba2b8a6e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019ce87a-5fc9-736e-ba67-3b49ac42ca78" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_019ce87a-5fc9-7c66-8a60-848aba2b8a6e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_019ce87a-5fc9-7747-8a39-63e974f8a29a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019ce87a-5fc9-736e-ba67-3b49ac42ca78" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_019ce87a-5fc9-7747-8a39-63e974f8a29a" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019ce87a-5fc9-7934-be2d-bde1493396b1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019ce87a-5fc9-736e-ba67-3b49ac42ca78" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019ce87a-5fc9-7934-be2d-bde1493396b1" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_019ce87a-5fc9-7dc5-8796-a035d335ae33" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepreciationAmortizationAndAccretionNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019ce87a-5fc9-736e-ba67-3b49ac42ca78" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_019ce87a-5fc9-7dc5-8796-a035d335ae33" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentExpenditureAdditionToLongLivedAssets_019ce87a-5fc9-7725-85dd-0062433e0fc9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentExpenditureAdditionToLongLivedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019ce87a-5fc9-736e-ba67-3b49ac42ca78" xlink:to="loc_us-gaap_SegmentExpenditureAdditionToLongLivedAssets_019ce87a-5fc9-7725-85dd-0062433e0fc9" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_CostOfRevenueSellingGeneralAndAdministrativeExpensesForFuelSales_019ce87a-5fc9-70fd-bc4b-302cb7b3301c" xlink:href="wmt-20260430.xsd#wmt_CostOfRevenueSellingGeneralAndAdministrativeExpensesForFuelSales"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019ce87a-5fc9-736e-ba67-3b49ac42ca78" xlink:to="loc_wmt_CostOfRevenueSellingGeneralAndAdministrativeExpensesForFuelSales_019ce87a-5fc9-70fd-bc4b-302cb7b3301c" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019ce87a-5fc9-7de7-8a16-d9928ff20089" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019ce87a-5fc9-736e-ba67-3b49ac42ca78" xlink:to="loc_us-gaap_Assets_019ce87a-5fc9-7de7-8a16-d9928ff20089" xlink:type="arc" order="12"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.walmart.com/role/SegmentsandDisaggregatedRevenueRevenuefromContractwithCustomerExcludingAssessedTaxWalmartUSDetails" xlink:type="simple" xlink:href="wmt-20260430.xsd#SegmentsandDisaggregatedRevenueRevenuefromContractwithCustomerExcludingAssessedTaxWalmartUSDetails"/>
  <link:definitionLink xlink:role="http://www.walmart.com/role/SegmentsandDisaggregatedRevenueRevenuefromContractwithCustomerExcludingAssessedTaxWalmartUSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_019ce87a-5fc9-762f-abe4-c2b722a7b739" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_019ce87a-5fc9-7d8d-aa02-34fc1d7e3d4d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_019ce87a-5fc9-762f-abe4-c2b722a7b739" xlink:to="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_019ce87a-5fc9-7d8d-aa02-34fc1d7e3d4d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_019ce87a-5fc9-7146-9707-6ef47350e2f1" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_019ce87a-5fc9-7d8d-aa02-34fc1d7e3d4d" xlink:to="loc_srt_ProductOrServiceAxis_019ce87a-5fc9-7146-9707-6ef47350e2f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019ce87a-5fc9-7146-9707-6ef47350e2f1_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_019ce87a-5fc9-7146-9707-6ef47350e2f1" xlink:to="loc_srt_ProductsAndServicesDomain_019ce87a-5fc9-7146-9707-6ef47350e2f1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019ce87a-5fc9-7be4-8cce-ec8b4d68465d" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_019ce87a-5fc9-7146-9707-6ef47350e2f1" xlink:to="loc_srt_ProductsAndServicesDomain_019ce87a-5fc9-7be4-8cce-ec8b4d68465d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_GroceryMember_019ce87a-5fc9-795a-8b08-42911e6b9330" xlink:href="wmt-20260430.xsd#wmt_GroceryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019ce87a-5fc9-7be4-8cce-ec8b4d68465d" xlink:to="loc_wmt_GroceryMember_019ce87a-5fc9-795a-8b08-42911e6b9330" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_GeneralMerchandiseMember_019ce87a-5fc9-7c31-8e1d-d31d2d4b7fab" xlink:href="wmt-20260430.xsd#wmt_GeneralMerchandiseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019ce87a-5fc9-7be4-8cce-ec8b4d68465d" xlink:to="loc_wmt_GeneralMerchandiseMember_019ce87a-5fc9-7c31-8e1d-d31d2d4b7fab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_HealthandWellnessMember_019ce87a-5fc9-7748-8147-f9a0529f78c7" xlink:href="wmt-20260430.xsd#wmt_HealthandWellnessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019ce87a-5fc9-7be4-8cce-ec8b4d68465d" xlink:to="loc_wmt_HealthandWellnessMember_019ce87a-5fc9-7748-8147-f9a0529f78c7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_OtherCategoriesMember_019ce87a-5fc9-7edf-b9ef-f682ff768b96" xlink:href="wmt-20260430.xsd#wmt_OtherCategoriesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019ce87a-5fc9-7be4-8cce-ec8b4d68465d" xlink:to="loc_wmt_OtherCategoriesMember_019ce87a-5fc9-7edf-b9ef-f682ff768b96" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-75f4-9d4e-7c4de53b6d5d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_019ce87a-5fc9-7d8d-aa02-34fc1d7e3d4d" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-75f4-9d4e-7c4de53b6d5d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019ce87a-5fc9-75f4-9d4e-7c4de53b6d5d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-75f4-9d4e-7c4de53b6d5d" xlink:to="loc_us-gaap_SegmentDomain_019ce87a-5fc9-75f4-9d4e-7c4de53b6d5d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7c94-99fa-5c11092d4435" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-75f4-9d4e-7c4de53b6d5d" xlink:to="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7c94-99fa-5c11092d4435" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_WalmartUSMember_019ce87a-5fc9-7073-a179-fb41629490f8" xlink:href="wmt-20260430.xsd#wmt_WalmartUSMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7c94-99fa-5c11092d4435" xlink:to="loc_wmt_WalmartUSMember_019ce87a-5fc9-7073-a179-fb41629490f8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_019ce87a-5fc9-7519-9758-d9477380ec13" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_019ce87a-5fc9-7d8d-aa02-34fc1d7e3d4d" xlink:to="loc_srt_MajorCustomersAxis_019ce87a-5fc9-7519-9758-d9477380ec13" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_019ce87a-5fc9-7519-9758-d9477380ec13_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_019ce87a-5fc9-7519-9758-d9477380ec13" xlink:to="loc_srt_NameOfMajorCustomerDomain_019ce87a-5fc9-7519-9758-d9477380ec13_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_019ce87a-5fc9-73ea-a279-233cdfa47f95" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_019ce87a-5fc9-7519-9758-d9477380ec13" xlink:to="loc_srt_NameOfMajorCustomerDomain_019ce87a-5fc9-73ea-a279-233cdfa47f95" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_ECommerceMember_019ce87a-5fc9-7b95-b131-f3bc7f55b9f0" xlink:href="wmt-20260430.xsd#wmt_ECommerceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_019ce87a-5fc9-73ea-a279-233cdfa47f95" xlink:to="loc_wmt_ECommerceMember_019ce87a-5fc9-7b95-b131-f3bc7f55b9f0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019ce87a-5fc9-7a6f-8bdb-20f6fd4ab73e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_019ce87a-5fc9-762f-abe4-c2b722a7b739" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019ce87a-5fc9-7a6f-8bdb-20f6fd4ab73e" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.walmart.com/role/SegmentsandDisaggregatedRevenueRevenuefromContractwithCustomerExcludingAssessedTaxInternationalDetails" xlink:type="simple" xlink:href="wmt-20260430.xsd#SegmentsandDisaggregatedRevenueRevenuefromContractwithCustomerExcludingAssessedTaxInternationalDetails"/>
  <link:definitionLink xlink:role="http://www.walmart.com/role/SegmentsandDisaggregatedRevenueRevenuefromContractwithCustomerExcludingAssessedTaxInternationalDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_019ce87a-5fc9-7a93-a188-c0ddb79aadd6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_019ce87a-5fc9-77cb-afbb-20c13ff74427" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_019ce87a-5fc9-7a93-a188-c0ddb79aadd6" xlink:to="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_019ce87a-5fc9-77cb-afbb-20c13ff74427" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_019ce87a-5fc9-77ad-936a-ddf48154b49a" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_019ce87a-5fc9-77cb-afbb-20c13ff74427" xlink:to="loc_srt_StatementGeographicalAxis_019ce87a-5fc9-77ad-936a-ddf48154b49a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019ce87a-5fc9-77ad-936a-ddf48154b49a_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_019ce87a-5fc9-77ad-936a-ddf48154b49a" xlink:to="loc_srt_SegmentGeographicalDomain_019ce87a-5fc9-77ad-936a-ddf48154b49a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019ce87a-5fc9-792d-9b0b-015029b17055" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_019ce87a-5fc9-77ad-936a-ddf48154b49a" xlink:to="loc_srt_SegmentGeographicalDomain_019ce87a-5fc9-792d-9b0b-015029b17055" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_MexicoandCentralAmericaMember_019ce87a-5fc9-7afa-83ed-2d2eb3834584" xlink:href="wmt-20260430.xsd#wmt_MexicoandCentralAmericaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019ce87a-5fc9-792d-9b0b-015029b17055" xlink:to="loc_wmt_MexicoandCentralAmericaMember_019ce87a-5fc9-7afa-83ed-2d2eb3834584" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_CN_019ce87a-5fc9-7f4d-9b21-608e9bf45279" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_CN"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019ce87a-5fc9-792d-9b0b-015029b17055" xlink:to="loc_country_CN_019ce87a-5fc9-7f4d-9b21-608e9bf45279" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_CA_019ce87a-5fc9-7cf8-a194-df169fb08d53" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_CA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019ce87a-5fc9-792d-9b0b-015029b17055" xlink:to="loc_country_CA_019ce87a-5fc9-7cf8-a194-df169fb08d53" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_OtherMember_019ce87a-5fc9-7818-9eb1-4751d4181750" xlink:href="wmt-20260430.xsd#wmt_OtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019ce87a-5fc9-792d-9b0b-015029b17055" xlink:to="loc_wmt_OtherMember_019ce87a-5fc9-7818-9eb1-4751d4181750" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-7498-89a1-795567115aea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_019ce87a-5fc9-77cb-afbb-20c13ff74427" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-7498-89a1-795567115aea" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7498-89a1-795567115aea_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-7498-89a1-795567115aea" xlink:to="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7498-89a1-795567115aea_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019ce87a-5fc9-73eb-98e9-b1007669225c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-7498-89a1-795567115aea" xlink:to="loc_us-gaap_SegmentDomain_019ce87a-5fc9-73eb-98e9-b1007669225c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_WalmartInternationalMember_019ce87a-5fc9-7732-90f9-744113ec37f9" xlink:href="wmt-20260430.xsd#wmt_WalmartInternationalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019ce87a-5fc9-73eb-98e9-b1007669225c" xlink:to="loc_wmt_WalmartInternationalMember_019ce87a-5fc9-7732-90f9-744113ec37f9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_019ce87a-5fc9-7308-933c-62c53c6e5a42" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_019ce87a-5fc9-77cb-afbb-20c13ff74427" xlink:to="loc_srt_MajorCustomersAxis_019ce87a-5fc9-7308-933c-62c53c6e5a42" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_019ce87a-5fc9-7308-933c-62c53c6e5a42_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_019ce87a-5fc9-7308-933c-62c53c6e5a42" xlink:to="loc_srt_NameOfMajorCustomerDomain_019ce87a-5fc9-7308-933c-62c53c6e5a42_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_019ce87a-5fc9-787e-8de9-1a7788dbd3d2" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_019ce87a-5fc9-7308-933c-62c53c6e5a42" xlink:to="loc_srt_NameOfMajorCustomerDomain_019ce87a-5fc9-787e-8de9-1a7788dbd3d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_ECommerceMember_019ce87a-5fc9-77af-a599-6d317072fa66" xlink:href="wmt-20260430.xsd#wmt_ECommerceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_019ce87a-5fc9-787e-8de9-1a7788dbd3d2" xlink:to="loc_wmt_ECommerceMember_019ce87a-5fc9-77af-a599-6d317072fa66" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019ce87a-5fc9-72e3-a0b9-c69e59eea771" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_019ce87a-5fc9-7a93-a188-c0ddb79aadd6" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019ce87a-5fc9-72e3-a0b9-c69e59eea771" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.walmart.com/role/SegmentsandDisaggregatedRevenueRevenuefromContractwithCustomerExcludingAssessedTaxSamsClubDetails" xlink:type="simple" xlink:href="wmt-20260430.xsd#SegmentsandDisaggregatedRevenueRevenuefromContractwithCustomerExcludingAssessedTaxSamsClubDetails"/>
  <link:definitionLink xlink:role="http://www.walmart.com/role/SegmentsandDisaggregatedRevenueRevenuefromContractwithCustomerExcludingAssessedTaxSamsClubDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_019ce87a-5fc9-7d57-ad9f-34d559eb79ce" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_019ce87a-5fc9-76a5-a58b-ede3e87e05fc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_019ce87a-5fc9-7d57-ad9f-34d559eb79ce" xlink:to="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_019ce87a-5fc9-76a5-a58b-ede3e87e05fc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_019ce87a-5fc9-75fd-912e-1fe23c3d9e12" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_019ce87a-5fc9-76a5-a58b-ede3e87e05fc" xlink:to="loc_srt_ProductOrServiceAxis_019ce87a-5fc9-75fd-912e-1fe23c3d9e12" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019ce87a-5fc9-75fd-912e-1fe23c3d9e12_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_019ce87a-5fc9-75fd-912e-1fe23c3d9e12" xlink:to="loc_srt_ProductsAndServicesDomain_019ce87a-5fc9-75fd-912e-1fe23c3d9e12_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019ce87a-5fc9-779f-a158-469b172aad24" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_019ce87a-5fc9-75fd-912e-1fe23c3d9e12" xlink:to="loc_srt_ProductsAndServicesDomain_019ce87a-5fc9-779f-a158-469b172aad24" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_GroceryMember_019ce87a-5fc9-7ff5-b16f-e8722d82944e" xlink:href="wmt-20260430.xsd#wmt_GroceryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019ce87a-5fc9-779f-a158-469b172aad24" xlink:to="loc_wmt_GroceryMember_019ce87a-5fc9-7ff5-b16f-e8722d82944e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_FuelAndOtherMember_019ce87a-5fc9-7471-abcf-05a6243505f4" xlink:href="wmt-20260430.xsd#wmt_FuelAndOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019ce87a-5fc9-779f-a158-469b172aad24" xlink:to="loc_wmt_FuelAndOtherMember_019ce87a-5fc9-7471-abcf-05a6243505f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_GeneralMerchandiseMember_019ce87a-5fc9-77f4-9ea6-e0bacf5d247e" xlink:href="wmt-20260430.xsd#wmt_GeneralMerchandiseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019ce87a-5fc9-779f-a158-469b172aad24" xlink:to="loc_wmt_GeneralMerchandiseMember_019ce87a-5fc9-77f4-9ea6-e0bacf5d247e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_HealthandWellnessMember_019ce87a-5fc9-76e4-8a59-0091d8057a2e" xlink:href="wmt-20260430.xsd#wmt_HealthandWellnessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019ce87a-5fc9-779f-a158-469b172aad24" xlink:to="loc_wmt_HealthandWellnessMember_019ce87a-5fc9-76e4-8a59-0091d8057a2e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-78e2-bc1e-20530e31abd6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_019ce87a-5fc9-76a5-a58b-ede3e87e05fc" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-78e2-bc1e-20530e31abd6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019ce87a-5fc9-78e2-bc1e-20530e31abd6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-78e2-bc1e-20530e31abd6" xlink:to="loc_us-gaap_SegmentDomain_019ce87a-5fc9-78e2-bc1e-20530e31abd6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7aa2-9bcd-05cb2c1909b1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019ce87a-5fc9-78e2-bc1e-20530e31abd6" xlink:to="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7aa2-9bcd-05cb2c1909b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_SamsClubUSMember_019ce87a-5fc9-7e0c-bbd6-134bd591e94f" xlink:href="wmt-20260430.xsd#wmt_SamsClubUSMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019ce87a-5fc9-7aa2-9bcd-05cb2c1909b1" xlink:to="loc_wmt_SamsClubUSMember_019ce87a-5fc9-7e0c-bbd6-134bd591e94f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_019ce87a-5fc9-7eec-b277-3a7bf2066483" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_019ce87a-5fc9-76a5-a58b-ede3e87e05fc" xlink:to="loc_srt_MajorCustomersAxis_019ce87a-5fc9-7eec-b277-3a7bf2066483" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_019ce87a-5fc9-7eec-b277-3a7bf2066483_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_019ce87a-5fc9-7eec-b277-3a7bf2066483" xlink:to="loc_srt_NameOfMajorCustomerDomain_019ce87a-5fc9-7eec-b277-3a7bf2066483_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_019ce87a-5fc9-7638-9090-0ab6890dfe70" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_019ce87a-5fc9-7eec-b277-3a7bf2066483" xlink:to="loc_srt_NameOfMajorCustomerDomain_019ce87a-5fc9-7638-9090-0ab6890dfe70" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_ECommerceMember_019ce87a-5fc9-76e2-b028-a33d133afc1e" xlink:href="wmt-20260430.xsd#wmt_ECommerceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_019ce87a-5fc9-7638-9090-0ab6890dfe70" xlink:to="loc_wmt_ECommerceMember_019ce87a-5fc9-76e2-b028-a33d133afc1e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019ce87a-5fc9-7279-8021-e6d3565b2938" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_019ce87a-5fc9-7d57-ad9f-34d559eb79ce" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019ce87a-5fc9-7279-8021-e6d3565b2938" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2025/ecd-2025.xsd#IndividualsOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ecd_AllIndividualsMember" xlink:href="https://xbrl.sec.gov/ecd/2025/ecd-2025.xsd#ecd_AllIndividualsMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_C.DouglasMcMillonMember_019dded0-32e9-7d60-9485-82f075cde3c6" xlink:href="wmt-20260430.xsd#wmt_C.DouglasMcMillonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_wmt_C.DouglasMcMillonMember_019dded0-32e9-7d60-9485-82f075cde3c6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_DanielJ.BartlettMember_019dded0-63fb-7157-a5ec-d8b4ba643578" xlink:href="wmt-20260430.xsd#wmt_DanielJ.BartlettMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_wmt_DanielJ.BartlettMember_019dded0-63fb-7157-a5ec-d8b4ba643578" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_DavidGugginaMember_019dded0-9070-7e7c-9580-9fe7a8a9b282" xlink:href="wmt-20260430.xsd#wmt_DavidGugginaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_wmt_DavidGugginaMember_019dded0-9070-7e7c-9580-9fe7a8a9b282" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wmt_SureshKumarMember_019dded0-be78-74de-b287-3090471019cf" xlink:href="wmt-20260430.xsd#wmt_SureshKumarMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_wmt_SureshKumarMember_019dded0-be78-74de-b287-3090471019cf" xlink:type="arc" order="5"/>
  </link:definitionLink>
</link:linkbase>
