<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.4</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>1933</ContextCount>
  <ElementCount>997</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>385</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Document - Audit Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/AuditInformation</Role>
      <ShortName>Audit Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952151 - Statement - Consolidated Statements of Earnings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ConsolidatedStatementsofEarnings</Role>
      <ShortName>Consolidated Statements of Earnings</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952152 - Statement - Consolidated Statements of Comprehensive Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ConsolidatedStatementsofComprehensiveIncomeUnaudited</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952153 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952154 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952155 - Statement - Consolidated Statements of Changes in Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ConsolidatedStatementsofChangesinShareholdersEquity</Role>
      <ShortName>Consolidated Statements of Changes in Shareholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952156 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ConsolidatedStatementsofCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952157 - Disclosure - Description of Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DescriptionofBusiness</Role>
      <ShortName>Description of Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952158 - Disclosure - Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/BasisofPresentation</Role>
      <ShortName>Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952159 - Disclosure - Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/SignificantAccountingPolicies</Role>
      <ShortName>Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952160 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - Fair Value Hierarchy</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchy</Role>
      <ShortName>Fair Value Hierarchy</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - Trading Assets and Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/TradingAssetsandLiabilities</Role>
      <ShortName>Trading Assets and Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952163 - Disclosure - Derivatives and Hedging Activities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DerivativesandHedgingActivities</Role>
      <ShortName>Derivatives and Hedging Activities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/Investments</Role>
      <ShortName>Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - Loans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/Loans</Role>
      <ShortName>Loans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - Fair Value Option</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueOption</Role>
      <ShortName>Fair Value Option</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - Collateralized Agreements and Financings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CollateralizedAgreementsandFinancings</Role>
      <ShortName>Collateralized Agreements and Financings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - Other Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/OtherAssets</Role>
      <ShortName>Other Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - Deposits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/Deposits</Role>
      <ShortName>Deposits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9952170 - Disclosure - Unsecured Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/UnsecuredBorrowings</Role>
      <ShortName>Unsecured Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9952171 - Disclosure - Other Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/OtherLiabilities</Role>
      <ShortName>Other Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9952172 - Disclosure - Securitization Activities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/SecuritizationActivities</Role>
      <ShortName>Securitization Activities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9952173 - Disclosure - Variable Interest Entities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/VariableInterestEntities</Role>
      <ShortName>Variable Interest Entities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9952174 - Disclosure - Commitments, Contingencies and Guarantees</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CommitmentsContingenciesandGuarantees</Role>
      <ShortName>Commitments, Contingencies and Guarantees</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9952175 - Disclosure - Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ShareholdersEquity</Role>
      <ShortName>Shareholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9952176 - Disclosure - Regulation and Capital Adequacy</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/RegulationandCapitalAdequacy</Role>
      <ShortName>Regulation and Capital Adequacy</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9952177 - Disclosure - Earnings Per Common Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/EarningsPerCommonShare</Role>
      <ShortName>Earnings Per Common Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9952178 - Disclosure - Transactions with Affiliated Funds</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/TransactionswithAffiliatedFunds</Role>
      <ShortName>Transactions with Affiliated Funds</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9952179 - Disclosure - Interest Income and Interest Expense</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/InterestIncomeandInterestExpense</Role>
      <ShortName>Interest Income and Interest Expense</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9952180 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9952181 - Disclosure - Business Segments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/BusinessSegments</Role>
      <ShortName>Business Segments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9952182 - Disclosure - Credit Concentrations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CreditConcentrations</Role>
      <ShortName>Credit Concentrations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9952183 - Disclosure - Legal Proceedings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/LegalProceedings</Role>
      <ShortName>Legal Proceedings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9952184 - Disclosure - Employee Benefit Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/EmployeeBenefitPlans</Role>
      <ShortName>Employee Benefit Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9952185 - Disclosure - Employee Incentive Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/EmployeeIncentivePlans</Role>
      <ShortName>Employee Incentive Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9952186 - Disclosure - Parent Company</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ParentCompany</Role>
      <ShortName>Parent Company</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>995447 - Disclosure - Insider Trading Policies and Procedures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc</Role>
      <ShortName>Insider Trading Policies and Procedures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure</Role>
      <ShortName>Cybersecurity Risk Management and Strategy Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955511 - Disclosure - Basis of Presentation (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/BasisofPresentationPolicies</Role>
      <ShortName>Basis of Presentation (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/SignificantAccountingPolicies</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/FairValueMeasurements</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - Fair Value Hierarchy (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchyTables</Role>
      <ShortName>Fair Value Hierarchy (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/FairValueHierarchy</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Trading Assets and Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/TradingAssetsandLiabilitiesTables</Role>
      <ShortName>Trading Assets and Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/TradingAssetsandLiabilities</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - Derivatives and Hedging Activities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DerivativesandHedgingActivitiesTables</Role>
      <ShortName>Derivatives and Hedging Activities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/DerivativesandHedgingActivities</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/InvestmentsTables</Role>
      <ShortName>Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/Investments</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - Loans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/LoansTables</Role>
      <ShortName>Loans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/Loans</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - Fair Value Option (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueOptionTables</Role>
      <ShortName>Fair Value Option (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/FairValueOption</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - Collateralized Agreements and Financings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CollateralizedAgreementsandFinancingsTables</Role>
      <ShortName>Collateralized Agreements and Financings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/CollateralizedAgreementsandFinancings</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - Other Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/OtherAssetsTables</Role>
      <ShortName>Other Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/OtherAssets</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - Deposits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DepositsTables</Role>
      <ShortName>Deposits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/Deposits</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - Unsecured Borrowings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/UnsecuredBorrowingsTables</Role>
      <ShortName>Unsecured Borrowings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/UnsecuredBorrowings</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - Other Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/OtherLiabilitiesTables</Role>
      <ShortName>Other Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/OtherLiabilities</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - Securitization Activities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/SecuritizationActivitiesTables</Role>
      <ShortName>Securitization Activities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/SecuritizationActivities</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - Variable Interest Entities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/VariableInterestEntitiesTables</Role>
      <ShortName>Variable Interest Entities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/VariableInterestEntities</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - Commitments, Contingencies and Guarantees (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CommitmentsContingenciesandGuaranteesTables</Role>
      <ShortName>Commitments, Contingencies and Guarantees (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/CommitmentsContingenciesandGuarantees</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Shareholders' Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ShareholdersEquityTables</Role>
      <ShortName>Shareholders' Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/ShareholdersEquity</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - Regulation and Capital Adequacy (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/RegulationandCapitalAdequacyTables</Role>
      <ShortName>Regulation and Capital Adequacy (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/RegulationandCapitalAdequacy</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Earnings Per Common Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/EarningsPerCommonShareTables</Role>
      <ShortName>Earnings Per Common Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/EarningsPerCommonShare</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Transactions with Affiliated Funds (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/TransactionswithAffiliatedFundsTables</Role>
      <ShortName>Transactions with Affiliated Funds (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/TransactionswithAffiliatedFunds</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - Interest Income and Interest Expense (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/InterestIncomeandInterestExpenseTables</Role>
      <ShortName>Interest Income and Interest Expense (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/InterestIncomeandInterestExpense</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/IncomeTaxes</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - Business Segments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/BusinessSegmentsTables</Role>
      <ShortName>Business Segments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/BusinessSegments</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - Credit Concentrations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CreditConcentrationsTables</Role>
      <ShortName>Credit Concentrations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/CreditConcentrations</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - Employee Incentive Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/EmployeeIncentivePlansTables</Role>
      <ShortName>Employee Incentive Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/EmployeeIncentivePlans</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - Parent Company (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ParentCompanyTables</Role>
      <ShortName>Parent Company (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/ParentCompany</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - Description of Business - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DescriptionofBusinessAdditionalInformationDetail</Role>
      <ShortName>Description of Business - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - Significant Accounting Policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/SignificantAccountingPoliciesAdditionalInformationDetail</Role>
      <ShortName>Significant Accounting Policies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9955539 - Disclosure - Fair Value Measurements - Summary of Financial Assets and Liabilities Carried at Fair Value (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueMeasurementsSummaryofFinancialAssetsandLiabilitiesCarriedatFairValueDetail</Role>
      <ShortName>Fair Value Measurements - Summary of Financial Assets and Liabilities Carried at Fair Value (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9955540 - Disclosure - Fair Value Measurements - Summary of Level 3 Financial Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueMeasurementsSummaryofLevel3FinancialAssetsDetail</Role>
      <ShortName>Fair Value Measurements - Summary of Level 3 Financial Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9955541 - Disclosure - Fair Value Hierarchy - Schedule of Trading Cash Instruments by Level (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchyScheduleofTradingCashInstrumentsbyLevelDetail</Role>
      <ShortName>Fair Value Hierarchy - Schedule of Trading Cash Instruments by Level (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - Fair Value Hierarchy - Schedule of Level 3 Assets, and Ranges and Weighted Averages of Significant Unobservable Inputs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchyScheduleofLevel3AssetsandRangesandWeightedAveragesofSignificantUnobservableInputsDetail</Role>
      <ShortName>Fair Value Hierarchy - Schedule of Level 3 Assets, and Ranges and Weighted Averages of Significant Unobservable Inputs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - Fair Value Hierarchy - Summary of Changes in Fair Value for Level 3 Trading Cash Instruments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchySummaryofChangesinFairValueforLevel3TradingCashInstrumentsDetail</Role>
      <ShortName>Fair Value Hierarchy - Summary of Changes in Fair Value for Level 3 Trading Cash Instruments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - Fair Value Hierarchy - Trading Cash Instruments, Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchyTradingCashInstrumentsAdditionalInformationDetail</Role>
      <ShortName>Fair Value Hierarchy - Trading Cash Instruments, Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - Fair Value Hierarchy - Fair Value of Derivatives by Level (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchyFairValueofDerivativesbyLevelDetail</Role>
      <ShortName>Fair Value Hierarchy - Fair Value of Derivatives by Level (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - Fair Value Hierarchy - Significant Unobservable Inputs Used to Value Level 3 Derivatives (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchySignificantUnobservableInputsUsedtoValueLevel3DerivativesDetail</Role>
      <ShortName>Fair Value Hierarchy - Significant Unobservable Inputs Used to Value Level 3 Derivatives (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9955547 - Disclosure - Fair Value Hierarchy - Changes in Fair Value for Level 3 Derivatives (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchyChangesinFairValueforLevel3DerivativesDetail</Role>
      <ShortName>Fair Value Hierarchy - Changes in Fair Value for Level 3 Derivatives (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9955548 - Disclosure - Fair Value Hierarchy - Derivatives, Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchyDerivativesAdditionalInformationDetails</Role>
      <ShortName>Fair Value Hierarchy - Derivatives, Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9955549 - Disclosure - Fair Value Hierarchy - Investments Accounted for at Fair Value (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchyInvestmentsAccountedforatFairValueDetail</Role>
      <ShortName>Fair Value Hierarchy - Investments Accounted for at Fair Value (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9955550 - Disclosure - Fair Value Hierarchy - Amount of Level 3 Investments and Significant Unobservable Inputs Used to Value Such Investments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchyAmountofLevel3InvestmentsandSignificantUnobservableInputsUsedtoValueSuchInvestmentsDetail</Role>
      <ShortName>Fair Value Hierarchy - Amount of Level 3 Investments and Significant Unobservable Inputs Used to Value Such Investments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9955551 - Disclosure - Fair Value Hierarchy - Summary of Changes in Fair Value for Level 3 Investments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchySummaryofChangesinFairValueforLevel3InvestmentsDetail</Role>
      <ShortName>Fair Value Hierarchy - Summary of Changes in Fair Value for Level 3 Investments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>9955552 - Disclosure - Fair Value Hierarchy - Investments, Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchyInvestmentsAdditionalInformationDetails</Role>
      <ShortName>Fair Value Hierarchy - Investments, Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>9955553 - Disclosure - Fair Value Hierarchy - Fair Value of Loans Held for Investment by Level (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchyFairValueofLoansHeldforInvestmentbyLevelDetail</Role>
      <ShortName>Fair Value Hierarchy - Fair Value of Loans Held for Investment by Level (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>9955554 - Disclosure - Fair Value Hierarchy - Loans, Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchyLoansAdditionalInformationDetails</Role>
      <ShortName>Fair Value Hierarchy - Loans, Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>9955555 - Disclosure - Fair Value Hierarchy - Summary of Weighted Average of Significant Unobservable Inputs, Loans (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchySummaryofWeightedAverageofSignificantUnobservableInputsLoansDetail</Role>
      <ShortName>Fair Value Hierarchy - Summary of Weighted Average of Significant Unobservable Inputs, Loans (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>9955556 - Disclosure - Fair Value Hierarchy - Summary of Changes in Fair Value for Level 3 Loans (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchySummaryofChangesinFairValueforLevel3LoansDetail</Role>
      <ShortName>Fair Value Hierarchy - Summary of Changes in Fair Value for Level 3 Loans (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>9955557 - Disclosure - Fair Value Hierarchy - Financial Assets and Financial Liabilities by Level (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchyFinancialAssetsandFinancialLiabilitiesbyLevelDetail</Role>
      <ShortName>Fair Value Hierarchy - Financial Assets and Financial Liabilities by Level (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>9955558 - Disclosure - Fair Value Hierarchy - Fair Value Option, Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchyFairValueOptionAdditionalInformationDetails</Role>
      <ShortName>Fair Value Hierarchy - Fair Value Option, Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>9955559 - Disclosure - Fair Value Hierarchy - Other Financial Assets and Liabilities Level 3 Rollforward (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueHierarchyOtherFinancialAssetsandLiabilitiesLevel3RollforwardDetail</Role>
      <ShortName>Fair Value Hierarchy - Other Financial Assets and Liabilities Level 3 Rollforward (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>9955560 - Disclosure - Trading Assets and Liabilities - Summary of Trading Assets and Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/TradingAssetsandLiabilitiesSummaryofTradingAssetsandLiabilitiesDetail</Role>
      <ShortName>Trading Assets and Liabilities - Summary of Trading Assets and Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>9955561 - Disclosure - Trading Assets and Liabilities - Summary of Market Making Revenues by Major Product Type (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/TradingAssetsandLiabilitiesSummaryofMarketMakingRevenuesbyMajorProductTypeDetail</Role>
      <ShortName>Trading Assets and Liabilities - Summary of Market Making Revenues by Major Product Type (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>9955562 - Disclosure - Derivatives and Hedging Activities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DerivativesandHedgingActivitiesAdditionalInformationDetail</Role>
      <ShortName>Derivatives and Hedging Activities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>9955563 - Disclosure - Derivatives and Hedging Activities - Fair Value of Derivatives on a Gross Basis (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DerivativesandHedgingActivitiesFairValueofDerivativesonaGrossBasisDetail</Role>
      <ShortName>Derivatives and Hedging Activities - Fair Value of Derivatives on a Gross Basis (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>9955564 - Disclosure - Derivatives and Hedging Activities - Credit Derivatives (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DerivativesandHedgingActivitiesCreditDerivativesDetail</Role>
      <ShortName>Derivatives and Hedging Activities - Credit Derivatives (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>9955565 - Disclosure - Derivatives and Hedging Activities - Summary of Information About CVA and FVA (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DerivativesandHedgingActivitiesSummaryofInformationAboutCVAandFVADetail</Role>
      <ShortName>Derivatives and Hedging Activities - Summary of Information About CVA and FVA (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>9955566 - Disclosure - Derivatives and Hedging Activities - Summary of Derivatives Bifurcated from their Related Borrowings (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DerivativesandHedgingActivitiesSummaryofDerivativesBifurcatedfromtheirRelatedBorrowingsDetail</Role>
      <ShortName>Derivatives and Hedging Activities - Summary of Derivatives Bifurcated from their Related Borrowings (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>9955567 - Disclosure - Derivatives and Hedging Activities - Derivatives with Credit-Related Contingent Features (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DerivativesandHedgingActivitiesDerivativeswithCreditRelatedContingentFeaturesDetail</Role>
      <ShortName>Derivatives and Hedging Activities - Derivatives with Credit-Related Contingent Features (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>9955568 - Disclosure - Derivatives and Hedging Activities - Gain (Loss) from Interest Rate Hedges and Related Hedged Items (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DerivativesandHedgingActivitiesGainLossfromInterestRateHedgesandRelatedHedgedItemsDetail</Role>
      <ShortName>Derivatives and Hedging Activities - Gain (Loss) from Interest Rate Hedges and Related Hedged Items (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/DerivativesandHedgingActivitiesTables</ParentRole>
      <Position>99</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>9955569 - Disclosure - Derivatives and Hedging Activities - Carrying Amount of Hedged Items Currently Designated in a Hedging Relationship and Related Cumulative Hedging Adjustment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DerivativesandHedgingActivitiesCarryingAmountofHedgedItemsCurrentlyDesignatedinaHedgingRelationshipandRelatedCumulativeHedgingAdjustmentDetail</Role>
      <ShortName>Derivatives and Hedging Activities - Carrying Amount of Hedged Items Currently Designated in a Hedging Relationship and Related Cumulative Hedging Adjustment (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>9955570 - Disclosure - Derivatives and Hedging Activities - Gains/(Losses) from Net Investment Hedging (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DerivativesandHedgingActivitiesGainsLossesfromNetInvestmentHedgingDetail</Role>
      <ShortName>Derivatives and Hedging Activities - Gains/(Losses) from Net Investment Hedging (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>9955571 - Disclosure - Investments - Information about Investments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/InvestmentsInformationaboutInvestmentsDetail</Role>
      <ShortName>Investments - Information about Investments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>102</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>9955572 - Disclosure - Investments - Available-for-Sale Securities by Tenor (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/InvestmentsAvailableforSaleSecuritiesbyTenorDetail</Role>
      <ShortName>Investments - Available-for-Sale Securities by Tenor (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>103</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>9955573 - Disclosure - Investments - Schedule of Available-For-Sale Securities in an Unrealized Loss Position (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/InvestmentsScheduleofAvailableForSaleSecuritiesinanUnrealizedLossPositionDetails</Role>
      <ShortName>Investments - Schedule of Available-For-Sale Securities in an Unrealized Loss Position (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>104</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>9955574 - Disclosure - Investments - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/InvestmentsAdditionalInformationDetail</Role>
      <ShortName>Investments - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>9955575 - Disclosure - Investments - Held-to-maturity Securities by Type and Tenor (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/InvestmentsHeldtomaturitySecuritiesbyTypeandTenorDetail</Role>
      <ShortName>Investments - Held-to-maturity Securities by Type and Tenor (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>106</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>9955576 - Disclosure - Investments - Equity Securities At Fair Value (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/InvestmentsEquitySecuritiesAtFairValueDetail</Role>
      <ShortName>Investments - Equity Securities At Fair Value (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>107</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>9955577 - Disclosure - Investments - Debt Instruments At Fair Value (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/InvestmentsDebtInstrumentsAtFairValueDetail</Role>
      <ShortName>Investments - Debt Instruments At Fair Value (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>108</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>9955578 - Disclosure - Investments - Fair Value of Investments in Funds at NAV and Related Unfunded Commitments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/InvestmentsFairValueofInvestmentsinFundsatNAVandRelatedUnfundedCommitmentsDetail</Role>
      <ShortName>Investments - Fair Value of Investments in Funds at NAV and Related Unfunded Commitments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>109</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>9955579 - Disclosure - Loans - Summary of Loans (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/LoansSummaryofLoansDetail</Role>
      <ShortName>Loans - Summary of Loans (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>110</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>9955580 - Disclosure - Loans - Summary of Concentration of Secured and Unsecured Loans (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/LoansSummaryofConcentrationofSecuredandUnsecuredLoansDetail</Role>
      <ShortName>Loans - Summary of Concentration of Secured and Unsecured Loans (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>111</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>9955581 - Disclosure - Loans - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/LoansAdditionalInformationDetail</Role>
      <ShortName>Loans - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>112</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>9955582 - Disclosure - Loans - Schedule of Credit Quality Indicators for Term Loans by Origination Year (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/LoansScheduleofCreditQualityIndicatorsforTermLoansbyOriginationYearDetail</Role>
      <ShortName>Loans - Schedule of Credit Quality Indicators for Term Loans by Origination Year (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>113</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>9955583 - Disclosure - Loans - Summary of Consumer Loans by Refreshed FICO Credit Score (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/LoansSummaryofConsumerLoansbyRefreshedFICOCreditScoreDetail</Role>
      <ShortName>Loans - Summary of Consumer Loans by Refreshed FICO Credit Score (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>114</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R115.htm</HtmlFileName>
      <LongName>9955584 - Disclosure - Loans - Summary of Credit Concentration by Region (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/LoansSummaryofCreditConcentrationbyRegionDetail</Role>
      <ShortName>Loans - Summary of Credit Concentration by Region (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>115</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R116.htm</HtmlFileName>
      <LongName>9955585 - Disclosure - Loans - Summary of Past Due Loans (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/LoansSummaryofPastDueLoansDetail</Role>
      <ShortName>Loans - Summary of Past Due Loans (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>116</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R117.htm</HtmlFileName>
      <LongName>9955586 - Disclosure - Loans - Summary of Nonaccrual Loans (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/LoansSummaryofNonaccrualLoansDetail</Role>
      <ShortName>Loans - Summary of Nonaccrual Loans (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>117</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R118.htm</HtmlFileName>
      <LongName>9955587 - Disclosure - Loans - Summary of Loans Modified (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/LoansSummaryofLoansModifiedDetails</Role>
      <ShortName>Loans - Summary of Loans Modified (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>118</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R119.htm</HtmlFileName>
      <LongName>9955588 - Disclosure - Loans - Summary of Loans and Lending Commitments Accounted for at Amortized Cost by Portfolio (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/LoansSummaryofLoansandLendingCommitmentsAccountedforatAmortizedCostbyPortfolioDetail</Role>
      <ShortName>Loans - Summary of Loans and Lending Commitments Accounted for at Amortized Cost by Portfolio (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>119</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R120.htm</HtmlFileName>
      <LongName>9955589 - Disclosure - Loans - Summary of Changes in Allowance for Credit Losses (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/LoansSummaryofChangesinAllowanceforCreditLossesDetail</Role>
      <ShortName>Loans - Summary of Changes in Allowance for Credit Losses (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>120</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R121.htm</HtmlFileName>
      <LongName>9955590 - Disclosure - Loans - Schedule of Forecasted Economic Scenarios (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/LoansScheduleofForecastedEconomicScenariosDetail</Role>
      <ShortName>Loans - Schedule of Forecasted Economic Scenarios (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>121</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R122.htm</HtmlFileName>
      <LongName>9955591 - Disclosure - Loans - Summary of Estimated Fair Value of Loans and Lending Commitments that are not Accounted for at Fair Value (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/LoansSummaryofEstimatedFairValueofLoansandLendingCommitmentsthatarenotAccountedforatFairValueDetail</Role>
      <ShortName>Loans - Summary of Estimated Fair Value of Loans and Lending Commitments that are not Accounted for at Fair Value (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>122</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R123.htm</HtmlFileName>
      <LongName>9955592 - Disclosure - Fair Value Option - Gains and Losses on Other Financial Assets and Financial Liabilities at Fair Value (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueOptionGainsandLossesonOtherFinancialAssetsandFinancialLiabilitiesatFairValueDetail</Role>
      <ShortName>Fair Value Option - Gains and Losses on Other Financial Assets and Financial Liabilities at Fair Value (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>123</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R124.htm</HtmlFileName>
      <LongName>9955593 - Disclosure - Fair Value Option - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueOptionAdditionalInformationDetail</Role>
      <ShortName>Fair Value Option - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>124</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R125.htm</HtmlFileName>
      <LongName>9955594 - Disclosure - Fair Value Option - Summary of DVA Gains/(Losses) on Financial Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueOptionSummaryofDVAGainsLossesonFinancialLiabilitiesDetail</Role>
      <ShortName>Fair Value Option - Summary of DVA Gains/(Losses) on Financial Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>125</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R126.htm</HtmlFileName>
      <LongName>9955595 - Disclosure - Fair Value Option - Loans and Lending Commitments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FairValueOptionLoansandLendingCommitmentsDetail</Role>
      <ShortName>Fair Value Option - Loans and Lending Commitments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>126</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R127.htm</HtmlFileName>
      <LongName>9955596 - Disclosure - Collateralized Agreements and Financings - Offsetting Arrangements (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CollateralizedAgreementsandFinancingsOffsettingArrangementsDetail</Role>
      <ShortName>Collateralized Agreements and Financings - Offsetting Arrangements (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>127</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R128.htm</HtmlFileName>
      <LongName>9955597 - Disclosure - Collateralized Agreements and Financings - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CollateralizedAgreementsandFinancingsAdditionalInformationDetail</Role>
      <ShortName>Collateralized Agreements and Financings - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>128</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R129.htm</HtmlFileName>
      <LongName>9955598 - Disclosure - Collateralized Agreements and Financings - Schedule of Gross Carrying Value of Repurchase Agreements and Securities Loaned by Class of Collateral Pledged (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CollateralizedAgreementsandFinancingsScheduleofGrossCarryingValueofRepurchaseAgreementsandSecuritiesLoanedbyClassofCollateralPledgedDetail</Role>
      <ShortName>Collateralized Agreements and Financings - Schedule of Gross Carrying Value of Repurchase Agreements and Securities Loaned by Class of Collateral Pledged (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>129</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R130.htm</HtmlFileName>
      <LongName>9955599 - Disclosure - Collateralized Agreements and Financings - Schedule of Repurchase Agreements and Securities Loaned by Maturity Date (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CollateralizedAgreementsandFinancingsScheduleofRepurchaseAgreementsandSecuritiesLoanedbyMaturityDateDetail</Role>
      <ShortName>Collateralized Agreements and Financings - Schedule of Repurchase Agreements and Securities Loaned by Maturity Date (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>130</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R131.htm</HtmlFileName>
      <LongName>9955600 - Disclosure - Collateralized Agreements and Financings - Other Secured Financings (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CollateralizedAgreementsandFinancingsOtherSecuredFinancingsDetail</Role>
      <ShortName>Collateralized Agreements and Financings - Other Secured Financings (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>131</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R132.htm</HtmlFileName>
      <LongName>9955601 - Disclosure - Collateralized Agreements and Financings - Other Secured Financings by Maturity Date (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CollateralizedAgreementsandFinancingsOtherSecuredFinancingsbyMaturityDateDetail</Role>
      <ShortName>Collateralized Agreements and Financings - Other Secured Financings by Maturity Date (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>132</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R133.htm</HtmlFileName>
      <LongName>9955602 - Disclosure - Collateralized Agreements and Financings - Financial Instruments Received as Collateral and Repledged (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CollateralizedAgreementsandFinancingsFinancialInstrumentsReceivedasCollateralandRepledgedDetail</Role>
      <ShortName>Collateralized Agreements and Financings - Financial Instruments Received as Collateral and Repledged (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>133</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R134.htm</HtmlFileName>
      <LongName>9955603 - Disclosure - Collateralized Agreements and Financings - Assets Pledged as Collateral (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CollateralizedAgreementsandFinancingsAssetsPledgedasCollateralDetail</Role>
      <ShortName>Collateralized Agreements and Financings - Assets Pledged as Collateral (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>134</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R135.htm</HtmlFileName>
      <LongName>9955604 - Disclosure - Other Assets - Other Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/OtherAssetsOtherAssetsDetail</Role>
      <ShortName>Other Assets - Other Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>135</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R136.htm</HtmlFileName>
      <LongName>9955605 - Disclosure - Other Assets - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/OtherAssetsAdditionalInformationDetail</Role>
      <ShortName>Other Assets - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>136</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R137.htm</HtmlFileName>
      <LongName>9955606 - Disclosure - Other Assets - Carrying Value of Goodwill (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/OtherAssetsCarryingValueofGoodwillDetail</Role>
      <ShortName>Other Assets - Carrying Value of Goodwill (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>137</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R138.htm</HtmlFileName>
      <LongName>9955607 - Disclosure - Other Assets - Identifiable Intangible Assets by Type (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/OtherAssetsIdentifiableIntangibleAssetsbyTypeDetail</Role>
      <ShortName>Other Assets - Identifiable Intangible Assets by Type (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>138</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R139.htm</HtmlFileName>
      <LongName>9955608 - Disclosure - Other Assets - Amortization of Identifiable Intangible Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/OtherAssetsAmortizationofIdentifiableIntangibleAssetsDetail</Role>
      <ShortName>Other Assets - Amortization of Identifiable Intangible Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>139</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R140.htm</HtmlFileName>
      <LongName>9955609 - Disclosure - Other Assets - Estimated Future Amortization (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/OtherAssetsEstimatedFutureAmortizationDetail</Role>
      <ShortName>Other Assets - Estimated Future Amortization (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>140</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R141.htm</HtmlFileName>
      <LongName>9955610 - Disclosure - Deposits - Location of Deposits (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DepositsLocationofDepositsDetail</Role>
      <ShortName>Deposits - Location of Deposits (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>141</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R142.htm</HtmlFileName>
      <LongName>9955611 - Disclosure - Deposits - Maturities of Time Deposits (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DepositsMaturitiesofTimeDepositsDetail</Role>
      <ShortName>Deposits - Maturities of Time Deposits (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>142</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R143.htm</HtmlFileName>
      <LongName>9955612 - Disclosure - Deposits - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/DepositsAdditionalInformationDetail</Role>
      <ShortName>Deposits - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>143</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R144.htm</HtmlFileName>
      <LongName>9955613 - Disclosure - Unsecured Borrowings - Schedule of Unsecured Borrowings (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/UnsecuredBorrowingsScheduleofUnsecuredBorrowingsDetail</Role>
      <ShortName>Unsecured Borrowings - Schedule of Unsecured Borrowings (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>144</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R145.htm</HtmlFileName>
      <LongName>9955614 - Disclosure - Unsecured Borrowings - Unsecured Short-Term Borrowings (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/UnsecuredBorrowingsUnsecuredShortTermBorrowingsDetail</Role>
      <ShortName>Unsecured Borrowings - Unsecured Short-Term Borrowings (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>145</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R146.htm</HtmlFileName>
      <LongName>9955615 - Disclosure - Unsecured Borrowings - Unsecured Long-Term Borrowings (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/UnsecuredBorrowingsUnsecuredLongTermBorrowingsDetail</Role>
      <ShortName>Unsecured Borrowings - Unsecured Long-Term Borrowings (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>146</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R147.htm</HtmlFileName>
      <LongName>9955616 - Disclosure - Unsecured Borrowings - Unsecured Long-Term Borrowings by Maturity Date (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/UnsecuredBorrowingsUnsecuredLongTermBorrowingsbyMaturityDateDetail</Role>
      <ShortName>Unsecured Borrowings - Unsecured Long-Term Borrowings by Maturity Date (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>147</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R148.htm</HtmlFileName>
      <LongName>9955617 - Disclosure - Unsecured Borrowings - Subordinated Borrowings (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/UnsecuredBorrowingsSubordinatedBorrowingsDetail</Role>
      <ShortName>Unsecured Borrowings - Subordinated Borrowings (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>148</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R149.htm</HtmlFileName>
      <LongName>9955618 - Disclosure - Unsecured Borrowings - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/UnsecuredBorrowingsAdditionalInformationDetail</Role>
      <ShortName>Unsecured Borrowings - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>149</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R150.htm</HtmlFileName>
      <LongName>9955619 - Disclosure - Other Liabilities - Other Liabilities by Type (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/OtherLiabilitiesOtherLiabilitiesbyTypeDetail</Role>
      <ShortName>Other Liabilities - Other Liabilities by Type (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>150</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R151.htm</HtmlFileName>
      <LongName>9955620 - Disclosure - Other Liabilities - Information About Operating Lease Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/OtherLiabilitiesInformationAboutOperatingLeaseLiabilitiesDetail</Role>
      <ShortName>Other Liabilities - Information About Operating Lease Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>151</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R152.htm</HtmlFileName>
      <LongName>9955621 - Disclosure - Other Liabilities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/OtherLiabilitiesAdditionalInformationDetail</Role>
      <ShortName>Other Liabilities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>152</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R153.htm</HtmlFileName>
      <LongName>9955622 - Disclosure - Securitization Activities - Amount of Financial Assets Securitized and Cash Flows Received on Retained Interests (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/SecuritizationActivitiesAmountofFinancialAssetsSecuritizedandCashFlowsReceivedonRetainedInterestsDetail</Role>
      <ShortName>Securitization Activities - Amount of Financial Assets Securitized and Cash Flows Received on Retained Interests (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>153</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R154.htm</HtmlFileName>
      <LongName>9955623 - Disclosure - Securitization Activities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/SecuritizationActivitiesAdditionalInformationDetail</Role>
      <ShortName>Securitization Activities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>154</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R155.htm</HtmlFileName>
      <LongName>9955624 - Disclosure - Securitization Activities - Firms Continuing Involvement in Securitization Entities to Which Firm Sold Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/SecuritizationActivitiesFirmsContinuingInvolvementinSecuritizationEntitiestoWhichFirmSoldAssetsDetail</Role>
      <ShortName>Securitization Activities - Firms Continuing Involvement in Securitization Entities to Which Firm Sold Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>155</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R156.htm</HtmlFileName>
      <LongName>9955625 - Disclosure - Securitization Activities - Weighted Average Key Economic Assumptions Used in Measuring Fair Value of Firm's Retained Interests and Sensitivity of This Fair Value to Immediate Adverse Changes (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/SecuritizationActivitiesWeightedAverageKeyEconomicAssumptionsUsedinMeasuringFairValueofFirmsRetainedInterestsandSensitivityofThisFairValuetoImmediateAdverseChangesDetail</Role>
      <ShortName>Securitization Activities - Weighted Average Key Economic Assumptions Used in Measuring Fair Value of Firm's Retained Interests and Sensitivity of This Fair Value to Immediate Adverse Changes (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>156</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R157.htm</HtmlFileName>
      <LongName>9955626 - Disclosure - Variable Interest Entities - Nonconsolidated Variable Interest Entities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/VariableInterestEntitiesNonconsolidatedVariableInterestEntitiesDetail</Role>
      <ShortName>Variable Interest Entities - Nonconsolidated Variable Interest Entities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>157</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R158.htm</HtmlFileName>
      <LongName>9955627 - Disclosure - Variable Interest Entities - Tax Credit VIEs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/VariableInterestEntitiesTaxCreditVIEsDetails</Role>
      <ShortName>Variable Interest Entities - Tax Credit VIEs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>158</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R159.htm</HtmlFileName>
      <LongName>9955628 - Disclosure - Variable Interest Entities - Consolidated Variable Interest Entities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/VariableInterestEntitiesConsolidatedVariableInterestEntitiesDetail</Role>
      <ShortName>Variable Interest Entities - Consolidated Variable Interest Entities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>159</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R160.htm</HtmlFileName>
      <LongName>9955629 - Disclosure - Commitments, Contingencies and Guarantees - Commitments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CommitmentsContingenciesandGuaranteesCommitmentsDetail</Role>
      <ShortName>Commitments, Contingencies and Guarantees - Commitments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>160</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R161.htm</HtmlFileName>
      <LongName>9955630 - Disclosure - Commitments, Contingencies and Guarantees - Lending Commitments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CommitmentsContingenciesandGuaranteesLendingCommitmentsDetail</Role>
      <ShortName>Commitments, Contingencies and Guarantees - Lending Commitments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>161</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R162.htm</HtmlFileName>
      <LongName>9955631 - Disclosure - Commitments, Contingencies and Guarantees - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CommitmentsContingenciesandGuaranteesAdditionalInformationDetail</Role>
      <ShortName>Commitments, Contingencies and Guarantees - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>162</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R163.htm</HtmlFileName>
      <LongName>9955632 - Disclosure - Commitments, Contingencies and Guarantees - Guarantees (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CommitmentsContingenciesandGuaranteesGuaranteesDetail</Role>
      <ShortName>Commitments, Contingencies and Guarantees - Guarantees (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>163</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R164.htm</HtmlFileName>
      <LongName>9955633 - Disclosure - Shareholders' Equity - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ShareholdersEquityAdditionalInformationDetail</Role>
      <ShortName>Shareholders' Equity - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>164</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R165.htm</HtmlFileName>
      <LongName>9955634 - Disclosure - Shareholders' Equity - Summary of Amount of Common Stock Repurchased by the Firm (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ShareholdersEquitySummaryofAmountofCommonStockRepurchasedbytheFirmDetail</Role>
      <ShortName>Shareholders' Equity - Summary of Amount of Common Stock Repurchased by the Firm (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>165</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R166.htm</HtmlFileName>
      <LongName>9955635 - Disclosure - Shareholders' Equity - Summary of Dividends Declared on Common Stock (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ShareholdersEquitySummaryofDividendsDeclaredonCommonStockDetail</Role>
      <ShortName>Shareholders' Equity - Summary of Dividends Declared on Common Stock (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>166</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R167.htm</HtmlFileName>
      <LongName>9955636 - Disclosure - Shareholders' Equity - Summary of Perpetual Preferred Stock Issued and Outstanding (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ShareholdersEquitySummaryofPerpetualPreferredStockIssuedandOutstandingDetail</Role>
      <ShortName>Shareholders' Equity - Summary of Perpetual Preferred Stock Issued and Outstanding (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>167</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R168.htm</HtmlFileName>
      <LongName>9955637 - Disclosure - Shareholders' Equity - Summary of Dividend Rates of Perpetual Preferred Stock Issued and Outstanding (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ShareholdersEquitySummaryofDividendRatesofPerpetualPreferredStockIssuedandOutstandingDetail</Role>
      <ShortName>Shareholders' Equity - Summary of Dividend Rates of Perpetual Preferred Stock Issued and Outstanding (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>168</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R169.htm</HtmlFileName>
      <LongName>9955638 - Disclosure - Shareholders' Equity - Summary of Preferred Dividends Declared on Preferred Stock Issued (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ShareholdersEquitySummaryofPreferredDividendsDeclaredonPreferredStockIssuedDetail</Role>
      <ShortName>Shareholders' Equity - Summary of Preferred Dividends Declared on Preferred Stock Issued (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>169</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R170.htm</HtmlFileName>
      <LongName>9955639 - Disclosure - Shareholders' Equity - Accumulated Other Comprehensive Income/(Loss), Net of Tax (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ShareholdersEquityAccumulatedOtherComprehensiveIncomeLossNetofTaxDetail</Role>
      <ShortName>Shareholders' Equity - Accumulated Other Comprehensive Income/(Loss), Net of Tax (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>170</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R171.htm</HtmlFileName>
      <LongName>9955640 - Disclosure - Regulation and Capital Adequacy - Risk-Based Capital and Leverage Requirements (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/RegulationandCapitalAdequacyRiskBasedCapitalandLeverageRequirementsDetail</Role>
      <ShortName>Regulation and Capital Adequacy - Risk-Based Capital and Leverage Requirements (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>171</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R172.htm</HtmlFileName>
      <LongName>9955641 - Disclosure - Regulation and Capital Adequacy - Risk-Based Capital Ratios (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/RegulationandCapitalAdequacyRiskBasedCapitalRatiosDetail</Role>
      <ShortName>Regulation and Capital Adequacy - Risk-Based Capital Ratios (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>172</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R173.htm</HtmlFileName>
      <LongName>9955642 - Disclosure - Regulation and Capital Adequacy - Leverage Ratios (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/RegulationandCapitalAdequacyLeverageRatiosDetail</Role>
      <ShortName>Regulation and Capital Adequacy - Leverage Ratios (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>173</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R174.htm</HtmlFileName>
      <LongName>9955643 - Disclosure - Regulation and Capital Adequacy - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/RegulationandCapitalAdequacyAdditionalInformationDetail</Role>
      <ShortName>Regulation and Capital Adequacy - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>174</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R175.htm</HtmlFileName>
      <LongName>9955644 - Disclosure - Regulation and Capital Adequacy - Risk-Based Capital and Leverage Ratios and "Well-capitalized" Requirements (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/RegulationandCapitalAdequacyRiskBasedCapitalandLeverageRatiosandWellcapitalizedRequirementsDetail</Role>
      <ShortName>Regulation and Capital Adequacy - Risk-Based Capital and Leverage Ratios and "Well-capitalized" Requirements (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>175</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R176.htm</HtmlFileName>
      <LongName>9955645 - Disclosure - Regulation and Capital Adequacy - Risk Based Capital Requirements (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/RegulationandCapitalAdequacyRiskBasedCapitalRequirementsDetail</Role>
      <ShortName>Regulation and Capital Adequacy - Risk Based Capital Requirements (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>176</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R177.htm</HtmlFileName>
      <LongName>9955646 - Disclosure - Earnings Per Common Share - Earnings Per Common Share (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/EarningsPerCommonShareEarningsPerCommonShareDetail</Role>
      <ShortName>Earnings Per Common Share - Earnings Per Common Share (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>177</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R178.htm</HtmlFileName>
      <LongName>9955647 - Disclosure - Earnings Per Common Share - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/EarningsPerCommonShareAdditionalInformationDetail</Role>
      <ShortName>Earnings Per Common Share - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>178</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R179.htm</HtmlFileName>
      <LongName>9955648 - Disclosure - Transactions with Affiliated Funds - Fees Earned from Affiliated Funds (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/TransactionswithAffiliatedFundsFeesEarnedfromAffiliatedFundsDetail</Role>
      <ShortName>Transactions with Affiliated Funds - Fees Earned from Affiliated Funds (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>179</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R180.htm</HtmlFileName>
      <LongName>9955649 - Disclosure - Transactions with Affiliated Funds - Fees Receivable from Affiliated Funds and the Aggregate Carrying Value of the Firm's Interests in these Funds (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/TransactionswithAffiliatedFundsFeesReceivablefromAffiliatedFundsandtheAggregateCarryingValueoftheFirmsInterestsintheseFundsDetail</Role>
      <ShortName>Transactions with Affiliated Funds - Fees Receivable from Affiliated Funds and the Aggregate Carrying Value of the Firm's Interests in these Funds (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>180</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R181.htm</HtmlFileName>
      <LongName>9955650 - Disclosure - Transactions with Affiliated Funds - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/TransactionswithAffiliatedFundsAdditionalInformationDetail</Role>
      <ShortName>Transactions with Affiliated Funds - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>181</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R182.htm</HtmlFileName>
      <LongName>9955651 - Disclosure - Interest Income and Interest Expense - Sources of Interest Income and Interest Expense (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/InterestIncomeandInterestExpenseSourcesofInterestIncomeandInterestExpenseDetail</Role>
      <ShortName>Interest Income and Interest Expense - Sources of Interest Income and Interest Expense (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>182</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R183.htm</HtmlFileName>
      <LongName>9955652 - Disclosure - Income Taxes - Provision for Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/IncomeTaxesProvisionforTaxesDetails</Role>
      <ShortName>Income Taxes - Provision for Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>183</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R184.htm</HtmlFileName>
      <LongName>9955653 - Disclosure - Income Taxes - Schedule of Pre-Tax Earning by Domestic and Foreign Based (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/IncomeTaxesScheduleofPreTaxEarningbyDomesticandForeignBasedDetails</Role>
      <ShortName>Income Taxes - Schedule of Pre-Tax Earning by Domestic and Foreign Based (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>184</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R185.htm</HtmlFileName>
      <LongName>9955654 - Disclosure - Income Taxes - Schedule of Reconciliation of Effective Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/IncomeTaxesScheduleofReconciliationofEffectiveIncomeTaxesDetails</Role>
      <ShortName>Income Taxes - Schedule of Reconciliation of Effective Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>185</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R186.htm</HtmlFileName>
      <LongName>9955655 - Disclosure - Income Taxes - Schedule of Income Taxes Paid (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/IncomeTaxesScheduleofIncomeTaxesPaidDetails</Role>
      <ShortName>Income Taxes - Schedule of Income Taxes Paid (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>186</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R187.htm</HtmlFileName>
      <LongName>9955656 - Disclosure - Income Taxes - Deferred Tax Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails</Role>
      <ShortName>Income Taxes - Deferred Tax Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>187</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R188.htm</HtmlFileName>
      <LongName>9955657 - Disclosure - Income Taxes - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/IncomeTaxesAdditionalInformationDetails</Role>
      <ShortName>Income Taxes - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>188</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R189.htm</HtmlFileName>
      <LongName>9955658 - Disclosure - Income Taxes - Changes in the Liability for Unrecognized Tax Benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/IncomeTaxesChangesintheLiabilityforUnrecognizedTaxBenefitsDetails</Role>
      <ShortName>Income Taxes - Changes in the Liability for Unrecognized Tax Benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>189</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R190.htm</HtmlFileName>
      <LongName>9955659 - Disclosure - Income Taxes - Earliest Tax Years Subject to Examination by Major Jurisdiction (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/IncomeTaxesEarliestTaxYearsSubjecttoExaminationbyMajorJurisdictionDetail</Role>
      <ShortName>Income Taxes - Earliest Tax Years Subject to Examination by Major Jurisdiction (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>190</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R191.htm</HtmlFileName>
      <LongName>9955660 - Disclosure - Business Segments - Segment Operating Results (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/BusinessSegmentsSegmentOperatingResultsDetail</Role>
      <ShortName>Business Segments - Segment Operating Results (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>191</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R192.htm</HtmlFileName>
      <LongName>9955661 - Disclosure - Business Segments - Depreciation and Amortization (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/BusinessSegmentsDepreciationandAmortizationDetail</Role>
      <ShortName>Business Segments - Depreciation and Amortization (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>192</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R193.htm</HtmlFileName>
      <LongName>9955662 - Disclosure - Business Segments - Assets by Segment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/BusinessSegmentsAssetsbySegmentDetail</Role>
      <ShortName>Business Segments - Assets by Segment (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>193</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R194.htm</HtmlFileName>
      <LongName>9955663 - Disclosure - Business Segments - Total Net Revenues and Pre-Tax Earnings By Geographic Region (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/BusinessSegmentsTotalNetRevenuesandPreTaxEarningsByGeographicRegionDetail</Role>
      <ShortName>Business Segments - Total Net Revenues and Pre-Tax Earnings By Geographic Region (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>194</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R195.htm</HtmlFileName>
      <LongName>9955664 - Disclosure - Credit Concentrations - Credit Concentrations Included in Trading Cash Instruments and Investments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CreditConcentrationsCreditConcentrationsIncludedinTradingCashInstrumentsandInvestmentsDetail</Role>
      <ShortName>Credit Concentrations - Credit Concentrations Included in Trading Cash Instruments and Investments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>195</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R196.htm</HtmlFileName>
      <LongName>9955665 - Disclosure - Credit Concentrations - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CreditConcentrationsAdditionalInformationDetail</Role>
      <ShortName>Credit Concentrations - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>196</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R197.htm</HtmlFileName>
      <LongName>9955666 - Disclosure - Credit Concentrations - U.S. Government and Agency Obligations and Non-U.S. Government and Agency Obligations that Collateralize Resale Agreements and Securities Borrowed Transactions (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/CreditConcentrationsUSGovernmentandAgencyObligationsandNonUSGovernmentandAgencyObligationsthatCollateralizeResaleAgreementsandSecuritiesBorrowedTransactionsDetail</Role>
      <ShortName>Credit Concentrations - U.S. Government and Agency Obligations and Non-U.S. Government and Agency Obligations that Collateralize Resale Agreements and Securities Borrowed Transactions (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>197</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R198.htm</HtmlFileName>
      <LongName>9955667 - Disclosure - Legal Proceedings - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/LegalProceedingsAdditionalInformationDetail</Role>
      <ShortName>Legal Proceedings - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>198</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R199.htm</HtmlFileName>
      <LongName>9955668 - Disclosure - Employee Benefit Plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/EmployeeBenefitPlansDetails</Role>
      <ShortName>Employee Benefit Plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/EmployeeBenefitPlans</ParentRole>
      <Position>199</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R200.htm</HtmlFileName>
      <LongName>9955669 - Disclosure - Employee Incentive Plans - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/EmployeeIncentivePlansAdditionalInformationDetails</Role>
      <ShortName>Employee Incentive Plans - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>200</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R201.htm</HtmlFileName>
      <LongName>9955670 - Disclosure - Employee Incentive Plans - Activity Related to Stock Settled RSUs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/EmployeeIncentivePlansActivityRelatedtoStockSettledRSUsDetails</Role>
      <ShortName>Employee Incentive Plans - Activity Related to Stock Settled RSUs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>201</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R202.htm</HtmlFileName>
      <LongName>9955671 - Disclosure - Employee Incentive Plans - Share-Based Compensation and Related Excess Tax Benefit (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/EmployeeIncentivePlansShareBasedCompensationandRelatedExcessTaxBenefitDetails</Role>
      <ShortName>Employee Incentive Plans - Share-Based Compensation and Related Excess Tax Benefit (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>202</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R203.htm</HtmlFileName>
      <LongName>9955672 - Disclosure - Parent Company - Condensed Statements of Earnings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ParentCompanyCondensedStatementsofEarningsDetails</Role>
      <ShortName>Parent Company - Condensed Statements of Earnings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>203</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R204.htm</HtmlFileName>
      <LongName>9955673 - Disclosure - Parent Company - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ParentCompanyAdditionalInformationDetails</Role>
      <ShortName>Parent Company - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>204</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R205.htm</HtmlFileName>
      <LongName>9955674 - Disclosure - Parent Company - Condensed Balance Sheets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ParentCompanyCondensedBalanceSheetsDetails</Role>
      <ShortName>Parent Company - Condensed Balance Sheets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>205</Position>
    </Report>
    <Report instance="gs-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R206.htm</HtmlFileName>
      <LongName>9955675 - Disclosure - Parent Company - Condensed Statements of Cash Flows (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ParentCompanyCondensedStatementsofCashFlowsDetails</Role>
      <ShortName>Parent Company - Condensed Statements of Cash Flows (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>206</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" isDefinitelyFs="true" isUsgaap="true" original="gs-20251231.htm">gs-20251231.htm</File>
    <File>gs-20251231.xsd</File>
    <File>gs-20251231_cal.xml</File>
    <File>gs-20251231_def.xml</File>
    <File>gs-20251231_lab.xml</File>
    <File>gs-20251231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>gs-20251231_g1.jpg</File>
    <File>gs-20251231_g2.jpg</File>
    <File>gs-20251231_g3.jpg</File>
    <File>gs-20251231_g4.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="7">http://fasb.org/srt/2025</BaseTaxonomy>
    <BaseTaxonomy items="4762">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="15">http://xbrl.sec.gov/cyd/2025</BaseTaxonomy>
    <BaseTaxonomy items="59">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="5">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
