<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>3307</ContextCount>
  <ElementCount>100</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>33</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Statement - Statements of Net Assets Available for Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/StatementsofNetAssetsAvailableforBenefits</Role>
      <ShortName>Statements of Net Assets Available for Benefits</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>0000003 - Statement - Statement of Changes in Net Assets Available for Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/StatementofChangesinNetAssetsAvailableforBenefits</Role>
      <ShortName>Statement of Changes in Net Assets Available for Benefits</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>0000004 - Disclosure - Plan Description</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/PlanDescription</Role>
      <ShortName>Plan Description</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>0000005 - 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>5</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>0000006 - 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>6</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>0000007 - 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>7</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>0000008 - Disclosure - Investment Assets and Investment Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/InvestmentAssetsandInvestmentLiabilities</Role>
      <ShortName>Investment Assets and Investment Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>0000009 - Disclosure - Related-Party and Parties-In-Interest Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/RelatedPartyandPartiesInInterestTransactions</Role>
      <ShortName>Related-Party and Parties-In-Interest Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>0000010 - Disclosure - Plan Termination</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/PlanTermination</Role>
      <ShortName>Plan Termination</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>0000011 - Disclosure - Income Tax Status</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/IncomeTaxStatus</Role>
      <ShortName>Income Tax Status</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>0000012 - Disclosure - Reconciliation of Financial Statements to the Form 5500</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ReconciliationofFinancialStatementstotheForm5500</Role>
      <ShortName>Reconciliation of Financial Statements to the Form 5500</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>0000013 - Disclosure - Financial Instruments with Off-Balance Sheet Risk</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FinancialInstrumentswithOffBalanceSheetRisk</Role>
      <ShortName>Financial Instruments with Off-Balance Sheet Risk</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>0000014 - Disclosure - Schedule H, Line 4i – Schedule of Assets (Held At End of Year)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ScheduleHLine4iScheduleofAssetsHeldAtEndofYear</Role>
      <ShortName>Schedule H, Line 4i – Schedule of Assets (Held At End of Year)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>0000015 - Disclosure - Schedule H, Line 4i – Schedule of Assets (Acquired and Disposed of Within Year)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ScheduleHLine4iScheduleofAssetsAcquiredandDisposedofWithinYear</Role>
      <ShortName>Schedule H, Line 4i – Schedule of Assets (Acquired and Disposed of Within Year)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>0000016 - Disclosure - Schedule H, Line 4j – Schedule of Reportable Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ScheduleHLine4jScheduleofReportableTransactions</Role>
      <ShortName>Schedule H, Line 4j – Schedule of Reportable Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>0000017 - Disclosure - Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/SignificantAccountingPoliciesPolicies</Role>
      <ShortName>Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/SignificantAccountingPolicies</ParentRole>
      <Position>17</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>0000019 - Disclosure - Investment Assets and Investment Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/InvestmentAssetsandInvestmentLiabilitiesTables</Role>
      <ShortName>Investment Assets and Investment Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/InvestmentAssetsandInvestmentLiabilities</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>0000020 - Disclosure - Reconciliation of Financial Statements to the Form 5500 (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ReconciliationofFinancialStatementstotheForm5500Tables</Role>
      <ShortName>Reconciliation of Financial Statements to the Form 5500 (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/ReconciliationofFinancialStatementstotheForm5500</ParentRole>
      <Position>19</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>0000021 - Disclosure - Financial Instruments with Off-Balance Sheet Risk (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FinancialInstrumentswithOffBalanceSheetRiskTables</Role>
      <ShortName>Financial Instruments with Off-Balance Sheet Risk (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/FinancialInstrumentswithOffBalanceSheetRisk</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>0000022 - Disclosure - Plan Description (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/PlanDescriptionDetails</Role>
      <ShortName>Plan Description (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/PlanDescription</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>0000024 - Disclosure - Investment Assets and Investment Liabilities - Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/InvestmentAssetsandInvestmentLiabilitiesFairValueDetails</Role>
      <ShortName>Investment Assets and Investment Liabilities - Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>0000025 - Disclosure - Investment Assets and Investment Liabilities - Level 3 Rollforward (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/InvestmentAssetsandInvestmentLiabilitiesLevel3RollforwardDetails</Role>
      <ShortName>Investment Assets and Investment Liabilities - Level 3 Rollforward (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>0000026 - Disclosure - Related-Party and Parties-In-Interest Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/RelatedPartyandPartiesInInterestTransactionsDetails</Role>
      <ShortName>Related-Party and Parties-In-Interest Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/RelatedPartyandPartiesInInterestTransactions</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>0000027 - Disclosure - Reconciliation of Financial Statements to the Form 5500 - Reconciliation of Net Assets Available for Benefit (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ReconciliationofFinancialStatementstotheForm5500ReconciliationofNetAssetsAvailableforBenefitDetails</Role>
      <ShortName>Reconciliation of Financial Statements to the Form 5500 - Reconciliation of Net Assets Available for Benefit (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>0000028 - Disclosure - Reconciliation of Financial Statements to the Form 5500 - Reconciliation of Net Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ReconciliationofFinancialStatementstotheForm5500ReconciliationofNetIncomeDetails</Role>
      <ShortName>Reconciliation of Financial Statements to the Form 5500 - Reconciliation of Net Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>0000029 - Disclosure - Financial Instruments with Off-Balance Sheet Risk - Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FinancialInstrumentswithOffBalanceSheetRiskFairValueDetails</Role>
      <ShortName>Financial Instruments with Off-Balance Sheet Risk - Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>0000030 - Disclosure - Financial Instruments with Off-Balance Sheet Risk - Notional Amounts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FinancialInstrumentswithOffBalanceSheetRiskNotionalAmountsDetails</Role>
      <ShortName>Financial Instruments with Off-Balance Sheet Risk - Notional Amounts (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>0000031 - Disclosure - Financial Instruments with Off-Balance Sheet Risk - Net Appreciation (Depreciation) of Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/FinancialInstrumentswithOffBalanceSheetRiskNetAppreciationDepreciationofFairValueDetails</Role>
      <ShortName>Financial Instruments with Off-Balance Sheet Risk - Net Appreciation (Depreciation) of Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>0000032 - Disclosure - Schedule H, Line 4i – Schedule of Assets (Held At End of Year) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ScheduleHLine4iScheduleofAssetsHeldAtEndofYearDetails</Role>
      <ShortName>Schedule H, Line 4i – Schedule of Assets (Held At End of Year) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/ScheduleHLine4iScheduleofAssetsHeldAtEndofYear</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>0000033 - Disclosure - Schedule H, Line 4i – Schedule of Assets (Acquired and Disposed of Within Year) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ScheduleHLine4iScheduleofAssetsAcquiredandDisposedofWithinYearDetails</Role>
      <ShortName>Schedule H, Line 4i – Schedule of Assets (Acquired and Disposed of Within Year) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/ScheduleHLine4iScheduleofAssetsHeldAtEndofYear</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="gs-20260612.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>0000034 - Disclosure - Schedule H, Line 4j – Schedule of Reportable Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.goldmansachs.com/role/ScheduleHLine4jScheduleofReportableTransactionsDetails</Role>
      <ShortName>Schedule H, Line 4j – Schedule of Reportable Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.goldmansachs.com/role/ScheduleHLine4jScheduleofReportableTransactions</ParentRole>
      <Position>32</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="11-K" isDefinitelyFs="true" isUsgaap="true" original="gs-20260612.htm">gs-20260612.htm</File>
    <File>gs-20260612.xsd</File>
    <File>gs-20260612_cal.xml</File>
    <File>gs-20260612_def.xml</File>
    <File>gs-20260612_lab.xml</File>
    <File>gs-20260612_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="4812">http://fasb.org/us-gaap-ebp/2025</BaseTaxonomy>
    <BaseTaxonomy items="46">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
