v3.25.1
Label Element Value
Risk Return Abstract rr_RiskReturnAbstract  
Registrant Name dei_EntityRegistrantName GOLDMAN SACHS TRUST
Prospectus Date rr_ProspectusDate Mar. 30, 2025
Class P Shares | Goldman Sachs Energy Infrastructure Fund  
Risk Return Abstract rr_RiskReturnAbstract  
Risk/Return [Heading] rr_RiskReturnHeading <span style="color:#000000;font-family:Times New Roman;font-size:12pt;font-weight:bold;">Goldman Sachs Energy Infrastructure Fund—Summary</span>
Objective [Heading] rr_ObjectiveHeading <span style="color:#FFFFFF;font-family:Arial;font-size:7.5pt;margin-left:0.0pt;text-transform:uppercase;">Investment Objective</span>
Objective, Primary [Text Block] rr_ObjectivePrimaryTextBlock The Goldman Sachs Energy Infrastructure Fund (the “Fund”) seeks total return through current income and capital appreciation.
Expense [Heading] rr_ExpenseHeading <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] rr_ExpenseNarrativeTextBlock 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.
Operating Expenses Caption [Text] rr_OperatingExpensesCaption <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>
Fee Waiver or Reimbursement over Assets, Date of Termination rr_FeeWaiverOrReimbursementOverAssetsDateOfTermination <span style="font-family:Times New Roman;font-size:7.5pt;font-style:italic;">March 30, 2026</span>
Portfolio Turnover [Heading] rr_PortfolioTurnoverHeading <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] rr_PortfolioTurnoverTextBlock 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, and is also likely to result in higher short-term capital gains for taxable shareholders. 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, 2024 was 43% of the average value of its portfolio.
Portfolio Turnover, Rate rr_PortfolioTurnoverRate 43.00%
Expenses Not Correlated to Ratio Due to Acquired Fund Fees [Text] rr_ExpensesNotCorrelatedToRatioDueToAcquiredFundFees <span style="font-family:Times New Roman;font-size:7.5pt;font-style:italic;">The “Total Annual Fund Operating Expenses” and “Total Annual Fund Operating Expenses After Fee Waiver and Expense Limitation” do not correlate to the ratios of net and total expenses to average net assets provided in the Financial Highlights, which reflect the operating expenses of the Fund and do not include “Acquired Fund Fees and Expenses.”</span>
Expense Example [Heading] rr_ExpenseExampleHeading <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] rr_ExpenseExampleNarrativeTextBlock 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 P Shares of the Fund for the time periods indicated and then redeem all of your Class P 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:
Strategy [Heading] rr_StrategyHeading <span style="color:#FFFFFF;font-family:Arial;font-size:7.5pt;margin-left:0.0pt;text-transform:uppercase;">Principal Strategy</span>
Strategy Narrative [Text Block] rr_StrategyNarrativeTextBlock The Fund invests, under normal circumstances, at least 80% of its net assets plus any borrowings for investment purposes (measured at the time of purchase) (“Net Assets”) in U.S. and non-U.S. equity or fixed income securities issued by energy infrastructure companies, including master limited partnerships (“MLPs”) and “C” corporations (“C-Corps”). The Fund’s investments in MLPs will not exceed 25% of the Fund’s total assets as measured at the time of purchase. The Fund intends to concentrate its investments in the energy sector. For purposes of the Fund’s 80% policy discussed above, the Fund’s investments in energy infrastructure companies include U.S. and non-U.S. issuers that: (i) are classified by a third party as operating within the oil and gas storage and transportation, oil and gas equipment and services, and oil and gas refining and marketing sub-industries; or (ii) have at least 50% of their assets, income, sales or profits committed to, or derived from, traditional or alternative midstream (energy infrastructure) businesses, which include businesses that are engaged in the treatment, gathering, compression, processing, transportation, transmission, fractionation, storage, terminalling, wholesale marketing, liquefaction/regasification of natural gas, natural gas liquids, crude oil, refined products or other energy sources as well as businesses engaged in owning, storing and transporting alternative energy sources, such as renewables (wind, solar, hydrogen, geothermal, biomass) and alternative fuels (ethanol, hydrogen, biodiesel). The Fund’s MLP investments may include MLPs structured as limited partnerships (“LPs”) or limited liability companies (“LLCs”); MLPs that are taxed as C-Corps; institutional units (“I-Units”) issued by MLP affiliates; private investments in public equities (“PIPEs”) issued by MLPs; and other U.S. and non-U.S. equity and fixed income securities and derivative instruments, including pooled investment vehicles and exchange-traded notes (“ETNs”), that provide exposure to MLPs. The Fund may also invest up to 20% of its Net Assets in non-energy infrastructure investments, including equity and fixed income securities of U.S. and non-U.S. companies. Such investments may include issuers in the upstream and downstream sectors of the energy value chain. Upstream energy companies are primarily engaged in the exploration, recovery, development and production of crude oil, natural gas and natural gas liquids. Downstream energy companies are primarily engaged in the refining and retail distribution of natural gas liquids and crude oil. The Fund’s investments may be of any credit quality, duration or capitalization size. The Fund may also invest in derivatives, including options, futures, forwards, swaps, options on swaps, structured securities and other derivative instruments. While the Fund may invest in derivatives for hedging purposes, the Fund generally does not intend to hedge its exposures. The Fund’s investments in derivatives, pooled investment vehicles, and other investments are counted towards the Fund’s 80% policy to the extent they have economic characteristics similar to the investments included within that policy. The Fund may also invest in privately held companies and companies that only recently began to trade publicly. The Fund may invest in stock, warrants and other securities of special purpose acquisition companies (“SPACs”). THE FUND IS NON-DIVERSIFIED UNDER THE INVESTMENT COMPANY ACT OF 1940, AS AMENDED (“INVESTMENT COMPANY ACT”), AND MAY INVEST A LARGER PERCENTAGE OF ITS ASSETS IN FEWER ISSUERS THAN DIVERSIFIED MUTUAL FUNDS. The Investment Adviser measures the Fund's performance against the Alerian Midstream Energy Select Index (Total Return, Unhedged, USD). The Alerian Midstream Energy Select Index (Total Return, Unhedged, USD) is a composite of North American energy infrastructure companies and is a capped, float-adjusted, capitalization-weighted index, whose constituents are engaged in midstream activities involving energy commodities.
Strategy Portfolio Concentration [Text] rr_StrategyPortfolioConcentration <span style="color:#000000;font-family:Times New Roman;font-size:9pt;">The Fund invests, under normal circumstances, at least 80% of its net assets plus any borrowings for investment purposes (measured at the time of purchase) (“Net Assets”) in U.S. and non-U.S. equity or fixed income securities issued by energy infrastructure companies, including master limited partnerships (“MLPs”) and “C” corporations (“C-Corps”).</span>
Risk [Heading] rr_RiskHeading <span style="color:#FFFFFF;font-family:Arial;font-size:7.5pt;margin-left:0.0pt;text-transform:uppercase;">Principal Risks of the Fund</span>
Bar Chart and Performance Table [Heading] rr_BarChartAndPerformanceTableHeading <span style="color:#FFFFFF;font-family:Arial;font-size:7.5pt;margin-left:0.0pt;text-transform:uppercase;">Performance</span>
Performance Narrative [Text Block] rr_PerformanceNarrativeTextBlock 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 Class P Shares from year to year; and (b) how the average annual total returns of the Fund’s Class P Shares compare to those of a regulatorily required broad-based securities market index (S&P 500® Index) (the "Regulatory Benchmark") and the Alerian Midstream Energy Select Index (Total Return, Unhedged, USD) (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 new regulatory requirements. For additional information about these benchmark indices, please see “Additional Performance and Benchmark Information” on page 17 of the Prospectus.Through June 26, 2020, the Fund had been known as the Goldman Sachs MLP & Energy Fund and 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.comor by calling the 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 Information Illustrates Variability of Returns [Text] rr_PerformanceInformationIllustratesVariabilityOfReturns <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 Class P Shares from year to year; and (b) how the average annual total returns of the Fund’s Class P 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)</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;">(the "Regulatory Benchmark") and the Alerian Midstream Energy Select Index</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;">(Total Return, Unhedged, USD)</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;">(the “Performance Benchmark”). </span><span style="font-family:Times New Roman;font-size:9pt;">The Performance Benchmark is </span><span style="font-family:Times New Roman;font-size:9pt;">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 new regulatory requirements.</span><span style="font-family:Times New Roman;font-size:9pt;"> For additional information about these benchmark indices, please see “Additional Performance and </span><span style="font-family:Times New Roman;font-size:9pt;">Benchmark Information” on page 17 of the Prospectus.</span>
Performance Additional Market Index [Text] rr_PerformanceAdditionalMarketIndex <span style="font-family:Times New Roman;font-size:9pt;">The Performance Benchmark is </span><span style="font-family:Times New Roman;font-size:9pt;">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 new regulatory requirements.</span>
Performance Availability Website Address [Text] rr_PerformanceAvailabilityWebSiteAddress <span style="font-family:Times New Roman;font-size:9pt;">am.gs.com</span>
Performance Past Does Not Indicate Future [Text] rr_PerformancePastDoesNotIndicateFuture <span style="font-family:Times New Roman;font-size:9pt;">The Fund’s past performance, before and after taxes, is not necessarily an indication of how the Fund will </span><span style="font-family:Times New Roman;font-size:9pt;">perform in the future.</span>
Bar Chart [Heading] rr_BarChartHeading <span style="font-family:Arial;font-size:9pt;font-weight:bold;margin-left:24%;">CALENDAR YEAR (CLASS P)</span>
Bar Chart Closing [Text Block] rr_BarChartClosingTextBlock During the periods shown in the chart above:ReturnsQuarter endedBest Quarter Return33.48%June 30, 2020Worst Quarter Return-44.38%March 31, 2020
Performance Table Heading rr_PerformanceTableHeading <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, 2024</span>
Index No Deduction for Fees, Expenses, Taxes [Text] rr_IndexNoDeductionForFeesExpensesTaxes <span style="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 Table Uses Highest Federal Rate rr_PerformanceTableUsesHighestFederalRate <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 rr_PerformanceTableNotRelevantToTaxDeferred <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 addition, the </span><span style="color:#000000;font-family:Times New Roman;font-size:9pt;">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 Narrative rr_PerformanceTableNarrativeTextBlock Benchmark returns do not reflect any deductions for fees or expenses.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.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Risk Nondiversified Status [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Non-Diversification Risk.  The Fund is non-diversified, meaning that it is permitted to invest a larger percentage of its assets in one or more issuers or in fewer issuers than diversified  mutual funds. Thus, the Fund may be more susceptible to adverse developments affecting any single issuer held in its portfolio, and may be more susceptible to greater losses because of these developments.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Risk Lose Money [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Loss of money is a risk of investing in the Fund.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Risk Not Insured Depository Institution [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock An investment in the Fund is not a bank deposit and is not insured or guaranteed by the Federal Deposit Insurance Corporation (“FDIC”) or any government agency.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Credit Default Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Credit/Default Risk.  An issuer or guarantor of fixed income securities or instruments held by the Fund (which may have low credit ratings) may default on its obligation to pay interest and repay principal or default on any other obligation. The credit quality of the Fund’s portfolio securities or instruments may meet the Fund’s credit quality requirements at the time of purchase but then deteriorate thereafter, and such a deterioration can occur rapidly. In certain instances, the downgrading or default of a single holding or guarantor of the Fund’s holding may impair the Fund’s liquidity and have the potential to cause significant deterioration in net asset value (“NAV”). These risks are heightened in market environments where interest rates are rising as well as in connection with the Fund’s investments in non-investment grade fixed income securities.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Derivatives Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Derivatives Risk. The Fund's use of  options, futures, swaps, options on swaps and other derivative instruments may result in losses, including due to adverse market movements. These instruments, which may pose risks in addition to and greater than those associated with investing directly in securities, currencies or other assets and instruments, may increase market exposure and be illiquid or less liquid, volatile, difficult to price and leveraged so that small changes in the value of the underlying assets or instruments may produce disproportionate losses to the Fund. Certain derivatives are also subject to counterparty risk, which is the risk that the other party in the transaction will not fulfill its contractual obligations. The use of derivatives is a highly specialized activity that involves investment techniques and risks different from those associated with investments in more traditional securities and instruments.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Dividend Paying Investments Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Dividend-Paying Investments Risk. The Fund’s investments in dividend-paying securities could cause the Fund to underperform other funds. Securities that pay dividends, as a group, can fall out of favor with the market, causing such securities to underperform securities that do not pay dividends. Depending upon market conditions and political and legislative responses to such conditions, dividend-paying securities that meet the Fund’s investment criteria may not be widely available and/or may be highly concentrated in only a few market sectors. In addition, issuers that have paid regular dividends or distributions to shareholders may not continue to do so at the same level or at all in the future. This may limit the ability of the Fund to produce current income.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Energy Sector Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Energy Sector Risk.  The Fund concentrates its investments in the energy sector, and will therefore be susceptible to adverse economic, business, social, political, environmental, regulatory or other developments affecting that sector. The energy sector has historically experienced substantial price volatility. MLPs, energy infrastructure companies and other companies operating in the energy sector are subject to market and other specific risks, including, among others: fluctuations in commodity prices and/or interest rates; increased governmental or environmental regulation or policy; reduced availability of natural gas or other commodities for transporting, processing, storing or delivering; declines in domestic or foreign production or consumption; slowdowns in new construction; extreme weather or other natural disasters; consumer preferences; and threats of attack by terrorists and state-sponsored actors on energy assets. Energy companies can be significantly affected by the supply of, and demand for, particular energy products (such as oil and natural gas), which may result in overproduction or underproduction. Additionally, changes in the regulatory environment for energy companies may adversely impact their profitability. Over time, depletion of natural gas reserves and other energy reserves may also affect the profitability of energy companies. During periods of heightened volatility, energy producers that are burdened with debt may seek bankruptcy relief. Bankruptcy laws may permit the revocation or renegotiation of contracts between energy producers and MLPs/energy infrastructure companies, which could have a dramatic impact on the ability of MLPs/energy infrastructure companies to pay distributions to its investors, including the Fund, which in turn could impact the ability of the Fund to pay dividends and dramatically impact the value of the Fund’s investments.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Foreign Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Foreign Risk.  Foreign securities may be subject to risk of loss because of more or less foreign government regulation; less public information; less stringent investor protections; less stringent accounting, corporate governance, financial reporting and disclosure standards; and less economic, political and social stability in the countries in which the Fund invests. The imposition of sanctions, exchange controls, confiscations, trade restrictions (including tariffs) and other government restrictions by the United States and other governments, or from problems in share registration, settlement or custody, may also result in losses. The type and severity of sanctions and other similar measures, including counter sanctions and other retaliatory actions, that may be imposed could vary broadly in scope, and their impact is impossible to predict. For example, the imposition of sanctions and other similar measures could, among other things, cause a decline in the value and/or liquidity of securities issued by the sanctioned country or companies located in or economically tied to the sanctioned country and increase market volatility and disruption in the sanctioned country and throughout the world. Sanctions and other similar measures could limit or prevent the Fund from buying and selling securities (in the sanctioned country and other markets), significantly delay or prevent the settlement of securities transactions, and significantly impact the Fund’s liquidity and performance. Foreign risk also involves the risk of negative foreign currency rate fluctuations, which may cause the value of securities denominated in such foreign currency (or other instruments through which the Fund has exposure to foreign currencies) to decline in value. Currency exchange rates may fluctuate significantly over short periods of time.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Infrastructure Company Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Infrastructure Company Risk.  Infrastructure companies are susceptible to various factors that may negatively impact their businesses or operations, including costs associated with compliance with and changes in environmental, governmental and other regulations, rising interest costs in connection with capital construction and improvement programs, government budgetary constraints that impact publicly funded projects, the effects of general economic conditions throughout the world, surplus capacity and depletion concerns, increased competition from other providers of services, uncertainties regarding the availability of fuel and other natural resources at reasonable prices, the effects of energy conservation policies, unfavorable tax laws or accounting policies and high leverage. Infrastructure companies will also be affected by innovations in technology that could render the way in which a company delivers a product or service obsolete and natural or man-made disasters.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Interest Rate Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Interest Rate Risk. When interest rates increase, fixed income securities or instruments held by the Fund will generally decline in value. Long-term fixed income securities or instruments will normally have more price volatility because of this risk than short-term fixed income securities or instruments. A wide variety of market factors can cause interest rates to rise, including central bank monetary policy, rising inflation and changes in general economic conditions. Changing interest rates may have unpredictable effects on the markets, may result in heightened market volatility and may detract from Fund performance. In addition, changes in monetary policy may exacerbate the risks associated with changing interest rates. Funds with longer average portfolio durations will generally be more sensitive to changes in interest rates than funds with a shorter average portfolio duration. Fluctuations in interest rates may also affect the liquidity of fixed income securities and instruments held by the Fund.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Investment Style Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Investment Style Risk.  Different investment styles (e.g., “growth”, “value” or “quantitative”) tend to shift in and out of favor depending upon market and economic conditions and investor sentiment. The Fund may outperform or underperform other funds that invest in similar asset classes but employ different investment styles. The Fund intends to employ a blend of growth and value investment styles depending on market conditions, either of which may fall out of favor from time to time. Growth stocks may be more volatile than other stocks because they are more sensitive to investor perceptions of the issuing company’s growth of earnings potential. Growth companies are often expected by investors to increase their earnings at a certain rate. When these expectations are not met, investors can punish the stocks inordinately even if earnings showed an absolute increase. Also, since growth companies usually invest a high portion of earnings in their business, growth stocks may lack the dividends of some value stocks that can cushion stock prices in a falling market. Growth oriented funds will typically underperform when value investing is in favor. Value stocks are those that are undervalued in comparison to their peers due to adverse business developments or other factors.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Large Shareholder Transactions Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Large Shareholder Transactions Risk. The Fund may experience adverse effects when certain large shareholders purchase or redeem large amounts of shares of the Fund. Such large shareholder redemptions, which may occur rapidly or unexpectedly, may cause the Fund to sell portfolio securities at times when it would not otherwise do so, which may negatively impact the  Fund's   NAV and liquidity. Similarly, large Fund share purchases may adversely affect the  Fund's  performance to the extent that the Fund is delayed in investing new cash or otherwise maintains a larger cash position than it ordinarily would. These transactions may also accelerate the realization of taxable income to shareholders if such sales of investments resulted in gains, and may also increase transaction costs. In addition, a large redemption could result in the  Fund's  current expenses being allocated over a smaller asset base, leading to an increase in the  Fund's  expense ratio.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Liquidity Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Liquidity Risk.  The Fund may make investments that are illiquid or that may become less liquid in response to market developments or adverse investor perceptions. Illiquid investments may be more difficult to value. Liquidity risk may also refer to the risk that the Fund will not be able to pay redemption proceeds within the allowable time period because of unusual market conditions, declining prices of the securities sold, an unusually high volume of redemption requests, or other reasons. To meet redemption requests, the Fund may be forced to sell securities at an unfavorable time and/or under unfavorable conditions. Redemptions by large shareholders may have a negative impact on a Fund’s liquidity.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Market Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Market Risk. The value of the securities in which the Fund invests may go up or down in response to the prospects of individual companies, particular sectors, governments or countries and/or general economic conditions throughout the world due to increasingly interconnected global economies and financial markets. Events such as war, military conflict, geopolitical disputes, acts of terrorism, social or political unrest, natural disasters, recessions, inflation, rapid interest rate changes, supply chain disruptions, tariffs and other restrictions on trade, sanctions or the spread of infectious illness or other public health threats, or the threat or potential of one or more such events and developments, could also significantly impact the Fund and its investments.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Master Limited Partnership Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Master Limited Partnership Risk.  Investments in securities of an MLP involve risks that differ from investments in common stock, including risks related to limited control and limited rights to vote on matters affecting the MLP. Certain MLP securities may trade in lower volumes due to their smaller capitalizations, and may be subject to more abrupt or erratic price movements and lower market liquidity. MLPs are generally considered interest-rate sensitive investments that generally rely on capital markets to finance capital expenditures and growth opportunities. During periods of interest rate volatility, limited capital markets access and/or low commodities pricing, these investments may not provide attractive returns.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Mid Cap and Small Cap Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Mid-Cap and Small-Cap Risk.  Investments in mid-capitalization and small-capitalization companies involve greater risks than those associated with larger, more established companies. These securities may be subject to more abrupt or erratic price movements and may lack sufficient market liquidity, and these issuers often face greater business risks.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Other Investment Companies Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Other Investment Companies Risk.  By investing in other investment companies (including exchange-traded funds (“ETFs”)) indirectly through the Fund, investors will incur a proportionate share of the expenses of the other investment companies held by the Fund (including operating costs and investment management fees) in addition to the fees regularly borne by the Fund. In addition, the Fund will be affected by the investment policies, practices and performance of such investment companies in direct proportion to the amount of assets the Fund invests therein.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Private Investment in Public Equities Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Private Investment in Public Equities Risk. The Fund may invest in PIPE transactions. PIPE transactions typically involve the purchase of securities directly from a publicly traded company or its affiliates in a private placement transaction, typically at a discount to the market price of the company’s common stock. In a PIPE transaction, the Fund may bear the price risk from the time of pricing until the time of closing. Equity issued in this manner is often subject to transfer restrictions and is therefore less liquid than equity issued through a registered public offering. For example, the Fund may be subject to lock-up agreements that prohibit transfers for a fixed period of time. In addition, because the sale of the securities in a PIPE transaction is not registered under the Securities Act, the securities are “restricted” and cannot be immediately resold into the public markets. The Fund may enter into a registration rights agreement with the issuer pursuant to which the issuer commits to file a resale registration statement allowing the Fund to publicly resell its securities. However, the ability of the Fund to freely transfer the shares is conditioned upon, among other things, the SEC’s preparedness to declare the resale registration statement effective and the issuer’s right to suspend the Fund’s use of the resale registration statement if the issuer is pursuing a transaction or some other material non-public event is occurring. Accordingly, PIPE securities may be subject to risks associated with illiquid investments.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Special Purpose Acquisition Companies Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Special Purpose Acquisition Companies Risk. The Fund may invest in stock, warrants and other securities of SPACs. SPACs are in essence blank check companies without operating history or ongoing business other than seeking acquisitions. The value of a SPAC’s securities is particularly dependent on the ability of its management to identify and complete a profitable acquisition. There is no guarantee that the SPACs in which the Fund invests will complete an acquisition or that any acquisitions completed by the SPACs in which the Fund invests will be profitable. The values of investments in SPACs may be highly volatile and these investments may also have little or no liquidity.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Stock Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Stock Risk.  Stock prices have historically risen and fallen in periodic cycles. U.S. and foreign stock markets have experienced periods of substantial price volatility in the past and may do so again in the future.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Tax Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Tax Risk.  Tax risks associated with investments in the Fund include but are not limited to the following: MLP Tax Risk.  MLPs are generally treated as partnerships for U.S. federal income tax purposes. Partnerships do not pay U.S. federal income tax at the partnership level. Rather, each partner is allocated a share of the partnership’s income, gains, losses, deductions and expenses. A change in current tax law or a change in the underlying business mix of a given MLP could result in an MLP being treated as a corporation for U.S. federal income tax purposes, which would result in the MLP being required to pay U.S. federal income tax (as well as state and local income taxes) on its taxable income. This would have the effect of reducing the amount of cash available for distribution by the MLP and could result in a reduction in the value of the Fund’s investment in the MLP and lower income to the Fund. Distributions from an MLP in excess of the Fund’s basis in the MLP will generally be treated as capital gain. However, a portion of the gain may instead be treated as ordinary income to the extent attributable to certain assets held by the MLP the sale of which would produce ordinary income. To the extent a distribution received by the Fund from an MLP is treated as a return of capital, the Fund’s adjusted tax basis in the interests of the MLP may be reduced, which will result in an increase in an amount of income or gain (or decrease in the amount of loss) that will be recognized by the Fund for tax purposes upon the sale of any such interests or upon subsequent distributions in respect of such interests. Furthermore, any return of capital distribution received from the MLP may require the Fund to restate the character of its distributions and amend any shareholder tax reporting previously issued.
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Class P Shares  
Risk Return Abstract rr_RiskReturnAbstract  
Management Fees rr_ManagementFeesOverAssets 1.00%
Component3 Other Expenses rr_Component3OtherExpensesOverAssets 0.16%
Other Expenses rr_OtherExpensesOverAssets 0.16%
Acquired Fund Fees and Expenses rr_AcquiredFundFeesAndExpensesOverAssets 0.01%
Total Annual Fund Operating Expenses rr_ExpensesOverAssets 1.17% [1]
Fee Waiver and Expense Limitation rr_FeeWaiverOrReimbursementOverAssets (0.06%) [2]
Total Annual Fund Operating Expenses After Fee Waiver and Expense Limitation rr_NetExpensesOverAssets 1.11%
1 Year rr_ExpenseExampleYear01 $ 113
3 Years rr_ExpenseExampleYear03 366
5 Years rr_ExpenseExampleYear05 638
10 Years rr_ExpenseExampleYear10 $ 1,415
2019 rr_AnnualReturn2019 17.00%
2020 rr_AnnualReturn2020 (17.18%)
2021 rr_AnnualReturn2021 38.40%
2022 rr_AnnualReturn2022 21.37%
2023 rr_AnnualReturn2023 14.96%
2024 rr_AnnualReturn2024 41.14%
Highest Quarterly Return, Label rr_HighestQuarterlyReturnLabel <span style="color:#000000;font-family:Arial Narrow;font-size:7.5pt;margin-left:0.0pt;">Best Quarter Return</span>
Highest Quarterly Return, Date rr_BarChartHighestQuarterlyReturnDate Jun. 30, 2020
Highest Quarterly Return rr_BarChartHighestQuarterlyReturn 33.48%
Lowest Quarterly Return, Label rr_LowestQuarterlyReturnLabel <span style="color:#000000;font-family:Arial Narrow;font-size:7.5pt;margin-left:0.0pt;">Worst Quarter Return</span>
Lowest Quarterly Return, Date rr_BarChartLowestQuarterlyReturnDate Mar. 31, 2020
Lowest Quarterly Return rr_BarChartLowestQuarterlyReturn (44.38%)
1 Year rr_AverageAnnualReturnYear01 41.14%
5 Years rr_AverageAnnualReturnYear05 17.67%
Since Inception rr_AverageAnnualReturnSinceInception 13.81%
Inception Date rr_AverageAnnualReturnInceptionDate Apr. 16, 2018
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Return After Taxes on Distributions | Class P Shares  
Risk Return Abstract rr_RiskReturnAbstract  
1 Year rr_AverageAnnualReturnYear01 36.74%
5 Years rr_AverageAnnualReturnYear05 15.14%
Since Inception rr_AverageAnnualReturnSinceInception 11.59%
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Return After Taxes on Distributions and Sale of Fund Shares | Class P Shares  
Risk Return Abstract rr_RiskReturnAbstract  
1 Year rr_AverageAnnualReturnYear01 27.44%
5 Years rr_AverageAnnualReturnYear05 13.52%
Since Inception rr_AverageAnnualReturnSinceInception 10.43%
Class P Shares | Goldman Sachs Energy Infrastructure Fund | S&P 500® Index  
Risk Return Abstract rr_RiskReturnAbstract  
1 Year rr_AverageAnnualReturnYear01 24.94%
5 Years rr_AverageAnnualReturnYear05 14.51%
Since Inception rr_AverageAnnualReturnSinceInception 14.33%
Class P Shares | Goldman Sachs Energy Infrastructure Fund | Alerian Midstream Energy Select Index (Total Return, Unhedged, USD)  
Risk Return Abstract rr_RiskReturnAbstract  
1 Year rr_AverageAnnualReturnYear01 24.34%
5 Years rr_AverageAnnualReturnYear05 15.54%
Since Inception rr_AverageAnnualReturnSinceInception 10.97%
[1] The “Total Annual Fund Operating Expenses” and “Total Annual Fund Operating Expenses After Fee Waiver and Expense Limitation” do not correlate to the ratios of net and total expenses to average net assets provided in the Financial Highlights, which reflect the operating expenses of the Fund and do not include “Acquired Fund Fees and Expenses.”
[2] The Investment Adviser has agreed to (i) waive a portion of its management fee payable by the Fund in an amount equal to any management fees it earns as an investment adviser to any affiliated funds in which the Fund invests, except those management fees it earns from the Fund’s investments of cash collateral received in connection with securities lending transactions in affiliated funds; and (ii) reduce or limit “Other Expenses” (excluding acquired fund fees and expenses, transfer agency fees and expenses, taxes, interest, brokerage fees, expenses of shareholder meetings, litigation and indemnification, and extraordinary expenses) to 0.064% of the Fund’s average daily net assets. These arrangements will remain in effect through at least March 30, 2026, and prior to such date the Investment Adviser may not terminate the arrangements without the approval of the Board of Trustees.