June 2026Preliminary Pricing Supplement filed pursuant to Rule 424(b)(2) dated June 15, 2026 / Registration Statement No. 333-284538STRUCTURED INVESTMENTSOpportunities in U.S. and International EquitiesThe information in this preliminary pricing supplement is not complete and may be changed. This preliminary pricing supplementis not an offer to sell nor does it seek an offer to buy these securities in any jurisdiction where the offer or sale is not permitted. GS Finance Corp. PLUS Based on the Value of a Basket of Underlying Stocks due July 13, 2027 Principal at Risk Securities The Performance Leveraged Upside SecuritiesSM Finance Corp. and guaranteed by The Goldman Sachs Group, Inc.The amount that you will be paid on your PLUS atstated maturity is based on the performance of an equally weighted basket composed of the common stock or Americandepositary shares of 10 companies, as measured from the pricing date to and including the valuation date. The initial basket value is 100, and the final basket value (the basket closing value on the valuation date) will equal thesumofthe products, as calculated separately for each underlying stock, of: (i) the closing value of such underlying stock on thevaluation datemultipliedby (ii) its multiplier. The multiplier will equal, for each underlying stock, thequotientof (i) the weightingof such underlying stockmultipliedby 100dividedby (ii) its initial basket component value. equal to theproductof the leverage factormultipliedby the basket percent increase (the percentage increase in the finalbasket value from the initial basket value), subject to the maximum payment at maturity.If the final basket valueless thanthe initial basket value, you will lose a portion of your investment. Declines in one or more underlying stocks may offsetincreases in the other underlying stocks. payment at maturity, are willing to forgo interest payments and are willing to risk losing their entire investment if the final basketvalue has declined from the initial basket value. * Morgan Stanley Wealth Management, acting as dealer for the offering, will receive a selling concession of $15.00 for each PLUS it sells. Ithas informed us that it intends to internally allocate $5.00 of the selling concession for each PLUS as a structuring fee.Your investment in the PLUS involves certain risks, including the credit risk of GS Finance Corp. and The GoldmanSachs Group, Inc. See page PS-9.You should read the disclosure herein to better understand the terms and risks of yourinvestment. Neither the Securities and Exchange Commission nor any other regulatory body has approved or disapproved ofthese securities or passed upon the accuracy or adequacy of this prospectus. Any representation to the contrary is acriminal offense. The PLUS are not bank deposits and are not insured by the Federal Deposit Insurance Corporation or any othergovernmental agency, nor are they obligations of, or guaranteed by, a bank.Goldman Sachs & Co. LLC The issue price, underwriting discount and net proceeds listed on the cover page relate to the PLUS we sell initially. We maydecide to sell additional PLUS after the date of this pricing supplement, at issue prices and with underwriting discounts and netproceeds that differ from the amounts set forth above. The return (whether positive or negative) on your investment in the GS Finance Corp. may use this prospectus in the initial sale of the PLUS. In addition, Goldman Sachs & Co. LLC or any otheraffiliate of GS Finance Corp. may use this prospectus in a market-making transaction in a PLUS after its initial sale.Unless GSFinance Corp. or its agent informs the purchaser otherwise in the confirmation of sale, thisprospectus is being usedin a market-making transaction. Estimated Value of Your PLUS The estimated value of your PLUS at the time the terms of your PLUS are set on the pricing date (as determined byreference to pricing models used by Goldman Sachs & Co. LLC (GS&Co.) and taking into account our credit spreads) isexpected to be in the range (the estimated value range) specified on the cover of this pricing supplement (per $1,000principal amount), which is less than the original issue price. The value of your PLUS at any time will reflect many factorsand cannot be predicted; however, the price (not including GS&Co.’s customary bid and ask spreads) at which GS&Co.would initially buy or sell PLUS (if it makes a market, which it is not obligated to do) and the value that GS&Co. will initiallyuse for account statements and otherwise is equal to approximately the estimated value of your PLUS at the time of pricing, The price (not including GS&Co.’s customary bid and ask spreads) at which GS&Co. would buy or sell your PLUS (if itmakes a market, which it is not obligated to do) will equal approximately the sum of (a) the then-current estimated value ofyour PLUS (as determined by reference to GS&Co.’s pricing models) plus (b) any remaining additional amount (theadditional amou