v3.26.1
Goldman Sachs Clean Energy Income Fund Performance Management - Class A C Inst Inv R6 Shares [Member] - Goldman Sachs Clean Energy Income Fund
Nov. 30, 2025
Prospectus [Line Items]  
Bar Chart and Performance Table [Heading] <span style="color:#FFFFFF;font-family:Arial;font-size:7.5pt;margin-left:0.0pt;text-transform:uppercase;">Performance</span>
Performance Narrative [Text Block] The bar chart and table below provide an indication of the risks of investing in the Fund by showing: (a) changes in the performance of the Fund’s Institutional Shares from year to year; and (b) how the average annual total returns of the Fund’s Class A, Class C, Institutional, Investor and Class R6 Shares compare to those of a regulatorily required broad-based securities market index (the S&P 500® Index) (the “Regulatory Benchmark”) and the Clean Energy Income Composite Index (the “Performance Benchmark”), which consists of the Eagle Global Renewables Infrastructure Index (50%) and S&P Global Clean Energy Index (50%).The Performance Benchmark is generally more representative of the market sectors and/or types of investments in which the Fund invests or to which the Fund has exposure and which the Investment Adviser uses to measure the Fund’s performance. The Fund has included in the table below the performance of the Regulatory Benchmark, which represents a broader measure of market performance, to comply with regulatory requirements. For additional information about these benchmark indices, please see “Additional Performance and Benchmark Information” on page 10 of the Prospectus.  The Fund’s past performance, before and after taxes, is not necessarily an indication of how the Fund will perform in the future. Updated performance information is available at no cost at am.gs.com or by calling the appropriate phone number on the back cover of the Prospectus. Performance reflects applicable fee waivers and/or expense limitations in effect during the periods shown.
Performance Past Does Not Indicate Future [Text] <span style="font-family:Times New Roman;font-size:9pt;"> The Fund’s past performance, before and after taxes, is not necessarily an </span><span style="font-family:Times New Roman;font-size:9pt;">indication of how the Fund will perform in the future.</span>
Performance Information Illustrates Variability of Returns [Text] <span style="font-family:Times New Roman;font-size:9pt;">The bar chart and table below provide an indication of the risks of investing in the Fund by showing: (a) changes in the performance of the Fund’s Institutional Shares from year to year; and (b) how the average annual total returns of the Fund’s Class A, Class C, Institutional, Investor and Class R6 Shares compare to those of a regulatorily required broad-based securities market index (the S&P 500</span><span style="font-family:Times New Roman;font-size:5.5pt;position:relative;top:-3.75pt;">®</span><span style="font-family:Times New Roman;font-size:9pt;"> Index) (the “Regulatory Benchmark”) and the Clean Energy Income Composite Index (the “Performance Benchmark”), which consists of the Eagle</span><span style="font-family:Times New Roman;font-size:9pt;line-height:11pt;"> </span><span style="font-family:Times New Roman;font-size:9pt;">Global Renewables Infrastructure Index (50%) and S&P Global Clean Energy Index (50%).</span>
Performance Additional Market Index [Text] <span style="font-family:Times New Roman;font-size:9pt;">The Performance Benchmark is generally more representative of the market sectors and/or types of investments in which the Fund invests or to which the Fund has exposure and which the Investment Adviser uses to measure the Fund’s performance. The Fund has included in the table below the performance of the Regulatory Benchmark, which represents a broader measure of market performance, to comply with regulatory requirements.</span>
Bar Chart [Heading] <span style="font-family:Arial;font-size:9pt;font-weight:bold;margin-left:113pt;">CALENDAR YEAR (INSTITUTIONAL)</span>
Bar Chart Closing [Text Block] During the periods shown in the chart above:ReturnsQuarter endedBest Quarter Return14.96%September 30, 2024Worst Quarter Return-19.71%September 30, 2023
Performance Table Heading <span style="color:#FFFFFF;font-family:Arial;font-size:7.5pt;margin-left:6pt;text-transform:uppercase;">AVERAGE ANNUAL TOTAL RETURN</span><span style="font-family:Arial Narrow;font-size:6.5pt;font-weight:bold;margin-left:0.0pt;">For the period ended December 31, 2025</span>
Performance Table Narrative Benchmark returns do not reflect any deductions for fees or expenses.The after-tax returns are for Class A Shares only. The after-tax returns for Class C, Institutional, Investor and Class R6 Shares will vary.After-tax returns are calculated using the historical highest individual federal marginal income tax rates and do not reflect the impact of state and local taxes. Actual after-tax returns depend on an investor’s tax situation and may differ from those shown. In addition, the after-tax returns shown are not relevant to investors who hold Fund Shares through tax-deferred arrangements such as 401(k) plans or individual retirement accounts.
Performance Table Uses Highest Federal Rate <span style="color:#000000;font-family:Times New Roman;font-size:9pt;">After-tax returns are calculated using the historical highest individual federal marginal income tax rates and do not reflect the impact of state and local taxes. </span>
Performance Table Not Relevant to Tax Deferred <span style="color:#000000;font-family:Times New Roman;font-size:9pt;">Actual after-tax returns depend on an investor’s tax situation and may differ from those shown. In </span><span style="color:#000000;font-family:Times New Roman;font-size:9pt;">addition, the after-tax returns shown are not relevant to investors who hold Fund Shares through tax-deferred arrangements such as 401(k) plans or individual retirement accounts.</span>
Performance Table One Class of after Tax Shown [Text] <span style="color:#000000;font-family:Times New Roman;font-size:9pt;">The after-tax returns are for Class A Shares only. The after-tax returns for Class C, Institutional, Investor and Class R6 Shares will vary.</span>
Index No Deduction for Fees, Expenses, or Taxes [Text] <span style="color:#000000;font-family:Times New Roman;font-size:7.5pt;font-style:italic;">Benchmark returns do not reflect any deductions for fees or expenses.</span>
Performance Availability Website Address [Text] <span style="font-family:Times New Roman;font-size:9pt;">am.gs.com</span>
Institutional Shares  
Prospectus [Line Items]  
Highest Quarterly Return, Label [Optional Text] <span style="color:#000000;font-family:Arial Narrow;font-size:7.5pt;margin-left:0.0pt;">Best Quarter Return</span>
Highest Quarterly Return 14.96%
Highest Quarterly Return, Date Sep. 30, 2024
Lowest Quarterly Return, Label [Optional Text] <span style="color:#000000;font-family:Arial Narrow;font-size:7.5pt;margin-left:0.0pt;">Worst Quarter Return</span>
Lowest Quarterly Return (19.71%)
Lowest Quarterly Return, Date Sep. 30, 2023