<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="rc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000104169</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <context id="offrl_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000104169</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <context id="offrl_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000104169</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <context id="offrl_3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000104169</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>3</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <context id="offrl_4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000104169</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>4</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-423">S-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-424">424B5</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-425">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb contextRef="rc" id="ixv-426">333-275878</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-427">0000104169</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-428">Walmart Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa contextRef="rc" id="hiddenrcOfferingTableNa" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="rc" id="hiddenrcOffsetTableNa">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="rc" id="hiddenrcCombinedProspectusTableNa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp contextRef="rc" id="ixv-483">S-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-484">Walmart Inc.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="offrl_1" id="ixv-485">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-486">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-487">4.150% Notes due 2030</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="offrl_1" id="ixv-488">true</ffd:Rule457rFlg>
    <ffd:AmtSctiesRegd
      contextRef="offrl_1"
      decimals="2"
      id="ixv-489"
      unitRef="Shares">525614969.51</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="offrl_1"
      decimals="5"
      id="ixv-490"
      unitRef="USD">0.99996</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_1"
      decimals="2"
      id="ixv-491"
      unitRef="USD">525593944.92</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_1"
      decimals="6"
      id="ixv-492"
      unitRef="pure">0.000087</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_1"
      decimals="2"
      id="ixv-493"
      unitRef="USD">45726.67</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="offrl_2" id="ixv-494">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_2" id="ixv-495">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_2" id="ixv-496">4.450% Notes due 2033</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="offrl_2" id="ixv-497">true</ffd:Rule457rFlg>
    <ffd:AmtSctiesRegd
      contextRef="offrl_2"
      decimals="1"
      id="ixv-498"
      unitRef="Shares">1401639918.7</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="offrl_2"
      decimals="5"
      id="ixv-499"
      unitRef="USD">0.99946</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_2"
      decimals="2"
      id="ixv-500"
      unitRef="USD">1400883033.15</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_2"
      decimals="6"
      id="ixv-501"
      unitRef="pure">0.000087</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_2"
      decimals="2"
      id="ixv-502"
      unitRef="USD">121876.82</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="offrl_3" id="ixv-503">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_3" id="ixv-504">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_3" id="ixv-505">4.950% Notes due 2038</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="offrl_3" id="ixv-506">true</ffd:Rule457rFlg>
    <ffd:AmtSctiesRegd
      contextRef="offrl_3"
      decimals="2"
      id="ixv-507"
      unitRef="Shares">1226434928.87</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="offrl_3"
      decimals="5"
      id="ixv-508"
      unitRef="USD">0.99991</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_3"
      decimals="2"
      id="ixv-509"
      unitRef="USD">1226324549.72</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_3"
      decimals="6"
      id="ixv-510"
      unitRef="pure">0.000087</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_3"
      decimals="2"
      id="ixv-511"
      unitRef="USD">106690.24</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="offrl_4" id="ixv-512">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_4" id="ixv-513">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_4" id="ixv-514">5.250% Notes due 2056</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="offrl_4" id="ixv-515">true</ffd:Rule457rFlg>
    <ffd:AmtSctiesRegd
      contextRef="offrl_4"
      decimals="2"
      id="ixv-516"
      unitRef="Shares">350409979.68</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="offrl_4"
      decimals="5"
      id="ixv-517"
      unitRef="USD">0.99805</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_4"
      decimals="2"
      id="ixv-518"
      unitRef="USD">349726680.22</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_4"
      decimals="6"
      id="ixv-519"
      unitRef="pure">0.000087</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_4"
      decimals="2"
      id="ixv-520"
      unitRef="USD">30426.22</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="2" id="ixv-521" unitRef="USD">3502528208.01</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="2" id="ixv-522" unitRef="USD">304719.95</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="rc" decimals="2" id="ixv-523" unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="2" id="ixv-524" unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="2" id="ixv-525" unitRef="USD">304719.95</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_1" id="ixv-526">(1) C$750,000,000 aggregate principal amount of 4.150% Notes due 2030, C$2,000,000,000 aggregate principal amount of 4.450% Notes due 2033, C$1,750,000,000 aggregate principal amount of 4.950% Notes due 2038 and C$500,000,000 aggregate principal amount of 5.250% Notes due 2056 will be issued in this offering. The amount registered, the maximum aggregate offering price and the amount of registration fee are based on the Canadian dollar/U.S. dollar exchange rate of C$1.4269 = $1.00, as announced on October 9, 2026 by the U.S. Federal Reserve Board. (2) This registration fee table shall be deemed to update the "Calculation of Registration Fee" in the Company's Registration Statement on Form S-3 (File No. 333-275878) in accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_2" id="ixv-527">(1) C$750,000,000 aggregate principal amount of 4.150% Notes due 2030, C$2,000,000,000 aggregate principal amount of 4.450% Notes due 2033, C$1,750,000,000 aggregate principal amount of 4.950% Notes due 2038 and C$500,000,000 aggregate principal amount of 5.250% Notes due 2056 will be issued in this offering. The amount registered, the maximum aggregate offering price and the amount of registration fee are based on the Canadian dollar/U.S. dollar exchange rate of C$1.4269 = $1.00, as announced on October 9, 2026 by the U.S. Federal Reserve Board. (2) This registration fee table shall be deemed to update the "Calculation of Registration Fee" in the Company's Registration Statement on Form S-3 (File No. 333-275878) in accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_3" id="ixv-528">(1) C$750,000,000 aggregate principal amount of 4.150% Notes due 2030, C$2,000,000,000 aggregate principal amount of 4.450% Notes due 2033, C$1,750,000,000 aggregate principal amount of 4.950% Notes due 2038 and C$500,000,000 aggregate principal amount of 5.250% Notes due 2056 will be issued in this offering. The amount registered, the maximum aggregate offering price and the amount of registration fee are based on the Canadian dollar/U.S. dollar exchange rate of C$1.4269 = $1.00, as announced on October 9, 2026 by the U.S. Federal Reserve Board. (2) This registration fee table shall be deemed to update the "Calculation of Registration Fee" in the Company's Registration Statement on Form S-3 (File No. 333-275878) in accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_4" id="ixv-529">(1) C$750,000,000 aggregate principal amount of 4.150% Notes due 2030, C$2,000,000,000 aggregate principal amount of 4.450% Notes due 2033, C$1,750,000,000 aggregate principal amount of 4.950% Notes due 2038 and C$500,000,000 aggregate principal amount of 5.250% Notes due 2056 will be issued in this offering. The amount registered, the maximum aggregate offering price and the amount of registration fee are based on the Canadian dollar/U.S. dollar exchange rate of C$1.4269 = $1.00, as announced on October 9, 2026 by the U.S. Federal Reserve Board. (2) This registration fee table shall be deemed to update the "Calculation of Registration Fee" in the Company's Registration Statement on Form S-3 (File No. 333-275878) in accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended.</ffd:OfferingNote>
    <ffd:NrrtvMaxAggtOfferingPric contextRef="rc" decimals="2" id="ixv-530" unitRef="USD">3502528208.01</ffd:NrrtvMaxAggtOfferingPric>
    <ffd:FnlPrspctsFlg contextRef="rc" id="ixv-531">true</ffd:FnlPrspctsFlg>
</xbrl>
