v3.26.1
Goldman Sachs MLP Energy Infrastructure Fund Fees and Expenses - Class A C Inst Inv R R6 Shares [Member] - Goldman Sachs MLP Energy Infrastructure Fund
Nov. 30, 2025
USD ($)
Prospectus [Line Items]  
Expense Heading [Optional Text] <span style="color:#FFFFFF;font-family:Arial;font-size:7.5pt;margin-left:0.0pt;text-transform:uppercase;">Fees and Expenses of the Fund</span>
Expense Narrative [Text Block] This table describes the fees and expenses that you may pay if you buy, hold and sell shares of the Fund. You may pay other fees, such as brokerage commissions and other fees to financial intermediaries, which are not reflected in the table and Example below. You may qualify for sales charge discounts on purchases of Class A Shares if you and your family invest, or agree to invest in the future, at least $50,000 in Goldman Sachs Funds. More information about these and other discounts is available from your financial professional and in “Shareholder Guide—Common Questions Applicable to the Purchase of Class A Shares” beginning on page 41 and in “Appendix C—Additional Information About Sales Charge Variations, Waivers and Discounts” beginning on page 89 of the Prospectus and “Other Information Regarding Maximum Sales Charge, Purchases, Redemptions, Exchanges and Dividends” beginning on page B-124 of the Fund’s Statement of Additional Information (“SAI”).
Expense Breakpoint Discounts [Text] <span style="font-family:Times New Roman;font-size:9pt;">You may qualify for sales charge discounts on purchases of Class A Shares if you and your family invest, or agree to invest in the future, at least $</span><span style="font-family:Times New Roman;font-size:9pt;">50,000</span><span style="font-family:Times New Roman;font-size:9pt;"> in Goldman Sachs Funds. More information about these and other discounts is available from your financial professional and in “Shareholder Guide—Common Questions Applicable to the Purchase of Class A Shares” beginning on page 41 and in “Appendix C—Additional Information About Sales Charge Variations, Waivers and Discounts” beginning on page 89 of the Prospectus and “Other Information Regarding Maximum Sales Charge, Purchases, Redemptions, Exchanges and Dividends” beginning on page B-124 of the Fund’s Statement of Additional Information (“SAI”).</span>
Expense Breakpoint, Minimum Investment Required [Amount] $ 50,000
Shareholder Fees Caption [Optional Text] <span style="color:#000000;font-family:Arial;font-size:9pt;font-weight:bold;">Shareholder Fees </span><span style="color:#000000;font-family:Arial;font-size:7pt;font-weight:bold;">(fees paid directly from your investment)</span>
Operating Expenses Caption [Optional Text] <span style="color:#000000;font-family:Arial;font-size:9pt;font-weight:bold;">Annual Fund Operating Expenses </span><span style="color:#000000;font-family:Arial;font-size:7pt;font-weight:bold;">(expenses that you pay each year as a percentage of the value of your investment)</span>
Expenses Deferred Charges [Text Block] A contingent deferred sales charge (“CDSC”) of 1.00% is imposed on Class C Shares redeemed within 12 months of purchase.
Expense Example [Heading] <span style="color:#FFFFFF;font-family:Arial;font-size:7.5pt;margin-left:0.0pt;text-transform:uppercase;">Expense Example</span>
Expense Example Narrative [Text Block] This Example is intended to help you compare the cost of investing in the Fund with the cost of investing in other mutual funds. The Example assumes that you invest $10,000 in Class A, Class C, Institutional, Investor, Class R and/or Class R6 Shares of the Fund for the time periods indicated and then redeem all of your Class A, Class C, Institutional, Investor, Class R and/or Class R6 Shares at the end of those periods. The Example also assumes that your investment has a 5% return each year and that the Fund’s operating expenses remain the same  (except that the Example incorporates any applicable fee waiver and/or expense limitation arrangements for only the first year). Although your actual costs may be higher or lower, based on these assumptions your costs would be:
Portfolio Turnover [Heading] <span style="color:#FFFFFF;font-family:Arial;font-size:7.5pt;margin-left:0.0pt;text-transform:uppercase;">Portfolio Turnover</span>
Portfolio Turnover [Text Block] The Fund pays transaction costs when it buys and sells securities or instruments (i.e., “turns over” its portfolio). A high rate of portfolio turnover may result in increased transaction costs, including brokerage commissions, which must be borne by the Fund and its shareholders. High portfolio turnover may result in the Fund’s recognition of gains (losses) that will increase (decrease) the Fund’s tax liability and thereby impact the amount of the Fund’s after-tax distributions. In addition, high portfolio turnover may increase the Fund’s current and accumulated earnings and profits, resulting in a greater portion of the Fund’s distributions being treated as taxable dividends for federal income tax purposes. These costs are not reflected in the annual fund operating expenses or in the expense example above, but are reflected in the Fund’s performance. The Fund’s portfolio turnover rate for the fiscal year ended November 30, 2025 was 130% of the average value of its portfolio.
Portfolio Turnover, Rate 130.00%