The Goldman Sachs Group Inc.

09/12/2024 | Press release | Distributed by Public on 09/12/2024 14:46

Primary Offering Prospectus - Form 424B2

424B2

Filed Pursuant to Rule 424(b)(2)

Registration Statement No. 333-269296

GS Finance Corp.

$7,424,000

Autocallable Contingent Coupon Underlier-Linked Notes due 2029

guaranteed by

The Goldman Sachs Group, Inc.

If the closing level of any of the S&P 500® Index, the Russell 2000® Index or the iShares® Semiconductor ETF (ETF) on any observation date is less than80%of its initial level, you will not receive a coupon on the applicable payment date. The amount that you will be paid on your notes is based on the performances of the underliers. The notes will mature on the stated maturity date (September 13, 2029), unless automatically called on any observation date commencing in September 2025 to and including August 2029. Your notes will be automatically called if the closing level of each underlier on any such observation date is greater than or equal to its initial level (5,495.52 with respect to the S&P 500® Index, 2,097.435 with respect to the Russell 2000® Index and $210.15 with respect to the iShares® Semiconductor ETF (which in each case is an intra-day level or the closing level of such underlier on the trade date (September 10, 2024))). If your notes are automatically called, you will receive a payment on the next payment date (the third business day after the relevant observation date) equal to the face amount of your notes plus a coupon (as described below).

The return on your notes is linked, in part, to the performance of the ETF, and not to that of the NYSE Semiconductor Index on which the ETF is based.

Observation dates are the 10th day of each month, commencing in October 2024 and ending in September 2029. If on any observation date the closing level of each underlier is greater than or equal to 80% of its initial level, you will receive on the applicable payment date a coupon for each $1,000 face amount of your notes equal to $6.084 (0.6084% monthly, or the potential for up to approximately 7.3% per annum).

If the notes have not been automatically called, at maturity, for each $1,000 face amount of your notes, you will receive $1,000 plus the final coupon, if any.

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 $978 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:

September 13, 2024

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. 16,025 dated September 10, 2024.

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 yournotes 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 $978 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 $22 per $1,000 face amount).

Prior to January 10, 2025, 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 January 9, 2025). On and after January 10, 2025, 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

Terms AND CONDITIONS

CUSIP / ISIN: 40058F3W1 / US40058F3W17

Company (Issuer): GS Finance Corp.

Guarantor: The Goldman Sachs Group, Inc.

Underliers (each individually, an underlier): the S&P 500® Index (current Bloomberg symbol: "SPX Index"), or any successor underlier, the Russell 2000® Index (current Bloomberg symbol: "RTY Index"), or any successor underlier, and the iShares® Semiconductor ETF (current Bloomberg symbol: "SOXX UQ Equity"), or any successor underlier, as each may be modified, replaced or adjusted from time to time as provided herein

Underlying index: with respect to the iShares® Semiconductor ETF, the NYSE Semiconductor Index

Face amount: $7,424,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: Subject to redemption by the company as provided under "- Company's redemption right (automatic call feature)" below, on the stated maturity date, in addition to the final coupon, the company will pay, for each $1,000 of the outstanding face amount, an amount, if any, in cash equal to $1,000.

Company's redemption right (automatic call feature): if a redemption event occurs, then the outstanding face amount will be automatically redeemed in whole and the company will pay, in addition to the coupon then due, an amount in cash on the following call payment date, for each $1,000 of the outstanding face amount, equal to $1,000

Redemption event: a redemption event will occur if, as measured on any call observation date, the closing level of each underlier is greater than or equal to its initial underlier level

Initial underlier level: 5,495.52 with respect to the S&P 500® Index, 2,097.435 with respect to the Russell 2000® Index and $210.15 with respect to the iShares® Semiconductor ETF. The initial underlier level of each underlier is an intra-day level orthe closing level of such underlier on the trade date.

Coupon: subject to the company's redemption right, on each coupon payment date, for each $1,000 of the outstanding face amount, the company will pay an amount in cash equal to:

if the closing level of each underlier on the related coupon observation date is greater than or equal to its coupon trigger level, $6.084 (0.6084% monthly, or the potential for up to approximately 7.3% per annum); or
if the closing level of any underlier on the related coupon observation date is less than its coupon trigger level, $0

The coupon paid on any coupon payment date will be paid to the person in whose name this note is registered as of the close of business on the regular record date for such coupon payment date. If the coupon is due at maturity but on a day that is not a coupon payment date, the coupon will be paid to the person entitled to receive the principal of this note.

Coupon trigger level: for each underlier, 80% of its initial underlier level

Trade date: September 10, 2024

Original issue date: September 13, 2024

Determination date: the last coupon observation date, September 10, 2029, subject to adjustment as described under "- Coupon observation dates" below.

Stated maturity date: September 13, 2029, 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.

Call observation dates: each coupon observation date commencing in September 2025 and ending in August 2029, subject to adjustment as described under "- Coupon observation dates" below

Call payment dates: the third business day after each call observation date, subject to adjustment as provided under "- Call observation dates" above

PS-3

Coupon observation dates: the 10th day of each month, commencing in October 2024 and ending in September 2029, unless the calculation agent determines that, with respect to any underlier, a market disruption event occurs or is continuing on that day or that day is not otherwise a trading day.

In the event the originally scheduled coupon observation date is a non-trading day with respect to any underlier, the coupon observation date will be the first day thereafter that is a trading day for all underliers (the "first qualified coupon trading day") provided that no market disruption event occurs or is continuing with respect to an underlier on that day. If a market disruption event with respect to an underlier occurs or is continuing on the originally scheduled coupon observation date or the first qualified coupon trading day, the coupon observation date will be the first following trading day on which the calculation agent determines that each underlier has had at least one trading day (from and including the originally scheduled coupon observation date or the first qualified coupon trading day, as applicable) on which no market disruption event has occurred or is continuing and the closing level of each underlier for that coupon observation date will be determined on or prior to the postponed coupon observation date as set forth under "- Consequences of a market disruption event or a non-trading day" below. (In such case, the coupon observation date may differ from the date on which the level of an underlier is determined for the purpose of the calculations to be performed on the coupon observation date.) In no event, however, will the coupon observation date be postponed to a date later than the originally scheduled coupon payment date (based on the originally scheduled coupon observation date) or, if the originally scheduled coupon payment date is not a business day, later than the first business day after the originally scheduled coupon payment date, either due to the occurrence of serial non-trading days or due to the occurrence of one or more market disruption events. On such last possible coupon observation date applicable to the relevant coupon payment date, if a market disruption event occurs or is continuing with respect to an underlier that has not yet had such a trading day on which no market disruption event has occurred or is continuing or if such last possible day is not a trading day with respect to such underlier, that day will nevertheless be the coupon observation date.

Coupon payment dates: the third business day after each coupon observation date (except that the final coupon payment date will be the stated maturity date), subject to adjustment as described under "- Coupon observation dates" above

Closing level: on any trading day, (i) with respect to the S&P 500® Index, the official closing level of such underlier or any successor underlier published by the underlier sponsor on such trading day for such underlier, (ii) with respect to the Russell 2000® Index, the closing level of such underlier or any successor underlier reported by Bloomberg Financial Services, or any successor reporting service the company may select, on such trading day for that underlier (as of the trade date, whereas the underlier sponsor publishes the official closing level of the Russell 2000® Index to six decimal places, Bloomberg Financial Services reports the closing level to fewer decimal places) and (iii) with respect to the iShares® Semiconductor ETF, the closing sale price or last reported sale price, regular way, for such underlier, on a per-share or other unit basis:

on the principal national securities exchange on which such underlier is listed for trading on that day, or
if such underlier is not listed on any national securities exchange on that day, on any other U.S. national market system that is the primary market for the trading of such underlier.

If the the iShares® Semiconductor ETF is not listed or traded as described above, then the closing level for such underlier on any day will be the average, as determined by the calculation agent, of the bid prices for such underlier obtained from as many dealers in such underlier selected by the calculation agent as will make those bid prices available to the calculation agent. The number of dealers need not exceed three and may include the calculation agent or any of its or the company's affiliates.

The closing level of the iShares® Semiconductor ETF is subject to adjustment as described under "- Anti-dilution adjustments" below.

Trading day: (i) with respect to the S&P 500® Index or the Russell 2000® Index, a day on which the respective principal securities markets for all of its underlier stocks are open for trading, the underlier sponsor is open for business and such underlier is calculated and published by the underlier sponsor and (ii) with respect to the iShares® Semiconductor ETF, a day on which (a) the exchange on which such underlier has its primary listing is open for trading and (b) the price of one share of such underlier is quoted by the exchange on which such underlier has its primary listing.

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

Underlier sponsor: with respect to the S&P 500® Index or the Russell 2000® Index, at any time the person or entity, including any successor sponsor, that determines and publishes such underlier as then in effect. The notes

PS-4

are not sponsored, endorsed, sold or promoted by any underlier sponsor or any affiliate thereof and no underlier sponsor or affiliate thereof makes any representation regarding the advisability of investing in the notes.

ETF investment advisor: with respect to the iShares® Semiconductor ETF, at any time, the person or entity, including any successor investment advisor, that serves as an investment advisor to such underlier as then in effect

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

Market disruption event: (i) With respect to the S&P 500® Index or the Russell 2000® Index on any given trading day, any of the following will be a market disruption event:

asuspension, absence or material limitation of trading in underlier stocks constituting 20% or more, by weight, of such 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 such underlier or to underlier stocks constituting 20% or more, by weight, of such 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 such underlier, or option or futures contracts, if available, relating to such underlier or to underlier stocks constituting 20% or more, by weight, of such 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 such 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 such 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 such 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.

(ii)With respect to the iShares® Semiconductor ETF, on any given trading day, any of the following will be a market disruption event:

a suspension, absence or material limitation of trading in such underlier on its primary market 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 such underlier in the primary market for those contracts 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
such underlier does not trade on what was the primary market for such underlier, 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 the 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.

PS-5

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 such underlier.

For this purpose, an "absence of trading" in the primary securities market on which shares of such underlier are traded, or on which option or futures contracts, if available, relating to such underlier 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 shares of such underlier or in option or futures contracts, if available, relating to such underlier in the primary market for such underlier or those contracts, by reason of:

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

will constitute a suspension or material limitation of trading in shares of such underlier or those contracts in that market.

(iii) A market disruption event with respect to one underlier will not, by itself, constitute a market disruption event for any unaffected underlier.

Consequences of a market disruption event or a non-trading day: With respect to any underlier, if a market disruption event occurs or is continuing on a day that would otherwise be a coupon observation date or the determination date, or such day is not a trading day, then such coupon observation date or the determination date will be postponed as described under "- Coupon observation dates" or "- Determination date" above. If any coupon observation date or the determination date is postponed to the last possible date due to the occurrence of serial non-trading days, the level of each underlier will be the calculation agent's assessment of such level, in its sole discretion, on such last possible postponed coupon observation date or determination date, as applicable. If any coupon observation date or the determination date is postponed due to a market disruption event with respect to any underlier, the closing level of each underlier with respect to such coupon observation date or the final underlier level with respect to the determination date, as applicable, will be calculated based on (i) for any underlier that is not affected by a market disruption event on (A) the applicable originally scheduled coupon observation date or the first qualified coupon trading day thereafter (if applicable) or (B) the originally scheduled determination date or the first qualified trading day thereafter (if applicable), the closing level of the underlier on that date, (ii) for any underlier that is affected by a market disruption event on (A) the applicable originally scheduled coupon observation date or the first qualified coupon trading day thereafter (if applicable) or (B) the originally scheduled determination date or the first qualified trading day thereafter (if applicable), the closing level of the underlier on the first following trading day on which no market disruption event exists for such underlier and (iii) the calculation agent's assessment, in its sole discretion, of the level of any underlier on the last possible postponed coupon observation date or determination date, as applicable, with respect to such underlier as to which a market disruption event continues through the last possible postponed coupon observation date or determination date. As a result, this could result in the closing level on any coupon observation date or final underlier level on the determination date of each underlier being determined on different calendar dates. For the avoidance of doubt, once the closing level for an underlier is determined for a coupon observation date or determination date, the occurrence of a later market disruption event or non-trading day will not alter such calculation.

Discontinuance or modification of an underlier: (i) If, with respect to the S&P 500® Index or the Russell 2000® Index, the underlier sponsor discontinues publication of the underlier and such underlier sponsor or anyone else publishes a substitute underlier that the calculation agent determines is comparable to such underlier and approves as a successor underlier, or if the calculation agent designates a substitute underlier, then the calculation agent will determine the coupon payable, if any, on the relevant coupon payment date, the amount payable on the call payment date by reference to such successor underlier.

If the calculation agent determines on a coupon observation date or the determination date, as applicable, that the publication of the underlier is discontinued and there is no successor underlier, the calculation agent will determine the coupon on the related coupon payment date or the stated maturity date, as applicable, by a computation methodology that the calculation agent determines will as closely as reasonably possible replicate such underlier.

If the calculation agent determines that (a) the underlier, the underlier stocks comprising such underlier or the method of calculating such underlier is changed at any time in any respect - including any addition, deletion or

PS-6

substitution and any reweighting or rebalancing of such 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 (b) 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 such underlier or the method of its calculation as it believes are appropriate to ensure that the levels of such underlier used to determine the coupon on the related coupon payment date or the stated maturity date, as applicable, is equitable.

(ii) If, with respect to the iShares® Semiconductor ETF, such underlier is delisted from the exchange on which the underlier has its primary listing and the ETF investment advisor or anyone else 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 coupon payable, if any, on the relevant coupon payment date, the amount payable on the call payment date or the amount in cash on the stated maturity date, as applicable, by reference to such successor underlier.

If the calculation agent determines on a coupon observation date or the determination date, as applicable, that the underlier is delisted or withdrawn from the exchange on which the underlier has its primary listing and there is no successor underlier, the calculation agent will determine the coupon on the related coupon payment date or 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 the underlier, the underlier stocks comprising such underlier or the method of calculating such underlier is changed at any time in any respect - including any split or reverse split of the underlier, a material change in the investment objective of the underlier and any addition, deletion or substitution and any reweighting or rebalancing of the underlier stocks and whether the change is made by the ETF investment advisor 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 - 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 such underlier used to determine the coupon on the related coupon payment date or the stated maturity date, as applicable, is equitable.

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

Regular record dates: the scheduled business day immediately preceding the day on which payment is to be made (as such payment date may be adjusted)

Anti-dilution adjustments: the calculation agent will have discretion to adjust the closing level of the iShares® Semiconductor ETF if certain events occur (including those described above under "- Discontinuance or modification of an underlier"). In the event that any event other than a delisting or withdrawal from the relevant exchange occurs, the calculation agent shall determine whether and to what extent an adjustment should be made to the level of such underlier or any other term. The calculation agent shall have no obligation to make an adjustment for any such event.

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

Tax characterization: The holder, on behalf of itself and any other person having a beneficial interest in this note, hereby agrees with the company (in the absence of a change in law, an administrative determination or a judicial ruling to the contrary) to characterize this note for all U.S. federal income tax purposes as a variable rate debt instrument.

Overdue principal rate and overdue coupon rate: the effective Federal Funds rate

PS-7

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 are intended merely to illustrate (i) the impact that various hypothetical closing levels of the underliers on a coupon observation date could have on the coupon payable, if any, on the related coupon payment date assuming all other variables remain constant.

The examples below are based on a range of underlier levels that are entirely hypothetical; no one can predict what the closing level of any underlier will be on any day throughout the life of your notes, what the closing level of any underlier will be on any coupon observation date or call observation date, as the case may be. The underliers have been highly volatile in the past - meaning that the underlier levels have changed substantially in relatively short periods - and their 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 a call payment date or the stated maturity date. If you sell your notes in a secondary market prior to a call payment date or the stated maturity date, as the case may be, 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 underliers, 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

Coupon

$6.084 (0.6084% monthly, or the potential for up to approximately 7.3% per annum)

Coupon trigger level

with respect to each underlier, 80% of its initial underlier level

The notes are not automatically called, unless otherwise indicated below

Neither a market disruption event nor a non-trading day occurs on any originally scheduled coupon observation date or call observation date or the originally scheduled determination date

No change in or affecting any underlier, any underlier stock, any policy of the applicable ETF investment advisor or any method by which the applicable underlier sponsor calculates its underlier or the sponsor of the applicable underlier's underlying index calculates its underlying index

Notes purchased on original issue date at the face amount and held to a call payment date or the stated maturity date

For these reasons, the actual performance of the underliers over the life of your notes, the actual underlier levels on any call observation date or coupon observation date, as well as the coupon payable, if any, on each coupon payment date, 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 underlier levels during recent periods, see "The Underliers - Historical Closing Levels of the Underliers" on page PS-20. Before investing in the notes, you should consult publicly available information to determine the underlier levels between the date of this pricing supplement and the date of your purchase of the 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.

Hypothetical Coupon Payments

The examples below show hypothetical performances of each underlier as well as the hypothetical coupons, if any, that we would pay on each coupon payment date with respect to each $1,000 face amount of the notes if the hypothetical closing level of each underlier on the applicable coupon observation date was the percentage of its initial underlier level shown.

PS-8

Scenario 1

Hypothetical Coupon Observation Date

Hypothetical Closing Level of the S&P 500® Index (as Percentage of Initial Underlier Level)

Hypothetical Closing Level of the Russell 2000® Index (as Percentage of Initial Underlier Level)

Hypothetical Closing Level of the iShares® Semiconductor ETF (as Percentage of Initial Underlier Level)

Hypothetical Coupon

First

110%

50%

60%

$0

Second

65%

30%

55%

$0

Third

90%

100%

110%

$6.084

Fourth

65%

50%

50%

$0

Fifth

70%

55%

40%

$0

Sixth

100%

120%

95%

$6.084

Seventh

55%

20%

65%

$0

Eighth

50%

45%

100%

$0

Ninth

70%

75%

65%

$0

Tenth

65%

50%

70%

$0

Eleventh

60%

80%

45%

$0

Twelfth-Sixtieth

50%

20%

120%

$0

Total Hypothetical Coupons

$12.168

In Scenario 1, the hypothetical closing level of each underlier increases and decreases by varying amounts on each hypothetical coupon observation date. Because the hypothetical closing level of each underlier on the third and sixth hypothetical coupon observation dates is greater than or equal to its coupon trigger level, the total of the hypothetical coupons in Scenario 1 is $12.168. Because the hypothetical closing level of at least one underlier on all other hypothetical coupon observation dates is less than its coupon trigger level, no further coupons will be paid, including at maturity.

Scenario 2

Hypothetical Coupon Observation Date

Hypothetical Closing Level of the S&P 500® Index (as Percentage of Initial Underlier Level)

Hypothetical Closing Level of the Russell 2000® Index (as Percentage of Initial Underlier Level)

Hypothetical Closing Level of the iShares® Semiconductor ETF (as Percentage of Initial Underlier Level)

Hypothetical Coupon

First

110%

50%

40%

$0

Second

40%

30%

50%

$0

Third

35%

25%

100%

$0

Fourth

45%

50%

50%

$0

Fifth

70%

55%

40%

$0

Sixth

65%

40%

50%

$0

Seventh

60%

20%

85%

$0

Eighth

50%

45%

120%

$0

Ninth

35%

75%

30%

$0

Tenth

45%

50%

50%

$0

Eleventh

70%

80%

50%

$0

Twelfth-Sixtieth

40%

20%

60%

$0

Total Hypothetical Coupons

$0

In Scenario 2, the hypothetical closing level of each underlier increases and decreases by varying amounts on each hypothetical coupon observation date. Because in each case the hypothetical closing level of at least one underlier on the related coupon observation date is less than its coupon trigger level, you will not receive a coupon payment on the applicable hypothetical coupon payment date. Since this occurs on every hypothetical coupon observation date, the overall return you earn on your notes will be zero. Therefore, the total of the hypothetical coupons in Scenario 2 is $0.

PS-9

Scenario 3

Hypothetical Coupon Observation Date

Hypothetical Closing Level of the S&P 500® Index (as Percentage of Initial Underlier Level)

Hypothetical Closing Level of the Russell 2000® Index (as Percentage of Initial Underlier Level)

Hypothetical Closing Level of the iShares® Semiconductor ETF (as Percentage of Initial Underlier Level)

Hypothetical Coupon

First

60%

50%

50%

$0

Second

25%

30%

35%

$0

Third

70%

25%

65%

$0

Fourth

30%

50%

70%

$0

Fifth

35%

55%

75%

$0

Sixth

40%

40%

75%

$0

Seventh

45%

20%

60%

$0

Eighth

50%

45%

55%

$0

Ninth

65%

75%

40%

$0

Tenth

75%

50%

30%

$0

Eleventh

40%

50%

25%

$0

Twelfth

120%

115%

110%

$6.084

Total Hypothetical Coupons

$6.084

In Scenario 3, the hypothetical closing level of each underlier is less than its coupon trigger level on the first eleven hypothetical coupon observation dates, but increases to a level that is greater than its initial underlier level on the twelfth hypothetical coupon observation date. Because the hypothetical closing level of each underlier is greater than or equal to its initial underlier level on the twelfth hypothetical coupon observation date (which is also the first hypothetical call observation date), your notes will be automatically called. Therefore, on the corresponding hypothetical call payment date, in addition to the hypothetical coupon of $6.084, you will receive an amount in cash equal to $1,000 for each $1,000 face amount of your notes.

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.

We cannot predict the actual closing levels of the underliers on any day, or what the market value of your notes will be on any particular trading day, nor can we predict the relationship between the closing levels of the underliers and the market value of your notes at any time prior to the stated maturity date. The actual coupon payment, if any, that a holder of the notes will receive on each coupon payment date and the rate of return on the offered notes will depend on whether or not the notes are automatically called on the actual closing levels of the underliers on the coupon observation dates determined by the calculation agent as described above. Moreover, the assumptions on which the hypothetical examples are based may turn out to be inaccurate. Consequently, the coupon to be paid in respect of your notes, if any, 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. 40 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. 40 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., with respect to an underlier to which your notes are linked, the stocks comprising such underlier. 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 coupons (if any) and return on the notes will be based on the performance of each 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 Not Receive a Coupon on Any Coupon Payment Date

If the closing level of any underlier on the related coupon observation date is less than its coupon trigger level, you will not receive a coupon payment on the applicable coupon payment date. If this occurs on every coupon observation date, the overall return you earn on your notes will be zero and such return will be less than you would have earned by investing in a note that bears interest at the prevailing market rate.

You will only receive a coupon on a coupon payment date if the closing level of each underlier on the related coupon observation date is greater than or equal to its coupon trigger level. You should be aware that, with respect to any prior coupon observation dates that did not result in the payment of a coupon, you will not be compensated for any opportunity cost implied by inflation and other factors relating to the time value of money. Further, there is no guarantee that you will receive any coupon payment with respect to the notes at any time.

Your Notes Are Subject to Automatic Redemption

We will automatically call and redeem all, but not part, of your notes on a call payment date if, as measured on any call observation date, the closing level of each underlier is greater than or equal to its initial underlier level. Therefore, the term for your notes may be reduced. You will not receive any additional coupon payments after the notes are automatically called and you may not be able to reinvest the proceeds from an investment in the notes at a comparable return for a similar level of risk in the event the notes are automatically called prior to maturity. For the avoidance of doubt, if your notes are automatically called, no discounts, commissions or fees described herein will be rebated or reduced.

The Coupon Does Not Reflect the Actual Performance of the Underliers from the Trade Date to Any Coupon Observation Date or from Coupon Observation Date to Coupon Observation Date

The coupon for each monthly coupon payment date is different from, and may be less than, a coupon determined based on the percentage difference of the closing levels of the underliers between the trade date and any coupon observation date or between two coupon observation dates. Accordingly, the coupons, if any, on the notes may be less than the return you could earn on another instrument linked to the underliers that pays coupons based on the performance of the underliers from the trade date to any coupon observation date or from coupon observation date to coupon observation date.

PS-12

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:

the levels of the underliers;
the volatility - i.e., the frequency and magnitude of changes - in the closing levels of the underliers;
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 levels of the underliers;
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 underliers based on their 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 amount you will be paid at maturity or on a call payment date 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 a call payment date or 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 a call payment date or 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.

The Return on Your Notes Will Not Reflect Any Dividends Paid on the iShares® Semiconductor ETF or Any Underlier Stocks

The return on your notes will not reflect the return you would realize if you actually owned the iShares® Semiconductor ETF or underlier stocks and received the distributions paid on the shares of the iShares® Semiconductor ETF. You will not receive any dividends that may be paid on any of the underlier stocks by the underlier stock issuers or the shares of the iShares® Semiconductor ETF. See "-You Have No Shareholder Rights or Rights to Receive Any Shares of the iShares® Semiconductor ETF or Any Underlier Stock" below for additional information.

You Have No Shareholder Rights or Rights to Receive Any Shares of the iShares® Semiconductor ETF or Any Underlier Stock

Investing in your notes will not make you a holder of any shares of the iShares® Semiconductor ETF or any underlier stocks. Neither you nor any other holder or owner of your notes will have any rights with respect to the iShares® Semiconductor ETF or the underlier stocks, including any voting rights, any rights to receive dividends or other distributions, any rights to make a claim against the iShares® Semiconductor ETF or the underlier stocks or any other rights of a holder of any shares of the iShares® Semiconductor ETF or the underlier stocks. Your notes

PS-13

will be paid in cash and you will have no right to receive delivery of any shares of the iShares® Semiconductor ETF or any underlier stocks.

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 issue price you paid as provided on the cover of this pricing supplement.

Additional Risks Related to the iShares® Semiconductor ETF

The Policies of the iShares® Semiconductor ETF Investment Advisor and the Sponsor of the iShares® Semiconductor ETF's Underlying Index Could Affect the Amount Payable on Your Notes and Their Market Value

The iShares® Semiconductor ETF's investment advisor may from time to time be called upon to make certain policy decisions or judgments with respect to the iShares® Semiconductor ETF, including those concerning the calculation of the net asset value of the underlier, additions, deletions or substitutions of securities in the iShares® Semiconductor ETF and the manner in which changes affecting its underlying index are reflected in the iShares® Semiconductor ETF that could affect the market price of the shares of the iShares® Semiconductor ETF, and therefore, the amount payable on your notes on a coupon payment date or the stated maturity date. The amount payable on your notes and their market value could also be affected if the iShares® Semiconductor ETF investment advisor changes these policies, for example, by changing the manner in which it calculates the net asset value of the iShares® Semiconductor ETF, or if the iShares® Semiconductor ETF investment advisor discontinues or suspends calculation or publication of the net asset value of the iShares® Semiconductor ETF, in which case it may become difficult or inappropriate to determine the market value of your notes.

If events such as theseoccur, the calculation agent - which initially will be GS&Co., our affiliate - may determine the closing level of the iShares® Semiconductor ETF on a coupon observation date or the determination date - and thus the amount payable on a coupon payment date or on the maturity date, if any- in a manner it considers appropriate, in its sole discretion. We describe the discretion that the calculation agent will have in determining the closing level of the iShares® Semiconductor ETF on the coupon observation date or the determination date and the amount payable on your notes more fully under "Terms and Conditions - Discontinuance or modification of the underlier" on page PS-7of this pricing supplement.

In addition, the sponsor of the iShares® Semiconductor ETF's underlying index owns the underlying index and is responsible for the design and maintenance of its underlying index. The policies of the sponsor of the iShares® Semiconductor ETF's underlying index concerning the calculation of its underlying index, including decisions regarding the addition, deletion or substitution of the equity securities included in its underlying index, could affect the level of its underlying index and, consequently, could affect the market prices of shares of the iShares® Semiconductor ETF and, therefore, the amount payable on your notes and their market value.

There Is No Assurance That an Active Trading Market Will Continue for the iShares® Semiconductor ETF or That There Will Be Liquidity in Any Such Trading Market; Further, the iShares® Semiconductor ETF Is Subject to Management Risks, Securities Lending Risks and Custody Risks

Although the shares of the iShares® Semiconductor ETF and a number of similar products have been listed for trading on securities exchanges for varying periods of time, there is no assurance that an active trading market will continue for the shares of the iShares® Semiconductor ETF or that there will be liquidity in the trading market.

In addition, the iShares® Semiconductor ETF is subject to management risk, which is the risk that the ETF investment advisor's investment strategy, the implementation of which is subject to a number of constraints, may not produce the intended results. The iShares® Semiconductor ETF is also not actively managed and may be affected by a general decline in market segments relating to its underlying index. The iShares® Semiconductor ETF investment advisor invests in securities included in, or representative of, its underlying index regardless of their investment merits. The iShares® Semiconductor ETF investment advisor does not attempt to take defensive positions in declining markets. In addition, the iShares® Semiconductor ETF investment advisor may be permitted to engage in securities lending with respect to a portion of the iShares® Semiconductor ETF 's total assets, which could subject the ETF to the risk that the borrower of such loaned securities fails to return the securities in a timely manner or at all.

PS-14

In addition, the iShares® Semiconductor ETF is subject to custody risk, which refers to the risks in the process of clearing and settling trades and to the holding of securities by local banks, agents and depositories.

Further, the iShares® Semiconductor ETF is subject to listing standards adopted by the securities exchange on which the iShares® Semiconductor ETF is listed for trading. There can be no assurance that the iShares® Semiconductor ETF will continue to meet the applicable listing requirements, or that the iShares® Semiconductor ETF will not be delisted.

The iShares® Semiconductor ETF and Its Underlying Index Are Different and the Performance of the iShares® Semiconductor ETF May Not Correlate With the Performance of Its Underlying Index

The iShares® Semiconductor ETFmay not hold all or substantially all of the equity securities included in its underlying index and may hold securities or assets not included in its underlying index. Therefore, while the performance of the iShares® Semiconductor ETFis generally linked to the performance of the underlying index, the performance of the iShares® Semiconductor ETFis also linked in part to shares of equity securities not included in its underlying index and to the performance of other assets, such as futures contracts, options and swaps, as well as cash and cash equivalents, including shares of money market funds affiliated with the ETFinvestment advisor.

Imperfect correlation between the iShares® Semiconductor ETF's portfolio securities and those in its underlying index, rounding of prices, changes to its underlying index and regulatory requirements may cause tracking error, which is the divergence of the iShares® Semiconductor ETF's performance from that of its underlying index.

In addition, the performance of the iShares® Semiconductor ETFwill reflect additional transaction costs and fees that are not included in the calculation of its underlying index and this may increase the tracking error of the iShares® Semiconductor ETF. Also, corporate actions with respect to the sample of equity securities (such as mergers and spin-offs) may impact the performance differential between the iShares® Semiconductor ETF and its underlying index. Finally, because the shares of the iShares® Semiconductor ETFare traded on an exchange and are subject to market supply and investor demand, the market value of one share of the ETFmay differ from the net asset value per share of the iShares® Semiconductor ETF.

For all of the foregoing reasons, the performance of the iShares® Semiconductor ETF may not correlate with the performance of its underlying index. Consequently, the return on the notes will not be the same as investing directly in its underlying index or in its underlying index stocks, and will not be the same as investing in a debt security with a payment at maturity linked to the performance of its underlying index.

The iShares® Semiconductor ETF is Concentrated in the SemiconductorIndustry and Does Not Provide Diversified Exposure

The iShares® Semiconductor ETF stocks are not diversified and are concentrated in the semiconductor industry, which means the iShares® Semiconductor ETF is more likely to be more adversely affected by any negative performance of the semiconductor industry than an underlier that includes more diversified stocks across a number of sectors. Semiconductor companies face intense competition, both domestically and internationally, and such competition may have an adverse effect on profit margins. Semiconductor companies may have limited product lines, markets, financial resources or personnel. The products of semiconductor companies may face obsolescence due to rapid technological developments and frequent new product introduction, unpredictable changes in growth rates and competition for the services of qualified personnel. Capital equipment expenditures could be substantial, and equipment generally suffers from rapid obsolescence. Companies in the semiconductor industry are heavily dependent on patent and intellectual property rights. The loss or impairment of these rights, would adversely affect the profitability of these companies.

Further, the technology sector (an industry category that is broader than, and includes, the semiconductor industry) represents a significant portion of the iShares® Semiconductor ETF and, to the extent that continues, the iShares® Semiconductor ETF is more likely to be more adversely affected by any negative performance of the technologysector than an underlier that includes more diversified stocks across a number of sectors. Technology companies, including information technology companies, face intense competition, both domestically and internationally, which may have an adverse effect on a company's profit margins. Technology companies may have limited product lines, markets, financial resources or personnel. The products of technology companies may face obsolescence due to rapid technological developments, frequent new product introduction, unpredictable changes in growth rates and competition for the services of qualified personnel. Companies in the technology

PS-15

sector are heavily dependent on patent and other intellectual property rights. A technology company's loss or impairment of these rights may adversely affect the company's profitability.

The iShares® Semiconductor ETF Has Limited Historical Information Tracking the ICE Semiconductor Index

The iShares® Semiconductor ETF changed the underlying index it tracks on June 21, 2021, when the iShares® Semiconductor ETF began tracking the NYSE Semiconductor Index (formerly the ICE Semiconductor Index). As a result, historical information for you to consider in making an independent investigation into the performance of the iShares® Semiconductor ETF tracking the NYSE Semiconductor Index is only available since June 21, 2021, which may make it difficult for you to make an informed decision with respect to the notes. Any historical information about the performance of the iShares® Semiconductor ETF for any period before June 21, 2021 was during a period in which the iShares® Semiconductor ETF tracked a different index, and therefore should not be considered information relevant to how the iShares® Semiconductor ETF will perform tracking the NYSE Semiconductor Index. You should not take the historical performance of the iShares® Semiconductor ETF while tracking an index other than the NYSE Semiconductor Index as an indication of the future performance of the ETF. In addition, there can be no assurance that the iShares® Semiconductor ETF will not further change the index it tracks in the future. See "The Underliers" below for more information on the index the iShares® Semiconductor ETF previously tracked.

An Investment in the Offered Notes Is Subject to Risks Associated with Foreign Securities

The value of your notes is linked, in part, to an underlier which holds, in part, stocks from one or more foreign securities markets. Investments linked to the value of foreign equity securities involve particular risks. Any foreign securities market may be less liquid, more volatile and affected by global or domestic market developments in a different way than are the U.S. securities market or other foreign securities markets. Both government intervention in a foreign securities market, either directly or indirectly, and cross-shareholdings in foreign companies, may affect trading prices and volumes in that market. Also, there is generally less publicly available information about foreign companies than about those U.S. companies that are subject to the reporting requirements of the U.S. Securities and Exchange Commission. Further, foreign companies are subject to accounting, auditing and financial reporting standards and requirements that differ from those applicable to U.S. reporting companies.

The prices of securities in a foreign country are subject to political, economic, financial and social factors that are unique to such foreign country's geographical region. These factors include: recent changes, or the possibility of future changes, in the applicable foreign government's economic and fiscal policies; the possible implementation of, or changes in, currency exchange laws or other laws or restrictions applicable to foreign companies or investments in foreign equity securities; fluctuations, or the possibility of fluctuations, in currency exchange rates; and the possibility of outbreaks of hostility, political instability, natural disaster or adverse public health developments. For example, the United Kingdom ceased to be a member of the European Union on January 31, 2020 (an event commonly referred to as "Brexit"). The effects of Brexit are uncertain, and, among other things, Brexit has contributed, and may continue to contribute, to volatility in the prices of securities of companies located in Europe (or elsewhere) and currency exchange rates, including the valuation of the euro and British pound in particular. Any one of these factors, or the combination of more than one of these factors, could negatively affect such foreign securities market and the price of securities therein. Further, geographical regions may react to global factors in different ways, which may cause the prices of securities in a foreign securities market to fluctuate in a way that differs from those of securities in the U.S. securities market or other foreign securities markets. Foreign economies may also differ from the U.S. economy in important respects, including growth of gross national product, rate of inflation, capital reinvestment, resources and self-sufficiency, which may have a positive or negative effect on foreign securities prices.

Because foreign exchanges may be open on days when the iShares® Semiconductor ETF is not traded, the value of the securities underlying the iShares® Semiconductor ETF may change on days when shareholders will not be able to purchase or sell shares of the iShares® Semiconductor ETF.

Government Regulatory Action, Including Legislative Acts and Executive Orders, Could Result in Material Changes to the Composition of an Underlier with Underlier Stocks from One or More Foreign Securities Markets and Could Negatively Affect Your Investment in the Notes

Government regulatory action, including legislative acts and executive orders, could cause material changes to the composition of an underlier with underlier stocks from one or more foreign securities markets and could

PS-16

negatively affect your investment in the notes in a variety of ways, depending on the nature of such government regulatory action and the underlier stocks that are affected. For example, recent executive orders issued by the United States Government prohibit United States persons from purchasing or selling publicly traded securities of certain companies that are determined to operate or have operated in the defense and related materiel sector or the surveillance technology sector of the economy of the People's Republic of China, or publicly traded securities that are derivative of, or that are designed to provide investment exposure to, those securities (including indexed notes). If the prohibitions in those executive orders (or prohibitions under other government regulatory action) become applicable to underlier stocks that are currently included in an underlier or that in the future are included in an underlier, such underlier stocks may be removed from an underlier. If government regulatory action results in the removal of underlier stocks that have (or historically have had) significant weight in an underlier, such removal could have a material and negative effect on the level of such underlier and, therefore, your investment in the notes. Similarly, if underlier stocks that are subject to those executive orders or subject to other government regulatory action are not removed from an underlier, the value of the notes could be materially and negatively affected, and transactions in, or holdings of, the notes may become prohibited under United States law. Any failure to remove such underlier stocks from an underlier could result in the loss of a significant portion or all of your investment in the notes, including if you attempt to divest the notes at a time when the value of the notes has declined.

Risks Related to Tax

The Tax Treatment of Your Notes is Uncertain. However, It Would be Reasonable To Treat Your Notes as Variable Rate Debt Instruments for U.S. Federal Income Tax Purposes

The tax treatment of your notes is uncertain. However, it would be reasonable to treat your notes as variable rate debt instruments for U.S. federal income tax purposes and the issuer intends to so treat the notes. Under those rules, you generally will be required to account for coupons on the notes in the manner described under "Supplemental Discussion of U.S. Federal Income Tax Consequences" below. If you are a secondary purchaser of the notes, the tax consequences to you may be different. Please see "Supplemental Discussion of U.S. Federal Income Tax Consequences" below for a more detailed discussion. Please also consult your tax advisor 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-17

THE UNDERLIERS

S&P 500® Index

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 S&P 500® Index, the underlier sponsor and license agreement between the underlier sponsor and the issuer, see "The Underliers - S&P 500® Index" on page S-118 of the accompanying underlier supplement no. 40.

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.

Russell 2000® Index

The Russell 2000® Index measures the composite price performance of stocks of 2,000 companies incorporated in the U.S., its territories and certain "benefit-driven incorporation countries." The Russell 2000® Index is designed to track the performance of the small capitalization segment of the U.S. equity market. For more details about the underlier, the underlier sponsor and license agreement between the underlier sponsor and the issuer, see "The Underliers - Russell 2000® Index" on page S-81 of the accompanying underlier supplement no. 40.

The Russell 2000® Index is a trademark of FTSE Russell ("Russell") and has been licensed for use by GS Finance Corp. The notes are not sponsored, endorsed, sold or promoted by Russell, and Russell makes no representation regarding the advisability of investing in the notes.

PS-18

iShares® Semiconductor ETF

The shares of the iShares® SemiconductorETF (the "underlier") are issued by iShares® Trust (the "trust"), a registered investment company. Prior to June 21, 2021, the underlier was known as the iShares PHLX Semiconductor ETF.

The underlier is an exchange-traded fund that seeks investment results which correspond generally to the price and yield performance, before fees and expenses, of the NYSE Semiconductor Index (the "index"). Effective November 3, 2023, the index changed its name from ICE Semiconductor Index to NYSE Semiconductor Index. The index measures the performance of the equity securities of the 30 largest U.S.-listed companies that are classified according to the ICE Uniform Sector Classification schema within the semiconductors industry (as determined by ICE Data Indices, LLC or its affiliates). Prior to June 21, 2021, the underlying ETF tracked the PHLX Semiconductor Sector Index.
The return on your notes is linked to the performance of the underlier, and not to that of the index on which the underlier is based. The underlier follows a strategy of "representative sampling," which means the underlier's holdings are not the same as those of its index. The performance of the underlier may significantly diverge from that of its index.
The underlier's investment advisor is BlackRock Fund Advisors.
The underlier's shares trade on the Nasdaq under the ticker symbol "SOXX".
The trust's SEC CIK Number is 0001100663.
The underlier's inception date was July 10, 2001.

Where Information About the Underlier Can Be Obtained

Information filed by the trust with the U.S. Securities and Exchange Commission ("SEC") electronically can be reviewed through a website maintained by the SEC. The address of the SEC's website is sec.gov. Information filed with the SEC by the trust, including its reports to shareholders, can be located by referencing its CIK number referred to above. In addition, information regarding the underlier (including its fees, top portfolio holdings and sector weights) may be obtained from other sources including, but not limited to, press releases, newspaper articles, other publicly available documents, and the underlier's website. We are not incorporating by reference the website, the sources listed above or any material they include in this pricing supplement.

We do not make any representation or warranty as to the accuracy or completeness of any materials referred to above, including any filings made by the trust with the SEC.

We Obtained the Information About the Underlier From the Trust's Publicly Available Information

This pricing supplement relates only to your note and does not relate to the underlier. We have derived all information about the underlier in this pricing supplement from the publicly available information referred to in the preceding subsection. We have not participated in the preparation of any of those documents or made any "due diligence" investigation or inquiry with respect to the underlier in connection with the offering of your note. Furthermore, we do not know whether all events occurring before the date of this pricing supplement - including events that would affect the accuracy or completeness of the publicly available documents referred to above and the trading price of shares of the underlier - have been publicly disclosed. Subsequent disclosure of any events of this kind or the disclosure of or failure to disclose material future events concerning the underlier could affect the value you will receive at maturity and, therefore, the market value of your note.

Neither we nor any of our affiliates make any representation to you as to the performance of the underlier.

We or any of our affiliates may currently or from time to time engage in business with the trust, including making loans to or equity investments in the trust or providing advisory services to the trust, including merger and acquisition advisory services. In the course of that business, we or any of our affiliates may acquire non-public information about the trust and, in addition, one or more of our affiliates may publish research reports about the underlier. As an investor in a note, you should undertake such independent investigation of the trust as in your judgment is appropriate to make an informed decision with respect to an investment in a note.

PS-19

Historical Closing Levels of the Underliers

The closing levels of the underliers have fluctuated in the past and may, in the future, experience significant fluctuations. In particular, the underliers have recently experienced extreme and unusual volatility. Any historical upward or downward trend in the closing level of any underlier during the period shown below is not an indication that such 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 closing levels of an underlier as an indication of the future performance of an underlier, including because of the recent volatility described above. We cannot give you any assurance that the future performance of any underlier or the underlier stocks will result in you receiving any coupon payments.

Neither we nor any of our affiliates make any representation to you as to the performance of the underliers. Before investing in the offered notes, you should consult publicly available information to determine the relevant underlier levels 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 underliers. The actual performance of an underlier over the life of the offered notes may bear little relation to the historical levels shown below.

The graphs below show the daily historical closing levels of each underlier from January 1, 2019 through September 10, 2024. As a result, the following graphs do 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 and most equity ETFs. We obtained the levels in the graphs below from Bloomberg Financial Services, without independent verification. Although the official closing levels of the Russell 2000® Index are published to six decimal places by the underlier sponsor, Bloomberg Financial Services reports the levels of the Russell 2000® Index to fewer decimal places.

Historical Performance of theS&P 500® Index

PS-20

Historical Performance of the Russell 2000® Index

PS-21

In the graph for the iShares® Semiconductor ETF, historical closing levels to the left of the vertical solid line marker reflect the historical closing levels of the iShares® Semiconductor ETF while it tracked the PHLX Semiconductor Sector Index. Closing levels to the right of the vertical solid line marker reflect the historical closing prices of the iShares® Semiconductor ETF tracking its current underlying index, the NYSE Semiconductor Index. We obtained the closing levels in the graph below from Bloomberg Financial Services, without independent verification.

Historical Performance of theiShares® Semiconductor ETF*

* The iShares® Semiconductor ETF currently tracks the NYSE Semiconductor Index. Prior to June 21, 2021, the iShares® Semiconductor ETF tracked the PHLX Semiconductor Sector Index.

PS-22

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. In addition, it is the opinion of Sidley Austin LLP that the characterization of the notes for U.S. federal income tax purposes that will be required under the terms of the notes, as discussed below, is a reasonable interpretation of current law.

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 regulated investment company;
an accrual method taxpayer subject to special tax accounting rules as a result of its use of financial statements;
a tax exempt organization;
a partnership;
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.

Although 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, no statutory, judicial or administrative authority directly discusses how your notes should be treated for U.S. federal income tax purposes, and as a result, the U.S. federal income tax consequences of your investment in your notes are uncertain. Moreover, 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 other tax consequences of your investment 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 a note 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. The tax treatment of your notes is uncertain. The tax treatment of your notes will depend upon whether the notes are properly treated as variable rate debt instruments or contingent payment debt instruments. This in turn depends, in part, upon whether it is reasonably expected that the return on the notes during the first half of the notes' term will be significantly greater or less than the return on the notes during the second half of the notes' term. Based on our numerical analysis, we intend to take the position that it is not reasonably expected that the return on the notes during the first half of the notes' term will be significantly greater or less than the return on the notes during the second half of the notes' term. We accordingly intend to treat your notes as variable rate debt instruments for U.S. federal income tax purposes.

Except as otherwise noted below under "Alternative Treatments," the discussion below assumes that the notes will be treated as variable rate debt instruments for tax purposes. Under this characterization, you should include the coupon payments on the notes in ordinary income at the time you receive or accrue such payments, depending on your regular method of accounting for tax purposes.

PS-23

Our determination that it is not reasonably expected that the return on your notes during the first half of the notes' term will be significantly greater or less than the return on your notes during the second half of the notes' term is made solely for U.S. federal income tax purposes, and is not a prediction or guarantee as to whether the return on the notes during the first half of the notes' term will or will not be significantly greater or less than the return on the notes during the second half of the notes' term.

You will generally recognize gain or loss upon the sale, exchange, redemption or maturity of your notes in an amount equal to the difference, if any, between the amount of cash you receive at such time (other than amounts representing accrued and unpaid interest, which will be taxable as such) and your adjusted basis in your notes. See the discussion under "United States Taxation - Taxation of Debt Securities - United States Holders - Purchase, Sale and Retirement of the Debt Securities" in the accompanying prospectus for more information.

If you purchase the notes at a discount to the principal amount of the notes, you may be subject to the rules governing market discount as described under "United States Taxation - Taxation of Debt Securities - United States Holders - Market Discount" in the accompanying prospectus. If you purchase the notes at a premium to the principal amount of the notes, you will be subject to the rules governing premium as described under "United States Taxation - Taxation of Debt Securities - United States Holders - Debt Securities Purchased at a Premium" in the accompanying prospectus.

Alternative Treatments. If it is determined that it is reasonably expected that the return on the notes during the first half of the notes' term will be significantly greater or less than the return on the notes during the second half of the notes' term, the notes should be treated as a debt instrument subject to special rules governing contingent payment debt instruments for U.S. federal income tax purposes. If the notes are so treated, you would be required to accrue interest income over the term of your notes based upon the yield at which we would issue a non-contingent fixed-rate debt instrument with other terms and conditions similar to your notes. In addition, you would be required to construct a projected payment schedule for the notes and you would make a "positive adjustment" to the extent of any excess of an actual payment over thecorresponding projected payment under the notes, and you would make a "negative adjustment" to the extent of the excess of any projected payment over the corresponding actual payment under the notes. You would recognize gain or loss upon the sale, exchange, redemption or maturity of your notes in an amount equal to the difference, if any, between the amount you receive at such time and your adjusted tax basis in your notes. Any gain you recognize upon the sale, exchange, redemption or maturity of your notes would be treated as ordinary income and any loss recognized by you at such time would be treated as ordinary loss to the extent of interest you included in income in the current or previous taxable years in respect of your notes, and, thereafter, as capital loss.

It is also possible that the Internal Revenue Service could determine that the notes should be subject to special rules for notes that provide for alternative payment schedules if one of such schedules is significantly more likely than not to occur. If your notes are subject to those rules, you would generally be required to include the stated interest on your notes in income as it accrues even if you are otherwise subject to the cash basis method of accounting for tax purposes. The rules for notes that provide alternative payment schedules if one of such schedules is significantly more likely than not to occur are discussed under "United States Taxation-United States Holders-Original Issue Discount-Debt Securities Subject to Contingencies Including Optional Redemption" in the accompanying prospectus.

You should consult your tax advisor as to the possible alternative treatments in respect of the notes.

Non-United States Holders

If you are a non-United States holder, please see the discussion under "United States Taxation - Taxation of Debt Securities - Non-United States Holders" 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 the 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

PS-24

tax at a rate of 30% (or a lower rate under an applicable treaty), which in the case of any coupon payments and amounts you receive upon the sale, exchange, redemption 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 ETF or on the stocks included in the Index 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 any coupon payment or 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, 2027, 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 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-25

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, and to certain securities dealers at such price less a concession not in excess of 0.75% of the face amount. 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 to iCapital Markets LLC, a broker-dealer in which an affiliate of GS Finance Corp. holds an indirect minority equity interest, for services it is providing in connection with this offering.

We will deliver the notes against payment therefor in New York, New York on September 13, 2024. Under Rule 15c6-1 of the Securities Exchange Act of 1934, trades in the secondary market generally are required to settle in one business day, unless the parties to any such trade expressly agree otherwise. Accordingly, purchasers who wish to trade notes on any date prior to one business day 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-26

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-27

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. 40, 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. 40, 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. 40, the accompanying prospectus supplement and the accompanying prospectus is current only as of the respective dates of such documents.

$7,424,000

GS Finance Corp.

Autocallable Contingent Coupon Underlier-Linked Notes due 2029

guaranteed by

The Goldman Sachs Group, Inc.


Goldman Sachs & Co. LLC