<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.4</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>201</ContextCount>
  <ElementCount>489</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>62</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>10</UnitCount>
  <MyReports>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DocumentCoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Consolidated Statements of Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - Consolidated Statements of Stockholders' Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfStockholdersEquityParenthetical</Role>
      <ShortName>Consolidated Statements of Stockholders' Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Disclosure - Organization and Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureOrganizationAndBasisOfPresentation</Role>
      <ShortName>Organization and Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Slowdown of the Hard Seltzer Market Impact</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureSlowdownOfTheHardSeltzerMarketImpact1</Role>
      <ShortName>Slowdown of the Hard Seltzer Market Impact</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Restricted Cash</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureRestrictedCash1</Role>
      <ShortName>Restricted Cash</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureInventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Prepaid Expenses and Other Current Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosurePrepaidExpensesAndOtherCurrentAssets</Role>
      <ShortName>Prepaid Expenses and Other Current Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Property, Plant and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipment</Role>
      <ShortName>Property, Plant and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Goodwill and Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssets</Role>
      <ShortName>Goodwill and Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Third-Party Production Prepayments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureThirdpartyProductionPrepayments</Role>
      <ShortName>Third-Party Production Prepayments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Accrued Expenses and Other Current Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesAndOtherCurrentLiabilities</Role>
      <ShortName>Accrued Expenses and Other Current Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Revolving Line of Credit</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureRevolvingLineOfCredit</Role>
      <ShortName>Revolving Line of Credit</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureFairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Common Stock and Share-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureCommonStockAndShareBasedCompensation</Role>
      <ShortName>Common Stock and Share-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100240 - Disclosure -  Employee Retirement Plans and Post-Retirement Medical Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureEmployeeRetirementPlansAndPostRetirementMedicalBenefits</Role>
      <ShortName>Employee Retirement Plans and Post-Retirement Medical Benefits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Net Income per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureNetIncomePerShare</Role>
      <ShortName>Net Income per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Accumulated Other Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLoss</Role>
      <ShortName>Accumulated Other Comprehensive Loss</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Valuation and Qualifying Accounts</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureValuationAndQualifyingAccounts</Role>
      <ShortName>Valuation and Qualifying Accounts</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Licensing Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureLicensingAgreements</Role>
      <ShortName>Licensing Agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureSubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureInventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureInventories</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Prepaid Expenses and Other Current Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosurePrepaidExpensesAndOtherCurrentAssetsTables</Role>
      <ShortName>Prepaid Expenses and Other Current Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosurePrepaidExpensesAndOtherCurrentAssets</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Property, Plant and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentTables</Role>
      <ShortName>Property, Plant and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipment</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureLeases</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Goodwill and Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssets</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Third-Party Production Prepayments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureThirdpartyProductionPrepaymentsTables</Role>
      <ShortName>Third-Party Production Prepayments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureThirdpartyProductionPrepayments</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Accrued Expenses and Other Current Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesAndOtherCurrentLiabilitiesTables</Role>
      <ShortName>Accrued Expenses and Other Current Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesAndOtherCurrentLiabilities</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100420 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxes</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Common Stock and Share-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureCommonStockAndShareBasedCompensationTables</Role>
      <ShortName>Common Stock and Share-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureCommonStockAndShareBasedCompensation</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Employee Retirement Plans and Post-Retirement Medical Benefits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureEmployeeRetirementPlansAndPostRetirementMedicalBenefitsTables</Role>
      <ShortName>Employee Retirement Plans and Post-Retirement Medical Benefits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureEmployeeRetirementPlansAndPostRetirementMedicalBenefits</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Net Income per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureNetIncomePerShareTables</Role>
      <ShortName>Net Income per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureNetIncomePerShare</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Accumulated Other Comprehensive Loss (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossTables</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLoss</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Valuation and Qualifying Accounts (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureValuationAndQualifyingAccountsTables</Role>
      <ShortName>Valuation and Qualifying Accounts (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureValuationAndQualifyingAccounts</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Summary of Significant Accounting Policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Estimated Useful Lives (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureEstimatedUsefulLivesDetail</Role>
      <ShortName>Estimated Useful Lives (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Slowdown of the Hard Seltzer Market Impact - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureSlowdownOfTheHardSeltzerMarketImpactAdditionalInformationDetail</Role>
      <ShortName>Slowdown of the Hard Seltzer Market Impact - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Dogfish Head Brewery Transaction - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureDogfishHeadBreweryTransactionAdditionalInformationDetail</Role>
      <ShortName>Dogfish Head Brewery Transaction - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Dogfish Head Brewery Transaction - Fair value of assets acquired and liabilities assumed (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureDogfishHeadBreweryTransactionFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetail</Role>
      <ShortName>Dogfish Head Brewery Transaction - Fair value of assets acquired and liabilities assumed (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100560 - Disclosure - Restricted Cash - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureRestrictedCashAdditionalInformationDetail</Role>
      <ShortName>Restricted Cash - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Inventories - Components of Inventories (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureInventoriesComponentsOfInventoriesDetail</Role>
      <ShortName>Inventories - Components of Inventories (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Inventories - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureInventoriesAdditionalInformationDetails</Role>
      <ShortName>Inventories - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100600 - Disclosure - Summary of Prepaid Expenses and Other Current Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureSummaryOfPrepaidExpensesAndOtherCurrentAssetsDetail</Role>
      <ShortName>Summary of Prepaid Expenses and Other Current Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100610 - Disclosure - Summary of Property, Plant and Equipment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureSummaryOfPropertyPlantAndEquipmentDetail</Role>
      <ShortName>Summary of Property, Plant and Equipment (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100620 - Disclosure - Property, Plant and Equipment - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail</Role>
      <ShortName>Property, Plant and Equipment - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100630 - Disclosure - Leases - ROU assets and lease liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureLeasesROUAssetsAndLeaseLiabilitiesDetail</Role>
      <ShortName>Leases - ROU assets and lease liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100640 - Disclosure - Leases - Gross Value of Accumulated Depreciation Of Right Of Use Assets (Details).</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureLeasesGrossValueOfAccumulatedDepreciationOfRightOfUseAssetsDetails</Role>
      <ShortName>Leases - Gross Value of Accumulated Depreciation Of Right Of Use Assets (Details).</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>100650 - Disclosure - Leases - Components of lease cost (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureLeasesComponentsOfLeaseCostDetail</Role>
      <ShortName>Leases - Components of lease cost (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>100660 - Disclosure - Leases - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureLeasesAdditionalInformationDetails</Role>
      <ShortName>Leases - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Leases - Maturities of lease liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureLeasesMaturitiesOfLeaseLiabilitiesDetail</Role>
      <ShortName>Leases - Maturities of lease liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Goodwill and Intangible Assets - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetail</Role>
      <ShortName>Goodwill and Intangible Assets - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>100690 - Disclosure - Goodwill and Intangible Assets - Schedule of Intangible Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsDetail</Role>
      <ShortName>Goodwill and Intangible Assets - Schedule of Intangible Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>100700 - Disclosure - Goodwill and Intangible Assets - Schedule of Amortization Expense (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfAmortizationExpenseDetail</Role>
      <ShortName>Goodwill and Intangible Assets - Schedule of Amortization Expense (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>100710 - Disclosure - Third-Party Production Prepayments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureThirdpartyProductionPrepaymentsDetail</Role>
      <ShortName>Third-Party Production Prepayments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureThirdpartyProductionPrepaymentsTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>100720 - Disclosure - Third-Party Production Prepayments - Schedule of Expected Shortfall Fees to be Incurred (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureThirdpartyProductionPrepaymentsScheduleOfExpectedShortfallFeesToBeIncurredDetail</Role>
      <ShortName>Third-Party Production Prepayments - Schedule of Expected Shortfall Fees to be Incurred (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>100730 - Disclosure - Summary of Accrued Expenses and Other Current Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureSummaryOfAccruedExpensesAndOtherCurrentLiabilitiesDetail</Role>
      <ShortName>Summary of Accrued Expenses and Other Current Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>100740 - Disclosure - Revolving Line of Credit - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureRevolvingLineOfCreditAdditionalInformationDetail</Role>
      <ShortName>Revolving Line of Credit - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>100750 - Disclosure - Significant Components of Income Tax (Benefit) Provision (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureSignificantComponentsOfIncomeTaxBenefitProvisionDetail</Role>
      <ShortName>Significant Components of Income Tax (Benefit) Provision (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>100760 - Disclosure - Reconciliations to Statutory Rates (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureReconciliationsToStatutoryRatesDetail</Role>
      <ShortName>Reconciliations to Statutory Rates (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>100770 - Disclosure - Significant Components of Company's Deferred Tax Assets and Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureSignificantComponentsOfCompanySDeferredTaxAssetsAndLiabilitiesDetail</Role>
      <ShortName>Significant Components of Company's Deferred Tax Assets and Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>100780 - Disclosure - Income Taxes - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail</Role>
      <ShortName>Income Taxes - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>100790 - Disclosure - Reconciliation of Unrecognized Tax Benefits (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureReconciliationOfUnrecognizedTaxBenefitsDetail</Role>
      <ShortName>Reconciliation of Unrecognized Tax Benefits (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>100800 - Disclosure - Commitments and Contingencies - Summary of Non-cancelable Contractual Obligations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfNonCancelableContractualObligationsDetail</Role>
      <ShortName>Commitments and Contingencies - Summary of Non-cancelable Contractual Obligations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>100810 - Disclosure - Commitments and Contingencies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail</Role>
      <ShortName>Commitments and Contingencies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>100820 - Disclosure - Fair Value Measurements - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsAdditionalInformationDetail</Role>
      <ShortName>Fair Value Measurements - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>100830 - Disclosure - Common Stock and Share-Based Compensation - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureCommonStockAndShareBasedCompensationAdditionalInformationDetail</Role>
      <ShortName>Common Stock and Share-Based Compensation - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>100840 - Disclosure - Common Stock and Share-Based Compensation - Summary of Stock Options under Employee Equity Incentive Plan and Stock Option Plan for Non-Employee Directors (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureCommonStockAndShareBasedCompensationSummaryOfStockOptionsUnderEmployeeEquityIncentivePlanAndStockOptionPlanForNonEmployeeDirectorsDetail</Role>
      <ShortName>Common Stock and Share-Based Compensation - Summary of Stock Options under Employee Equity Incentive Plan and Stock Option Plan for Non-Employee Directors (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>100850 - Disclosure - Common Stock and Share-Based Compensation - Stock-Based Compensation Expense Included in Operating Expenses (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureCommonStockAndShareBasedCompensationStockBasedCompensationExpenseIncludedInOperatingExpensesDetail</Role>
      <ShortName>Common Stock and Share-Based Compensation - Stock-Based Compensation Expense Included in Operating Expenses (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>100860 - Disclosure - Common Stock and Share-Based Compensation - Summary Of Weighted Average Assumptions used to Estimate Fair Value of Stock Options (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureCommonStockAndShareBasedCompensationSummaryOfWeightedAverageAssumptionsUsedToEstimateFairValueOfStockOptionsDetail</Role>
      <ShortName>Common Stock and Share-Based Compensation - Summary Of Weighted Average Assumptions used to Estimate Fair Value of Stock Options (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>100870 - Disclosure - Common Stock and Share-Based Compensation - Summary of Vesting Activities for Investment Share Program and Restricted Stock Awards (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureCommonStockAndShareBasedCompensationSummaryOfVestingActivitiesForInvestmentShareProgramAndRestrictedStockAwardsDetail</Role>
      <ShortName>Common Stock and Share-Based Compensation - Summary of Vesting Activities for Investment Share Program and Restricted Stock Awards (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>100880 - Disclosure - Employee Retirement Plans and Post-Retirement Medical Benefits - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureEmployeeRetirementPlansAndPostRetirementMedicalBenefitsAdditionalInformationDetail</Role>
      <ShortName>Employee Retirement Plans and Post-Retirement Medical Benefits - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>100890 - Disclosure - Funded Status of Retiree Medical Plan (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureFundedStatusOfRetireeMedicalPlanDetail</Role>
      <ShortName>Funded Status of Retiree Medical Plan (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>100900 - Disclosure - Net Income per Share - Computation of Earnings Per Share, Basic (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureNetIncomePerShareComputationOfEarningsPerShareBasicDetail</Role>
      <ShortName>Net Income per Share - Computation of Earnings Per Share, Basic (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>100910 - Disclosure - Net Income per Share - Computation of Diluted Net Income Per Share (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureNetIncomePerShareComputationOfDilutedNetIncomePerShareDetail</Role>
      <ShortName>Net Income per Share - Computation of Diluted Net Income Per Share (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>100920 - Disclosure - Net Income per Share - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureNetIncomePerShareAdditionalInformationDetail</Role>
      <ShortName>Net Income per Share - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>100930 - Disclosure - Changes in Accumulated Other Comprehensive Loss (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureChangesInAccumulatedOtherComprehensiveLossDetail</Role>
      <ShortName>Changes in Accumulated Other Comprehensive Loss (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>100940 - Disclosure - Changes in Accumulated Other Comprehensive Loss (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureChangesInAccumulatedOtherComprehensiveLossParentheticalDetail</Role>
      <ShortName>Changes in Accumulated Other Comprehensive Loss (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>100950 - Disclosure - Summary of Valuation and Qualifying Accounts (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureSummaryOfValuationAndQualifyingAccountsDetail</Role>
      <ShortName>Summary of Valuation and Qualifying Accounts (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>100960 - Disclosure - Related Party Transactions - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail</Role>
      <ShortName>Related Party Transactions - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>100970 - Disclosure - Licensing Agreements - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/DisclosureLicensingAgreementsAdditionalInformationDetail</Role>
      <ShortName>Licensing Agreements - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="sam-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>100980 - Disclosure - Quarterly Results (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bostonbeer.com/20221231/taxonomy/role/Role_DisclosureQuarterlyResultsDetail</Role>
      <ShortName>Quarterly Results (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 3 fact(s) appearing in ix:hidden were eligible for transformation: sam:IncomeTaxReturnExaminationPeriod, us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1 -  sam-20221231.htm 8</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability has a value of -827000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability fact are: Context: C_978c402a-dbd4-4ffe-903c-10c9afe76f70, Unit: U_USD, Rule Element Id: 7062. sam-20221231.htm 5056</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-K" original="sam-20221231.htm">sam-20221231.htm</File>
    <File>sam-20221231.xsd</File>
    <File>sam-20221231_cal.xml</File>
    <File>sam-20221231_def.xml</File>
    <File>sam-20221231_lab.xml</File>
    <File>sam-20221231_pre.xml</File>
    <File>sam-ex21_1.htm</File>
    <File>sam-ex23_1.htm</File>
    <File>sam-ex31_1.htm</File>
    <File>sam-ex31_2.htm</File>
    <File>sam-ex32_1.htm</File>
    <File>sam-ex32_2.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>img1146987_0.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="2">http://fasb.org/srt/2022</BaseTaxonomy>
    <BaseTaxonomy items="965">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="38">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
