0000886982-23-000008.txt : 20230803 0000886982-23-000008.hdr.sgml : 20230803 20230802180550 ACCESSION NUMBER: 0000886982-23-000008 CONFORMED SUBMISSION TYPE: 10-Q PUBLIC DOCUMENT COUNT: 216 CONFORMED PERIOD OF REPORT: 20230630 FILED AS OF DATE: 20230803 DATE AS OF CHANGE: 20230802 FILER: COMPANY DATA: COMPANY CONFORMED NAME: GOLDMAN SACHS GROUP INC CENTRAL INDEX KEY: 0000886982 STANDARD INDUSTRIAL CLASSIFICATION: SECURITY BROKERS, DEALERS & FLOTATION COMPANIES [6211] IRS NUMBER: 134019460 STATE OF INCORPORATION: DE FISCAL YEAR END: 1231 FILING VALUES: FORM TYPE: 10-Q SEC ACT: 1934 Act SEC FILE NUMBER: 001-14965 FILM NUMBER: 231137350 BUSINESS ADDRESS: STREET 1: 200 WEST STREET CITY: NEW YORK STATE: NY ZIP: 10282 BUSINESS PHONE: 212-902-1000 MAIL ADDRESS: STREET 1: 200 WEST STREET CITY: NEW YORK STATE: NY ZIP: 10282 FORMER COMPANY: FORMER CONFORMED NAME: GOLDMAN SACHS GROUP INC/ DATE OF NAME CHANGE: 20010104 10-Q 1 gs-20230630.htm 10-Q gs-20230630
FALSE20230000886982Q212-31http://fasb.org/us-gaap/2023#InterestAndDividendIncomeOperating http://www.goldmansachs.com/20230630#OtherPrincipalTransactionshttp://fasb.org/us-gaap/2023#InterestAndDividendIncomeOperating http://www.goldmansachs.com/20230630#OtherPrincipalTransactionshttp://www.goldmansachs.com/20230630#TradingAssetsIncludingPledgehttp://www.goldmansachs.com/20230630#TradingAssetsIncludingPledgehttp://www.goldmansachs.com/20230630#TradingAssetsIncludingPledgehttp://www.goldmansachs.com/20230630#TradingAssetsIncludingPledgehttp://fasb.org/us-gaap/2023#TradingLiabilitieshttp://fasb.org/us-gaap/2023#TradingLiabilitieshttp://fasb.org/us-gaap/2023#TradingLiabilitieshttp://fasb.org/us-gaap/2023#TradingLiabilitieshttp://www.goldmansachs.com/20230630#MarketMaking http://www.goldmansachs.com/20230630#OtherPrincipalTransactionshttp://www.goldmansachs.com/20230630#MarketMaking http://www.goldmansachs.com/20230630#OtherPrincipalTransactionshttp://www.goldmansachs.com/20230630#MarketMaking http://www.goldmansachs.com/20230630#OtherPrincipalTransactionshttp://www.goldmansachs.com/20230630#MarketMaking http://www.goldmansachs.com/20230630#OtherPrincipalTransactionshttp://www.goldmansachs.com/20230630#MarketMaking http://www.goldmansachs.com/20230630#OtherPrincipalTransactionshttp://www.goldmansachs.com/20230630#MarketMaking http://www.goldmansachs.com/20230630#OtherPrincipalTransactionshttp://fasb.org/us-gaap/2023#OtherAssetshttp://fasb.org/us-gaap/2023#OtherAssetshttp://fasb.org/us-gaap/2023#OtherLiabilitieshttp://fasb.org/us-gaap/2023#OtherLiabilities00008869822023-01-012023-06-300000886982us-gaap:CommonStockMember2023-01-012023-06-300000886982gs:SeriesAFloatingRatePreferredStockMember2023-01-012023-06-300000886982gs:SeriesCFloatingRatePreferredStockMember2023-01-012023-06-300000886982gs:SeriesDFloatingRatePreferredStockMember2023-01-012023-06-300000886982gs:SeriesJFivePointFiveZeroPercentageFixedToFloatingRatePreferredStockMember2023-01-012023-06-300000886982gs:SeriesKSixPointThreeSevenFivePercentageFixedToFloatingRatePreferredStockMember2023-01-012023-06-300000886982gs:FivePointSevenNineThreePercentageFixedToFloatingRateNormalApexMember2023-01-012023-06-300000886982gs:FloatingRateNormalApexMember2023-01-012023-06-300000886982gs:SeriesFMediumTermNotesCallableFixedAndFloatingRateNotesDueMarch2031OfGSFinanceCorpMember2023-01-012023-06-300000886982gs:SeriesFMediumTermNotesCallableFixedAndFloatingRateNotesDueMay2031OfGSFinanceCorpMember2023-01-012023-06-3000008869822023-07-21xbrli:shares00008869822023-04-012023-06-30iso4217:USD00008869822022-04-012022-06-3000008869822022-01-012022-06-30iso4217:USDxbrli:shares00008869822023-06-3000008869822022-12-310000886982us-gaap:PreferredStockMember2023-03-310000886982us-gaap:PreferredStockMember2022-03-310000886982us-gaap:PreferredStockMember2022-12-310000886982us-gaap:PreferredStockMember2021-12-310000886982us-gaap:PreferredStockMember2023-04-012023-06-300000886982us-gaap:PreferredStockMember2022-04-012022-06-300000886982us-gaap:PreferredStockMember2023-01-012023-06-300000886982us-gaap:PreferredStockMember2022-01-012022-06-300000886982us-gaap:PreferredStockMember2023-06-300000886982us-gaap:PreferredStockMember2022-06-300000886982us-gaap:CommonStockMember2023-03-310000886982us-gaap:CommonStockMember2022-03-310000886982us-gaap:CommonStockMember2022-12-310000886982us-gaap:CommonStockMember2021-12-310000886982us-gaap:CommonStockMember2023-04-012023-06-300000886982us-gaap:CommonStockMember2022-04-012022-06-300000886982us-gaap:CommonStockMember2023-01-012023-06-300000886982us-gaap:CommonStockMember2022-01-012022-06-300000886982us-gaap:CommonStockMember2023-06-300000886982us-gaap:CommonStockMember2022-06-300000886982gs:RestrictedStockUnitsAndEmployeeStockOptionsMember2023-03-310000886982gs:RestrictedStockUnitsAndEmployeeStockOptionsMember2022-03-310000886982gs:RestrictedStockUnitsAndEmployeeStockOptionsMember2022-12-310000886982gs:RestrictedStockUnitsAndEmployeeStockOptionsMember2021-12-310000886982gs:RestrictedStockUnitsAndEmployeeStockOptionsMember2023-04-012023-06-300000886982gs:RestrictedStockUnitsAndEmployeeStockOptionsMember2022-04-012022-06-300000886982gs:RestrictedStockUnitsAndEmployeeStockOptionsMember2023-01-012023-06-300000886982gs:RestrictedStockUnitsAndEmployeeStockOptionsMember2022-01-012022-06-300000886982gs:RestrictedStockUnitsAndEmployeeStockOptionsMember2023-06-300000886982gs:RestrictedStockUnitsAndEmployeeStockOptionsMember2022-06-300000886982us-gaap:AdditionalPaidInCapitalMember2023-03-310000886982us-gaap:AdditionalPaidInCapitalMember2022-03-310000886982us-gaap:AdditionalPaidInCapitalMember2022-12-310000886982us-gaap:AdditionalPaidInCapitalMember2021-12-310000886982us-gaap:AdditionalPaidInCapitalMember2023-04-012023-06-300000886982us-gaap:AdditionalPaidInCapitalMember2022-04-012022-06-300000886982us-gaap:AdditionalPaidInCapitalMember2023-01-012023-06-300000886982us-gaap:AdditionalPaidInCapitalMember2022-01-012022-06-300000886982us-gaap:AdditionalPaidInCapitalMember2023-06-300000886982us-gaap:AdditionalPaidInCapitalMember2022-06-300000886982us-gaap:RetainedEarningsMember2023-03-310000886982us-gaap:RetainedEarningsMember2022-03-310000886982us-gaap:RetainedEarningsMember2022-12-310000886982us-gaap:RetainedEarningsMember2021-12-310000886982us-gaap:RetainedEarningsMember2023-04-012023-06-300000886982us-gaap:RetainedEarningsMember2022-04-012022-06-300000886982us-gaap:RetainedEarningsMember2023-01-012023-06-300000886982us-gaap:RetainedEarningsMember2022-01-012022-06-300000886982us-gaap:RetainedEarningsMember2023-06-300000886982us-gaap:RetainedEarningsMember2022-06-300000886982us-gaap:AccumulatedOtherComprehensiveIncomeMember2023-03-310000886982us-gaap:AccumulatedOtherComprehensiveIncomeMember2022-03-310000886982us-gaap:AccumulatedOtherComprehensiveIncomeMember2022-12-310000886982us-gaap:AccumulatedOtherComprehensiveIncomeMember2021-12-310000886982us-gaap:AccumulatedOtherComprehensiveIncomeMember2023-04-012023-06-300000886982us-gaap:AccumulatedOtherComprehensiveIncomeMember2022-04-012022-06-300000886982us-gaap:AccumulatedOtherComprehensiveIncomeMember2023-01-012023-06-300000886982us-gaap:AccumulatedOtherComprehensiveIncomeMember2022-01-012022-06-300000886982us-gaap:AccumulatedOtherComprehensiveIncomeMember2023-06-300000886982us-gaap:AccumulatedOtherComprehensiveIncomeMember2022-06-300000886982gs:TreasuryStockCommonAndPreferredMember2023-03-310000886982gs:TreasuryStockCommonAndPreferredMember2022-03-310000886982gs:TreasuryStockCommonAndPreferredMember2022-12-310000886982gs:TreasuryStockCommonAndPreferredMember2021-12-310000886982gs:TreasuryStockCommonAndPreferredMember2023-04-012023-06-300000886982gs:TreasuryStockCommonAndPreferredMember2022-04-012022-06-300000886982gs:TreasuryStockCommonAndPreferredMember2023-01-012023-06-300000886982gs:TreasuryStockCommonAndPreferredMember2022-01-012022-06-300000886982gs:TreasuryStockCommonAndPreferredMember2023-06-300000886982gs:TreasuryStockCommonAndPreferredMember2022-06-3000008869822022-06-3000008869822021-12-31gs:Segmentxbrli:pure0000886982srt:MaximumMember2023-01-012023-06-300000886982us-gaap:FairValueInputsLevel1Member2023-06-300000886982us-gaap:FairValueInputsLevel1Member2023-03-310000886982us-gaap:FairValueInputsLevel1Member2022-12-310000886982us-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:FairValueInputsLevel2Member2023-03-310000886982us-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:FairValueInputsLevel3Member2023-03-310000886982us-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:InvestmentsInFundsMeasuredAtNavMember2023-06-300000886982gs:InvestmentsInFundsMeasuredAtNavMember2023-03-310000886982gs:InvestmentsInFundsMeasuredAtNavMember2022-12-310000886982gs:CounterpartyAndCashCollateralNettingAdjustmentMember2023-06-300000886982gs:CounterpartyAndCashCollateralNettingAdjustmentMember2023-03-310000886982gs:CounterpartyAndCashCollateralNettingAdjustmentMember2022-12-3100008869822023-03-310000886982gs:TradingCashInstrumentMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:TradingCashInstrumentMemberus-gaap:FairValueInputsLevel3Member2023-03-310000886982gs:TradingCashInstrumentMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:FairValueInputsLevel3Memberus-gaap:DerivativeMember2023-06-300000886982us-gaap:FairValueInputsLevel3Memberus-gaap:DerivativeMember2023-03-310000886982us-gaap:FairValueInputsLevel3Memberus-gaap:DerivativeMember2022-12-310000886982us-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-06-300000886982us-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-03-310000886982us-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-12-310000886982gs:NonTradingFairValueLoansMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:NonTradingFairValueLoansMemberus-gaap:FairValueInputsLevel3Member2023-03-310000886982gs:NonTradingFairValueLoansMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:OtherAssetsMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:OtherAssetsMemberus-gaap:FairValueInputsLevel3Member2023-03-310000886982us-gaap:OtherAssetsMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:USTreasuryAndGovernmentMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982us-gaap:USTreasuryAndGovernmentMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:USTreasuryAndGovernmentMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:USTreasuryAndGovernmentMembergs:TradingCashInstrumentsAssetsMember2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Memberus-gaap:ForeignGovernmentDebtSecuritiesMember2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Memberus-gaap:ForeignGovernmentDebtSecuritiesMember2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Memberus-gaap:ForeignGovernmentDebtSecuritiesMember2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:ForeignGovernmentDebtSecuritiesMember2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Membergs:LoansAndSecuritiesBackedByCommercialRealEstateMember2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Membergs:LoansAndSecuritiesBackedByCommercialRealEstateMember2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Membergs:LoansAndSecuritiesBackedByCommercialRealEstateMember2023-06-300000886982gs:TradingCashInstrumentsAssetsMembergs:LoansAndSecuritiesBackedByCommercialRealEstateMember2023-06-300000886982gs:LoansAndSecuritiesBackedByResidentialRealEstateMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982gs:LoansAndSecuritiesBackedByResidentialRealEstateMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982gs:LoansAndSecuritiesBackedByResidentialRealEstateMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:LoansAndSecuritiesBackedByResidentialRealEstateMembergs:TradingCashInstrumentsAssetsMember2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMember2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:USStatesAndPoliticalSubdivisionsMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:USStatesAndPoliticalSubdivisionsMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Memberus-gaap:USStatesAndPoliticalSubdivisionsMember2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:USStatesAndPoliticalSubdivisionsMember2023-06-300000886982us-gaap:OtherDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982us-gaap:OtherDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:OtherDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:OtherDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMember2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Memberus-gaap:EquitySecuritiesMember2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Memberus-gaap:EquitySecuritiesMember2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquitySecuritiesMember2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:EquitySecuritiesMember2023-06-300000886982us-gaap:CommoditiesInvestmentMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982us-gaap:CommoditiesInvestmentMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:CommoditiesInvestmentMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:CommoditiesInvestmentMembergs:TradingCashInstrumentsAssetsMember2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:TradingCashInstrumentsAssetsMember2023-06-300000886982us-gaap:USTreasuryAndGovernmentMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982us-gaap:USTreasuryAndGovernmentMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:USTreasuryAndGovernmentMemberus-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMember2023-06-300000886982us-gaap:USTreasuryAndGovernmentMembergs:CashInstrumentsLiabilitiesMember2023-06-300000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Memberus-gaap:ForeignGovernmentDebtSecuritiesMember2023-06-300000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Memberus-gaap:ForeignGovernmentDebtSecuritiesMember2023-06-300000886982us-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMemberus-gaap:ForeignGovernmentDebtSecuritiesMember2023-06-300000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:ForeignGovernmentDebtSecuritiesMember2023-06-300000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Membergs:LoansAndSecuritiesBackedByCommercialRealEstateMember2023-06-300000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Membergs:LoansAndSecuritiesBackedByCommercialRealEstateMember2023-06-300000886982us-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMembergs:LoansAndSecuritiesBackedByCommercialRealEstateMember2023-06-300000886982gs:CashInstrumentsLiabilitiesMembergs:LoansAndSecuritiesBackedByCommercialRealEstateMember2023-06-300000886982gs:LoansAndSecuritiesBackedByResidentialRealEstateMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982gs:LoansAndSecuritiesBackedByResidentialRealEstateMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982gs:LoansAndSecuritiesBackedByResidentialRealEstateMemberus-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMember2023-06-300000886982gs:LoansAndSecuritiesBackedByResidentialRealEstateMembergs:CashInstrumentsLiabilitiesMember2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMember2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembergs:CashInstrumentsLiabilitiesMember2023-06-300000886982us-gaap:OtherDebtSecuritiesMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982us-gaap:OtherDebtSecuritiesMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMember2023-06-300000886982us-gaap:OtherDebtSecuritiesMembergs:CashInstrumentsLiabilitiesMember2023-06-300000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Memberus-gaap:EquitySecuritiesMember2023-06-300000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Memberus-gaap:EquitySecuritiesMember2023-06-300000886982us-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMemberus-gaap:EquitySecuritiesMember2023-06-300000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:EquitySecuritiesMember2023-06-300000886982us-gaap:CommoditiesInvestmentMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982us-gaap:CommoditiesInvestmentMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:CommoditiesInvestmentMemberus-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMember2023-06-300000886982us-gaap:CommoditiesInvestmentMembergs:CashInstrumentsLiabilitiesMember2023-06-300000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMember2023-06-300000886982gs:CashInstrumentsLiabilitiesMember2023-06-300000886982us-gaap:USTreasuryAndGovernmentMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982us-gaap:USTreasuryAndGovernmentMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:USTreasuryAndGovernmentMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:USTreasuryAndGovernmentMembergs:TradingCashInstrumentsAssetsMember2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Memberus-gaap:ForeignGovernmentDebtSecuritiesMember2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Memberus-gaap:ForeignGovernmentDebtSecuritiesMember2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Memberus-gaap:ForeignGovernmentDebtSecuritiesMember2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:ForeignGovernmentDebtSecuritiesMember2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Membergs:LoansAndSecuritiesBackedByCommercialRealEstateMember2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Membergs:LoansAndSecuritiesBackedByCommercialRealEstateMember2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Membergs:LoansAndSecuritiesBackedByCommercialRealEstateMember2022-12-310000886982gs:TradingCashInstrumentsAssetsMembergs:LoansAndSecuritiesBackedByCommercialRealEstateMember2022-12-310000886982gs:LoansAndSecuritiesBackedByResidentialRealEstateMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982gs:LoansAndSecuritiesBackedByResidentialRealEstateMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982gs:LoansAndSecuritiesBackedByResidentialRealEstateMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:LoansAndSecuritiesBackedByResidentialRealEstateMembergs:TradingCashInstrumentsAssetsMember2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMember2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:USStatesAndPoliticalSubdivisionsMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:USStatesAndPoliticalSubdivisionsMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Memberus-gaap:USStatesAndPoliticalSubdivisionsMember2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:USStatesAndPoliticalSubdivisionsMember2022-12-310000886982us-gaap:OtherDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982us-gaap:OtherDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:OtherDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:OtherDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMember2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Memberus-gaap:EquitySecuritiesMember2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Memberus-gaap:EquitySecuritiesMember2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquitySecuritiesMember2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:EquitySecuritiesMember2022-12-310000886982us-gaap:CommoditiesInvestmentMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982us-gaap:CommoditiesInvestmentMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:CommoditiesInvestmentMembergs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:CommoditiesInvestmentMembergs:TradingCashInstrumentsAssetsMember2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982gs:TradingCashInstrumentsAssetsMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:TradingCashInstrumentsAssetsMember2022-12-310000886982us-gaap:USTreasuryAndGovernmentMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982us-gaap:USTreasuryAndGovernmentMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:USTreasuryAndGovernmentMemberus-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMember2022-12-310000886982us-gaap:USTreasuryAndGovernmentMembergs:CashInstrumentsLiabilitiesMember2022-12-310000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Memberus-gaap:ForeignGovernmentDebtSecuritiesMember2022-12-310000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Memberus-gaap:ForeignGovernmentDebtSecuritiesMember2022-12-310000886982us-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMemberus-gaap:ForeignGovernmentDebtSecuritiesMember2022-12-310000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:ForeignGovernmentDebtSecuritiesMember2022-12-310000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Membergs:LoansAndSecuritiesBackedByCommercialRealEstateMember2022-12-310000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Membergs:LoansAndSecuritiesBackedByCommercialRealEstateMember2022-12-310000886982us-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMembergs:LoansAndSecuritiesBackedByCommercialRealEstateMember2022-12-310000886982gs:CashInstrumentsLiabilitiesMembergs:LoansAndSecuritiesBackedByCommercialRealEstateMember2022-12-310000886982gs:LoansAndSecuritiesBackedByResidentialRealEstateMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982gs:LoansAndSecuritiesBackedByResidentialRealEstateMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982gs:LoansAndSecuritiesBackedByResidentialRealEstateMemberus-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMember2022-12-310000886982gs:LoansAndSecuritiesBackedByResidentialRealEstateMembergs:CashInstrumentsLiabilitiesMember2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMember2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMembergs:CashInstrumentsLiabilitiesMember2022-12-310000886982us-gaap:OtherDebtSecuritiesMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982us-gaap:OtherDebtSecuritiesMembergs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMember2022-12-310000886982us-gaap:OtherDebtSecuritiesMembergs:CashInstrumentsLiabilitiesMember2022-12-310000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Memberus-gaap:EquitySecuritiesMember2022-12-310000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Memberus-gaap:EquitySecuritiesMember2022-12-310000886982us-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMemberus-gaap:EquitySecuritiesMember2022-12-310000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:EquitySecuritiesMember2022-12-310000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:FairValueInputsLevel3Membergs:CashInstrumentsLiabilitiesMember2022-12-310000886982gs:CashInstrumentsLiabilitiesMember2022-12-310000886982gs:LoansAndSecuritiesBackedByRealEstateMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:LoansAndSecuritiesBackedByRealEstateMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:MaximumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:WeightedAverageMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:MaximumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:WeightedAverageMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982gs:LoansAndSecuritiesBackedByRealEstateMemberus-gaap:MeasurementInputConstantPrepaymentRateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:MaximumMemberus-gaap:MeasurementInputConstantPrepaymentRateMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:WeightedAverageMemberus-gaap:MeasurementInputConstantPrepaymentRateMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:LoansAndSecuritiesBackedByRealEstateMemberus-gaap:MeasurementInputConstantPrepaymentRateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:MaximumMemberus-gaap:MeasurementInputConstantPrepaymentRateMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:WeightedAverageMemberus-gaap:MeasurementInputConstantPrepaymentRateMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputLossSeverityMember2022-12-310000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:MaximumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputLossSeverityMember2022-12-310000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:WeightedAverageMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputLossSeverityMember2022-12-310000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:MinimumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-30gs:yr0000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:MaximumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:WeightedAverageMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:MinimumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:MaximumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:LoansAndSecuritiesBackedByRealEstateMembersrt:WeightedAverageMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembersrt:MaximumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembersrt:WeightedAverageMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMembersrt:MaximumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMembersrt:WeightedAverageMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:MeasurementInputConstantPrepaymentRateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembersrt:MaximumMemberus-gaap:MeasurementInputConstantPrepaymentRateMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembersrt:WeightedAverageMemberus-gaap:MeasurementInputConstantPrepaymentRateMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:MeasurementInputConstantPrepaymentRateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMembersrt:MaximumMemberus-gaap:MeasurementInputConstantPrepaymentRateMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMembersrt:WeightedAverageMemberus-gaap:MeasurementInputConstantPrepaymentRateMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMembersrt:MinimumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembersrt:MaximumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembersrt:WeightedAverageMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembersrt:MinimumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMembersrt:MaximumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMembersrt:WeightedAverageMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:OtherCashInstrumentsMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:OtherCashInstrumentsMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:OtherCashInstrumentsMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:MaximumMembergs:OtherCashInstrumentsMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:WeightedAverageMembergs:OtherCashInstrumentsMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982gs:OtherCashInstrumentsMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:MaximumMembergs:OtherCashInstrumentsMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:WeightedAverageMembergs:OtherCashInstrumentsMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982gs:OtherCashInstrumentsMemberus-gaap:MeasurementInputConstantPrepaymentRateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:MaximumMembergs:OtherCashInstrumentsMemberus-gaap:MeasurementInputConstantPrepaymentRateMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:WeightedAverageMembergs:OtherCashInstrumentsMemberus-gaap:MeasurementInputConstantPrepaymentRateMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:OtherCashInstrumentsMemberus-gaap:MeasurementInputConstantPrepaymentRateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:MaximumMembergs:OtherCashInstrumentsMemberus-gaap:MeasurementInputConstantPrepaymentRateMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:WeightedAverageMembergs:OtherCashInstrumentsMemberus-gaap:MeasurementInputConstantPrepaymentRateMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:OtherCashInstrumentsMembersrt:MinimumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:MaximumMembergs:OtherCashInstrumentsMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:WeightedAverageMembergs:OtherCashInstrumentsMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:OtherCashInstrumentsMembersrt:MinimumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:MaximumMembergs:OtherCashInstrumentsMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:WeightedAverageMembergs:OtherCashInstrumentsMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:TradingCashInstrumentsAssetsMember2023-03-310000886982gs:TradingCashInstrumentsAssetsMember2022-03-310000886982gs:TradingCashInstrumentsAssetsMember2021-12-310000886982gs:TradingCashInstrumentsAssetsMember2023-04-012023-06-300000886982gs:TradingCashInstrumentsAssetsMember2022-04-012022-06-300000886982gs:TradingCashInstrumentsAssetsMember2023-01-012023-06-300000886982gs:TradingCashInstrumentsAssetsMember2022-01-012022-06-300000886982gs:TradingCashInstrumentsAssetsMember2022-06-300000886982gs:TradingCashInstrumentsLiabilitiesMember2023-03-310000886982gs:TradingCashInstrumentsLiabilitiesMember2022-03-310000886982gs:TradingCashInstrumentsLiabilitiesMember2022-12-310000886982gs:TradingCashInstrumentsLiabilitiesMember2021-12-310000886982gs:TradingCashInstrumentsLiabilitiesMember2023-04-012023-06-300000886982gs:TradingCashInstrumentsLiabilitiesMember2022-04-012022-06-300000886982gs:TradingCashInstrumentsLiabilitiesMember2023-01-012023-06-300000886982gs:TradingCashInstrumentsLiabilitiesMember2022-01-012022-06-300000886982gs:TradingCashInstrumentsLiabilitiesMember2023-06-300000886982gs:TradingCashInstrumentsLiabilitiesMember2022-06-300000886982gs:LoansAndSecuritiesBackedByRealEstateMembergs:TradingCashInstrumentsAssetsMember2023-03-310000886982gs:LoansAndSecuritiesBackedByRealEstateMembergs:TradingCashInstrumentsAssetsMember2022-03-310000886982gs:LoansAndSecuritiesBackedByRealEstateMembergs:TradingCashInstrumentsAssetsMember2022-12-310000886982gs:LoansAndSecuritiesBackedByRealEstateMembergs:TradingCashInstrumentsAssetsMember2021-12-310000886982gs:LoansAndSecuritiesBackedByRealEstateMembergs:TradingCashInstrumentsAssetsMember2023-04-012023-06-300000886982gs:LoansAndSecuritiesBackedByRealEstateMembergs:TradingCashInstrumentsAssetsMember2022-04-012022-06-300000886982gs:LoansAndSecuritiesBackedByRealEstateMembergs:TradingCashInstrumentsAssetsMember2023-01-012023-06-300000886982gs:LoansAndSecuritiesBackedByRealEstateMembergs:TradingCashInstrumentsAssetsMember2022-01-012022-06-300000886982gs:LoansAndSecuritiesBackedByRealEstateMembergs:TradingCashInstrumentsAssetsMember2023-06-300000886982gs:LoansAndSecuritiesBackedByRealEstateMembergs:TradingCashInstrumentsAssetsMember2022-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMember2023-03-310000886982gs:CorporateLoansAndDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMember2022-03-310000886982gs:CorporateLoansAndDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMember2021-12-310000886982gs:CorporateLoansAndDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMember2023-04-012023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMember2022-04-012022-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMember2023-01-012023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMember2022-01-012022-06-300000886982gs:CorporateLoansAndDebtSecuritiesMembergs:TradingCashInstrumentsAssetsMember2022-06-300000886982gs:OtherCashInstrumentsMembergs:TradingCashInstrumentsAssetsMember2023-03-310000886982gs:OtherCashInstrumentsMembergs:TradingCashInstrumentsAssetsMember2022-03-310000886982gs:OtherCashInstrumentsMembergs:TradingCashInstrumentsAssetsMember2022-12-310000886982gs:OtherCashInstrumentsMembergs:TradingCashInstrumentsAssetsMember2021-12-310000886982gs:OtherCashInstrumentsMembergs:TradingCashInstrumentsAssetsMember2023-04-012023-06-300000886982gs:OtherCashInstrumentsMembergs:TradingCashInstrumentsAssetsMember2022-04-012022-06-300000886982gs:OtherCashInstrumentsMembergs:TradingCashInstrumentsAssetsMember2023-01-012023-06-300000886982gs:OtherCashInstrumentsMembergs:TradingCashInstrumentsAssetsMember2022-01-012022-06-300000886982gs:OtherCashInstrumentsMembergs:TradingCashInstrumentsAssetsMember2023-06-300000886982gs:OtherCashInstrumentsMembergs:TradingCashInstrumentsAssetsMember2022-06-300000886982gs:TradingCashInstrumentsAssetsFairValueDisclosureMember2023-04-012023-06-300000886982gs:MarketMakingMembergs:TradingCashInstrumentsAssetsFairValueDisclosureMember2023-04-012023-06-300000886982gs:TradingCashInstrumentsAssetsFairValueDisclosureMemberus-gaap:InterestIncomeMember2023-04-012023-06-300000886982gs:TradingCashInstrumentsAssetsFairValueDisclosureMember2023-01-012023-06-300000886982gs:MarketMakingMembergs:TradingCashInstrumentsAssetsFairValueDisclosureMember2023-01-012023-06-300000886982gs:TradingCashInstrumentsAssetsFairValueDisclosureMemberus-gaap:InterestIncomeMember2023-01-012023-06-300000886982gs:TradingCashInstrumentsAssetsFairValueDisclosureMember2022-04-012022-06-300000886982gs:MarketMakingMembergs:TradingCashInstrumentsAssetsFairValueDisclosureMember2022-04-012022-06-300000886982gs:TradingCashInstrumentsAssetsFairValueDisclosureMemberus-gaap:InterestIncomeMember2022-04-012022-06-300000886982gs:TradingCashInstrumentsAssetsFairValueDisclosureMember2022-01-012022-06-300000886982gs:MarketMakingMembergs:TradingCashInstrumentsAssetsFairValueDisclosureMember2022-01-012022-06-300000886982gs:TradingCashInstrumentsAssetsFairValueDisclosureMemberus-gaap:InterestIncomeMember2022-01-012022-06-300000886982us-gaap:InterestRateContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982us-gaap:InterestRateContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:InterestRateContractMemberus-gaap:FairValueInputsLevel3Memberus-gaap:DerivativeMember2023-06-300000886982us-gaap:InterestRateContractMemberus-gaap:DerivativeMember2023-06-300000886982us-gaap:CreditRiskContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982us-gaap:CreditRiskContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Memberus-gaap:DerivativeMember2023-06-300000886982us-gaap:CreditRiskContractMemberus-gaap:DerivativeMember2023-06-300000886982us-gaap:ForeignExchangeContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982us-gaap:ForeignExchangeContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:ForeignExchangeContractMemberus-gaap:FairValueInputsLevel3Memberus-gaap:DerivativeMember2023-06-300000886982us-gaap:ForeignExchangeContractMemberus-gaap:DerivativeMember2023-06-300000886982us-gaap:CommodityContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982us-gaap:CommodityContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:CommodityContractMemberus-gaap:FairValueInputsLevel3Memberus-gaap:DerivativeMember2023-06-300000886982us-gaap:CommodityContractMemberus-gaap:DerivativeMember2023-06-300000886982us-gaap:EquityContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982us-gaap:EquityContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMemberus-gaap:DerivativeMember2023-06-300000886982us-gaap:EquityContractMemberus-gaap:DerivativeMember2023-06-300000886982gs:GrossFairValueOfDerivativeMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982gs:GrossFairValueOfDerivativeMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982gs:GrossFairValueOfDerivativeMemberus-gaap:FairValueInputsLevel3Memberus-gaap:DerivativeMember2023-06-300000886982gs:GrossFairValueOfDerivativeMemberus-gaap:DerivativeMember2023-06-300000886982gs:CounterpartyNettingAdjustmentWithinLevelsMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982gs:CounterpartyNettingAdjustmentWithinLevelsMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982gs:CounterpartyNettingAdjustmentWithinLevelsMemberus-gaap:FairValueInputsLevel3Memberus-gaap:DerivativeMember2023-06-300000886982gs:CounterpartyNettingAdjustmentWithinLevelsMemberus-gaap:DerivativeMember2023-06-300000886982us-gaap:DerivativeMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982us-gaap:DerivativeMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:DerivativeMember2023-06-300000886982gs:CrossLevelCounterpartyNettingAdjustmentMemberus-gaap:DerivativeMember2023-06-300000886982gs:CashCollateralNettingAdjustmentMemberus-gaap:DerivativeMember2023-06-300000886982us-gaap:InterestRateContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982us-gaap:InterestRateContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:InterestRateContractMemberus-gaap:FairValueInputsLevel3Memberus-gaap:DerivativeMember2022-12-310000886982us-gaap:InterestRateContractMemberus-gaap:DerivativeMember2022-12-310000886982us-gaap:CreditRiskContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982us-gaap:CreditRiskContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Memberus-gaap:DerivativeMember2022-12-310000886982us-gaap:CreditRiskContractMemberus-gaap:DerivativeMember2022-12-310000886982us-gaap:ForeignExchangeContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982us-gaap:ForeignExchangeContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:ForeignExchangeContractMemberus-gaap:FairValueInputsLevel3Memberus-gaap:DerivativeMember2022-12-310000886982us-gaap:ForeignExchangeContractMemberus-gaap:DerivativeMember2022-12-310000886982us-gaap:CommodityContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982us-gaap:CommodityContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:CommodityContractMemberus-gaap:FairValueInputsLevel3Memberus-gaap:DerivativeMember2022-12-310000886982us-gaap:CommodityContractMemberus-gaap:DerivativeMember2022-12-310000886982us-gaap:EquityContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982us-gaap:EquityContractMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMemberus-gaap:DerivativeMember2022-12-310000886982us-gaap:EquityContractMemberus-gaap:DerivativeMember2022-12-310000886982gs:GrossFairValueOfDerivativeMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982gs:GrossFairValueOfDerivativeMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982gs:GrossFairValueOfDerivativeMemberus-gaap:FairValueInputsLevel3Memberus-gaap:DerivativeMember2022-12-310000886982gs:GrossFairValueOfDerivativeMemberus-gaap:DerivativeMember2022-12-310000886982gs:CounterpartyNettingAdjustmentWithinLevelsMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982gs:CounterpartyNettingAdjustmentWithinLevelsMemberus-gaap:DerivativeMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982gs:CounterpartyNettingAdjustmentWithinLevelsMemberus-gaap:FairValueInputsLevel3Memberus-gaap:DerivativeMember2022-12-310000886982gs:CounterpartyNettingAdjustmentWithinLevelsMemberus-gaap:DerivativeMember2022-12-310000886982us-gaap:DerivativeMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982us-gaap:DerivativeMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:DerivativeMember2022-12-310000886982gs:CrossLevelCounterpartyNettingAdjustmentMemberus-gaap:DerivativeMember2022-12-310000886982gs:CashCollateralNettingAdjustmentMemberus-gaap:DerivativeMember2022-12-310000886982us-gaap:InterestRateContractMember2023-06-300000886982us-gaap:InterestRateContractMember2022-12-310000886982us-gaap:InterestRateContractMembergs:MeasurementInputCorrelationMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:MaximumMemberus-gaap:InterestRateContractMembergs:MeasurementInputCorrelationMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:InterestRateContractMembergs:MeasurementInputCorrelationMembersrt:ArithmeticAverageMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:InterestRateContractMembergs:MeasurementInputCorrelationMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:InterestRateContractMembergs:MeasurementInputCorrelationMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:MaximumMemberus-gaap:InterestRateContractMembergs:MeasurementInputCorrelationMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:InterestRateContractMembergs:MeasurementInputCorrelationMembersrt:ArithmeticAverageMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:InterestRateContractMembergs:MeasurementInputCorrelationMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:InterestRateContractMemberus-gaap:MeasurementInputPriceVolatilityMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:MaximumMemberus-gaap:InterestRateContractMemberus-gaap:MeasurementInputPriceVolatilityMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:InterestRateContractMembersrt:ArithmeticAverageMemberus-gaap:MeasurementInputPriceVolatilityMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:InterestRateContractMemberus-gaap:MeasurementInputPriceVolatilityMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:InterestRateContractMemberus-gaap:MeasurementInputPriceVolatilityMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:MaximumMemberus-gaap:InterestRateContractMemberus-gaap:MeasurementInputPriceVolatilityMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:InterestRateContractMembersrt:ArithmeticAverageMemberus-gaap:MeasurementInputPriceVolatilityMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:InterestRateContractMemberus-gaap:MeasurementInputPriceVolatilityMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:CreditRiskContractMember2023-06-300000886982us-gaap:CreditRiskContractMember2022-12-310000886982srt:MinimumMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2023-06-300000886982srt:MaximumMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2023-06-300000886982srt:ArithmeticAverageMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2023-06-300000886982srt:MedianMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2023-06-300000886982srt:MinimumMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2022-12-310000886982srt:MaximumMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2022-12-310000886982srt:ArithmeticAverageMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2022-12-310000886982srt:MedianMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2022-12-310000886982srt:MinimumMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Membergs:MeasurementInputUpfrontCreditPointsMember2023-06-300000886982srt:MaximumMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Membergs:MeasurementInputUpfrontCreditPointsMember2023-06-300000886982srt:ArithmeticAverageMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Membergs:MeasurementInputUpfrontCreditPointsMember2023-06-300000886982srt:MedianMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Membergs:MeasurementInputUpfrontCreditPointsMember2023-06-300000886982srt:MinimumMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Membergs:MeasurementInputUpfrontCreditPointsMember2022-12-310000886982srt:MaximumMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Membergs:MeasurementInputUpfrontCreditPointsMember2022-12-310000886982srt:ArithmeticAverageMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Membergs:MeasurementInputUpfrontCreditPointsMember2022-12-310000886982srt:MedianMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Membergs:MeasurementInputUpfrontCreditPointsMember2022-12-310000886982gs:MeasurementInputRecoveryRateMembersrt:MinimumMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:MaximumMembergs:MeasurementInputRecoveryRateMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:ArithmeticAverageMembergs:MeasurementInputRecoveryRateMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:MeasurementInputRecoveryRateMembersrt:MedianMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:MeasurementInputRecoveryRateMembersrt:MinimumMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:MaximumMembergs:MeasurementInputRecoveryRateMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:ArithmeticAverageMembergs:MeasurementInputRecoveryRateMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:MeasurementInputRecoveryRateMembersrt:MedianMemberus-gaap:CreditRiskContractMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:ForeignExchangeContractMember2023-06-300000886982us-gaap:ForeignExchangeContractMember2022-12-310000886982gs:MeasurementInputCorrelationMembersrt:MinimumMemberus-gaap:ForeignExchangeContractMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:MaximumMembergs:MeasurementInputCorrelationMemberus-gaap:ForeignExchangeContractMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:MeasurementInputCorrelationMembersrt:ArithmeticAverageMemberus-gaap:ForeignExchangeContractMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:MeasurementInputCorrelationMemberus-gaap:ForeignExchangeContractMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:MeasurementInputCorrelationMembersrt:MinimumMemberus-gaap:ForeignExchangeContractMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:MaximumMembergs:MeasurementInputCorrelationMemberus-gaap:ForeignExchangeContractMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:MeasurementInputCorrelationMembersrt:ArithmeticAverageMemberus-gaap:ForeignExchangeContractMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:MeasurementInputCorrelationMemberus-gaap:ForeignExchangeContractMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:MeasurementInputPriceVolatilityMembersrt:MinimumMemberus-gaap:ForeignExchangeContractMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:MaximumMemberus-gaap:MeasurementInputPriceVolatilityMemberus-gaap:ForeignExchangeContractMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:ArithmeticAverageMemberus-gaap:MeasurementInputPriceVolatilityMemberus-gaap:ForeignExchangeContractMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:MeasurementInputPriceVolatilityMemberus-gaap:ForeignExchangeContractMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:MeasurementInputPriceVolatilityMembersrt:MinimumMemberus-gaap:ForeignExchangeContractMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:MaximumMemberus-gaap:MeasurementInputPriceVolatilityMemberus-gaap:ForeignExchangeContractMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:ArithmeticAverageMemberus-gaap:MeasurementInputPriceVolatilityMemberus-gaap:ForeignExchangeContractMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:MeasurementInputPriceVolatilityMemberus-gaap:ForeignExchangeContractMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:CommodityContractMember2023-06-300000886982us-gaap:CommodityContractMember2022-12-310000886982us-gaap:CommodityContractMemberus-gaap:MeasurementInputPriceVolatilityMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:CommodityContractMembersrt:MaximumMemberus-gaap:MeasurementInputPriceVolatilityMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:CommodityContractMembersrt:ArithmeticAverageMemberus-gaap:MeasurementInputPriceVolatilityMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:CommodityContractMemberus-gaap:MeasurementInputPriceVolatilityMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:CommodityContractMemberus-gaap:MeasurementInputPriceVolatilityMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:CommodityContractMembersrt:MaximumMemberus-gaap:MeasurementInputPriceVolatilityMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:CommodityContractMembersrt:ArithmeticAverageMemberus-gaap:MeasurementInputPriceVolatilityMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:CommodityContractMemberus-gaap:MeasurementInputPriceVolatilityMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:CommodityContractMembersrt:NaturalGasReservesMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2023-06-300000886982us-gaap:CommodityContractMembersrt:MaximumMembersrt:NaturalGasReservesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2023-06-300000886982us-gaap:CommodityContractMembersrt:ArithmeticAverageMembersrt:NaturalGasReservesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2023-06-300000886982us-gaap:CommodityContractMembersrt:NaturalGasReservesMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2023-06-300000886982us-gaap:CommodityContractMembersrt:NaturalGasReservesMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2022-12-310000886982us-gaap:CommodityContractMembersrt:MaximumMembersrt:NaturalGasReservesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2022-12-310000886982us-gaap:CommodityContractMembersrt:ArithmeticAverageMembersrt:NaturalGasReservesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2022-12-310000886982us-gaap:CommodityContractMembersrt:NaturalGasReservesMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2022-12-310000886982us-gaap:CommodityContractMembersrt:OilReservesMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2023-06-300000886982us-gaap:CommodityContractMembersrt:MaximumMembersrt:OilReservesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2023-06-300000886982us-gaap:CommodityContractMembersrt:ArithmeticAverageMembersrt:OilReservesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2023-06-300000886982us-gaap:CommodityContractMembersrt:OilReservesMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2023-06-300000886982us-gaap:CommodityContractMembersrt:OilReservesMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2022-12-310000886982us-gaap:CommodityContractMembersrt:MaximumMembersrt:OilReservesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2022-12-310000886982us-gaap:CommodityContractMembersrt:ArithmeticAverageMembersrt:OilReservesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2022-12-310000886982us-gaap:CommodityContractMembersrt:OilReservesMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputCreditSpreadMember2022-12-310000886982us-gaap:CommodityContractMembersrt:MinimumMembergs:MeasurementInputSpreadMemberus-gaap:ElectricityMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:CommodityContractMembersrt:MaximumMembergs:MeasurementInputSpreadMemberus-gaap:ElectricityMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:CommodityContractMembersrt:ArithmeticAverageMembergs:MeasurementInputSpreadMemberus-gaap:ElectricityMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:CommodityContractMembersrt:MedianMembergs:MeasurementInputSpreadMemberus-gaap:ElectricityMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:CommodityContractMembersrt:MinimumMembergs:MeasurementInputSpreadMemberus-gaap:ElectricityMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:CommodityContractMembersrt:MaximumMembergs:MeasurementInputSpreadMemberus-gaap:ElectricityMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:CommodityContractMembersrt:ArithmeticAverageMembergs:MeasurementInputSpreadMemberus-gaap:ElectricityMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:CommodityContractMembersrt:MedianMembergs:MeasurementInputSpreadMemberus-gaap:ElectricityMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:EquityContractMember2023-06-300000886982us-gaap:EquityContractMember2022-12-310000886982gs:MeasurementInputCorrelationMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMember2023-06-300000886982srt:MaximumMembergs:MeasurementInputCorrelationMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMember2023-06-300000886982gs:MeasurementInputCorrelationMembersrt:ArithmeticAverageMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMember2023-06-300000886982gs:MeasurementInputCorrelationMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMember2023-06-300000886982gs:MeasurementInputCorrelationMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMember2022-12-310000886982srt:MaximumMembergs:MeasurementInputCorrelationMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMember2022-12-310000886982gs:MeasurementInputCorrelationMembersrt:ArithmeticAverageMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMember2022-12-310000886982gs:MeasurementInputCorrelationMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMember2022-12-310000886982us-gaap:MeasurementInputPriceVolatilityMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMember2023-06-300000886982srt:MaximumMemberus-gaap:MeasurementInputPriceVolatilityMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMember2023-06-300000886982srt:ArithmeticAverageMemberus-gaap:MeasurementInputPriceVolatilityMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMember2023-06-300000886982us-gaap:MeasurementInputPriceVolatilityMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMember2023-06-300000886982us-gaap:MeasurementInputPriceVolatilityMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMember2022-12-310000886982srt:MaximumMemberus-gaap:MeasurementInputPriceVolatilityMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMember2022-12-310000886982srt:ArithmeticAverageMemberus-gaap:MeasurementInputPriceVolatilityMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMember2022-12-310000886982us-gaap:MeasurementInputPriceVolatilityMembersrt:MedianMemberus-gaap:FairValueInputsLevel3Memberus-gaap:EquityContractMember2022-12-3100008869822022-03-310000886982us-gaap:InterestRateContractMember2023-03-310000886982us-gaap:InterestRateContractMember2022-03-310000886982us-gaap:InterestRateContractMember2021-12-310000886982us-gaap:InterestRateContractMember2023-04-012023-06-300000886982us-gaap:InterestRateContractMember2022-04-012022-06-300000886982us-gaap:InterestRateContractMember2023-01-012023-06-300000886982us-gaap:InterestRateContractMember2022-01-012022-06-300000886982us-gaap:InterestRateContractMember2022-06-300000886982us-gaap:CreditRiskContractMember2023-03-310000886982us-gaap:CreditRiskContractMember2022-03-310000886982us-gaap:CreditRiskContractMember2021-12-310000886982us-gaap:CreditRiskContractMember2023-04-012023-06-300000886982us-gaap:CreditRiskContractMember2022-04-012022-06-300000886982us-gaap:CreditRiskContractMember2023-01-012023-06-300000886982us-gaap:CreditRiskContractMember2022-01-012022-06-300000886982us-gaap:CreditRiskContractMember2022-06-300000886982us-gaap:ForeignExchangeContractMember2023-03-310000886982us-gaap:ForeignExchangeContractMember2022-03-310000886982us-gaap:ForeignExchangeContractMember2021-12-310000886982us-gaap:ForeignExchangeContractMember2023-04-012023-06-300000886982us-gaap:ForeignExchangeContractMember2022-04-012022-06-300000886982us-gaap:ForeignExchangeContractMember2023-01-012023-06-300000886982us-gaap:ForeignExchangeContractMember2022-01-012022-06-300000886982us-gaap:ForeignExchangeContractMember2022-06-300000886982us-gaap:CommodityContractMember2023-03-310000886982us-gaap:CommodityContractMember2022-03-310000886982us-gaap:CommodityContractMember2021-12-310000886982us-gaap:CommodityContractMember2023-04-012023-06-300000886982us-gaap:CommodityContractMember2022-04-012022-06-300000886982us-gaap:CommodityContractMember2023-01-012023-06-300000886982us-gaap:CommodityContractMember2022-01-012022-06-300000886982us-gaap:CommodityContractMember2022-06-300000886982us-gaap:EquityContractMember2023-03-310000886982us-gaap:EquityContractMember2022-03-310000886982us-gaap:EquityContractMember2021-12-310000886982us-gaap:EquityContractMember2023-04-012023-06-300000886982us-gaap:EquityContractMember2022-04-012022-06-300000886982us-gaap:EquityContractMember2023-01-012023-06-300000886982us-gaap:EquityContractMember2022-01-012022-06-300000886982us-gaap:EquityContractMember2022-06-300000886982gs:MarketMakingMember2023-04-012023-06-300000886982gs:OtherPrincipalTransactionsMember2023-04-012023-06-300000886982gs:MarketMakingMember2023-01-012023-06-300000886982gs:OtherPrincipalTransactionsMember2023-01-012023-06-300000886982gs:MarketMakingMember2022-04-012022-06-300000886982gs:OtherPrincipalTransactionsMember2022-04-012022-06-300000886982gs:MarketMakingMember2022-01-012022-06-300000886982gs:OtherPrincipalTransactionsMember2022-01-012022-06-300000886982us-gaap:USTreasurySecuritiesMemberus-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982us-gaap:USTreasurySecuritiesMemberus-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:USTreasurySecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-06-300000886982us-gaap:USTreasurySecuritiesMemberus-gaap:InvestmentsMember2023-06-300000886982us-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel1Memberus-gaap:ForeignGovernmentDebtSecuritiesMember2023-06-300000886982us-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel2Memberus-gaap:ForeignGovernmentDebtSecuritiesMember2023-06-300000886982us-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:ForeignGovernmentDebtSecuritiesMember2023-06-300000886982us-gaap:InvestmentsMemberus-gaap:ForeignGovernmentDebtSecuritiesMember2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:InvestmentsMember2023-06-300000886982gs:SecuritiesBackedByRealEstateMemberus-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982gs:SecuritiesBackedByRealEstateMemberus-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982gs:SecuritiesBackedByRealEstateMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-06-300000886982gs:SecuritiesBackedByRealEstateMemberus-gaap:InvestmentsMember2023-06-300000886982us-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel1Membergs:MoneyMarketInstrumentsMember2023-06-300000886982us-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel2Membergs:MoneyMarketInstrumentsMember2023-06-300000886982us-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMembergs:MoneyMarketInstrumentsMember2023-06-300000886982us-gaap:InvestmentsMembergs:MoneyMarketInstrumentsMember2023-06-300000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-06-300000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:InvestmentsMember2023-06-300000886982us-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel1Memberus-gaap:EquitySecuritiesMember2023-06-300000886982us-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel2Memberus-gaap:EquitySecuritiesMember2023-06-300000886982us-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2023-06-300000886982us-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2023-06-300000886982us-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982us-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-06-300000886982us-gaap:InvestmentsMember2023-06-300000886982us-gaap:USTreasurySecuritiesMemberus-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982us-gaap:USTreasurySecuritiesMemberus-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:USTreasurySecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-12-310000886982us-gaap:USTreasurySecuritiesMemberus-gaap:InvestmentsMember2022-12-310000886982us-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel1Memberus-gaap:ForeignGovernmentDebtSecuritiesMember2022-12-310000886982us-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel2Memberus-gaap:ForeignGovernmentDebtSecuritiesMember2022-12-310000886982us-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:ForeignGovernmentDebtSecuritiesMember2022-12-310000886982us-gaap:InvestmentsMemberus-gaap:ForeignGovernmentDebtSecuritiesMember2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-12-310000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:InvestmentsMember2022-12-310000886982gs:SecuritiesBackedByRealEstateMemberus-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982gs:SecuritiesBackedByRealEstateMemberus-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982gs:SecuritiesBackedByRealEstateMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-12-310000886982gs:SecuritiesBackedByRealEstateMemberus-gaap:InvestmentsMember2022-12-310000886982us-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel1Membergs:MoneyMarketInstrumentsMember2022-12-310000886982us-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel2Membergs:MoneyMarketInstrumentsMember2022-12-310000886982us-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMembergs:MoneyMarketInstrumentsMember2022-12-310000886982us-gaap:InvestmentsMembergs:MoneyMarketInstrumentsMember2022-12-310000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-12-310000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:InvestmentsMember2022-12-310000886982us-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel1Memberus-gaap:EquitySecuritiesMember2022-12-310000886982us-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel2Memberus-gaap:EquitySecuritiesMember2022-12-310000886982us-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2022-12-310000886982us-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2022-12-310000886982us-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982us-gaap:InvestmentsMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-12-310000886982us-gaap:InvestmentsMember2022-12-310000886982us-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-06-300000886982us-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-12-310000886982srt:MinimumMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:MaximumMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:WeightedAverageMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:MinimumMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:MaximumMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:WeightedAverageMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982us-gaap:MeasurementInputConstantPrepaymentRateMembersrt:MinimumMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-06-300000886982srt:MaximumMemberus-gaap:MeasurementInputConstantPrepaymentRateMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-06-300000886982srt:WeightedAverageMemberus-gaap:MeasurementInputConstantPrepaymentRateMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-06-300000886982us-gaap:MeasurementInputConstantPrepaymentRateMembersrt:MinimumMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-12-310000886982srt:MaximumMemberus-gaap:MeasurementInputConstantPrepaymentRateMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-12-310000886982srt:WeightedAverageMemberus-gaap:MeasurementInputConstantPrepaymentRateMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-12-310000886982srt:MinimumMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-06-300000886982srt:MaximumMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-06-300000886982srt:WeightedAverageMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-06-300000886982srt:MinimumMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-12-310000886982srt:MaximumMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-12-310000886982srt:WeightedAverageMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-12-310000886982srt:MinimumMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputRevenueMultipleMemberus-gaap:InvestmentsMember2023-06-300000886982srt:MaximumMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputRevenueMultipleMemberus-gaap:InvestmentsMember2023-06-300000886982srt:WeightedAverageMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputRevenueMultipleMemberus-gaap:InvestmentsMember2023-06-300000886982srt:MinimumMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputRevenueMultipleMemberus-gaap:InvestmentsMember2022-12-310000886982srt:MaximumMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputRevenueMultipleMemberus-gaap:InvestmentsMember2022-12-310000886982srt:WeightedAverageMemberus-gaap:CorporateDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputRevenueMultipleMemberus-gaap:InvestmentsMember2022-12-310000886982gs:SecuritiesBackedByRealEstateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982gs:SecuritiesBackedByRealEstateMembersrt:MaximumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982gs:SecuritiesBackedByRealEstateMembersrt:WeightedAverageMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982gs:SecuritiesBackedByRealEstateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982gs:SecuritiesBackedByRealEstateMembersrt:MaximumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982gs:SecuritiesBackedByRealEstateMembersrt:WeightedAverageMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982gs:SecuritiesBackedByRealEstateMembersrt:MinimumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-06-300000886982gs:SecuritiesBackedByRealEstateMembersrt:MaximumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-06-300000886982gs:SecuritiesBackedByRealEstateMembersrt:WeightedAverageMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-06-300000886982gs:SecuritiesBackedByRealEstateMembersrt:MinimumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-12-310000886982gs:SecuritiesBackedByRealEstateMembersrt:MaximumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-12-310000886982gs:SecuritiesBackedByRealEstateMembersrt:WeightedAverageMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-12-310000886982srt:MinimumMemberus-gaap:OtherDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:MaximumMemberus-gaap:OtherDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:WeightedAverageMemberus-gaap:OtherDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:MinimumMemberus-gaap:OtherDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:MaximumMemberus-gaap:OtherDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:WeightedAverageMemberus-gaap:OtherDebtSecuritiesMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputRevenueMultipleMemberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2023-06-300000886982srt:MaximumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputRevenueMultipleMemberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2023-06-300000886982srt:WeightedAverageMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputRevenueMultipleMemberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2023-06-300000886982srt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputRevenueMultipleMemberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2022-12-310000886982srt:MaximumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputRevenueMultipleMemberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2022-12-310000886982srt:WeightedAverageMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputRevenueMultipleMemberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2022-12-310000886982srt:MinimumMemberus-gaap:MeasurementInputDiscountRateMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2023-06-300000886982srt:MaximumMemberus-gaap:MeasurementInputDiscountRateMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2023-06-300000886982srt:WeightedAverageMemberus-gaap:MeasurementInputDiscountRateMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2023-06-300000886982srt:MinimumMemberus-gaap:MeasurementInputDiscountRateMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2022-12-310000886982srt:MaximumMemberus-gaap:MeasurementInputDiscountRateMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2022-12-310000886982srt:WeightedAverageMemberus-gaap:MeasurementInputDiscountRateMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2022-12-310000886982us-gaap:MeasurementInputCapRateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2023-06-300000886982srt:MaximumMemberus-gaap:MeasurementInputCapRateMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2023-06-300000886982srt:WeightedAverageMemberus-gaap:MeasurementInputCapRateMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2023-06-300000886982us-gaap:MeasurementInputCapRateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2022-12-310000886982srt:MaximumMemberus-gaap:MeasurementInputCapRateMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2022-12-310000886982srt:WeightedAverageMemberus-gaap:MeasurementInputCapRateMemberus-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2022-12-310000886982us-gaap:InvestmentsMember2023-03-310000886982us-gaap:InvestmentsMember2022-03-310000886982us-gaap:InvestmentsMember2021-12-310000886982us-gaap:InvestmentsMember2023-04-012023-06-300000886982us-gaap:InvestmentsMember2022-04-012022-06-300000886982us-gaap:InvestmentsMember2023-01-012023-06-300000886982us-gaap:InvestmentsMember2022-01-012022-06-300000886982us-gaap:InvestmentsMember2022-06-300000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:InvestmentsMember2023-03-310000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:InvestmentsMember2022-03-310000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:InvestmentsMember2021-12-310000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:InvestmentsMember2023-04-012023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:InvestmentsMember2022-04-012022-06-300000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:InvestmentsMember2023-01-012023-06-300000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:InvestmentsMember2022-01-012022-06-300000886982gs:CorporateLoansAndDebtSecuritiesMemberus-gaap:InvestmentsMember2022-06-300000886982gs:SecuritiesBackedByRealEstateMemberus-gaap:InvestmentsMember2023-03-310000886982gs:SecuritiesBackedByRealEstateMemberus-gaap:InvestmentsMember2022-03-310000886982gs:SecuritiesBackedByRealEstateMemberus-gaap:InvestmentsMember2021-12-310000886982gs:SecuritiesBackedByRealEstateMemberus-gaap:InvestmentsMember2023-04-012023-06-300000886982gs:SecuritiesBackedByRealEstateMemberus-gaap:InvestmentsMember2022-04-012022-06-300000886982gs:SecuritiesBackedByRealEstateMemberus-gaap:InvestmentsMember2023-01-012023-06-300000886982gs:SecuritiesBackedByRealEstateMemberus-gaap:InvestmentsMember2022-01-012022-06-300000886982gs:SecuritiesBackedByRealEstateMemberus-gaap:InvestmentsMember2022-06-300000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:InvestmentsMember2023-03-310000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:InvestmentsMember2022-03-310000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:InvestmentsMember2021-12-310000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:InvestmentsMember2023-04-012023-06-300000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:InvestmentsMember2022-04-012022-06-300000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:InvestmentsMember2023-01-012023-06-300000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:InvestmentsMember2022-01-012022-06-300000886982us-gaap:OtherDebtSecuritiesMemberus-gaap:InvestmentsMember2022-06-300000886982us-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2023-03-310000886982us-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2022-03-310000886982us-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2021-12-310000886982us-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2023-04-012023-06-300000886982us-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2022-04-012022-06-300000886982us-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2023-01-012023-06-300000886982us-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2022-01-012022-06-300000886982us-gaap:InvestmentsMemberus-gaap:EquitySecuritiesMember2022-06-300000886982us-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-04-012023-06-300000886982us-gaap:OperatingIncomeLossMemberus-gaap:InvestmentsMember2023-04-012023-06-300000886982us-gaap:InterestIncomeMemberus-gaap:InvestmentsMember2023-04-012023-06-300000886982us-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2023-01-012023-06-300000886982us-gaap:OperatingIncomeLossMemberus-gaap:InvestmentsMember2023-01-012023-06-300000886982us-gaap:InterestIncomeMemberus-gaap:InvestmentsMember2023-01-012023-06-300000886982us-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-04-012022-06-300000886982us-gaap:OperatingIncomeLossMemberus-gaap:InvestmentsMember2022-04-012022-06-300000886982us-gaap:InterestIncomeMemberus-gaap:InvestmentsMember2022-04-012022-06-300000886982us-gaap:FairValueInputsLevel3Memberus-gaap:InvestmentsMember2022-01-012022-06-300000886982us-gaap:OperatingIncomeLossMemberus-gaap:InvestmentsMember2022-01-012022-06-300000886982us-gaap:InterestIncomeMemberus-gaap:InvestmentsMember2022-01-012022-06-300000886982gs:CorporateLoansMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982gs:CorporateLoansMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982gs:CorporateLoansMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:CorporateLoansMember2023-06-300000886982gs:CommercialRealEstateLoansMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982gs:CommercialRealEstateLoansMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982gs:CommercialRealEstateLoansMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:CommercialRealEstateLoansMember2023-06-300000886982gs:ResidentialRealEstateLoansMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982gs:ResidentialRealEstateLoansMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982gs:ResidentialRealEstateLoansMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:ResidentialRealEstateLoansMember2023-06-300000886982gs:OtherCollateralizedMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982gs:OtherCollateralizedMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982gs:OtherCollateralizedMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:OtherCollateralizedMember2023-06-300000886982gs:OtherLoansMemberus-gaap:FairValueInputsLevel1Member2023-06-300000886982gs:OtherLoansMemberus-gaap:FairValueInputsLevel2Member2023-06-300000886982us-gaap:FairValueInputsLevel3Membergs:OtherLoansMember2023-06-300000886982gs:OtherLoansMember2023-06-300000886982gs:CorporateLoansMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982gs:CorporateLoansMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982gs:CorporateLoansMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:CorporateLoansMember2022-12-310000886982gs:CommercialRealEstateLoansMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982gs:CommercialRealEstateLoansMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982gs:CommercialRealEstateLoansMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:CommercialRealEstateLoansMember2022-12-310000886982gs:ResidentialRealEstateLoansMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982gs:ResidentialRealEstateLoansMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982gs:ResidentialRealEstateLoansMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:ResidentialRealEstateLoansMember2022-12-310000886982gs:OtherCollateralizedMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982gs:OtherCollateralizedMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982gs:OtherCollateralizedMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:OtherCollateralizedMember2022-12-310000886982gs:OtherLoansMemberus-gaap:FairValueInputsLevel1Member2022-12-310000886982gs:OtherLoansMemberus-gaap:FairValueInputsLevel2Member2022-12-310000886982us-gaap:FairValueInputsLevel3Membergs:OtherLoansMember2022-12-310000886982gs:OtherLoansMember2022-12-310000886982gs:OtherPrincipalTransactionsMember2023-04-012023-06-300000886982gs:OtherPrincipalTransactionsMember2022-04-012022-06-300000886982gs:OtherPrincipalTransactionsMember2023-01-012023-06-300000886982gs:OtherPrincipalTransactionsMember2022-01-012022-06-300000886982gs:CorporateLoansMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982gs:CorporateLoansMembersrt:MaximumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:WeightedAverageMembergs:CorporateLoansMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982gs:CorporateLoansMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982gs:CorporateLoansMembersrt:MaximumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:WeightedAverageMembergs:CorporateLoansMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982gs:CorporateLoansMembergs:MeasurementInputRecoveryRateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:CorporateLoansMembersrt:MaximumMembergs:MeasurementInputRecoveryRateMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:WeightedAverageMembergs:CorporateLoansMembergs:MeasurementInputRecoveryRateMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:CorporateLoansMembergs:MeasurementInputRecoveryRateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:CorporateLoansMembersrt:MaximumMembergs:MeasurementInputRecoveryRateMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:WeightedAverageMembergs:CorporateLoansMembergs:MeasurementInputRecoveryRateMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:CorporateLoansMembersrt:MinimumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:CorporateLoansMembersrt:MaximumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:WeightedAverageMembergs:CorporateLoansMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:CorporateLoansMembersrt:MinimumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:CorporateLoansMembersrt:MaximumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:WeightedAverageMembergs:CorporateLoansMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:RealEstateMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:RealEstateMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:RealEstateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:MaximumMemberus-gaap:RealEstateMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:WeightedAverageMemberus-gaap:RealEstateMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982us-gaap:RealEstateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:MaximumMemberus-gaap:RealEstateMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:WeightedAverageMemberus-gaap:RealEstateMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982gs:MeasurementInputRecoveryRateMemberus-gaap:RealEstateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:MaximumMembergs:MeasurementInputRecoveryRateMemberus-gaap:RealEstateMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:WeightedAverageMembergs:MeasurementInputRecoveryRateMemberus-gaap:RealEstateMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:MeasurementInputRecoveryRateMemberus-gaap:RealEstateMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:MaximumMembergs:MeasurementInputRecoveryRateMemberus-gaap:RealEstateMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:WeightedAverageMembergs:MeasurementInputRecoveryRateMemberus-gaap:RealEstateMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982us-gaap:RealEstateMembersrt:MinimumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:MaximumMemberus-gaap:RealEstateMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:WeightedAverageMemberus-gaap:RealEstateMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982us-gaap:RealEstateMembersrt:MinimumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:MaximumMemberus-gaap:RealEstateMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:WeightedAverageMemberus-gaap:RealEstateMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:OtherCollateralizedMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982gs:OtherCollateralizedMembersrt:MaximumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:WeightedAverageMembergs:OtherCollateralizedMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982gs:OtherCollateralizedMembersrt:MinimumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982gs:OtherCollateralizedMembersrt:MaximumMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:WeightedAverageMembergs:OtherCollateralizedMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982gs:OtherCollateralizedMembersrt:MinimumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:OtherCollateralizedMembersrt:MaximumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:WeightedAverageMembergs:OtherCollateralizedMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982gs:OtherCollateralizedMembersrt:MinimumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:OtherCollateralizedMembersrt:MaximumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:WeightedAverageMembergs:OtherCollateralizedMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:MinimumMemberus-gaap:FairValueInputsLevel3Membergs:OtherLoansMemberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:MaximumMemberus-gaap:FairValueInputsLevel3Membergs:OtherLoansMemberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:WeightedAverageMemberus-gaap:FairValueInputsLevel3Membergs:OtherLoansMemberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:MinimumMemberus-gaap:FairValueInputsLevel3Membergs:OtherLoansMemberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:MaximumMemberus-gaap:FairValueInputsLevel3Membergs:OtherLoansMemberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:WeightedAverageMemberus-gaap:FairValueInputsLevel3Membergs:OtherLoansMemberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:MinimumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Membergs:OtherLoansMember2023-06-300000886982srt:MaximumMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Membergs:OtherLoansMember2023-06-300000886982srt:WeightedAverageMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Membergs:OtherLoansMember2023-06-300000886982us-gaap:LoansReceivableMember2023-03-310000886982us-gaap:LoansReceivableMember2022-03-310000886982us-gaap:LoansReceivableMember2022-12-310000886982us-gaap:LoansReceivableMember2021-12-310000886982us-gaap:LoansReceivableMember2023-04-012023-06-300000886982us-gaap:LoansReceivableMember2022-04-012022-06-300000886982us-gaap:LoansReceivableMember2023-01-012023-06-300000886982us-gaap:LoansReceivableMember2022-01-012022-06-300000886982us-gaap:LoansReceivableMember2023-06-300000886982us-gaap:LoansReceivableMember2022-06-300000886982gs:CorporateLoansMember2023-03-310000886982gs:CorporateLoansMember2022-03-310000886982gs:CorporateLoansMember2021-12-310000886982gs:CorporateLoansMember2023-04-012023-06-300000886982gs:CorporateLoansMember2022-04-012022-06-300000886982gs:CorporateLoansMember2023-01-012023-06-300000886982gs:CorporateLoansMember2022-01-012022-06-300000886982gs:CorporateLoansMember2022-06-300000886982us-gaap:RealEstateMember2023-03-310000886982us-gaap:RealEstateMember2022-03-310000886982us-gaap:RealEstateMember2022-12-310000886982us-gaap:RealEstateMember2021-12-310000886982us-gaap:RealEstateMember2023-04-012023-06-300000886982us-gaap:RealEstateMember2022-04-012022-06-300000886982us-gaap:RealEstateMember2023-01-012023-06-300000886982us-gaap:RealEstateMember2022-01-012022-06-300000886982us-gaap:RealEstateMember2023-06-300000886982us-gaap:RealEstateMember2022-06-300000886982gs:OtherCollateralizedMember2023-03-310000886982gs:OtherCollateralizedMember2022-03-310000886982gs:OtherCollateralizedMember2021-12-310000886982gs:OtherCollateralizedMember2023-04-012023-06-300000886982gs:OtherCollateralizedMember2022-04-012022-06-300000886982gs:OtherCollateralizedMember2023-01-012023-06-300000886982gs:OtherCollateralizedMember2022-01-012022-06-300000886982gs:OtherCollateralizedMember2022-06-300000886982gs:OtherLoansMember2023-03-310000886982gs:OtherLoansMember2022-03-310000886982gs:OtherLoansMember2021-12-310000886982gs:OtherLoansMember2023-04-012023-06-300000886982gs:OtherLoansMember2022-04-012022-06-300000886982gs:OtherLoansMember2023-01-012023-06-300000886982gs:OtherLoansMember2022-01-012022-06-300000886982gs:OtherLoansMember2022-06-300000886982us-gaap:FairValueInputsLevel3Member2023-04-012023-06-300000886982gs:OtherPrincipalTransactionsMemberus-gaap:FairValueInputsLevel3Member2023-04-012023-06-300000886982us-gaap:InterestIncomeMemberus-gaap:FairValueInputsLevel3Member2023-04-012023-06-300000886982us-gaap:FairValueInputsLevel3Member2023-01-012023-06-300000886982gs:OtherPrincipalTransactionsMemberus-gaap:FairValueInputsLevel3Member2023-01-012023-06-300000886982us-gaap:InterestIncomeMemberus-gaap:FairValueInputsLevel3Member2023-01-012023-06-300000886982us-gaap:FairValueInputsLevel3Member2022-04-012022-06-300000886982gs:OtherPrincipalTransactionsMemberus-gaap:FairValueInputsLevel3Member2022-04-012022-06-300000886982us-gaap:InterestIncomeMemberus-gaap:FairValueInputsLevel3Member2022-04-012022-06-300000886982us-gaap:FairValueInputsLevel3Member2022-01-012022-06-300000886982gs:OtherPrincipalTransactionsMemberus-gaap:FairValueInputsLevel3Member2022-01-012022-06-300000886982us-gaap:InterestIncomeMemberus-gaap:FairValueInputsLevel3Member2022-01-012022-06-300000886982srt:MinimumMembergs:OtherSecuredFinancingsAtFairValueMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:MaximumMembergs:OtherSecuredFinancingsAtFairValueMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:WeightedAverageMembergs:OtherSecuredFinancingsAtFairValueMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2023-06-300000886982srt:MinimumMembergs:OtherSecuredFinancingsAtFairValueMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-30utr:Y0000886982srt:MaximumMembergs:OtherSecuredFinancingsAtFairValueMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:WeightedAverageMembergs:OtherSecuredFinancingsAtFairValueMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2023-06-300000886982srt:MinimumMembergs:OtherSecuredFinancingsAtFairValueMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:MaximumMembergs:OtherSecuredFinancingsAtFairValueMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:WeightedAverageMembergs:OtherSecuredFinancingsAtFairValueMemberus-gaap:FairValueInputsLevel3Memberus-gaap:MeasurementInputExpectedDividendRateMember2022-12-310000886982srt:MinimumMembergs:OtherSecuredFinancingsAtFairValueMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:MaximumMembergs:OtherSecuredFinancingsAtFairValueMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982srt:WeightedAverageMembergs:OtherSecuredFinancingsAtFairValueMemberus-gaap:MeasurementInputExpectedTermMemberus-gaap:FairValueInputsLevel3Member2022-12-310000886982gs:OtherFinancialLiabilitiesMember2023-03-310000886982gs:OtherFinancialLiabilitiesMember2022-03-310000886982gs:OtherFinancialLiabilitiesMember2022-12-310000886982gs:OtherFinancialLiabilitiesMember2021-12-310000886982gs:OtherFinancialLiabilitiesMember2023-04-012023-06-300000886982gs:OtherFinancialLiabilitiesMember2022-04-012022-06-300000886982gs:OtherFinancialLiabilitiesMember2023-01-012023-06-300000886982gs:OtherFinancialLiabilitiesMember2022-01-012022-06-300000886982gs:OtherFinancialLiabilitiesMember2023-06-300000886982gs:OtherFinancialLiabilitiesMember2022-06-300000886982gs:OtherFinancialLiabilitiesMemberus-gaap:DepositsMember2023-03-310000886982gs:OtherFinancialLiabilitiesMemberus-gaap:DepositsMember2022-03-310000886982gs:OtherFinancialLiabilitiesMemberus-gaap:DepositsMember2022-12-310000886982gs:OtherFinancialLiabilitiesMemberus-gaap:DepositsMember2021-12-310000886982gs:OtherFinancialLiabilitiesMemberus-gaap:DepositsMember2023-04-012023-06-300000886982gs:OtherFinancialLiabilitiesMemberus-gaap:DepositsMember2022-04-012022-06-300000886982gs:OtherFinancialLiabilitiesMemberus-gaap:DepositsMember2023-01-012023-06-300000886982gs:OtherFinancialLiabilitiesMemberus-gaap:DepositsMember2022-01-012022-06-300000886982gs:OtherFinancialLiabilitiesMemberus-gaap:DepositsMember2023-06-300000886982gs:OtherFinancialLiabilitiesMemberus-gaap:DepositsMember2022-06-300000886982gs:OtherFinancialLiabilitiesMembergs:OtherSecuredFinancingsAtFairValueMember2023-03-310000886982gs:OtherFinancialLiabilitiesMembergs:OtherSecuredFinancingsAtFairValueMember2022-03-310000886982gs:OtherFinancialLiabilitiesMembergs:OtherSecuredFinancingsAtFairValueMember2022-12-310000886982gs:OtherFinancialLiabilitiesMembergs:OtherSecuredFinancingsAtFairValueMember2021-12-310000886982gs:OtherFinancialLiabilitiesMembergs:OtherSecuredFinancingsAtFairValueMember2023-04-012023-06-300000886982gs:OtherFinancialLiabilitiesMembergs:OtherSecuredFinancingsAtFairValueMember2022-04-012022-06-300000886982gs:OtherFinancialLiabilitiesMembergs:OtherSecuredFinancingsAtFairValueMember2023-01-012023-06-300000886982gs:OtherFinancialLiabilitiesMembergs:OtherSecuredFinancingsAtFairValueMember2022-01-012022-06-300000886982gs:OtherFinancialLiabilitiesMembergs:OtherSecuredFinancingsAtFairValueMember2023-06-300000886982gs:OtherFinancialLiabilitiesMembergs:OtherSecuredFinancingsAtFairValueMember2022-06-300000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredShortTermBorrowingsIncludingCurrentPortionOfUnsecuredLongTermBorrowingsAtFairValueMember2023-03-310000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredShortTermBorrowingsIncludingCurrentPortionOfUnsecuredLongTermBorrowingsAtFairValueMember2022-03-310000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredShortTermBorrowingsIncludingCurrentPortionOfUnsecuredLongTermBorrowingsAtFairValueMember2022-12-310000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredShortTermBorrowingsIncludingCurrentPortionOfUnsecuredLongTermBorrowingsAtFairValueMember2021-12-310000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredShortTermBorrowingsIncludingCurrentPortionOfUnsecuredLongTermBorrowingsAtFairValueMember2023-04-012023-06-300000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredShortTermBorrowingsIncludingCurrentPortionOfUnsecuredLongTermBorrowingsAtFairValueMember2022-04-012022-06-300000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredShortTermBorrowingsIncludingCurrentPortionOfUnsecuredLongTermBorrowingsAtFairValueMember2023-01-012023-06-300000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredShortTermBorrowingsIncludingCurrentPortionOfUnsecuredLongTermBorrowingsAtFairValueMember2022-01-012022-06-300000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredShortTermBorrowingsIncludingCurrentPortionOfUnsecuredLongTermBorrowingsAtFairValueMember2023-06-300000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredShortTermBorrowingsIncludingCurrentPortionOfUnsecuredLongTermBorrowingsAtFairValueMember2022-06-300000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredLongTermBorrowingsAtFairValueMember2023-03-310000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredLongTermBorrowingsAtFairValueMember2022-03-310000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredLongTermBorrowingsAtFairValueMember2022-12-310000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredLongTermBorrowingsAtFairValueMember2021-12-310000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredLongTermBorrowingsAtFairValueMember2023-04-012023-06-300000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredLongTermBorrowingsAtFairValueMember2022-04-012022-06-300000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredLongTermBorrowingsAtFairValueMember2023-01-012023-06-300000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredLongTermBorrowingsAtFairValueMember2022-01-012022-06-300000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredLongTermBorrowingsAtFairValueMember2023-06-300000886982gs:OtherFinancialLiabilitiesMembergs:UnsecuredLongTermBorrowingsAtFairValueMember2022-06-300000886982gs:OtherFinancialLiabilitiesMemberus-gaap:OtherLiabilitiesMember2023-03-310000886982gs:OtherFinancialLiabilitiesMemberus-gaap:OtherLiabilitiesMember2022-03-310000886982gs:OtherFinancialLiabilitiesMemberus-gaap:OtherLiabilitiesMember2022-12-310000886982gs:OtherFinancialLiabilitiesMemberus-gaap:OtherLiabilitiesMember2021-12-310000886982gs:OtherFinancialLiabilitiesMemberus-gaap:OtherLiabilitiesMember2023-04-012023-06-300000886982gs:OtherFinancialLiabilitiesMemberus-gaap:OtherLiabilitiesMember2022-04-012022-06-300000886982gs:OtherFinancialLiabilitiesMemberus-gaap:OtherLiabilitiesMember2023-01-012023-06-300000886982gs:OtherFinancialLiabilitiesMemberus-gaap:OtherLiabilitiesMember2022-01-012022-06-300000886982gs:OtherFinancialLiabilitiesMemberus-gaap:OtherLiabilitiesMember2023-06-300000886982gs:OtherFinancialLiabilitiesMemberus-gaap:OtherLiabilitiesMember2022-06-300000886982gs:OtherFinancialLiabilitiesMembergs:MarketMakingMember2023-04-012023-06-300000886982gs:OtherFinancialLiabilitiesMembergs:OtherPrincipalTransactionsMember2023-04-012023-06-300000886982gs:OtherFinancialLiabilitiesMemberus-gaap:InterestExpenseMember2023-04-012023-06-300000886982gs:OtherFinancialLiabilitiesMembergs:DebtValuationAdjustmentMember2023-04-012023-06-300000886982gs:OtherFinancialLiabilitiesMembergs:MarketMakingMember2023-01-012023-06-300000886982gs:OtherFinancialLiabilitiesMembergs:OtherPrincipalTransactionsMember2023-01-012023-06-300000886982gs:OtherFinancialLiabilitiesMemberus-gaap:InterestExpenseMember2023-01-012023-06-300000886982gs:OtherFinancialLiabilitiesMembergs:DebtValuationAdjustmentMember2023-01-012023-06-300000886982gs:OtherFinancialLiabilitiesMembergs:MarketMakingMember2022-04-012022-06-300000886982gs:OtherFinancialLiabilitiesMembergs:OtherPrincipalTransactionsMember2022-04-012022-06-300000886982gs:OtherFinancialLiabilitiesMemberus-gaap:InterestExpenseMember2022-04-012022-06-300000886982gs:OtherFinancialLiabilitiesMembergs:DebtValuationAdjustmentMember2022-04-012022-06-300000886982gs:OtherFinancialLiabilitiesMembergs:MarketMakingMember2022-01-012022-06-300000886982gs:OtherFinancialLiabilitiesMembergs:OtherPrincipalTransactionsMember2022-01-012022-06-300000886982gs:OtherFinancialLiabilitiesMemberus-gaap:InterestExpenseMember2022-01-012022-06-300000886982gs:OtherFinancialLiabilitiesMembergs:DebtValuationAdjustmentMember2022-01-012022-06-300000886982gs:TradingCashInstrumentsFairValueDisclosureMember2023-06-300000886982gs:TradingCashInstrumentsFairValueDisclosureMember2022-12-310000886982gs:InterestRatesMember2023-04-012023-06-300000886982gs:InterestRatesMember2022-04-012022-06-300000886982gs:InterestRatesMember2023-01-012023-06-300000886982gs:InterestRatesMember2022-01-012022-06-300000886982us-gaap:CreditMember2023-04-012023-06-300000886982us-gaap:CreditMember2022-04-012022-06-300000886982us-gaap:CreditMember2023-01-012023-06-300000886982us-gaap:CreditMember2022-01-012022-06-300000886982us-gaap:ForeignExchangeMember2023-04-012023-06-300000886982us-gaap:ForeignExchangeMember2022-04-012022-06-300000886982us-gaap:ForeignExchangeMember2023-01-012023-06-300000886982us-gaap:ForeignExchangeMember2022-01-012022-06-300000886982us-gaap:EquityMember2023-04-012023-06-300000886982us-gaap:EquityMember2022-04-012022-06-300000886982us-gaap:EquityMember2023-01-012023-06-300000886982us-gaap:EquityMember2022-01-012022-06-300000886982us-gaap:CommodityMember2023-04-012023-06-300000886982us-gaap:CommodityMember2022-04-012022-06-300000886982us-gaap:CommodityMember2023-01-012023-06-300000886982us-gaap:CommodityMember2022-01-012022-06-300000886982us-gaap:InterestRateContractMemberus-gaap:NondesignatedMemberus-gaap:ExchangeTradedMember2023-06-300000886982us-gaap:InterestRateContractMemberus-gaap:NondesignatedMemberus-gaap:ExchangeTradedMember2022-12-310000886982us-gaap:InterestRateContractMemberus-gaap:NondesignatedMemberus-gaap:ExchangeClearedMember2023-06-300000886982us-gaap:InterestRateContractMemberus-gaap:NondesignatedMemberus-gaap:ExchangeClearedMember2022-12-310000886982us-gaap:InterestRateContractMemberus-gaap:NondesignatedMembergs:BilateralOtcMember2023-06-300000886982us-gaap:InterestRateContractMemberus-gaap:NondesignatedMembergs:BilateralOtcMember2022-12-310000886982us-gaap:InterestRateContractMemberus-gaap:NondesignatedMember2023-06-300000886982us-gaap:InterestRateContractMemberus-gaap:NondesignatedMember2022-12-310000886982us-gaap:NondesignatedMemberus-gaap:ExchangeClearedMemberus-gaap:CreditRiskContractMember2023-06-300000886982us-gaap:NondesignatedMemberus-gaap:ExchangeClearedMemberus-gaap:CreditRiskContractMember2022-12-310000886982us-gaap:NondesignatedMemberus-gaap:CreditRiskContractMembergs:BilateralOtcMember2023-06-300000886982us-gaap:NondesignatedMemberus-gaap:CreditRiskContractMembergs:BilateralOtcMember2022-12-310000886982us-gaap:NondesignatedMemberus-gaap:CreditRiskContractMember2023-06-300000886982us-gaap:NondesignatedMemberus-gaap:CreditRiskContractMember2022-12-310000886982us-gaap:NondesignatedMemberus-gaap:ForeignExchangeContractMemberus-gaap:ExchangeTradedMember2023-06-300000886982us-gaap:NondesignatedMemberus-gaap:ForeignExchangeContractMemberus-gaap:ExchangeTradedMember2022-12-310000886982us-gaap:NondesignatedMemberus-gaap:ExchangeClearedMemberus-gaap:ForeignExchangeContractMember2023-06-300000886982us-gaap:NondesignatedMemberus-gaap:ExchangeClearedMemberus-gaap:ForeignExchangeContractMember2022-12-310000886982us-gaap:NondesignatedMemberus-gaap:ForeignExchangeContractMembergs:BilateralOtcMember2023-06-300000886982us-gaap:NondesignatedMemberus-gaap:ForeignExchangeContractMembergs:BilateralOtcMember2022-12-310000886982us-gaap:NondesignatedMemberus-gaap:ForeignExchangeContractMember2023-06-300000886982us-gaap:NondesignatedMemberus-gaap:ForeignExchangeContractMember2022-12-310000886982us-gaap:CommodityContractMemberus-gaap:NondesignatedMemberus-gaap:ExchangeTradedMember2023-06-300000886982us-gaap:CommodityContractMemberus-gaap:NondesignatedMemberus-gaap:ExchangeTradedMember2022-12-310000886982us-gaap:CommodityContractMemberus-gaap:NondesignatedMemberus-gaap:ExchangeClearedMember2023-06-300000886982us-gaap:CommodityContractMemberus-gaap:NondesignatedMemberus-gaap:ExchangeClearedMember2022-12-310000886982us-gaap:CommodityContractMemberus-gaap:NondesignatedMembergs:BilateralOtcMember2023-06-300000886982us-gaap:CommodityContractMemberus-gaap:NondesignatedMembergs:BilateralOtcMember2022-12-310000886982us-gaap:CommodityContractMemberus-gaap:NondesignatedMember2023-06-300000886982us-gaap:CommodityContractMemberus-gaap:NondesignatedMember2022-12-310000886982us-gaap:NondesignatedMemberus-gaap:ExchangeTradedMemberus-gaap:EquityContractMember2023-06-300000886982us-gaap:NondesignatedMemberus-gaap:ExchangeTradedMemberus-gaap:EquityContractMember2022-12-310000886982us-gaap:NondesignatedMemberus-gaap:ExchangeClearedMemberus-gaap:EquityContractMember2023-06-300000886982us-gaap:NondesignatedMemberus-gaap:ExchangeClearedMemberus-gaap:EquityContractMember2022-12-310000886982us-gaap:NondesignatedMemberus-gaap:EquityContractMembergs:BilateralOtcMember2023-06-300000886982us-gaap:NondesignatedMemberus-gaap:EquityContractMembergs:BilateralOtcMember2022-12-310000886982us-gaap:NondesignatedMemberus-gaap:EquityContractMember2023-06-300000886982us-gaap:NondesignatedMemberus-gaap:EquityContractMember2022-12-310000886982us-gaap:NondesignatedMember2023-06-300000886982us-gaap:NondesignatedMember2022-12-310000886982us-gaap:InterestRateContractMemberus-gaap:DesignatedAsHedgingInstrumentMemberus-gaap:ExchangeClearedMember2023-06-300000886982us-gaap:InterestRateContractMemberus-gaap:DesignatedAsHedgingInstrumentMemberus-gaap:ExchangeClearedMember2022-12-310000886982us-gaap:InterestRateContractMemberus-gaap:DesignatedAsHedgingInstrumentMembergs:BilateralOtcMember2023-06-300000886982us-gaap:InterestRateContractMemberus-gaap:DesignatedAsHedgingInstrumentMembergs:BilateralOtcMember2022-12-310000886982us-gaap:InterestRateContractMemberus-gaap:DesignatedAsHedgingInstrumentMember2023-06-300000886982us-gaap:InterestRateContractMemberus-gaap:DesignatedAsHedgingInstrumentMember2022-12-310000886982us-gaap:DesignatedAsHedgingInstrumentMemberus-gaap:ExchangeClearedMemberus-gaap:ForeignExchangeContractMember2023-06-300000886982us-gaap:DesignatedAsHedgingInstrumentMemberus-gaap:ExchangeClearedMemberus-gaap:ForeignExchangeContractMember2022-12-310000886982us-gaap:DesignatedAsHedgingInstrumentMemberus-gaap:ForeignExchangeContractMembergs:BilateralOtcMember2023-06-300000886982us-gaap:DesignatedAsHedgingInstrumentMemberus-gaap:ForeignExchangeContractMembergs:BilateralOtcMember2022-12-310000886982us-gaap:DesignatedAsHedgingInstrumentMemberus-gaap:ForeignExchangeContractMember2023-06-300000886982us-gaap:DesignatedAsHedgingInstrumentMemberus-gaap:ForeignExchangeContractMember2022-12-310000886982us-gaap:DesignatedAsHedgingInstrumentMember2023-06-300000886982us-gaap:DesignatedAsHedgingInstrumentMember2022-12-310000886982gs:CounterpartyNettingMemberus-gaap:ExchangeTradedMember2023-06-300000886982gs:CounterpartyNettingMemberus-gaap:ExchangeTradedMember2022-12-310000886982gs:CounterpartyNettingMemberus-gaap:ExchangeClearedMember2023-06-300000886982gs:CounterpartyNettingMemberus-gaap:ExchangeClearedMember2022-12-310000886982gs:CounterpartyNettingMembergs:BilateralOtcMember2023-06-300000886982gs:CounterpartyNettingMembergs:BilateralOtcMember2022-12-310000886982gs:CounterpartyNettingMember2023-06-300000886982gs:CounterpartyNettingMember2022-12-310000886982gs:CashCollateralNettingAdjustmentMemberus-gaap:ExchangeClearedMember2023-06-300000886982gs:CashCollateralNettingAdjustmentMemberus-gaap:ExchangeClearedMember2022-12-310000886982gs:CashCollateralNettingAdjustmentMembergs:BilateralOtcMember2023-06-300000886982gs:CashCollateralNettingAdjustmentMembergs:BilateralOtcMember2022-12-310000886982gs:CashCollateralNettingAdjustmentMember2023-06-300000886982gs:CashCollateralNettingAdjustmentMember2022-12-310000886982us-gaap:ExchangeTradedMember2023-06-300000886982us-gaap:ExchangeTradedMember2022-12-310000886982us-gaap:ExchangeClearedMember2023-06-300000886982us-gaap:ExchangeClearedMember2022-12-310000886982gs:BilateralOtcMember2023-06-300000886982gs:BilateralOtcMember2022-12-310000886982us-gaap:NondesignatedMemberus-gaap:ExchangeTradedMemberus-gaap:CreditRiskContractMember2023-06-300000886982us-gaap:NondesignatedMemberus-gaap:ExchangeTradedMemberus-gaap:CreditRiskContractMember2022-12-310000886982us-gaap:InterestRateContractMemberus-gaap:OverTheCounterMembergs:DerivativesByTenorOneMember2023-06-300000886982us-gaap:InterestRateContractMemberus-gaap:OverTheCounterMembergs:DerivativesByTenorTwoMember2023-06-300000886982gs:DerivativesByTenorThreeMemberus-gaap:InterestRateContractMemberus-gaap:OverTheCounterMember2023-06-300000886982us-gaap:InterestRateContractMemberus-gaap:OverTheCounterMember2023-06-300000886982us-gaap:OverTheCounterMemberus-gaap:CreditRiskContractMembergs:DerivativesByTenorOneMember2023-06-300000886982us-gaap:OverTheCounterMemberus-gaap:CreditRiskContractMembergs:DerivativesByTenorTwoMember2023-06-300000886982gs:DerivativesByTenorThreeMemberus-gaap:OverTheCounterMemberus-gaap:CreditRiskContractMember2023-06-300000886982us-gaap:OverTheCounterMemberus-gaap:CreditRiskContractMember2023-06-300000886982us-gaap:ForeignExchangeContractMemberus-gaap:OverTheCounterMembergs:DerivativesByTenorOneMember2023-06-300000886982us-gaap:ForeignExchangeContractMemberus-gaap:OverTheCounterMembergs:DerivativesByTenorTwoMember2023-06-300000886982gs:DerivativesByTenorThreeMemberus-gaap:ForeignExchangeContractMemberus-gaap:OverTheCounterMember2023-06-300000886982us-gaap:ForeignExchangeContractMemberus-gaap:OverTheCounterMember2023-06-300000886982us-gaap:CommodityContractMemberus-gaap:OverTheCounterMembergs:DerivativesByTenorOneMember2023-06-300000886982us-gaap:CommodityContractMemberus-gaap:OverTheCounterMembergs:DerivativesByTenorTwoMember2023-06-300000886982us-gaap:CommodityContractMembergs:DerivativesByTenorThreeMemberus-gaap:OverTheCounterMember2023-06-300000886982us-gaap:CommodityContractMemberus-gaap:OverTheCounterMember2023-06-300000886982us-gaap:OverTheCounterMemberus-gaap:EquityContractMembergs:DerivativesByTenorOneMember2023-06-300000886982us-gaap:OverTheCounterMembergs:DerivativesByTenorTwoMemberus-gaap:EquityContractMember2023-06-300000886982gs:DerivativesByTenorThreeMemberus-gaap:OverTheCounterMemberus-gaap:EquityContractMember2023-06-300000886982us-gaap:OverTheCounterMemberus-gaap:EquityContractMember2023-06-300000886982gs:CounterpartyNettingAdjustmentWithinTenorsMemberus-gaap:OverTheCounterMembergs:DerivativesByTenorOneMember2023-06-300000886982gs:CounterpartyNettingAdjustmentWithinTenorsMemberus-gaap:OverTheCounterMembergs:DerivativesByTenorTwoMember2023-06-300000886982gs:DerivativesByTenorThreeMembergs:CounterpartyNettingAdjustmentWithinTenorsMemberus-gaap:OverTheCounterMember2023-06-300000886982gs:CounterpartyNettingAdjustmentWithinTenorsMemberus-gaap:OverTheCounterMember2023-06-300000886982us-gaap:OverTheCounterMembergs:DerivativesByTenorOneMember2023-06-300000886982us-gaap:OverTheCounterMembergs:DerivativesByTenorTwoMember2023-06-300000886982gs:DerivativesByTenorThreeMemberus-gaap:OverTheCounterMember2023-06-300000886982us-gaap:OverTheCounterMember2023-06-300000886982gs:CrossMaturityNettingAdjustmentMemberus-gaap:OverTheCounterMember2023-06-300000886982gs:CashCollateralNettingAdjustmentMemberus-gaap:OverTheCounterMember2023-06-300000886982us-gaap:OverTheCounterMembergs:CounterpartyAndCashCollateralNettingAdjustmentMember2023-06-300000886982us-gaap:InterestRateContractMemberus-gaap:OverTheCounterMembergs:DerivativesByTenorOneMember2022-12-310000886982us-gaap:InterestRateContractMemberus-gaap:OverTheCounterMembergs:DerivativesByTenorTwoMember2022-12-310000886982gs:DerivativesByTenorThreeMemberus-gaap:InterestRateContractMemberus-gaap:OverTheCounterMember2022-12-310000886982us-gaap:InterestRateContractMemberus-gaap:OverTheCounterMember2022-12-310000886982us-gaap:OverTheCounterMemberus-gaap:CreditRiskContractMembergs:DerivativesByTenorOneMember2022-12-310000886982us-gaap:OverTheCounterMemberus-gaap:CreditRiskContractMembergs:DerivativesByTenorTwoMember2022-12-310000886982gs:DerivativesByTenorThreeMemberus-gaap:OverTheCounterMemberus-gaap:CreditRiskContractMember2022-12-310000886982us-gaap:OverTheCounterMemberus-gaap:CreditRiskContractMember2022-12-310000886982us-gaap:ForeignExchangeContractMemberus-gaap:OverTheCounterMembergs:DerivativesByTenorOneMember2022-12-310000886982us-gaap:ForeignExchangeContractMemberus-gaap:OverTheCounterMembergs:DerivativesByTenorTwoMember2022-12-310000886982gs:DerivativesByTenorThreeMemberus-gaap:ForeignExchangeContractMemberus-gaap:OverTheCounterMember2022-12-310000886982us-gaap:ForeignExchangeContractMemberus-gaap:OverTheCounterMember2022-12-310000886982us-gaap:CommodityContractMemberus-gaap:OverTheCounterMembergs:DerivativesByTenorOneMember2022-12-310000886982us-gaap:CommodityContractMemberus-gaap:OverTheCounterMembergs:DerivativesByTenorTwoMember2022-12-310000886982us-gaap:CommodityContractMembergs:DerivativesByTenorThreeMemberus-gaap:OverTheCounterMember2022-12-310000886982us-gaap:CommodityContractMemberus-gaap:OverTheCounterMember2022-12-310000886982us-gaap:OverTheCounterMemberus-gaap:EquityContractMembergs:DerivativesByTenorOneMember2022-12-310000886982us-gaap:OverTheCounterMembergs:DerivativesByTenorTwoMemberus-gaap:EquityContractMember2022-12-310000886982gs:DerivativesByTenorThreeMemberus-gaap:OverTheCounterMemberus-gaap:EquityContractMember2022-12-310000886982us-gaap:OverTheCounterMemberus-gaap:EquityContractMember2022-12-310000886982gs:CounterpartyNettingAdjustmentWithinTenorsMemberus-gaap:OverTheCounterMembergs:DerivativesByTenorOneMember2022-12-310000886982gs:CounterpartyNettingAdjustmentWithinTenorsMemberus-gaap:OverTheCounterMembergs:DerivativesByTenorTwoMember2022-12-310000886982gs:DerivativesByTenorThreeMembergs:CounterpartyNettingAdjustmentWithinTenorsMemberus-gaap:OverTheCounterMember2022-12-310000886982gs:CounterpartyNettingAdjustmentWithinTenorsMemberus-gaap:OverTheCounterMember2022-12-310000886982us-gaap:OverTheCounterMembergs:DerivativesByTenorOneMember2022-12-310000886982us-gaap:OverTheCounterMembergs:DerivativesByTenorTwoMember2022-12-310000886982gs:DerivativesByTenorThreeMemberus-gaap:OverTheCounterMember2022-12-310000886982us-gaap:OverTheCounterMember2022-12-310000886982gs:CrossMaturityNettingAdjustmentMemberus-gaap:OverTheCounterMember2022-12-310000886982gs:CashCollateralNettingAdjustmentMemberus-gaap:OverTheCounterMember2022-12-310000886982us-gaap:OverTheCounterMembergs:CounterpartyAndCashCollateralNettingAdjustmentMember2022-12-310000886982gs:WrittenCreditDerivativeMember2023-06-300000886982gs:PurchasedCreditDerivativeMember2023-06-300000886982gs:WrittenCreditDerivativeMember2022-12-310000886982gs:PurchasedCreditDerivativeMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsOneMembergs:DerivativesByTenorOneMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsTwoMembergs:DerivativesByTenorOneMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsThreeMembergs:DerivativesByTenorOneMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsFourMembergs:DerivativesByTenorOneMember2023-06-300000886982gs:DerivativesByTenorOneMember2023-06-300000886982gs:DerivativesByTenorTwoMembergs:CreditSpreadOnUnderlyingBasisPointsOneMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsTwoMembergs:DerivativesByTenorTwoMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsThreeMembergs:DerivativesByTenorTwoMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsFourMembergs:DerivativesByTenorTwoMember2023-06-300000886982gs:DerivativesByTenorTwoMember2023-06-300000886982gs:DerivativesByTenorThreeMembergs:CreditSpreadOnUnderlyingBasisPointsOneMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsTwoMembergs:DerivativesByTenorThreeMember2023-06-300000886982gs:DerivativesByTenorThreeMembergs:CreditSpreadOnUnderlyingBasisPointsThreeMember2023-06-300000886982gs:DerivativesByTenorThreeMembergs:CreditSpreadOnUnderlyingBasisPointsFourMember2023-06-300000886982gs:DerivativesByTenorThreeMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsOneMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsTwoMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsThreeMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsFourMember2023-06-300000886982gs:OffsettingPurchasedCreditDerivativesMembergs:CreditSpreadOnUnderlyingBasisPointsOneMember2023-06-300000886982gs:OffsettingPurchasedCreditDerivativesMembergs:CreditSpreadOnUnderlyingBasisPointsTwoMember2023-06-300000886982gs:OffsettingPurchasedCreditDerivativesMembergs:CreditSpreadOnUnderlyingBasisPointsThreeMember2023-06-300000886982gs:OffsettingPurchasedCreditDerivativesMembergs:CreditSpreadOnUnderlyingBasisPointsFourMember2023-06-300000886982gs:OffsettingPurchasedCreditDerivativesMember2023-06-300000886982gs:OtherPurchasedCreditDerivativesMembergs:CreditSpreadOnUnderlyingBasisPointsOneMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsTwoMembergs:OtherPurchasedCreditDerivativesMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsThreeMembergs:OtherPurchasedCreditDerivativesMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsFourMembergs:OtherPurchasedCreditDerivativesMember2023-06-300000886982gs:OtherPurchasedCreditDerivativesMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsOneMembergs:WrittenCreditDerivativeMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsTwoMembergs:WrittenCreditDerivativeMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsThreeMembergs:WrittenCreditDerivativeMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsFourMembergs:WrittenCreditDerivativeMember2023-06-300000886982gs:CreditSpreadOnUnderlyingBasisPointsOneMembergs:DerivativesByTenorOneMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsTwoMembergs:DerivativesByTenorOneMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsThreeMembergs:DerivativesByTenorOneMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsFourMembergs:DerivativesByTenorOneMember2022-12-310000886982gs:DerivativesByTenorOneMember2022-12-310000886982gs:DerivativesByTenorTwoMembergs:CreditSpreadOnUnderlyingBasisPointsOneMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsTwoMembergs:DerivativesByTenorTwoMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsThreeMembergs:DerivativesByTenorTwoMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsFourMembergs:DerivativesByTenorTwoMember2022-12-310000886982gs:DerivativesByTenorTwoMember2022-12-310000886982gs:DerivativesByTenorThreeMembergs:CreditSpreadOnUnderlyingBasisPointsOneMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsTwoMembergs:DerivativesByTenorThreeMember2022-12-310000886982gs:DerivativesByTenorThreeMembergs:CreditSpreadOnUnderlyingBasisPointsThreeMember2022-12-310000886982gs:DerivativesByTenorThreeMembergs:CreditSpreadOnUnderlyingBasisPointsFourMember2022-12-310000886982gs:DerivativesByTenorThreeMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsOneMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsTwoMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsThreeMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsFourMember2022-12-310000886982gs:OffsettingPurchasedCreditDerivativesMembergs:CreditSpreadOnUnderlyingBasisPointsOneMember2022-12-310000886982gs:OffsettingPurchasedCreditDerivativesMembergs:CreditSpreadOnUnderlyingBasisPointsTwoMember2022-12-310000886982gs:OffsettingPurchasedCreditDerivativesMembergs:CreditSpreadOnUnderlyingBasisPointsThreeMember2022-12-310000886982gs:OffsettingPurchasedCreditDerivativesMembergs:CreditSpreadOnUnderlyingBasisPointsFourMember2022-12-310000886982gs:OffsettingPurchasedCreditDerivativesMember2022-12-310000886982gs:OtherPurchasedCreditDerivativesMembergs:CreditSpreadOnUnderlyingBasisPointsOneMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsTwoMembergs:OtherPurchasedCreditDerivativesMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsThreeMembergs:OtherPurchasedCreditDerivativesMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsFourMembergs:OtherPurchasedCreditDerivativesMember2022-12-310000886982gs:OtherPurchasedCreditDerivativesMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsOneMembergs:WrittenCreditDerivativeMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsTwoMembergs:WrittenCreditDerivativeMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsThreeMembergs:WrittenCreditDerivativeMember2022-12-310000886982gs:CreditSpreadOnUnderlyingBasisPointsFourMembergs:WrittenCreditDerivativeMember2022-12-310000886982us-gaap:EmbeddedDerivativeFinancialInstrumentsMember2023-06-300000886982us-gaap:EmbeddedDerivativeFinancialInstrumentsMember2022-12-310000886982gs:OneNotchReductionMember2023-06-300000886982gs:OneNotchReductionMember2022-12-310000886982gs:TwoNotchReductionMember2023-06-300000886982gs:TwoNotchReductionMember2022-12-310000886982us-gaap:FairValueHedgingMemberus-gaap:InterestRateContractMemberus-gaap:DesignatedAsHedgingInstrumentMember2023-04-012023-06-300000886982us-gaap:FairValueHedgingMemberus-gaap:InterestRateContractMemberus-gaap:DesignatedAsHedgingInstrumentMember2022-04-012022-06-300000886982us-gaap:FairValueHedgingMemberus-gaap:InterestRateContractMemberus-gaap:DesignatedAsHedgingInstrumentMember2023-01-012023-06-300000886982us-gaap:FairValueHedgingMemberus-gaap:InterestRateContractMemberus-gaap:DesignatedAsHedgingInstrumentMember2022-01-012022-06-300000886982us-gaap:FairValueHedgingMemberus-gaap:DesignatedAsHedgingInstrumentMembergs:HedgedInvestmentsMember2023-04-012023-06-300000886982us-gaap:FairValueHedgingMemberus-gaap:DesignatedAsHedgingInstrumentMembergs:HedgedInvestmentsMember2022-04-012022-06-300000886982us-gaap:FairValueHedgingMemberus-gaap:DesignatedAsHedgingInstrumentMembergs:HedgedInvestmentsMember2023-01-012023-06-300000886982us-gaap:FairValueHedgingMemberus-gaap:DesignatedAsHedgingInstrumentMembergs:HedgedInvestmentsMember2022-01-012022-06-300000886982us-gaap:FairValueHedgingMemberus-gaap:DesignatedAsHedgingInstrumentMember2023-04-012023-06-300000886982us-gaap:FairValueHedgingMemberus-gaap:DesignatedAsHedgingInstrumentMember2022-04-012022-06-300000886982us-gaap:FairValueHedgingMemberus-gaap:DesignatedAsHedgingInstrumentMember2023-01-012023-06-300000886982us-gaap:FairValueHedgingMemberus-gaap:DesignatedAsHedgingInstrumentMember2022-01-012022-06-300000886982us-gaap:FairValueHedgingMemberus-gaap:DesignatedAsHedgingInstrumentMembergs:HedgedBorrowingsAndDepositsMember2023-04-012023-06-300000886982us-gaap:FairValueHedgingMemberus-gaap:DesignatedAsHedgingInstrumentMembergs:HedgedBorrowingsAndDepositsMember2022-04-012022-06-300000886982us-gaap:FairValueHedgingMemberus-gaap:DesignatedAsHedgingInstrumentMembergs:HedgedBorrowingsAndDepositsMember2023-01-012023-06-300000886982us-gaap:FairValueHedgingMemberus-gaap:DesignatedAsHedgingInstrumentMembergs:HedgedBorrowingsAndDepositsMember2022-01-012022-06-300000886982us-gaap:DesignatedAsHedgingInstrumentMemberus-gaap:InvestmentsMember2023-06-300000886982us-gaap:DesignatedAsHedgingInstrumentMemberus-gaap:DepositsMember2023-06-300000886982gs:UnsecuredShortTermBorrowingsMemberus-gaap:DesignatedAsHedgingInstrumentMember2023-06-300000886982us-gaap:DesignatedAsHedgingInstrumentMembergs:UnsecuredLongTermBorrowingsMember2023-06-300000886982us-gaap:DesignatedAsHedgingInstrumentMemberus-gaap:InvestmentsMember2022-12-310000886982us-gaap:DesignatedAsHedgingInstrumentMemberus-gaap:DepositsMember2022-12-310000886982gs:UnsecuredShortTermBorrowingsMemberus-gaap:DesignatedAsHedgingInstrumentMember2022-12-310000886982us-gaap:DesignatedAsHedgingInstrumentMembergs:UnsecuredLongTermBorrowingsMember2022-12-310000886982us-gaap:NetInvestmentHedgingMemberus-gaap:ForeignExchangeContractMember2023-04-012023-06-300000886982us-gaap:NetInvestmentHedgingMemberus-gaap:ForeignExchangeContractMember2022-04-012022-06-300000886982us-gaap:NetInvestmentHedgingMemberus-gaap:ForeignExchangeContractMember2023-01-012023-06-300000886982us-gaap:NetInvestmentHedgingMemberus-gaap:ForeignExchangeContractMember2022-01-012022-06-300000886982gs:PublicEquityMember2023-06-300000886982gs:PublicEquityMember2022-12-310000886982gs:PrivateEquityMember2023-06-300000886982gs:PrivateEquityMember2022-12-310000886982gs:PublicAndPrivateEquityMember2023-06-300000886982gs:PublicAndPrivateEquityMember2022-12-310000886982us-gaap:CorporateMember2023-06-300000886982us-gaap:CorporateMember2022-12-310000886982us-gaap:RealEstateMember2023-06-300000886982us-gaap:RealEstateMember2022-12-310000886982gs:CorporateAndRealEstateMember2023-06-300000886982gs:CorporateAndRealEstateMember2022-12-310000886982us-gaap:EquitySecuritiesMember2023-06-300000886982us-gaap:EquitySecuritiesMember2022-12-310000886982us-gaap:FairValueOptionOtherEligibleItemsMember2023-04-012023-06-300000886982us-gaap:FairValueOptionOtherEligibleItemsMember2022-04-012022-06-300000886982us-gaap:FairValueOptionOtherEligibleItemsMember2023-01-012023-06-300000886982us-gaap:FairValueOptionOtherEligibleItemsMember2022-01-012022-06-300000886982us-gaap:CorporateDebtSecuritiesMember2023-06-300000886982us-gaap:CorporateDebtSecuritiesMember2022-12-310000886982gs:SecuritiesBackedByRealEstateMember2023-06-300000886982gs:SecuritiesBackedByRealEstateMember2022-12-310000886982gs:MoneyMarketInstrumentsMember2023-06-300000886982gs:MoneyMarketInstrumentsMember2022-12-310000886982us-gaap:OtherDebtSecuritiesMember2023-06-300000886982us-gaap:OtherDebtSecuritiesMember2022-12-310000886982us-gaap:PrivateEquityFundsMembergs:CashInstrumentsAssetsMember2023-06-300000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:PrivateEquityFundsMember2023-06-300000886982gs:CreditFundsMembergs:CashInstrumentsAssetsMember2023-06-300000886982gs:CreditFundsMembergs:CashInstrumentsLiabilitiesMember2023-06-300000886982us-gaap:HedgeFundsMembergs:CashInstrumentsAssetsMember2023-06-300000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:HedgeFundsMember2023-06-300000886982us-gaap:RealEstateFundsMembergs:CashInstrumentsAssetsMember2023-06-300000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:RealEstateFundsMember2023-06-300000886982gs:CashInstrumentsAssetsMember2023-06-300000886982gs:CashInstrumentsLiabilitiesMember2023-06-300000886982us-gaap:PrivateEquityFundsMembergs:CashInstrumentsAssetsMember2022-12-310000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:PrivateEquityFundsMember2022-12-310000886982gs:CreditFundsMembergs:CashInstrumentsAssetsMember2022-12-310000886982gs:CreditFundsMembergs:CashInstrumentsLiabilitiesMember2022-12-310000886982us-gaap:HedgeFundsMembergs:CashInstrumentsAssetsMember2022-12-310000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:HedgeFundsMember2022-12-310000886982us-gaap:RealEstateFundsMembergs:CashInstrumentsAssetsMember2022-12-310000886982gs:CashInstrumentsLiabilitiesMemberus-gaap:RealEstateFundsMember2022-12-310000886982gs:CashInstrumentsAssetsMember2022-12-310000886982gs:CashInstrumentsLiabilitiesMember2022-12-310000886982us-gaap:USTreasurySecuritiesMembergs:LessThanOneYearMember2023-06-300000886982us-gaap:USTreasurySecuritiesMembergs:MoreThanOneYearNotLessThanFiveYearsMember2023-06-300000886982us-gaap:USTreasurySecuritiesMembergs:MoreThanFiveYearNotLessThanTenYearsMember2023-06-300000886982us-gaap:USTreasurySecuritiesMember2023-06-300000886982gs:LessThanOneYearMemberus-gaap:ForeignGovernmentDebtSecuritiesMember2023-06-300000886982gs:MoreThanOneYearNotLessThanFiveYearsMemberus-gaap:ForeignGovernmentDebtSecuritiesMember2023-06-300000886982gs:MoreThanFiveYearNotLessThanTenYearsMemberus-gaap:ForeignGovernmentDebtSecuritiesMember2023-06-300000886982us-gaap:ForeignGovernmentDebtSecuritiesMember2023-06-300000886982us-gaap:USTreasurySecuritiesMembergs:LessThanOneYearMember2022-12-310000886982us-gaap:USTreasurySecuritiesMembergs:MoreThanOneYearNotLessThanFiveYearsMember2022-12-310000886982us-gaap:USTreasurySecuritiesMembergs:MoreThanFiveYearNotLessThanTenYearsMember2022-12-310000886982us-gaap:USTreasurySecuritiesMember2022-12-310000886982gs:MoreThanOneYearNotLessThanFiveYearsMemberus-gaap:ForeignGovernmentDebtSecuritiesMember2022-12-310000886982gs:MoreThanFiveYearNotLessThanTenYearsMemberus-gaap:ForeignGovernmentDebtSecuritiesMember2022-12-310000886982us-gaap:ForeignGovernmentDebtSecuritiesMember2022-12-3100008869822022-01-012022-12-310000886982us-gaap:AvailableforsaleSecuritiesMember2023-04-012023-06-300000886982us-gaap:AvailableforsaleSecuritiesMember2022-04-012022-06-300000886982us-gaap:AvailableforsaleSecuritiesMember2023-01-012023-06-300000886982us-gaap:AvailableforsaleSecuritiesMember2022-01-012022-06-300000886982gs:LessThanOneYearMemberus-gaap:USGovernmentDebtSecuritiesMember2023-06-300000886982gs:MoreThanOneYearNotLessThanFiveYearsMemberus-gaap:USGovernmentDebtSecuritiesMember2023-06-300000886982gs:MoreThanFiveYearNotLessThanTenYearsMemberus-gaap:USGovernmentDebtSecuritiesMember2023-06-300000886982us-gaap:USGovernmentDebtSecuritiesMember2023-06-300000886982gs:SecuritiesBackedByRealEstateMembergs:MoreThanFiveYearNotLessThanTenYearsMember2023-06-300000886982gs:SecuritiesBackedByRealEstateMembergs:GreaterThanTenYearsMember2023-06-300000886982gs:SecuritiesBackedByRealEstateMember2023-06-300000886982gs:LessThanOneYearMemberus-gaap:USGovernmentDebtSecuritiesMember2022-12-310000886982gs:MoreThanOneYearNotLessThanFiveYearsMemberus-gaap:USGovernmentDebtSecuritiesMember2022-12-310000886982gs:MoreThanFiveYearNotLessThanTenYearsMemberus-gaap:USGovernmentDebtSecuritiesMember2022-12-310000886982us-gaap:USGovernmentDebtSecuritiesMember2022-12-310000886982gs:SecuritiesBackedByRealEstateMembergs:MoreThanFiveYearNotLessThanTenYearsMember2022-12-310000886982gs:SecuritiesBackedByRealEstateMembergs:GreaterThanTenYearsMember2022-12-310000886982gs:SecuritiesBackedByRealEstateMember2022-12-310000886982gs:CorporateLoansMembergs:AmortizedCostMember2023-06-300000886982gs:CorporateLoansMembergs:FairValueMember2023-06-300000886982gs:CorporateLoansMembergs:HeldForSaleMember2023-06-300000886982gs:CommercialRealEstateLoansMembergs:AmortizedCostMember2023-06-300000886982gs:CommercialRealEstateLoansMembergs:FairValueMember2023-06-300000886982gs:CommercialRealEstateLoansMembergs:HeldForSaleMember2023-06-300000886982gs:AmortizedCostMembergs:ResidentialRealEstateLoansMember2023-06-300000886982gs:ResidentialRealEstateLoansMembergs:FairValueMember2023-06-300000886982gs:HeldForSaleMembergs:ResidentialRealEstateLoansMember2023-06-300000886982gs:AmortizedCostMembergs:SecuritiesBasedMember2023-06-300000886982gs:FairValueMembergs:SecuritiesBasedMember2023-06-300000886982gs:HeldForSaleMembergs:SecuritiesBasedMember2023-06-300000886982gs:SecuritiesBasedMember2023-06-300000886982gs:OtherCollateralizedMembergs:AmortizedCostMember2023-06-300000886982gs:OtherCollateralizedMembergs:FairValueMember2023-06-300000886982gs:OtherCollateralizedMembergs:HeldForSaleMember2023-06-300000886982gs:InstallmentMembergs:AmortizedCostMember2023-06-300000886982gs:InstallmentMembergs:FairValueMember2023-06-300000886982gs:InstallmentMembergs:HeldForSaleMember2023-06-300000886982gs:InstallmentMember2023-06-300000886982gs:AmortizedCostMemberus-gaap:CreditCardReceivablesMember2023-06-300000886982gs:FairValueMemberus-gaap:CreditCardReceivablesMember2023-06-300000886982gs:HeldForSaleMemberus-gaap:CreditCardReceivablesMember2023-06-300000886982us-gaap:CreditCardReceivablesMember2023-06-300000886982gs:AmortizedCostMembergs:OtherLoansMember2023-06-300000886982gs:FairValueMembergs:OtherLoansMember2023-06-300000886982gs:HeldForSaleMembergs:OtherLoansMember2023-06-300000886982gs:AmortizedCostMember2023-06-300000886982gs:FairValueMember2023-06-300000886982gs:HeldForSaleMember2023-06-300000886982gs:CorporateLoansMembergs:AmortizedCostMember2022-12-310000886982gs:CorporateLoansMembergs:FairValueMember2022-12-310000886982gs:CorporateLoansMembergs:HeldForSaleMember2022-12-310000886982gs:CommercialRealEstateLoansMembergs:AmortizedCostMember2022-12-310000886982gs:CommercialRealEstateLoansMembergs:FairValueMember2022-12-310000886982gs:CommercialRealEstateLoansMembergs:HeldForSaleMember2022-12-310000886982gs:AmortizedCostMembergs:ResidentialRealEstateLoansMember2022-12-310000886982gs:ResidentialRealEstateLoansMembergs:FairValueMember2022-12-310000886982gs:HeldForSaleMembergs:ResidentialRealEstateLoansMember2022-12-310000886982gs:AmortizedCostMembergs:SecuritiesBasedMember2022-12-310000886982gs:FairValueMembergs:SecuritiesBasedMember2022-12-310000886982gs:HeldForSaleMembergs:SecuritiesBasedMember2022-12-310000886982gs:SecuritiesBasedMember2022-12-310000886982gs:OtherCollateralizedMembergs:AmortizedCostMember2022-12-310000886982gs:OtherCollateralizedMembergs:FairValueMember2022-12-310000886982gs:OtherCollateralizedMembergs:HeldForSaleMember2022-12-310000886982gs:InstallmentMembergs:AmortizedCostMember2022-12-310000886982gs:InstallmentMembergs:FairValueMember2022-12-310000886982gs:InstallmentMembergs:HeldForSaleMember2022-12-310000886982gs:InstallmentMember2022-12-310000886982gs:AmortizedCostMemberus-gaap:CreditCardReceivablesMember2022-12-310000886982gs:FairValueMemberus-gaap:CreditCardReceivablesMember2022-12-310000886982gs:HeldForSaleMemberus-gaap:CreditCardReceivablesMember2022-12-310000886982us-gaap:CreditCardReceivablesMember2022-12-310000886982gs:AmortizedCostMembergs:OtherLoansMember2022-12-310000886982gs:FairValueMembergs:OtherLoansMember2022-12-310000886982gs:HeldForSaleMembergs:OtherLoansMember2022-12-310000886982gs:AmortizedCostMember2022-12-310000886982gs:FairValueMember2022-12-310000886982gs:HeldForSaleMember2022-12-310000886982gs:InstallmentMember2023-01-012023-06-300000886982gs:InstallmentMember2023-04-012023-06-300000886982us-gaap:InternalInvestmentGradeMember2022-12-012022-12-310000886982gs:AmortizedCostMembergs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2023-06-300000886982gs:AmortizedCostMemberus-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2023-06-300000886982gs:AmortizedCostMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2023-06-300000886982gs:AmortizedCostMembergs:InternallyRatedLoansMember2023-06-300000886982gs:FairValueMembergs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2023-06-300000886982us-gaap:InternalNoninvestmentGradeMembergs:FairValueMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2023-06-300000886982gs:FairValueMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2023-06-300000886982gs:FairValueMembergs:InternallyRatedLoansMember2023-06-300000886982gs:HeldForSaleMembergs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2023-06-300000886982gs:HeldForSaleMemberus-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2023-06-300000886982gs:HeldForSaleMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2023-06-300000886982gs:HeldForSaleMembergs:InternallyRatedLoansMember2023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2023-06-300000886982us-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2023-06-300000886982gs:InternallyRatedLoansMember2023-06-300000886982gs:CorporateLoansMembergs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2023-06-300000886982gs:CorporateLoansMemberus-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2023-06-300000886982gs:CorporateLoansMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2023-06-300000886982gs:CorporateLoansMembergs:InternallyRatedLoansMember2023-06-300000886982gs:CommercialRealEstateLoansMembergs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2023-06-300000886982gs:CommercialRealEstateLoansMemberus-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2023-06-300000886982gs:CommercialRealEstateLoansMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2023-06-300000886982gs:CommercialRealEstateLoansMembergs:InternallyRatedLoansMember2023-06-300000886982gs:ResidentialRealEstateLoansMembergs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2023-06-300000886982gs:ResidentialRealEstateLoansMemberus-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2023-06-300000886982gs:ResidentialRealEstateLoansMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2023-06-300000886982gs:ResidentialRealEstateLoansMembergs:InternallyRatedLoansMember2023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMembergs:SecuritiesBasedMember2023-06-300000886982us-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMembergs:SecuritiesBasedMember2023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMembergs:SecuritiesBasedMember2023-06-300000886982gs:InternallyRatedLoansMembergs:SecuritiesBasedMember2023-06-300000886982gs:OtherCollateralizedMembergs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2023-06-300000886982gs:OtherCollateralizedMemberus-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2023-06-300000886982gs:OtherCollateralizedMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2023-06-300000886982gs:OtherCollateralizedMembergs:InternallyRatedLoansMember2023-06-300000886982gs:InstallmentLoansMembergs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2023-06-300000886982gs:InstallmentLoansMemberus-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2023-06-300000886982gs:InstallmentLoansMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2023-06-300000886982gs:InstallmentLoansMembergs:InternallyRatedLoansMember2023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMemberus-gaap:CreditCardReceivablesMember2023-06-300000886982us-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMemberus-gaap:CreditCardReceivablesMember2023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMemberus-gaap:CreditCardReceivablesMember2023-06-300000886982gs:InternallyRatedLoansMemberus-gaap:CreditCardReceivablesMember2023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMembergs:OtherLoansMember2023-06-300000886982us-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMembergs:OtherLoansMember2023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMembergs:OtherLoansMember2023-06-300000886982gs:InternallyRatedLoansMembergs:OtherLoansMember2023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMembergs:SecuredLoansAndLeasesReceivableMember2023-01-012023-06-300000886982us-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMembergs:SecuredLoansAndLeasesReceivableMember2023-01-012023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMembergs:SecuredLoansAndLeasesReceivableMember2023-01-012023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMembergs:SecuredLoansAndLeasesReceivableMember2023-01-012023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMembergs:UnsecuredLoansAndLeasesReceivableMember2023-01-012023-06-300000886982us-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMembergs:UnsecuredLoansAndLeasesReceivableMember2023-01-012023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMembergs:UnsecuredLoansAndLeasesReceivableMember2023-01-012023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMembergs:UnsecuredLoansAndLeasesReceivableMember2023-01-012023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2023-01-012023-06-300000886982us-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2023-01-012023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2023-01-012023-06-300000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2023-01-012023-06-300000886982gs:AmortizedCostMembergs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2022-12-310000886982gs:AmortizedCostMemberus-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2022-12-310000886982gs:AmortizedCostMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2022-12-310000886982gs:AmortizedCostMembergs:InternallyRatedLoansMember2022-12-310000886982gs:FairValueMembergs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2022-12-310000886982us-gaap:InternalNoninvestmentGradeMembergs:FairValueMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2022-12-310000886982gs:FairValueMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2022-12-310000886982gs:FairValueMembergs:InternallyRatedLoansMember2022-12-310000886982gs:HeldForSaleMembergs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2022-12-310000886982gs:HeldForSaleMemberus-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2022-12-310000886982gs:HeldForSaleMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2022-12-310000886982gs:HeldForSaleMembergs:InternallyRatedLoansMember2022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2022-12-310000886982us-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2022-12-310000886982gs:InternallyRatedLoansMember2022-12-310000886982gs:CorporateLoansMembergs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2022-12-310000886982gs:CorporateLoansMemberus-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2022-12-310000886982gs:CorporateLoansMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2022-12-310000886982gs:CorporateLoansMembergs:InternallyRatedLoansMember2022-12-310000886982gs:CommercialRealEstateLoansMembergs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2022-12-310000886982gs:CommercialRealEstateLoansMemberus-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2022-12-310000886982gs:CommercialRealEstateLoansMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2022-12-310000886982gs:CommercialRealEstateLoansMembergs:InternallyRatedLoansMember2022-12-310000886982gs:ResidentialRealEstateLoansMembergs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2022-12-310000886982gs:ResidentialRealEstateLoansMemberus-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2022-12-310000886982gs:ResidentialRealEstateLoansMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2022-12-310000886982gs:ResidentialRealEstateLoansMembergs:InternallyRatedLoansMember2022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMembergs:SecuritiesBasedMember2022-12-310000886982us-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMembergs:SecuritiesBasedMember2022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMembergs:SecuritiesBasedMember2022-12-310000886982gs:InternallyRatedLoansMembergs:SecuritiesBasedMember2022-12-310000886982gs:OtherCollateralizedMembergs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2022-12-310000886982gs:OtherCollateralizedMemberus-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2022-12-310000886982gs:OtherCollateralizedMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2022-12-310000886982gs:OtherCollateralizedMembergs:InternallyRatedLoansMember2022-12-310000886982gs:InstallmentLoansMembergs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2022-12-310000886982gs:InstallmentLoansMemberus-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2022-12-310000886982gs:InstallmentLoansMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2022-12-310000886982gs:InstallmentLoansMembergs:InternallyRatedLoansMember2022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMemberus-gaap:CreditCardReceivablesMember2022-12-310000886982us-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMemberus-gaap:CreditCardReceivablesMember2022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMemberus-gaap:CreditCardReceivablesMember2022-12-310000886982gs:InternallyRatedLoansMemberus-gaap:CreditCardReceivablesMember2022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMembergs:OtherLoansMember2022-12-310000886982us-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMembergs:OtherLoansMember2022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMembergs:OtherLoansMember2022-12-310000886982gs:InternallyRatedLoansMembergs:OtherLoansMember2022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMembergs:SecuredLoansAndLeasesReceivableMember2022-01-012022-12-310000886982us-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMembergs:SecuredLoansAndLeasesReceivableMember2022-01-012022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMembergs:SecuredLoansAndLeasesReceivableMember2022-01-012022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMembergs:SecuredLoansAndLeasesReceivableMember2022-01-012022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMembergs:UnsecuredLoansAndLeasesReceivableMember2022-01-012022-12-310000886982us-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMembergs:UnsecuredLoansAndLeasesReceivableMember2022-01-012022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMembergs:UnsecuredLoansAndLeasesReceivableMember2022-01-012022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMembergs:UnsecuredLoansAndLeasesReceivableMember2022-01-012022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMemberus-gaap:InternalInvestmentGradeMembergs:InternallyRatedLoansMember2022-01-012022-12-310000886982us-gaap:InternalNoninvestmentGradeMembergs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2022-01-012022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:OtherMetricsUnratedMembergs:InternallyRatedLoansMember2022-01-012022-12-310000886982gs:LoansReceivableAndRelatedLendingCommitmentsMembergs:InternallyRatedLoansMember2022-01-012022-12-310000886982gs:CorporateLoansMemberus-gaap:InternalInvestmentGradeMember2023-06-300000886982us-gaap:InternalNoninvestmentGradeMembergs:CorporateLoansMember2023-06-300000886982gs:UnratedMembergs:CorporateLoansMember2023-06-300000886982gs:CorporateLoansMember2023-06-300000886982gs:CommercialRealEstateLoansMemberus-gaap:InternalInvestmentGradeMember2023-06-300000886982us-gaap:InternalNoninvestmentGradeMembergs:CommercialRealEstateLoansMember2023-06-300000886982gs:UnratedMembergs:CommercialRealEstateLoansMember2023-06-300000886982gs:CommercialRealEstateLoansMember2023-06-300000886982gs:ResidentialRealEstateLoansMemberus-gaap:InternalInvestmentGradeMember2023-06-300000886982gs:ResidentialRealEstateLoansMemberus-gaap:InternalNoninvestmentGradeMember2023-06-300000886982gs:UnratedMembergs:ResidentialRealEstateLoansMember2023-06-300000886982gs:ResidentialRealEstateLoansMember2023-06-300000886982gs:SecuritiesBasedMemberus-gaap:InternalInvestmentGradeMember2023-06-300000886982gs:SecuritiesBasedMemberus-gaap:InternalNoninvestmentGradeMember2023-06-300000886982gs:UnratedMembergs:SecuritiesBasedMember2023-06-300000886982gs:SecuritiesBasedMember2023-06-300000886982gs:OtherCollateralizedMemberus-gaap:InternalInvestmentGradeMember2023-06-300000886982us-gaap:InternalNoninvestmentGradeMembergs:OtherCollateralizedMember2023-06-300000886982gs:UnratedMembergs:OtherCollateralizedMember2023-06-300000886982gs:OtherCollateralizedMember2023-06-300000886982gs:OtherLoansMemberus-gaap:InternalInvestmentGradeMember2023-06-300000886982us-gaap:InternalNoninvestmentGradeMembergs:OtherLoansMember2023-06-300000886982gs:UnratedMembergs:OtherLoansMember2023-06-300000886982gs:OtherLoansMember2023-06-300000886982gs:AllClassesExceptConsumerMemberus-gaap:InternalInvestmentGradeMember2023-06-300000886982gs:AllClassesExceptConsumerMemberus-gaap:InternalNoninvestmentGradeMember2023-06-300000886982gs:UnratedMembergs:AllClassesExceptConsumerMember2023-06-300000886982gs:AllClassesExceptConsumerMember2023-06-300000886982us-gaap:InternalInvestmentGradeMember2023-06-300000886982us-gaap:InternalNoninvestmentGradeMember2023-06-300000886982gs:UnratedMember2023-06-300000886982gs:CorporateLoansMemberus-gaap:InternalInvestmentGradeMember2022-12-310000886982us-gaap:InternalNoninvestmentGradeMembergs:CorporateLoansMember2022-12-310000886982gs:UnratedMembergs:CorporateLoansMember2022-12-310000886982gs:CorporateLoansMember2022-12-310000886982gs:CommercialRealEstateLoansMemberus-gaap:InternalInvestmentGradeMember2022-12-310000886982us-gaap:InternalNoninvestmentGradeMembergs:CommercialRealEstateLoansMember2022-12-310000886982gs:UnratedMembergs:CommercialRealEstateLoansMember2022-12-310000886982gs:CommercialRealEstateLoansMember2022-12-310000886982gs:ResidentialRealEstateLoansMemberus-gaap:InternalInvestmentGradeMember2022-12-310000886982gs:ResidentialRealEstateLoansMemberus-gaap:InternalNoninvestmentGradeMember2022-12-310000886982gs:UnratedMembergs:ResidentialRealEstateLoansMember2022-12-310000886982gs:ResidentialRealEstateLoansMember2022-12-310000886982gs:SecuritiesBasedMemberus-gaap:InternalInvestmentGradeMember2022-12-310000886982gs:SecuritiesBasedMemberus-gaap:InternalNoninvestmentGradeMember2022-12-310000886982gs:UnratedMembergs:SecuritiesBasedMember2022-12-310000886982gs:SecuritiesBasedMember2022-12-310000886982gs:OtherCollateralizedMemberus-gaap:InternalInvestmentGradeMember2022-12-310000886982us-gaap:InternalNoninvestmentGradeMembergs:OtherCollateralizedMember2022-12-310000886982gs:UnratedMembergs:OtherCollateralizedMember2022-12-310000886982gs:OtherCollateralizedMember2022-12-310000886982gs:OtherLoansMemberus-gaap:InternalInvestmentGradeMember2022-12-310000886982us-gaap:InternalNoninvestmentGradeMembergs:OtherLoansMember2022-12-310000886982gs:UnratedMembergs:OtherLoansMember2022-12-310000886982gs:OtherLoansMember2022-12-310000886982gs:AllClassesExceptConsumerMemberus-gaap:InternalInvestmentGradeMember2022-12-310000886982gs:AllClassesExceptConsumerMemberus-gaap:InternalNoninvestmentGradeMember2022-12-310000886982gs:UnratedMembergs:AllClassesExceptConsumerMember2022-12-310000886982gs:AllClassesExceptConsumerMember2022-12-310000886982us-gaap:InternalInvestmentGradeMember2022-12-310000886982us-gaap:InternalNoninvestmentGradeMember2022-12-310000886982gs:UnratedMember2022-12-310000886982gs:InstallmentLoansMembergs:FicoScoreGreaterThan660Memberexch:FICO2023-06-300000886982gs:InstallmentLoansMembergs:FicoScoreLessThan600Memberexch:FICO2023-06-300000886982gs:InstallmentLoansMemberexch:FICO2023-06-300000886982gs:FicoScoreGreaterThan660Memberus-gaap:CreditCardReceivablesMemberexch:FICO2023-06-300000886982gs:FicoScoreLessThan600Memberus-gaap:CreditCardReceivablesMemberexch:FICO2023-06-300000886982us-gaap:CreditCardReceivablesMemberexch:FICO2023-06-300000886982gs:FicoScoreGreaterThan660Memberexch:FICO2023-06-300000886982gs:FicoScoreLessThan600Memberexch:FICO2023-06-300000886982exch:FICO2023-06-300000886982gs:InstallmentLoansMembergs:FicoScoreGreaterThan660Memberexch:FICO2023-01-012023-06-300000886982gs:InstallmentLoansMembergs:FicoScoreLessThan600Memberexch:FICO2023-01-012023-06-300000886982gs:InstallmentLoansMemberexch:FICO2023-01-012023-06-300000886982gs:FicoScoreGreaterThan660Memberus-gaap:CreditCardReceivablesMemberexch:FICO2023-01-012023-06-300000886982gs:FicoScoreLessThan600Memberus-gaap:CreditCardReceivablesMemberexch:FICO2023-01-012023-06-300000886982us-gaap:CreditCardReceivablesMemberexch:FICO2023-01-012023-06-300000886982gs:FicoScoreGreaterThan660Memberexch:FICO2023-01-012023-06-300000886982gs:FicoScoreLessThan600Memberexch:FICO2023-01-012023-06-300000886982exch:FICO2023-01-012023-06-300000886982gs:InstallmentLoansMembergs:FicoScoreGreaterThan660Memberexch:FICO2022-12-310000886982gs:InstallmentLoansMembergs:FicoScoreLessThan600Memberexch:FICO2022-12-310000886982gs:InstallmentLoansMemberexch:FICO2022-12-310000886982gs:FicoScoreGreaterThan660Memberus-gaap:CreditCardReceivablesMemberexch:FICO2022-12-310000886982gs:FicoScoreLessThan600Memberus-gaap:CreditCardReceivablesMemberexch:FICO2022-12-310000886982us-gaap:CreditCardReceivablesMemberexch:FICO2022-12-310000886982gs:FicoScoreGreaterThan660Memberexch:FICO2022-12-310000886982gs:FicoScoreLessThan600Memberexch:FICO2022-12-310000886982exch:FICO2022-12-310000886982gs:InstallmentLoansMembergs:FicoScoreGreaterThan660Memberexch:FICO2022-01-012022-12-310000886982gs:InstallmentLoansMembergs:FicoScoreLessThan600Memberexch:FICO2022-01-012022-12-310000886982gs:InstallmentLoansMemberexch:FICO2022-01-012022-12-310000886982gs:FicoScoreGreaterThan660Memberus-gaap:CreditCardReceivablesMemberexch:FICO2022-01-012022-12-310000886982gs:FicoScoreLessThan600Memberus-gaap:CreditCardReceivablesMemberexch:FICO2022-01-012022-12-310000886982us-gaap:CreditCardReceivablesMemberexch:FICO2022-01-012022-12-310000886982gs:FicoScoreGreaterThan660Memberexch:FICO2022-01-012022-12-310000886982gs:FicoScoreLessThan600Memberexch:FICO2022-01-012022-12-310000886982exch:FICO2022-01-012022-12-310000886982gs:CorporateLoansMembersrt:AmericasMember2023-01-012023-06-300000886982gs:CorporateLoansMemberus-gaap:EMEAMember2023-01-012023-06-300000886982srt:AsiaMembergs:CorporateLoansMember2023-01-012023-06-300000886982gs:CommercialRealEstateLoansMembersrt:AmericasMember2023-01-012023-06-300000886982gs:CommercialRealEstateLoansMemberus-gaap:EMEAMember2023-01-012023-06-300000886982srt:AsiaMembergs:CommercialRealEstateLoansMember2023-01-012023-06-300000886982gs:CommercialRealEstateLoansMember2023-01-012023-06-300000886982gs:ResidentialRealEstateLoansMembersrt:AmericasMember2023-01-012023-06-300000886982us-gaap:EMEAMembergs:ResidentialRealEstateLoansMember2023-01-012023-06-300000886982srt:AsiaMembergs:ResidentialRealEstateLoansMember2023-01-012023-06-300000886982gs:ResidentialRealEstateLoansMember2023-01-012023-06-300000886982srt:AmericasMembergs:SecuritiesBasedMember2023-01-012023-06-300000886982us-gaap:EMEAMembergs:SecuritiesBasedMember2023-01-012023-06-300000886982srt:AsiaMembergs:SecuritiesBasedMember2023-01-012023-06-300000886982gs:SecuritiesBasedMember2023-01-012023-06-300000886982gs:OtherCollateralizedMembersrt:AmericasMember2023-01-012023-06-300000886982gs:OtherCollateralizedMemberus-gaap:EMEAMember2023-01-012023-06-300000886982srt:AsiaMembergs:OtherCollateralizedMember2023-01-012023-06-300000886982gs:InstallmentLoansMember2023-06-300000886982gs:InstallmentLoansMembersrt:AmericasMember2023-01-012023-06-300000886982gs:InstallmentLoansMemberus-gaap:EMEAMember2023-01-012023-06-300000886982srt:AsiaMembergs:InstallmentLoansMember2023-01-012023-06-300000886982gs:InstallmentLoansMember2023-01-012023-06-300000886982srt:AmericasMemberus-gaap:CreditCardReceivablesMember2023-01-012023-06-300000886982us-gaap:EMEAMemberus-gaap:CreditCardReceivablesMember2023-01-012023-06-300000886982srt:AsiaMemberus-gaap:CreditCardReceivablesMember2023-01-012023-06-300000886982us-gaap:CreditCardReceivablesMember2023-01-012023-06-300000886982srt:AmericasMembergs:OtherLoansMember2023-01-012023-06-300000886982us-gaap:EMEAMembergs:OtherLoansMember2023-01-012023-06-300000886982srt:AsiaMembergs:OtherLoansMember2023-01-012023-06-300000886982srt:AmericasMember2023-01-012023-06-300000886982us-gaap:EMEAMember2023-01-012023-06-300000886982srt:AsiaMember2023-01-012023-06-300000886982gs:CorporateLoansMembersrt:AmericasMember2022-01-012022-12-310000886982gs:CorporateLoansMemberus-gaap:EMEAMember2022-01-012022-12-310000886982srt:AsiaMembergs:CorporateLoansMember2022-01-012022-12-310000886982gs:CorporateLoansMember2022-01-012022-12-310000886982gs:CommercialRealEstateLoansMembersrt:AmericasMember2022-01-012022-12-310000886982gs:CommercialRealEstateLoansMemberus-gaap:EMEAMember2022-01-012022-12-310000886982srt:AsiaMembergs:CommercialRealEstateLoansMember2022-01-012022-12-310000886982gs:CommercialRealEstateLoansMember2022-01-012022-12-310000886982gs:ResidentialRealEstateLoansMembersrt:AmericasMember2022-01-012022-12-310000886982us-gaap:EMEAMembergs:ResidentialRealEstateLoansMember2022-01-012022-12-310000886982srt:AsiaMembergs:ResidentialRealEstateLoansMember2022-01-012022-12-310000886982gs:ResidentialRealEstateLoansMember2022-01-012022-12-310000886982srt:AmericasMembergs:SecuritiesBasedMember2022-01-012022-12-310000886982us-gaap:EMEAMembergs:SecuritiesBasedMember2022-01-012022-12-310000886982srt:AsiaMembergs:SecuritiesBasedMember2022-01-012022-12-310000886982gs:SecuritiesBasedMember2022-01-012022-12-310000886982gs:OtherCollateralizedMembersrt:AmericasMember2022-01-012022-12-310000886982gs:OtherCollateralizedMemberus-gaap:EMEAMember2022-01-012022-12-310000886982srt:AsiaMembergs:OtherCollateralizedMember2022-01-012022-12-310000886982gs:OtherCollateralizedMember2022-01-012022-12-310000886982gs:InstallmentLoansMember2022-12-310000886982gs:InstallmentLoansMembersrt:AmericasMember2022-01-012022-12-310000886982gs:InstallmentLoansMemberus-gaap:EMEAMember2022-01-012022-12-310000886982srt:AsiaMembergs:InstallmentLoansMember2022-01-012022-12-310000886982gs:InstallmentLoansMember2022-01-012022-12-310000886982srt:AmericasMemberus-gaap:CreditCardReceivablesMember2022-01-012022-12-310000886982us-gaap:EMEAMemberus-gaap:CreditCardReceivablesMember2022-01-012022-12-310000886982srt:AsiaMemberus-gaap:CreditCardReceivablesMember2022-01-012022-12-310000886982us-gaap:CreditCardReceivablesMember2022-01-012022-12-310000886982srt:AmericasMembergs:OtherLoansMember2022-01-012022-12-310000886982us-gaap:EMEAMembergs:OtherLoansMember2022-01-012022-12-310000886982srt:AsiaMembergs:OtherLoansMember2022-01-012022-12-310000886982gs:OtherLoansMember2022-01-012022-12-310000886982srt:AmericasMember2022-01-012022-12-310000886982us-gaap:EMEAMember2022-01-012022-12-310000886982srt:AsiaMember2022-01-012022-12-310000886982gs:TechnologyMediaTelecommunicationsMember2023-01-012023-06-300000886982gs:DiversifiedIndustrialsMember2023-01-012023-06-300000886982us-gaap:HealthCareMember2023-01-012023-06-300000886982gs:ConsumerAndRetailMember2023-01-012023-06-300000886982gs:TechnologyMediaTelecommunicationsMember2022-01-012022-12-310000886982gs:DiversifiedIndustrialsMember2022-01-012022-12-310000886982us-gaap:RealEstateMember2022-01-012022-12-310000886982us-gaap:HealthCareMember2022-01-012022-12-310000886982gs:ConsumerAndRetailMember2022-01-012022-12-310000886982gs:CorporateLoansMembergs:FinancialAsset30To89DaysPastDueMember2023-06-300000886982gs:CorporateLoansMemberus-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2023-06-300000886982us-gaap:FinancialAssetPastDueMembergs:CorporateLoansMember2023-06-300000886982gs:CommercialRealEstateLoansMembergs:FinancialAsset30To89DaysPastDueMember2023-06-300000886982gs:CommercialRealEstateLoansMemberus-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2023-06-300000886982gs:CommercialRealEstateLoansMemberus-gaap:FinancialAssetPastDueMember2023-06-300000886982gs:ResidentialRealEstateLoansMembergs:FinancialAsset30To89DaysPastDueMember2023-06-300000886982gs:ResidentialRealEstateLoansMemberus-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2023-06-300000886982us-gaap:FinancialAssetPastDueMembergs:ResidentialRealEstateLoansMember2023-06-300000886982gs:OtherCollateralizedMembergs:FinancialAsset30To89DaysPastDueMember2023-06-300000886982gs:OtherCollateralizedMemberus-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2023-06-300000886982us-gaap:FinancialAssetPastDueMembergs:OtherCollateralizedMember2023-06-300000886982gs:InstallmentLoansMembergs:FinancialAsset30To89DaysPastDueMember2023-06-300000886982gs:InstallmentLoansMemberus-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2023-06-300000886982gs:InstallmentLoansMemberus-gaap:FinancialAssetPastDueMember2023-06-300000886982gs:FinancialAsset30To89DaysPastDueMemberus-gaap:CreditCardReceivablesMember2023-06-300000886982us-gaap:CreditCardReceivablesMemberus-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2023-06-300000886982us-gaap:FinancialAssetPastDueMemberus-gaap:CreditCardReceivablesMember2023-06-300000886982gs:FinancialAsset30To89DaysPastDueMembergs:OtherLoansMember2023-06-300000886982gs:OtherLoansMemberus-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2023-06-300000886982us-gaap:FinancialAssetPastDueMembergs:OtherLoansMember2023-06-300000886982gs:FinancialAsset30To89DaysPastDueMember2023-06-300000886982us-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2023-06-300000886982us-gaap:FinancialAssetPastDueMember2023-06-300000886982gs:CorporateLoansMembergs:FinancialAsset30To89DaysPastDueMember2022-12-310000886982gs:CorporateLoansMemberus-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2022-12-310000886982us-gaap:FinancialAssetPastDueMembergs:CorporateLoansMember2022-12-310000886982gs:CommercialRealEstateLoansMembergs:FinancialAsset30To89DaysPastDueMember2022-12-310000886982gs:CommercialRealEstateLoansMemberus-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2022-12-310000886982gs:CommercialRealEstateLoansMemberus-gaap:FinancialAssetPastDueMember2022-12-310000886982gs:ResidentialRealEstateLoansMembergs:FinancialAsset30To89DaysPastDueMember2022-12-310000886982gs:ResidentialRealEstateLoansMemberus-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2022-12-310000886982us-gaap:FinancialAssetPastDueMembergs:ResidentialRealEstateLoansMember2022-12-310000886982gs:FinancialAsset30To89DaysPastDueMembergs:SecuritiesBasedMember2022-12-310000886982gs:SecuritiesBasedMemberus-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2022-12-310000886982us-gaap:FinancialAssetPastDueMembergs:SecuritiesBasedMember2022-12-310000886982gs:OtherCollateralizedMembergs:FinancialAsset30To89DaysPastDueMember2022-12-310000886982gs:OtherCollateralizedMemberus-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2022-12-310000886982us-gaap:FinancialAssetPastDueMembergs:OtherCollateralizedMember2022-12-310000886982gs:InstallmentLoansMembergs:FinancialAsset30To89DaysPastDueMember2022-12-310000886982gs:InstallmentLoansMemberus-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2022-12-310000886982gs:InstallmentLoansMemberus-gaap:FinancialAssetPastDueMember2022-12-310000886982gs:FinancialAsset30To89DaysPastDueMemberus-gaap:CreditCardReceivablesMember2022-12-310000886982us-gaap:CreditCardReceivablesMemberus-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2022-12-310000886982us-gaap:FinancialAssetPastDueMemberus-gaap:CreditCardReceivablesMember2022-12-310000886982gs:FinancialAsset30To89DaysPastDueMembergs:OtherLoansMember2022-12-310000886982gs:OtherLoansMemberus-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2022-12-310000886982us-gaap:FinancialAssetPastDueMembergs:OtherLoansMember2022-12-310000886982gs:FinancialAsset30To89DaysPastDueMember2022-12-310000886982us-gaap:FinancingReceivablesEqualToGreaterThan90DaysPastDueMember2022-12-310000886982us-gaap:FinancialAssetPastDueMember2022-12-310000886982gs:FinancialAssetEqualToOrGreaterThan30DaysPastDueMember2023-06-300000886982gs:FinancialAssetEqualToOrGreaterThan30DaysPastDueMember2022-12-310000886982gs:WholesaleAndConsumerLoansMember2022-12-310000886982gs:CorporateAndCommercialRealEstateLoansMember2023-04-012023-06-300000886982gs:CorporateAndCommercialRealEstateLoansMember2023-01-012023-06-300000886982gs:CorporateLoansMemberus-gaap:CommercialPortfolioSegmentMember2023-06-300000886982gs:CorporateLoansMemberus-gaap:CommercialPortfolioSegmentMember2022-12-310000886982gs:CommercialRealEstateLoansMemberus-gaap:CommercialPortfolioSegmentMember2023-06-300000886982gs:CommercialRealEstateLoansMemberus-gaap:CommercialPortfolioSegmentMember2022-12-310000886982gs:ResidentialRealEstateLoansMemberus-gaap:CommercialPortfolioSegmentMember2023-06-300000886982gs:ResidentialRealEstateLoansMemberus-gaap:CommercialPortfolioSegmentMember2022-12-310000886982us-gaap:CommercialPortfolioSegmentMembergs:SecuritiesBasedMember2023-06-300000886982us-gaap:CommercialPortfolioSegmentMembergs:SecuritiesBasedMember2022-12-310000886982gs:OtherCollateralizedMemberus-gaap:CommercialPortfolioSegmentMember2023-06-300000886982gs:OtherCollateralizedMemberus-gaap:CommercialPortfolioSegmentMember2022-12-310000886982us-gaap:CommercialPortfolioSegmentMembergs:OtherLoansMember2023-06-300000886982us-gaap:CommercialPortfolioSegmentMembergs:OtherLoansMember2022-12-310000886982gs:InstallmentLoansMemberus-gaap:ConsumerPortfolioSegmentMember2023-06-300000886982gs:InstallmentLoansMemberus-gaap:ConsumerPortfolioSegmentMember2022-12-310000886982us-gaap:ConsumerPortfolioSegmentMemberus-gaap:CreditCardReceivablesMember2023-06-300000886982us-gaap:ConsumerPortfolioSegmentMemberus-gaap:CreditCardReceivablesMember2022-12-310000886982gs:CommercialAndConsumerPortfolioSegmentMember2023-06-300000886982gs:CommercialAndConsumerPortfolioSegmentMember2022-12-310000886982us-gaap:CommercialPortfolioSegmentMember2023-06-300000886982us-gaap:CommercialPortfolioSegmentMember2022-12-310000886982us-gaap:CommercialPortfolioSegmentMember2023-03-310000886982us-gaap:ConsumerPortfolioSegmentMember2023-03-310000886982us-gaap:CommercialPortfolioSegmentMember2023-04-012023-06-300000886982us-gaap:ConsumerPortfolioSegmentMember2023-04-012023-06-300000886982us-gaap:ConsumerPortfolioSegmentMember2023-06-300000886982us-gaap:CommercialPortfolioSegmentMember