Goldman Sachs MLP Energy Infrastructure Fund Performance Management - Class A C Inst Inv R R6 Shares [Member] - Goldman Sachs MLP Energy Infrastructure 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, Class R and Class R6 Shares compare to those of a regulatorily required broad-based securities market index (S&P 500® Index) (the “Regulatory Benchmark”) and the Alerian MLP Index (Total Return, USD, Unhedged) (the “Performance Benchmark”). 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 19 of the Prospectus. Through June 26, 2020, certain of the Fund’s strategies differed. Performance information set forth below reflects the Fund’s former strategies prior to that date. 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 </span><span style="font-family:Times New Roman;font-size:9pt;">performance, before and after taxes, is not necessarily an 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, Class R and Class R6 Shares compare to those of a regulatorily required broad-based securities market index (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 Alerian MLP Index (Total Return, USD, Unhedged) (the “Performance Benchmark”). </span><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 </span><span style="font-family:Times New Roman;font-size:9pt;">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><span style="font-family:Times New Roman;font-size:9pt;"> For additional information about these benchmark indices, please see </span><span style="font-family:Times New Roman;font-size:9pt;">“Additional Performance and Benchmark Information” on page 19 of the Prospectus. </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 </span><span style="font-family:Times New Roman;font-size:9pt;">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:24%;">CALENDAR YEAR (INSTITUTIONAL)</span> |
| Bar Chart Closing [Text Block] | During the periods shown in the chart above:ReturnsQuarter endedBest Quarter Return35.44%June 30, 2020Worst Quarter Return-54.46%March 31, 2020 |
| 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, and returns for Class R Shares (which are offered exclusively to employee benefit plans), 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 </span><span style="color:#000000;font-family:Times New Roman;font-size:9pt;">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.</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, and returns for Class R Shares (which are offered exclusively to employee benefit plans), 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 | 35.44% |
| Highest Quarterly Return, Date | Jun. 30, 2020 |
| 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 | (54.46%) |
| Lowest Quarterly Return, Date | Mar. 31, 2020 |