EX-99.(j)

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We hereby consent to the incorporation by reference in this Registration Statement on Form N-1A of Goldman Sachs Trust of our reports dated January 23, 2025, relating to the financial statements and financial highlights of each of the funds listed in Appendix A (collectively, the “Funds”), which appear in the Funds’ Annual Reports on Form N-CSR for the period ended November 30, 2024. We also consent to the references to us within the introductory note and under the headings “Financial Statements”, “Independent Registered Public Accounting Firm” and “Financial Highlights” in such Registration Statement.

/s/ PricewaterhouseCoopers LLP

Boston, Massachusetts

March 27, 2025


Appendix A

 

Fund Book

 

Fund

 

Period

Financial Square Funds   Goldman Sachs Financial Square Federal Instruments Fund   December 1, 2023 – November 30, 2024
Financial Square Funds   Goldman Sachs Financial Square Government Fund   December 1, 2023 – November 30, 2024
Financial Square Funds   Goldman Sachs Financial Square Treasury Instruments Fund   December 1, 2023 – November 30, 2024
Financial Square Funds   Goldman Sachs Financial Square Treasury Obligations Fund   December 1, 2023 – November 30, 2024
Financial Square Funds   Goldman Sachs Financial Square Treasury Solutions Fund   December 1, 2023 – November 30, 2024
Investor Money Market Funds   Goldman Sachs Investor Money Market Fund   December 1, 2023 – November 30, 2024
Investor Money Market Funds   Goldman Sachs Investor Tax-Exempt California Money Market Fund   September 10, 2024 – November 30, 2024
Investor Money Market Funds   Goldman Sachs Investor Tax-Exempt Money Market Fund   December 1, 2023 – November 30, 2024
Investor Money Market Funds   Goldman Sachs Investor Tax-Exempt New York Money Market Fund   September 10, 2024 – November 30, 2024
MLP Energy Infrastructure   Goldman Sachs MLP Energy Infrastructure Fund   December 1, 2023 – November 30, 2024
Energy Funds   Goldman Sachs Clean Energy Income Fund   December 1, 2023 – November 30, 2024
Energy Funds   Goldman Sachs Energy Infrastructure Fund   December 1, 2023 – November 30, 2024