v3.26.1
Goldman Sachs Energy Infrastructure Fund Annual Total Returns
12 Months Ended
Dec. 31, 2025
Dec. 31, 2024
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Dec. 31, 2018
Class A C Inst Inv R R6 Shares [Member] | Goldman Sachs Energy Infrastructure Fund | Institutional Shares                
Prospectus [Line Items]                
Annual Return [Percent] 5.39% 41.01% 14.93% 21.34% 38.50% (17.29%) 17.11% (15.15%)