The Goldman Sachs Group Inc.

05/31/2023 | Press release | Distributed by Public on 05/31/2023 13:22

Primary Offering Prospectus - Form 424B2

Filed Pursuant to Rule 424(b)(2)

Registration Statement No. 333-269296

GS Finance Corp.

$4,160,000

S&P 500® Index-Linked Notes due 2024

guaranteed by

The Goldman Sachs Group, Inc.

The notes do not bear interest. The amount that you will be paid on your notes on the stated maturity date (May 30, 2024) is based on the performance of the S&P 500® Index as measured from the trade date (May 26, 2023) to and including the determination date (May 28, 2024), and whether a trigger event has occurred. A trigger event will occur if, on any day during the observation period (the period from but excluding the trade date to and including the determination date), the closing level of the index (i) decreases by more than 20% or (ii) increases by more than 10%, in each case from the initial index level. The initial index level is 4,205.45 (which is an intra-day level or the closing level of the index on the trade date).

If a trigger event has not occurred, the return on your notes will be positive and you will receive the threshold settlement amount of $1,227 for each $1,000 face amount of your notes.

If a trigger event has occurred, you will receive the face amount of your notes.

A purchaser of these notes in the secondary market should determine if a trigger event has already occurred. The occurrence of a trigger event could significantly affect both the secondary market trading price of these notes and the amount that a holder of the notes will receive at maturity. See page PS-3.

At maturity, for each $1,000 face amount of your notes, you will receive an amount in cash equal to:

If a trigger event has not occurred, the threshold settlement amount; or
If a trigger event has occurred, $1,000.

You should read the disclosure herein to better understand the terms and risks of your investment, including the credit risk of GS Finance Corp. and The Goldman Sachs Group, Inc. See page PS-11.

The estimated value of your notes at the time the terms of your notes are set on the trade date is equal to approximately $973 per $1,000 face amount. For a discussion of the estimated value and the price at which Goldman Sachs & Co. LLC would initially buy or sell your notes, if it makes a market in the notes, see the following page.

Original issue date:

June 5, 2023

Original issue price:

100% of the face amount

Underwriting discount:

0.75% of the face amount

Net proceeds to the issuer:

99.25% of the face amount

Neither the Securities and Exchange Commission nor any other regulatory body has approved or disapproved of these securities or passed upon the accuracy or adequacy of this prospectus. Any representation to the contrary is a criminal offense. The notes are not bank deposits and are not insured by the Federal Deposit Insurance Corporation or any other governmental agency, nor are they obligations of, or guaranteed by, a bank.

Goldman Sachs & Co. LLC

Pricing Supplement No. 10,249 dated May 26, 2023.

The issue price, underwriting discount and net proceeds listed above relate to the notes we sell initially. We may decide to sell additional notes after the date of this pricing supplement, at issue prices and with underwriting discounts and net proceeds that differ from the amounts set forth above. The return (whether positive or negative) on your investment in notes will depend in part on the issue price you pay for such notes.

GS Finance Corp. may use this prospectus in the initial sale of the notes. In addition, Goldman Sachs & Co. LLC or any other affiliate of GS Finance Corp. may use this prospectus in a market-making transaction in a note after its initial sale. Unless GS Finance Corp. or its agent informs the purchaser otherwise in the confirmation of sale, this prospectus is being used in a market-making transaction.

Estimated Value of Your Notes

The estimated value of your notes at the time the terms of your notes are set on the trade date (as determined by reference to pricing models used by Goldman Sachs & Co. LLC (GS&Co.) and taking into account our credit spreads) is equal to approximately $973 per $1,000 face amount, which is less than the original issue price. The value of your notes at any time will reflect many factors and 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 notes (if it makes a market, which it is not obligated to do) and the value that GS&Co. will initially use for account statements and otherwise is equal to approximately the estimated value of your notes at the time of pricing, plus an additional amount (initially equal to $17 per $1,000 face amount).

Prior to August 28, 2023, the price (not including GS&Co.'s customary bid and ask spreads) at which GS&Co. would buy or sell your notes (if it makes a market, which it is not obligated to do) will equal approximately the sum of (a) the then-current estimated value of your notes (as determined by reference to GS&Co.'s pricing models) plus (b) any remaining additional amount (the additional amount will decline to zero on a straight-line basis from the time of pricing through August 27, 2023). On and after August 28, 2023, the price (not including GS&Co.'s customary bid and ask spreads) at which GS&Co. would buy or sell your notes (if it makes a market) will equal approximately the then-current estimated value of your notes determined by reference to such pricing models.

About Your Prospectus

The notes are part of the Medium-Term Notes, Series F program of GS Finance Corp. and are fully and unconditionally guaranteed by The Goldman Sachs Group, Inc. This prospectus includes this pricing supplement and the accompanying documents listed below. This pricing supplement constitutes a supplement to the documents listed below, does not set forth all of the terms of your notes and therefore should be read in conjunction with such documents:

The information in this pricing supplement supersedes any conflicting information in the documents listed above. In addition, some of the terms or features described in the listed documents may not apply to your notes.

We refer to the notes we are offering by this pricing supplement as the "offered notes" or the "notes". Each of the offered notes has the terms described below. Please note that in this pricing supplement, references to "GS Finance Corp.", "we", "our" and "us" mean only GS Finance Corp. and do not include its subsidiaries or affiliates, references to "The Goldman Sachs Group, Inc.", our parent company, mean only The Goldman Sachs Group, Inc. and do not include its subsidiaries or affiliates and references to "Goldman Sachs" mean The Goldman Sachs Group, Inc. together with its consolidated subsidiaries and affiliates, including us. The notes will be issued under the senior debt indenture, dated as of October 10, 2008, as supplemented by the First Supplemental Indenture, dated as of February 20, 2015, each among us, as issuer, The Goldman Sachs Group, Inc., as guarantor, and The Bank of New York Mellon, as trustee. This indenture, as so supplemented and as further supplemented thereafter, is referred to as the "GSFC 2008 indenture" in the accompanying prospectus supplement.

The notes will be issued in book-entry form and represented by master note no. 3, dated March 22, 2021.

PS-2

INVESTMENT THESIS

The notes are designed for investors who:

assuming a trigger event (described below) does not occur, want to receive a positive return of 22.7%;
are willing to accept that, if a trigger event occurs, the return on the notes will be limited to 0%.

A trigger event will occur if the closing level of the index (i) declines below 80% of the initial index level or (ii) increases above 110% of the initial index level on any trading day during the observation period. The observation period is the period from but excluding the trade date to and including the determination date, as further described herein.

CONSIDERATIONS FOR SECONDARY MARKET PURCHASERS

A purchaser of these notes in the secondary market should determine if a trigger event has already occurred. The occurrence of a trigger event could affect both the secondary market trading price of these notes after a secondary market purchase and the amount a secondary market purchaser will receive at maturity. In order to determine if a trigger event has occurred, you should determine if the closing level of the index was less than 80% of the initial index level or the closing level of the index was greater than 110% of the initial index level on any date from the day after the original trade date to the determination date or the date of your purchase, if sooner. Certain financial websites make index levels publicly available, which can be helpful when determining whether a trigger event may have occurred. If you would like assistance in determining whether a trigger event has occurred, please call GS&Co. at (212) 902-0300.

PS-3

TERMS AND CONDITIONS

CUSIP / ISIN: 40057RYU6 / US40057RYU66

Company (Issuer): GS Finance Corp.

Guarantor: The Goldman Sachs Group, Inc.

Underlier: the S&P 500® Index (current Bloomberg symbol: "SPX Index"), or any successor underlier, as it may be modified, replaced or adjusted from time to time as provided herein

Face amount: $4,160,000 in the aggregate on the original issue date; the aggregate face amount may be increased if the company, at its sole option, decides to sell an additional amount on a date subsequent to the trade date.

Authorized denominations: $1,000 or any integral multiple of $1,000 in excess thereof

Principal amount: On the stated maturity date, the company will pay, for each $1,000 of the outstanding face amount, an amount in cash equal to the cash settlement amount.

Cash settlement amount:

if a trigger event has not occurred, the threshold settlement amount; or
if a trigger event has occurred, $1,000.

Initial underlier level: 4,205.45, which is an intra-day level or the closing level of the underlier on the trade date

Final underlier level: the closing level of the underlier on the determination date, subject to adjustment as provided in "- Consequences of a market disruption event or non-trading day" and "- Discontinuance or modification of the underlier" below

Threshold settlement amount: $1,227

Trigger event: on any trading day during the observation period, (i) the closing level of the underlier is less than the lower barrier or (ii) the closing level of the underlier is greater than the upper barrier

Lower barrier: 80% of the initial underlier level

Upper barrier: 110% of the initial underlier level

Observation period: the period from but excluding the trade date to and including the determination date, excluding any date or dates on which the calculation agent determines that a market disruption event occurs or is continuing or that the calculation agent determines is not a trading day. Notwithstanding the immediately preceding sentence, if the calculation agent determines that a market disruption event occurs or is continuing on the last day of the observation period (i.e., the determination date) or that day is not otherwise a trading day, the determination date, and therefore the last day for the observation period, will be postponed as described under "- Determination date" below.

Trade date: May 26, 2023

Original issue date: June 5, 2023

Determination date: May 28, 2024, unless the calculation agent determines that a market disruption event occurs or is continuing on such day or such day is not a trading day. In that event, the determination date will be the first following trading day on which the calculation agent determines that a market disruption event does not occur and is not continuing. However, the determination date will not be postponed to a date later than the originally scheduled stated maturity date or, if the originally scheduled stated maturity date is not a business day, later than the first business day after the originally scheduled stated maturity date. If a market disruption event occurs or is continuing on the day that is the last possible determination date or such last possible day is not a trading day, that day will nevertheless be the determination date.

Stated maturity date: May 30, 2024, unless that day is not a business day, in which case the stated maturity date will be postponed to the next following business day. The stated maturity date will also be postponed if the determination date is postponed as described under "- Determination date" above. In such a case, the stated maturity date will be postponed by the same number of business day(s) from but excluding the originally scheduled determination date to and including the actual determination date.

PS-4

Closing level: for any given trading day, the official closing level of the underlier or any successor underlier published by the underlier sponsor on such trading day

Trading day: a day on which the respective principal securities markets for all of the underlier stocks are open for trading, the underlier sponsor is open for business and the underlier is calculated and published by the underlier sponsor

Successor underlier: any substitute underlier approved by the calculation agent as a successor underlier as provided under "- Discontinuance or modification of the underlier" below

Underlier sponsor: at any time, the person or entity, including any successor sponsor, that determines and publishes the underlier as then in effect. The notes are not sponsored, endorsed, sold or promoted by the underlier sponsor or any of its affiliates and the underlier sponsor and its affiliates make no representation regarding the advisability of investing in the notes.

Underlier stocks: at any time, the stocks that comprise the underlier as then in effect, after giving effect to any additions, deletions or substitutions

Market disruption event: With respect to any given trading day, any of the following will be a market disruption event with respect to the underlier:

a suspension, absence or material limitation of trading in underlier stocks constituting 20% or more, by weight, of the underlier on their respective primary markets, in each case for more than two consecutive hours of trading or during the one-half hour before the close of trading in that market, as determined by the calculation agent in its sole discretion,
a suspension, absence or material limitation of trading in option or futures contracts relating to the underlier or to underlier stocks constituting 20% or more, by weight, of the underlier in the respective primary markets for those contracts, in each case for more than two consecutive hours of trading or during the one-half hour before the close of trading in that market, as determined by the calculation agent in its sole discretion, or
underlier stocks constituting 20% or more, by weight, of the underlier, or option or futures contracts, if available, relating to the underlier or to underlier stocks constituting 20% or more, by weight, of the underlier do not trade on what were the respective primary markets for those underlier stocks or contracts, as determined by the calculation agent in its sole discretion,

and, in the case of any of these events, the calculation agent determines in its sole discretion that such event could materially interfere with the ability of the company or any of its affiliates or a similarly situated person to unwind all or a material portion of a hedge that could be effected with respect to this note.

The following events will not be market disruption events:

a limitation on the hours or numbers of days of trading, but only if the limitation results from an announced change in the regular business hours of the relevant market, and
a decision to permanently discontinue trading in option or futures contracts relating to the underlier or to any underlier stock.

For this purpose, an "absence of trading" in the primary securities market on which an underlier stock is traded, or on which option or futures contracts relating to the underlier or an underlier stock are traded, will not include any time when that market is itself closed for trading under ordinary circumstances. In contrast, a suspension or limitation of trading in an underlier stock or in option or futures contracts, if available, relating to the underlier or an underlier stock in the primary market for that stock or those contracts, by reason of:

a price change exceeding limits set by that market,
an imbalance of orders relating to that underlier stock or those contracts, or
a disparity in bid and ask quotes relating to that underlier stock or those contracts,

will constitute a suspension or material limitation of trading in that stock or those contracts in that market.

Consequences of a market disruption event or a non-trading day: If a market disruption event occurs or is continuing on a day that would otherwise be the determination date, or such day is not a trading day, then the determination date will be postponed as described under "- Determination date" above.

If the calculation agent determines that the closing level of the underlier that must be used to determine the cash settlement amount is not available on the last possible determination date because of a market disruption event, a non-trading day or for any other reason (other than as described under "- Discontinuance or modification of the

PS-5

underlier" below), the calculation agent will nevertheless determine the closing level of the underlier based on its assessment, made in its sole discretion, of the level of the underlier on that day.

Discontinuance or modification of the underlier: If the underlier sponsor discontinues publication of the underlier and the underlier sponsor or any other person or entity publishes a substitute underlier that the calculation agent determines is comparable to the underlier and approves as a successor underlier, or if the calculation agent designates a substitute underlier, then the calculation agent will determine the amount payable on the stated maturity date by reference to such successor underlier.

If the calculation agent determines that the publication of the underlier is discontinued and there is no successor underlier, the calculation agent will determine the amount payable on the stated maturity date by a computation methodology that the calculation agent determines will as closely as reasonably possible replicate the underlier.

If the calculation agent determines that (i) the underlier, the underlier stocks or the method of calculating the underlier is changed at any time in any respect - including any addition, deletion or substitution and any reweighting or rebalancing of the underlier or the underlier stocks and whether the change is made by the underlier sponsor under its existing policies or following a modification of those policies, is due to the publication of a successor underlier, is due to events affecting one or more of the underlier stocks or their issuers or is due to any other reason - and is not otherwise reflected in the level of the underlier by the underlier sponsor pursuant to the then-current underlier methodology of the underlier or (ii) there has been a split or reverse split of the underlier, then the calculation agent will be permitted (but not required) to make such adjustments in the underlier or the method of its calculation as it believes are appropriate to ensure that the levels of the underlier, used to determine the amount payable on the stated maturity date, is equitable.

All determinations and adjustments to be made by the calculation agent with respect to the underlier may be made by the calculation agent in its sole discretion. The calculation agent is not obligated to make any such adjustments.

Calculation agent: Goldman Sachs & Co. LLC ("GS&Co.")

Overdue principal rate: the effective Federal Funds rate

PS-6

HYPOTHETICAL EXAMPLES

The following examples are provided for purposes of illustration only. They should not be taken as an indication or prediction of future investment results and merely are intended to illustrate the impact that the various hypothetical underlier levels during the observation period, including on the determination date, could have on the cash settlement amount at maturity assuming all other variables remain constant.

The examples below are based on a range of underlier levels that are entirely hypothetical; the underlier level on any day throughout the life of the notes, including the final underlier level on the determination date, cannot be predicted. The underlier has been highly volatile in the past - meaning that the underlier level has changed considerably in relatively short periods - and its performance cannot be predicted for any future period.

The information in the following examples reflects hypothetical rates of return on the offered notes assuming that they are purchased on the original issue date at the face amount and held to the stated maturity date. If you sell your notes in a secondary market prior to the stated maturity date, your return will depend upon the market value of your notes at the time of sale, which may be affected by a number of factors that are not reflected in the examples below, such as interest rates, the volatility of the underlier, whether a trigger event has occurred, the creditworthiness of GS Finance Corp., as issuer, and the creditworthiness of The Goldman Sachs Group, Inc., as guarantor. In addition, the estimated value of your notes at the time the terms of your notes are set on the trade date (as determined by reference to pricing models used by GS&Co.) is less than the original issue price of your notes. For more information on the estimated value of your notes, see "Additional Risk Factors Specific to Your Notes - The Estimated Value of Your Notes At the Time the Terms of Your Notes Are Set On the Trade Date (as Determined By Reference to Pricing Models Used By GS&Co.) Is Less Than the Original Issue Price Of Your Notes" on page PS-11 of this pricing supplement. The information in the examples also reflects the key terms and assumptions in the box below.

Key Terms and Assumptions

Face amount

$1,000

Threshold settlement amount

$1,227

Upper barrier

110% of the initial underlier level

Lower barrier

80% of the initial underlier level

Neither a market disruption event nor a non-trading day occurs during the observation period, including on the originally scheduled determination date

No change in or affecting any of the underlier stocks or the method by which the underlier sponsor calculates the underlier

Notes purchased on original issue date at the face amount and held to the stated maturity date

For these reasons, the actual performance of the underlier over the life of your notes, as well as the amount payable at maturity may bear little relation to the hypothetical examples shown below or to the historical underlier levels shown elsewhere in this pricing supplement. For information about the historical levels of the underlier during recent periods, see "The Underlier - Historical Closing Levels of the Underlier" below. Before investing in the offered notes, you should consult publicly available information to determine the levels of the underlier between the date of this pricing supplement and the date of your purchase of the offered notes.

Also, the hypothetical examples shown below do not take into account the effects of applicable taxes. Because of the U.S. tax treatment applicable to your notes, tax liabilities could affect the after-tax rate of return on your notes to a comparatively greater extent than the after-tax return on the underlier stocks.

The levels in the left column of the table below represent hypothetical final underlier levels and are expressed as percentages of the initial underlier level. The amounts in the middle column represent the hypothetical cash settlement amounts, based on the corresponding hypothetical final underlier level, assuming that a trigger event does not occur (i.e., the closing level of the underlier is not less than the lower barrier or greater than the upper barrier on any trading day during the observation period), and are expressed as percentages of the face amount of a note (rounded to the nearest one-thousandth of a percent). The amounts in the right column represent the hypothetical cash settlement amounts, based on the corresponding hypothetical final underlier level, assuming that a trigger event occurs (i.e., the closing level of the underlier is less than the lower barrier or greater than the upper barrier on one or more trading days during the observation period), and are expressed as percentages of the face amount of a note (rounded to the nearest one-thousandth of a percent). Thus, a hypothetical cash settlement amount of 100.000% means that the value of the cash payment that we would deliver for each $1,000

PS-7

of the outstanding face amount of the offered notes on the stated maturity date would equal 100.000% of the face amount of a note, based on the corresponding hypothetical final underlier level and the assumptions noted above.

Hypothetical Final Underlier Level

(as Percentage of Initial Underlier Level)

Hypothetical Cash Settlement Amount

(as Percentage of Face Amount)

Trigger Event Has Not Occurred

Trigger Event Has Occurred

200.000%

N/A

100.000%

175.000%

N/A

100.000%

150.000%

N/A

100.000%

125.000%

N/A

100.000%

110.000%

122.700%

100.000%

108.000%

122.700%

100.000%

105.000%

122.700%

100.000%

100.000%

122.700%

100.000%

95.000%

122.700%

100.000%

90.000%

122.700%

100.000%

80.000%

122.700%

100.000%

60.000%

N/A

100.000%

50.000%

N/A

100.000%

25.000%

N/A

100.000%

0.000%

N/A

100.000%

If, for example, a trigger event has occurred and the final underlier level were determined to be 150.000% of the initial underlier level, the cash settlement amount that we would deliver on your notes at maturity would be 100.000% of the face amount of your notes, as shown in the table above. Additionally, if the final underlier level were determined to be 50.000% of the initial underlier level, the cash settlement amount that we would deliver on your notes at maturity would be 100.000% of the face amount of your notes, as shown in the table above.

If, for example, a trigger event has not occurred and the final underlier level were determined to be 110.000% of the initial underlier level, the cash settlement amount that we would deliver on your notes at maturity would be the threshold settlement amount, or 122.700% of each $1,000 face amount of your notes, as shown in the table above. As a result, you would not benefit from a final underlier level on the determination date that is greater than the upper barrier or less than the lower barrier.

The following chart also shows a graphical illustration of the hypothetical cash settlement amounts (expressed as a percentage of the face amount of your notes) that we would pay on your notes on the stated maturity date, if the final underlier level were any of the hypothetical levels shown on the horizontal axis. The chart shows that, if a trigger event occurs at any time during the observation period, any hypothetical final underlier level would result in a hypothetical payment amount of 100.000% for each $1,000 face amount of the note (the horizontal line that crosses the 100.000% marker on the vertical axis). The chart also shows that, if a trigger event does not occur at any time during the observation period, any hypothetical final underlier level between 80.000% and 110.000% (the section between the 80.000% and 110.000% markers on the horizontal axis) would result in a hypothetical payment amount that of 122.700% for each $1,000 face amount of the note (the horizontal line that crosses the 122.700% marker on the vertical axis).

PS-8

The cash settlement amounts shown above are entirely hypothetical; they are based on market prices for the underlier stocks that may not be achieved on the determination date and on assumptions that may prove to be erroneous. The actual market value of your notes on the stated maturity date or at any other time, including any time you may wish to sell your notes, may bear little relation to the hypothetical cash settlement amounts shown above, and these amounts should not be viewed as an indication of the financial return on an investment in the offered notes. The hypothetical cash settlement amounts on notes held to the stated maturity date in the examples above assume you purchased your notes at their face amount and have not been adjusted to reflect the actual issue price you pay for your notes. The return on your investment (whether positive or negative) in your notes will be affected by the amount you pay for your notes. If you purchase your notes for a price other than the face amount, the return on your investment will differ from, and may be significantly lower than, the hypothetical returns suggested by the above examples. Please read "Additional Risk Factors Specific to Your Notes - The Market Value of Your Notes May Be Influenced by Many Unpredictable Factors" on page PS-13.

Payments on the notes are economically equivalent to the amounts that would be paid on a combination of other instruments. For example, payments on the notes are economically equivalent to a combination of an interest-bearing bond bought by the holder and one or more options entered into between the holder and us (with one or more implicit option premiums paid over time). The discussion in this paragraph does not modify or affect the terms of the notes or the U.S. federal income tax treatment of the notes, as described elsewhere in this pricing supplement.

PS-9

We cannot predict the actual final underlier level or what the market value of your notes will be on any particular trading day, nor can we predict the relationship between the underlier level and the market value of your notes at any time prior to the stated maturity date. The actual amount that you will receive at maturity and the rate of return on the offered notes will depend on whether a trigger event has occurred and on the actual closing levels of the underlier during the observation period and the actual final underlier level determined by the calculation agent as described above. Moreover, the assumptions on which the hypothetical returns are based may turn out to be inaccurate. Consequently, the amount of cash to be paid in respect of your notes on the stated maturity date may be very different from the information reflected in the examples above.

PS-10

ADDITIONAL RISK FACTORS SPECIFIC TO YOUR NOTES

An investment in your notes is subject to the risks described below, as well as the risks and considerations described in the accompanying prospectus, in the accompanying prospectus supplement, under "Additional Risk Factors Specific to the Securities" in the accompanying underlier supplement no. 33 and under "Additional Risk Factors Specific to the Notes" in the accompanying general terms supplement no. 8,999. You should carefully review these risks and considerations as well as the terms of the notes described herein and in the accompanying prospectus, the accompanying prospectus supplement, the accompanying underlier supplement no. 33 and the accompanying general terms supplement no. 8,999. Your notes are a riskier investment than ordinary debt securities. Also, your notes are not equivalent to investing directly in the underlier stocks, i.e., the stocks comprising the underlier to which your notes are linked. You should carefully consider whether the offered notes are appropriate given your particular circumstances.

Risks Related to Structure, Valuation and Secondary Market Sales

The Estimated Value of Your Notes At the Time the Terms of Your Notes Are Set On the Trade Date (as Determined By Reference to Pricing Models Used By GS&Co.) Is Less Than the Original Issue Price Of Your Notes

The original issue price for your notes exceeds the estimated value of your notes as of the time the terms of your notes are set on the trade date, as determined by reference to GS&Co.'s pricing models and taking into account our credit spreads. Such estimated value on the trade date is set forth above under "Estimated Value of Your Notes"; after the trade date, the estimated value as determined by reference to these models will be affected by changes in market conditions, the creditworthiness of GS Finance Corp., as issuer, the creditworthiness of The Goldman Sachs Group, Inc., as guarantor, and other relevant factors. The price at which GS&Co. would initially buy or sell your notes (if GS&Co. makes a market, which it is not obligated to do), and the value that GS&Co. will initially use for account statements and otherwise, also exceeds the estimated value of your notes as determined by reference to these models. As agreed by GS&Co. and the distribution participants, this excess (i.e., the additional amount described under "Estimated Value of Your Notes") will decline to zero on a straight line basis over the period from the date hereof through the applicable date set forth above under "Estimated Value of Your Notes". Thereafter, if GS&Co. buys or sells your notes it will do so at prices that reflect the estimated value determined by reference to such pricing models at that time. The price at which GS&Co. will buy or sell your notes at any time also will reflect its then current bid and ask spread for similar sized trades of structured notes.

In estimating the value of your notes as of the time the terms of your notes are set on the trade date, as disclosed above under "Estimated Value of Your Notes", GS&Co.'s pricing models consider certain variables, including principally our credit spreads, interest rates (forecasted, current and historical rates), volatility, price-sensitivity analysis and the time to maturity of the notes. These pricing models are proprietary and rely in part on certain assumptions about future events, which may prove to be incorrect. As a result, the actual value you would receive if you sold your notes in the secondary market, if any, to others may differ, perhaps materially, from the estimated value of your notes determined by reference to our models due to, among other things, any differences in pricing models or assumptions used by others. See "- The Market Value of Your Notes May Be Influenced by Many Unpredictable Factors" below.

The difference between the estimated value of your notes as of the time the terms of your notes are set on the trade date and the original issue price is a result of certain factors, including principally the underwriting discount and commissions, the expenses incurred in creating, documenting and marketing the notes, and an estimate of the difference between the amounts we pay to GS&Co. and the amounts GS&Co. pays to us in connection with your notes. We pay to GS&Co. amounts based on what we would pay to holders of a non-structured note with a similar maturity. In return for such payment, GS&Co. pays to us the amounts we owe under your notes.

In addition to the factors discussed above, the value and quoted price of your notes at any time will reflect many factors and cannot be predicted. If GS&Co. makes a market in the notes, the price quoted by GS&Co. would reflect any changes in market conditions and other relevant factors, including any deterioration in our creditworthiness or perceived creditworthiness or the creditworthiness or perceived creditworthiness of The Goldman Sachs Group, Inc. These changes may adversely affect the value of your notes, including the price you may receive for your notes in any market making transaction. To the extent that GS&Co. makes a market in the notes, the quoted price will reflect the estimated value determined by reference to GS&Co.'s pricing models at

PS-11

that time, plus or minus its then current bid and ask spread for similar sized trades of structured notes (and subject to the declining excess amount described above).

Furthermore, if you sell your notes, you will likely be charged a commission for secondary market transactions, or the price will likely reflect a dealer discount. This commission or discount will further reduce the proceeds you would receive for your notes in a secondary market sale.

There is no assurance that GS&Co. or any other party will be willing to purchase your notes at any price and, in this regard, GS&Co. is not obligated to make a market in the notes. See "Additional Risk Factors Specific to the Notes - Your Notes May Not Have an Active Trading Market" on page S-7 of the accompanying general terms supplement no. 8,999.

The Notes Are Subject to the Credit Risk of the Issuer and the Guarantor

Although the return on the notes will be based on the performance of the underlier, the payment of any amount due on the notes is subject to the credit risk of GS Finance Corp., as issuer of the notes, and the credit risk of The Goldman Sachs Group, Inc. as guarantor of the notes. The notes are our unsecured obligations. Investors are dependent on our ability to pay all amounts due on the notes, and therefore investors are subject to our credit risk and to changes in the market's view of our creditworthiness. Similarly, investors are dependent on the ability of The Goldman Sachs Group, Inc., as guarantor of the notes, to pay all amounts due on the notes, and therefore are also subject to its credit risk and to changes in the market's view of its creditworthiness. See "Description of the Notes We May Offer - Information About Our Medium-Term Notes, Series F Program - How the Notes Rank Against Other Debt" on page S-5 of the accompanying prospectus supplement and "Description of Debt Securities We May Offer - Guarantee by The Goldman Sachs Group, Inc." on page 67 of the accompanying prospectus.

You May Receive Only the Face Amount of Your Notes at Maturity

If a trigger event has occurred, the return on your notes will be limited to the face amount.

Even if the amount paid on your notes at maturity exceeds the face amount of your notes, the overall return you earn on your notes may be less than you would have earned by investing in a note with the same stated maturity that bears interest at the prevailing market rate.

The Potential for the Value of Your Notes to Increase Will Be Limited

If a trigger event has not occurred, your ability to participate in any change in the value of the underlier over the life of your notes will be limited because of the threshold settlement amount. This means that, if a trigger event has not occurred, the threshold settlement amount will limit the cash settlement amount you may receive for each of your notes at maturity, no matter how much the level of the underlier may rise beyond the initial underlier level over the life of your notes. If a trigger event has occurred, the cash settlement amount at maturity for each $1,000 face amount of your notes will be limited to the face amount of your notes. Accordingly, the amount payable for each of your notes may be significantly less than it would have been had you invested directly in the underlier stocks.

Your Notes Do Not Bear Interest

You will not receive any interest payments on your notes. As a result, even if the cash settlement amount payable for your notes on the stated maturity date exceeds the face amount of your notes, the overall return you earn on your notes may be less than you would have earned by investing in a non-indexed debt security of comparable maturity that bears interest at a prevailing market rate.

You Have No Shareholder Rights or Rights to Receive Any Underlier Stock

Investing in your notes will not make you a holder of any of the underlier stocks. Neither you nor any other holder or owner of your notes will have any rights with respect to the underlier stocks, including any voting rights, any right to receive dividends or other distributions, any rights to make a claim against the underlier stocks or any other rights of a holder of the underlier stocks. Your notes will be paid in cash and you will have no right to receive delivery of any underlier stocks.

PS-12

We May Sell an Additional Aggregate Face Amount of the Notes at a Different Issue Price

At our sole option, we may decide to sell an additional aggregate face amount of the notes subsequent to the date of this pricing supplement. The issue price of the notes in the subsequent sale may differ substantially (higher or lower) from the original issue price you paid as provided on the cover of this pricing supplement.

The Market Value of Your Notes May Be Influenced by Many Unpredictable Factors

When we refer to the market value of your notes, we mean the value that you could receive for your notes if you chose to sell them in the open market before the stated maturity date. A number of factors, many of which are beyond our control, will influence the market value of your notes, including:

whether a trigger event has occurred;
the level of the underlier;
the volatility - i.e., the frequency and magnitude of changes - in the closing level of the underlier;
the dividend rates of the underlier stocks;
economic, financial, regulatory, political, military, public health and other events that affect stock markets generally and the underlier stocks, and which may affect the closing level of the underlier;
interest rates and yield rates in the market;
the time remaining until your notes mature; and
our creditworthiness and the creditworthiness of The Goldman Sachs Group, Inc., whether actual or perceived, and including actual or anticipated upgrades or downgrades in our credit ratings or the credit ratings of The Goldman Sachs Group, Inc. or changes in other credit measures.

Without limiting the foregoing, the market value of your notes may be negatively impacted by increasing interest rates. Such adverse impact of increasing interest rates could be significantly enhanced in notes with longer-dated maturities, the market values of which are generally more sensitive to increasing interest rates.

These factors may influence the market value of your notes if you sell your notes before maturity, including the price you may receive for your notes in any market making transaction. If you sell your notes prior to maturity, you may receive less than the face amount of your notes. You cannot predict the future performance of the underlier based on its historical performance.

If You Purchase Your Notes at a Premium to Face Amount, the Return on Your Investment Will Be Lower Than the Return on Notes Purchased at Face Amount and the Impact of Certain Key Terms of the Notes Will Be Negatively Affected

The cash settlement amount will not be adjusted based on the issue price you pay for the notes. If you purchase notes at a price that differs from the face amount of the notes, then the return on your investment in such notes held to the stated maturity date will differ from, and may be substantially less than, the return on notes purchased at face amount. If you purchase your notes at a premium to face amount and hold them to the stated maturity date, the return on your investment in the notes will be lower than it would have been had you purchased the notes at face amount or a discount to face amount.

Risks Related to Tax

We Intend to Treat Your Notes as Short-Term Debt Instruments that Provide for Contingent Payments for U.S. Federal Income Tax Purposes

We intend to treat the notes as short-term debt instruments that provide for contingent payments for U.S. federal income tax purposes. Under this treatment, if you are a U.S. individual or taxable entity, you generally should not recognize any income, gain or loss in respect of the notes until the earlier of the sale, exchange or maturity of the notes. Any gain recognized upon maturity of the notes generally should be treated as ordinary interest income for U.S. federal income tax purposes. Any gain or loss realized upon a sale or exchange of the notes prior to maturity generally should be treated as short-term capital gain or loss. Please see "Supplemental Discussion of U.S. Federal Income Tax Consequences" below for a more detailed discussion. Please also consult your tax advisor

PS-13

concerning the U.S. federal income tax and any other applicable tax consequences to you of owning your notes in your particular circumstances.

Foreign Account Tax Compliance Act (FATCA) Withholding May Apply to Payments on Your Notes, Including as a Result of the Failure of the Bank or Broker Through Which You Hold the Notes to Provide Information to Tax Authorities

Please see the discussion under "United States Taxation - Taxation of Debt Securities - Foreign Account Tax Compliance Act (FATCA) Withholding" in the accompanying prospectus for a description of the applicability of FATCA to payments made on your notes.

PS-14

THE UNDERLIER

The S&P 500® Index includes a representative sample of 500 companies in leading industries of the U.S. economy and is intended to provide a performance benchmark for the large-cap U.S. equity markets. For more details about the underlier, the underlier sponsor and license agreement between the underlier sponsor and the issuer, see "The Underliers - S&P 500® Index" on page S-106 of the accompanying underlier supplement no. 33.

The S&P 500® Index is a product of S&P Dow Jones Indices LLC, and has been licensed for use by GS Finance Corp. ("Goldman"). Standard & Poor's® and S&P® are registered trademarks of Standard & Poor's Financial Services LLC; Dow Jones® is a registered trademark of Dow Jones Trademark Holdings LLC ("Dow Jones") and these trademarks have been licensed for use by S&P Dow Jones Indices LLC and sublicensed for certain purposes by Goldman. Goldman's notes are not sponsored, endorsed, sold or promoted by S&P Dow Jones Indices LLC, Dow Jones, Standard & Poor's Financial Services LLC or any of their respective affiliates and neither S&P Dow Jones Indices LLC, Dow Jones, Standard & Poor's Financial Services LLC or any of their respective affiliates make any representation regarding the advisability of investing in such notes.

PS-15

Historical Closing Levels of the Underlier

The closing level of the underlier has fluctuated in the past and may, in the future, experience significant fluctuations. In particular, the underlier has recently experienced extreme and unusual volatility. Any historical upward or downward trend in the closing level of the underlier during the period shown below is not an indication that the underlier is more or less likely to increase or decrease at any time during the life of your notes.

You should not take the historical levels of the underlier as an indication of the future performance of the underlier, including because of the recent volatility described above. We cannot give you any assurance that the future performance of the underlier or the underlier stocks will result in your receiving an amount greater than the outstanding face amount of your notes on the stated maturity date.

Neither we nor any of our affiliates make any representation to you as to the performance of the underlier. Before investing in the offered notes, you should consult publicly available information to determine the levels of the underlier between the date of this pricing supplement and the date of your purchase of the offered notes and, given the recent volatility described above, you should pay particular attention to recent levels of the underlier. The actual performance of the underlier over the life of the offered notes, as well as the cash settlement amount, may bear little relation to the historical closing levels shown below.

The graph below shows the daily historical closing levels of the underlier from January 1, 2018 through May 26, 2023. As a result, the following graph does not reflect the global financial crisis which began in 2008, which had a materially negative impact on the price of most equity securities and, as a result, the level of most equity indices. We obtained the closing levels in the graph below from Bloomberg Financial Services, without independent verification.

Historical Performance of the S&P 500® Index

PS-16

Supplemental Discussion of U.S. Federal Income Tax Consequences

The following section supplements the discussion of U.S. federal income taxation in the accompanying prospectus.

The following section is the opinion of Sidley Austin llp, counsel to GS Finance Corp. and The Goldman Sachs Group, Inc.It applies to you only if you hold your notes as a capital asset for tax purposes. This section does not apply to you if you are a member of a class of holders subject to special rules, such as:

a dealer in securities or currencies;
a trader in securities that elects to use a mark-to-market method of accounting for your securities holdings;
a bank;
a life insurance company;
a tax exempt organization;
a regulated investment company;
a partnership;
an accrual method taxpayer subject to special tax accounting rules as a result of its use of financial statements;
a person that owns a note as a hedge or that is hedged against interest rate risks;
a person that owns a note as part of a straddle or conversion transaction for tax purposes; or
a United States holder (as defined below) whose functional currency for tax purposes is not the U.S. dollar.

This section is based on the U.S. Internal Revenue Code of 1986, as amended, its legislative history, existing and proposed regulations under the Internal Revenue Code, published rulings and court decisions, all as currently in effect. These laws are subject to change, possibly on a retroactive basis.

You should consult your tax advisor concerning the U.S. federal income tax and any other applicable tax consequences of your investments in the notes, including the application of state, local or other tax laws and the possible effects of changes in federal or other tax laws.

United States Holders

This section applies to you only if you are a United States holder that holds your notes as a capital asset for tax purposes. You are a United States holder if you are a beneficial owner of each of your notes and you are:

a citizen or resident of the United States;
a domestic corporation;
an estate whose income is subject to U.S. federal income tax regardless of its source; or
a trust if a United States court can exercise primary supervision over the trust's administration and one or more United States persons are authorized to control all substantial decisions of the trust.

Tax Treatment. You will be obligated pursuant to the terms of the notes - in the absence of a change in law, an administrative determination or a judicial ruling to the contrary - to characterize your notes for all tax purposes as short-term debt instruments that provide for contingent payments. Except as otherwise stated below, the discussion herein assumes that the notes will be so treated.

Although there is no authority that specifically addresses the tax treatment of short-term debt instruments that provide for contingent payments, it is likely that you should not recognize any income prior to the sale, exchange or maturity of the notes. If you are an initial purchaser of the notes, upon the maturity of your notes you should

PS-17

recognize either ordinary income or short-term capital loss in an amount equal to the difference between the amount you receive with respect to your notes at such time and the amount you paid for your notes. Upon a sale or exchange of your notes prior to the maturity of your notes, it would be reasonable for you to recognize short-term capital gain or loss in an amount equal to the difference between the amount you paid for your notes and the amount received by you upon such sale or exchange, unless you sell or exchange your notes between the determination date and the maturity date, in which case it would be reasonable for you to treat substantially all of any gain that you recognize as ordinary income and any loss that you recognize as a short-term capital loss. You may be required to defer interest deductions that are allocable to your purchase of the notes. For more information, please see the discussion under "United States Taxation- Taxation of Debt Securities-United States Holders- Short-Term Debt Securities" in the accompanying prospectus.

Alternative Treatments. There is no judicial or administrative authority discussing how your notes should be treated for U.S. federal income tax purposes. Therefore, the Internal Revenue Service might assert that a treatment other than that described above is more appropriate. It is possible that the Internal Revenue Service could seek to characterize your notes in a manner that results in tax consequences to you that are different from those described above. You should consult your tax advisor as to the tax consequences of any possible alternative characterizations of your notes for U.S. federal income tax purposes.

No statutory, judicial or administrative authority directly discusses how your notes should be treated for U.S. federal income tax purposes. As a result, the U.S. federal income tax consequences of your investment in the notes are uncertain and alternative characterizations are possible. Accordingly, we urge you to consult your tax advisor in determining the tax consequences of an investment in your notes in your particular circumstances, including the application of state, local or other tax laws and the possible effects of changes in federal or other tax laws.

Non-United States Holders

If you are a non-United States holder, please see the discussion under "United States Taxation" in the accompanying prospectus for a description of the tax consequences relevant to you. You are a non-United States holder if you are the beneficial owner of notes and are, for U.S. federal income tax purposes:

a nonresident alien individual;
a foreign corporation; or
an estate or trust that in either case is not subject to U.S. federal income tax on a net income basis on income or gain from the notes.

The Treasury Department has issued regulations under which amounts paid or deemed paid on certain financial instruments ("871(m) financial instruments") that are treated as attributable to U.S.-source dividends could be treated, in whole or in part depending on the circumstances, as a "dividend equivalent" payment that is subject to tax at a rate of 30% (or a lower rate under an applicable treaty), which in the case of amounts you receive upon the sale, exchange or maturity of your notes, could be collected via withholding. If these regulations were to apply to the notes, we may be required to withhold such taxes if any U.S.-source dividends are paid on the stocks included in the underlier during the term of the notes. We could also require you to make certifications (e.g., an applicable Internal Revenue Service Form W-8) prior to the maturity of the notes in order to avoid or minimize withholding obligations, and we could withhold accordingly (subject to your potential right to claim a refund from the Internal Revenue Service) if such certifications were not received or were not satisfactory. If withholding was required, we would not be required to pay any additional amounts with respect to amounts so withheld. These regulations generally will apply to 871(m) financial instruments (or a combination of financial instruments treated as having been entered into in connection with each other) issued (or significantly modified and treated as retired and reissued) on or after January 1, 2025, but will also apply to certain 871(m) financial instruments (or a combination of financial instruments treated as having been entered into in connection with each other) that have a delta (as defined in the applicable Treasury regulations) of one and are issued (or significantly modified and treated as retired and reissued) on or after January 1, 2017. In addition, these regulations will not apply to financial instruments that reference a "qualified index" (as defined in the regulations). We have determined that, as of the issue date of your notes, your notes will not be subject to withholding under these rules. In certain limited circumstances, however, you should be aware that it is possible for non-United States holders to be liable for tax under these rules with respect to a combination of transactions treated as having been entered into in connection with each other even when no withholding is required. You should consult your tax advisor

PS-18

concerning these regulations, subsequent official guidance and regarding any other possible alternative characterizations of your notes for U.S. federal income tax purposes.

Foreign Account Tax Compliance Act (FATCA) Withholding

Pursuant to Treasury regulations, Foreign Account Tax Compliance Act (FATCA) withholding (as described in "United States Taxation-Taxation of Debt Securities-Foreign Account Tax Compliance Act (FATCA) Withholding" in the accompanying prospectus) will generally apply to obligations that are issued on or after July 1, 2014; therefore, the notes will generally be subject to the FATCA withholding rules.

PS-19

SUPPLEMENTAL PLAN OF DISTRIBUTION; CONFLICTS OF INTEREST

See "Supplemental Plan of Distribution" on page S-51 of the accompanying general terms supplement no. 8,999 and "Plan of Distribution - Conflicts of Interest" on page 127 of the accompanying prospectus. GS Finance Corp. estimates that its share of the total offering expenses, excluding underwriting discounts and commissions, will be approximately $10,000.

GS Finance Corp. will sell to GS&Co., and GS&Co. will purchase from GS Finance Corp., the aggregate face amount of the offered notes specified on the front cover of this pricing supplement. GS&Co. proposes initially to offer the notes to the public at the original issue price set forth on the cover page of this pricing supplement. GS&Co. is an affiliate of GS Finance Corp. and The Goldman Sachs Group, Inc. and, as such, will have a "conflict of interest" in this offering of notes within the meaning of Financial Industry Regulatory Authority, Inc. (FINRA) Rule 5121. Consequently, this offering of notes will be conducted in compliance with the provisions of FINRA Rule 5121. GS&Co. will not be permitted to sell notes in this offering to an account over which it exercises discretionary authority without the prior specific written approval of the account holder. We have been advised that GS&Co. will also pay a fee in connection with the distribution of the notes to SIMON Markets LLC, a broker-dealer in which an affiliate of GS Finance Corp. holds an indirect minority equity interest.

We will deliver the notes against payment therefor in New York, New York on June 5, 2023. Under Rule 15c6-1 of the Securities Exchange Act of 1934, trades in the secondary market generally are required to settle in two business days, unless the parties to any such trade expressly agree otherwise. Accordingly, purchasers who wish to trade notes on any date prior to two business days before delivery will be required to specify alternative settlement arrangements to prevent a failed settlement.

We have been advised by GS&Co. that it intends to make a market in the notes. However, neither GS&Co. nor any of our other affiliates that makes a market is obligated to do so and any of them may stop doing so at any time without notice. No assurance can be given as to the liquidity or trading market for the notes.

The notes will not be listed on any securities exchange or interdealer quotation system.

PS-20

VALIDITY OF THE NOTES AND GUARANTEE

In the opinion of Sidley Austin LLP, as counsel to GS Finance Corp. and The Goldman Sachs Group, Inc., when the notes offered by this pricing supplement have been executed and issued by GS Finance Corp., such notes have been authenticated by the trustee pursuant to the indenture, and such notes have been delivered against payment as contemplated herein, (a) such notes will be valid and binding obligations of GS Finance Corp., enforceable in accordance with their terms, subject to applicable bankruptcy, insolvency and similar laws affecting creditors' rights generally, concepts of reasonableness and equitable principles of general applicability (including, without limitation, concepts of good faith, fair dealing and the lack of bad faith), provided that such counsel expresses no opinion as to the effect of fraudulent conveyance, fraudulent transfer or similar provision of applicable law on the conclusions expressed above and (b) the guarantee with respect to such notes will be a valid and binding obligation of The Goldman Sachs Group, Inc., enforceable in accordance with its terms, subject to applicable bankruptcy, insolvency and similar laws affecting creditors' rights generally, concepts of reasonableness and equitable principles of general applicability (including, without limitation, concepts of good faith, fair dealing and the lack of bad faith), provided that such counsel expresses no opinion as to the effect of fraudulent conveyance, fraudulent transfer or similar provision of applicable law on the conclusions expressed above. This opinion is given as of the date hereof and is limited to the laws of the State of New York and the General Corporation Law of the State of Delaware as in effect on the date hereof. In addition, this opinion is subject to customary assumptions about the trustee's authorization, execution and delivery of the indenture and the genuineness of signatures and certain factual matters, all as stated in the letter of such counsel dated January 18, 2023, which has been filed as Exhibit 5.6 to the registration statement on Form S-3 filed with the Securities and Exchange Commission by GS Finance Corp. and The Goldman Sachs Group, Inc. on January 18, 2023.

PS-21

We have not authorized anyone to provide any information or to make any representations other than those contained or incorporated by reference in this pricing supplement, the accompanying general terms supplement no. 8,999, the accompanying underlier supplement no. 33, the accompanying prospectus supplement or the accompanying prospectus. We take no responsibility for, and can provide no assurance as to the reliability of, any other information that others may give you. This pricing supplement, the accompanying general terms supplement no. 8,999, the accompanying underlier supplement no. 33, the accompanying prospectus supplement and the accompanying prospectus is an offer to sell only the notes offered hereby, but only under circumstances and in jurisdictions where it is lawful to do so. The information contained in this pricing supplement, the accompanying general terms supplement no. 8,999, the accompanying underlier supplement no. 33, the accompanying prospectus supplement and the accompanying prospectus is current only as of the respective dates of such documents.

$4,160,000

GS Finance Corp.

S&P 500® Index-Linked Notes due 2024

guaranteed by


The Goldman Sachs Group, Inc.


Goldman Sachs & Co. LLC