<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:oef="http://xbrl.sec.gov/oef/2026"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="bondindex-20251231.xsd" xlink:type="simple"/>
    <context id="D_31Dec2025_31Dec2025">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000794105</identifier>
        </entity>
        <period>
            <startDate>2025-12-31</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <dei:DocumentPeriodEndDate contextRef="D_31Dec2025_31Dec2025" id="apid_1">2025-12-31</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="D_31Dec2025_31Dec2025" id="apid_2">VANGUARD BOND INDEX FUNDS</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey contextRef="D_31Dec2025_31Dec2025" id="apid_3">0000794105</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="D_31Dec2025_31Dec2025" id="apid_4">false</dei:AmendmentFlag>
    <oef:ProspectusDate contextRef="D_31Dec2025_31Dec2025" id="apid_5">2026-04-28</oef:ProspectusDate>
    <dei:EntityInvCompanyType contextRef="D_31Dec2025_31Dec2025" id="apid_6">N-1A</dei:EntityInvCompanyType>
    <dei:DocumentType contextRef="D_31Dec2025_31Dec2025" id="apid_7">497</dei:DocumentType>
    <oef:SupplementToProspectusTextBlock
      contextRef="D_31Dec2025_31Dec2025"
      id="x_66ce1f93-58ec-479e-a442-cdd2b3fd6a7b">&lt;span style="color:#000000;font-family:Arial;font-size:14pt;font-weight:bold;line-height:14.03pt;"&gt;Vanguard Inflation-Protected Securities Fund&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:11pt;font-weight:bold;"&gt;Supplement Dated September 29, 2026, to the Prospectus and Summary Prospectus Dated April 28, 2026&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;font-weight:bold;"&gt;Important Change to Vanguard Inflation-Protected Securities Fund (the &#x201c;Fund&#x201d;)&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;"&gt;Effective today, the prospectus for the Fund is amended as follows:&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;font-weight:bold;"&gt;Prospectus and Summary Prospectus Text Changes&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;"&gt;The following replaces the language under &#x201c;Principal Investment Strategies&#x201d; in the &lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;font-weight:bold;"&gt;Fund Summary&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;"&gt; section:&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;"&gt;The Fund employs an active management approach, investing mainly in investment-grade, inflation-indexed bonds. Under normal circumstances, the Fund invests at least 80% of its net assets, plus the amount of any borrowings for investment purposes, in inflation-indexed bonds issued by the U.S. government, its agencies and instrumentalities, and corporations. At a minimum, all bonds purchased by the Fund are rated investment-grade by an independent bond rating agency or, if unrated, are determined by the Fund&#x2019;s advisor to be of comparable quality. The Fund may invest in bonds of any maturity but generally expects to maintain a dollar-weighted average maturity in the range of 4 to 10 years.&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;"&gt;The Fund invests primarily in U.S. Treasury inflation-protected securities (commonly known as &#x201c;TIPS&#x201d;), which are a type of inflation-indexed security. Inflation-indexed securities provide interest and principal payments that are adjusted over time to reflect a rise (inflation) or a drop (deflation) in the general price level for goods and services. The periodic adjustment of TIPS is tied to the Consumer Price Index.&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;"&gt;In addition to inflation-indexed bonds, the Fund may invest in securities that are not inflation-indexed, including bonds issued by agencies and instrumentalities of the U.S. government and/or agency mortgage-backed securities.&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;"&gt;The Fund also may enter into To Be Announced (&#x201c;TBA&#x201d;) transactions or may invest in derivatives such as fixed income futures contracts, fixed income options (including options on swaps), interest rate swaps, total return swaps, credit default swaps, or other derivatives.&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;"&gt;In addition, the following is added under &#x201c;Principal Risks&#x201d; in the &lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;font-weight:bold;"&gt;Fund Summary&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;"&gt; section:  &lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;margin-left:-8.6pt;"&gt;&#x2022;&#x2002;&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;font-style:italic;font-weight:bold;"&gt;Prepayment Risk&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;"&gt;. Certain bonds are subject to risks associated with prepayment. Prepayment risk for callable bonds is described under Call Risk. With respect to mortgage-backed, asset-backed, and similar debt securities, prepayment typically refers to borrowers repaying their debt early (e.g., before the maturity date). Prepayment of bonds held by the Fund would result in the Fund losing any price appreciation above the amount repaid (or the bond&#x2019;s call price, in the case of callable bonds). In addition, because prepayments occur more frequently in low interest rate environments, the Fund likely would be forced to reinvest the proceeds from any prepayments at a lower interest rate than when the prepaid bonds were purchased, resulting in a decline in the Fund&#x2019;s income and a potential loss in the value of the Fund&#x2019;s investments. Frequent prepayments and subsequent reinvestment of the proceeds also would increase the Fund&#x2019;s turnover rate.&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;margin-left:-8.6pt;"&gt;&#x2022;&#x2002;&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;font-style:italic;font-weight:bold;"&gt;Extension Risk&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;"&gt;. During periods of rising interest rates, certain bonds held by the Fund may be paid off substantially more slowly than originally anticipated. As a result, the value of the bonds may fall, resulting in a decline in the Fund&#x2019;s income and a potential loss in the value of the Fund&#x2019;s investments.&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;margin-left:-8.6pt;"&gt;&#x2022;&#x2002;&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;font-style:italic;font-weight:bold;"&gt;TBA Mortgage-Backed Securities&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9.5pt;"&gt;. A TBA transaction represents an agreement to buy or sell mortgage-backed securities with agreed-upon characteristics for a fixed unit price at a future date, but does not specify the particular security to be delivered. TBA transactions are subject to the risk that the values of the mortgage-backed securities that the Fund has agreed to purchase will decline prior to the settlement date or that the counterparty will not deliver the securities as promised.&lt;/span&gt;</oef:SupplementToProspectusTextBlock>
</xbrl>
