<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="bgs-20260319.xsd" xlink:type="simple"/>
    <context id="AsOf2026-03-19">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001278027</identifier>
        </entity>
        <period>
            <startDate>2026-03-19</startDate>
            <endDate>2026-03-19</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="AsOf2026-03-19" id="Fact000003">true</dei:AmendmentFlag>
    <dei:AmendmentDescription contextRef="AsOf2026-03-19" id="Fact000004">This Amendment No. 1 is being filed by B&amp;G Foods to amend the Current Report on Form 8-K originally filed by B&amp;G Foods with the Securities and Exchange Commission (the SEC) on December 1, 2020 to provide the information required by Item 9.01(a) and (b) of Form 8-K relating to B&amp;G Foods' acquisition of the Crisco oils and shortening business from The J.M. Smucker Company and certain of its affiliates. In this amendment, we refer to this acquisition as the Crisco acquisition and the Crisco oils and shortening business as the Crisco business. The information previously reported and the exhibits previously filed or furnished in Items 2.01, 7.01 and 9.01(d) of the original filing are incorporated by reference into this amendment.</dei:AmendmentDescription>
    <dei:EntityCentralIndexKey contextRef="AsOf2026-03-19" id="Fact000005">0001278027</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="AsOf2026-03-19" id="Fact000010">8-K/A</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="AsOf2026-03-19" id="Fact000011">2026-03-19</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="AsOf2026-03-19" id="Fact000012">B&amp;G Foods, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="AsOf2026-03-19" id="Fact000013">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="AsOf2026-03-19" id="Fact000014">001-32316</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="AsOf2026-03-19" id="Fact000015">13-3918742</dei:EntityTaxIdentificationNumber>
    <dei:Security12bTitle contextRef="AsOf2026-03-19" id="Fact000016">Common Stock, par value $0.01 per share</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="AsOf2026-03-19" id="Fact000017">BGS</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="AsOf2026-03-19" id="Fact000018">NYSE</dei:SecurityExchangeName>
    <dei:EntityAddressAddressLine1 contextRef="AsOf2026-03-19" id="Fact000019">8 Sylvan Way</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown contextRef="AsOf2026-03-19" id="Fact000020">Parsippany</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="AsOf2026-03-19" id="Fact000021">NJ</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="AsOf2026-03-19" id="Fact000022">07054</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="AsOf2026-03-19" id="Fact000023">973</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="AsOf2026-03-19" id="Fact000024">401-6500</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="AsOf2026-03-19" id="Fact000025">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="AsOf2026-03-19" id="Fact000026">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="AsOf2026-03-19" id="Fact000027">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="AsOf2026-03-19" id="Fact000028">false</dei:PreCommencementIssuerTenderOffer>
    <dei:EntityEmergingGrowthCompany contextRef="AsOf2026-03-19" id="Fact000029">false</dei:EntityEmergingGrowthCompany>
</xbrl>
